mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
dom: rename HTMLCollection._next() into get_next()
We don't want expose the function to the JS API.
This commit is contained in:
@@ -27,7 +27,7 @@ pub const HTMLCollection = struct {
|
||||
|
||||
// next iterates hover the DOM tree to return the next following node or
|
||||
// null at the end.
|
||||
fn _next(root: *parser.Node, cur: *parser.Node) ?*parser.Node {
|
||||
fn get_next(root: *parser.Node, cur: *parser.Node) ?*parser.Node {
|
||||
// TODO deinit next
|
||||
var next = parser.nodeFirstChild(cur);
|
||||
if (next != null) {
|
||||
@@ -86,7 +86,7 @@ pub const HTMLCollection = struct {
|
||||
}
|
||||
}
|
||||
|
||||
node = _next(self.root, node) orelse break;
|
||||
node = get_next(self.root, node) orelse break;
|
||||
}
|
||||
|
||||
return len;
|
||||
@@ -130,7 +130,7 @@ pub const HTMLCollection = struct {
|
||||
}
|
||||
}
|
||||
|
||||
node = _next(self.root, node) orelse break;
|
||||
node = get_next(self.root, node) orelse break;
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -174,7 +174,7 @@ pub const HTMLCollection = struct {
|
||||
}
|
||||
}
|
||||
|
||||
node = _next(self.root, node) orelse break;
|
||||
node = get_next(self.root, node) orelse break;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user