mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
dom: imprive children walker
This commit is contained in:
@@ -199,12 +199,6 @@ pub const WalkerChildren = struct {
|
|||||||
// don't want to go further to find children.
|
// don't want to go further to find children.
|
||||||
if (root == cur.?) return null;
|
if (root == cur.?) return null;
|
||||||
|
|
||||||
// TODO deinit last.
|
|
||||||
const last = try parser.nodeLastChild(root);
|
|
||||||
if (last == cur.?) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return try parser.nodeNextSibling(cur.?);
|
return try parser.nodeNextSibling(cur.?);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user