mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb/DOM: Create TreeWalker in document's realm
This commit is contained in:
parent
84f22cb6b3
commit
17c92d7c2b
Notes:
github-actions[bot]
2025-01-10 08:09:54 +00:00
Author: https://github.com/shannonbooth
Commit: 17c92d7c2b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3208
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 10 additions and 11 deletions
|
@ -3342,7 +3342,7 @@ GC::Ref<NodeIterator> Document::create_node_iterator(Node& root, unsigned what_t
|
|||
// https://dom.spec.whatwg.org/#dom-document-createtreewalker
|
||||
GC::Ref<TreeWalker> Document::create_tree_walker(Node& root, unsigned what_to_show, GC::Ptr<NodeFilter> filter)
|
||||
{
|
||||
return TreeWalker::create(root, what_to_show, filter);
|
||||
return TreeWalker::create(realm(), root, what_to_show, filter);
|
||||
}
|
||||
|
||||
void Document::register_node_iterator(Badge<NodeIterator>, NodeIterator& node_iterator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue