mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
I guess we can't use the call_arena for querySelectorAll
This commit is contained in:
@@ -245,7 +245,7 @@ pub const Document = struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn _querySelectorAll(self: *parser.Document, selector: []const u8, page: *Page) !NodeList {
|
pub fn _querySelectorAll(self: *parser.Document, selector: []const u8, page: *Page) !NodeList {
|
||||||
return css.querySelectorAll(page.call_arena, parser.documentToNode(self), selector);
|
return css.querySelectorAll(page.arena, parser.documentToNode(self), selector);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn _prepend(self: *parser.Document, nodes: []const Node.NodeOrText) !void {
|
pub fn _prepend(self: *parser.Document, nodes: []const Node.NodeOrText) !void {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ pub const DocumentFragment = struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn _querySelectorAll(self: *parser.DocumentFragment, selector: []const u8, page: *Page) !NodeList {
|
pub fn _querySelectorAll(self: *parser.DocumentFragment, selector: []const u8, page: *Page) !NodeList {
|
||||||
return css.querySelectorAll(page.call_arena, parser.documentFragmentToNode(self), selector);
|
return css.querySelectorAll(page.arena, parser.documentFragmentToNode(self), selector);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ pub const Element = struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn _querySelectorAll(self: *parser.Element, selector: []const u8, page: *Page) !NodeList {
|
pub fn _querySelectorAll(self: *parser.Element, selector: []const u8, page: *Page) !NodeList {
|
||||||
return css.querySelectorAll(page.call_arena, parser.elementToNode(self), selector);
|
return css.querySelectorAll(page.arena, parser.elementToNode(self), selector);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn _prepend(self: *parser.Element, nodes: []const Node.NodeOrText) !void {
|
pub fn _prepend(self: *parser.Element, nodes: []const Node.NodeOrText) !void {
|
||||||
|
|||||||
Reference in New Issue
Block a user