mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 01:25:53 -04:00
Move the NodeList created from a ChildNode to the ChildNode's arena
This commit is contained in:
@@ -126,8 +126,12 @@ fn versionCheck(self: *ChildNodes, page: *Page) bool {
|
||||
}
|
||||
|
||||
const NodeList = @import("NodeList.zig");
|
||||
pub fn runtimeGenericWrap(self: *ChildNodes, page: *Page) !*NodeList {
|
||||
return page._factory.create(NodeList{ ._data = .{ .child_nodes = self } });
|
||||
pub fn runtimeGenericWrap(self: *ChildNodes, _: *const Page) !*NodeList {
|
||||
const nl = try self._arena.create(NodeList);
|
||||
nl.* = .{
|
||||
._data = .{ .child_nodes = self },
|
||||
};
|
||||
return nl;
|
||||
}
|
||||
|
||||
const Iterator = struct {
|
||||
|
||||
Reference in New Issue
Block a user