Add support for CDP's DOM.requestChildNodes

https://github.com/lightpanda-io/browser/issues/866
This commit is contained in:
Karl Seguin
2025-07-14 15:13:01 +08:00
parent d35a3eab6c
commit 09ca0e6ef0
3 changed files with 140 additions and 35 deletions

View File

@@ -402,10 +402,11 @@ pub fn BrowserContext(comptime CDP_T: type) type {
return &self.isolated_world.?;
}
pub fn nodeWriter(self: *Self, node: *const Node, opts: Node.Writer.Opts) Node.Writer {
pub fn nodeWriter(self: *Self, root: *const Node, opts: Node.Writer.Opts) Node.Writer {
return .{
.node = node,
.opts = opts,
.root = root,
.depth = opts.depth,
.exclude_root = opts.exclude_root,
.registry = &self.node_registry,
};
}