cdp: use depth param on DOM.describeNode

This commit is contained in:
Pierre Tachoire
2025-09-08 14:44:46 +02:00
parent 04487b6b91
commit e68ff62723

View File

@@ -322,7 +322,7 @@ fn describeNode(cmd: anytype) !void {
const node = try getNode(cmd.arena, bc, params.nodeId, params.backendNodeId, params.objectId);
return cmd.sendResult(.{ .node = bc.nodeWriter(node, .{}) }, .{});
return cmd.sendResult(.{ .node = bc.nodeWriter(node, .{ .depth = params.depth }) }, .{});
}
// An array of quad vertices, x immediately followed by y for each point, points clock-wise.