mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
LibWeb/DOM: Create TreeWalker in document's realm
This commit is contained in:
committed by
Sam Atkins
parent
84f22cb6b3
commit
17c92d7c2b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user