1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:27:34 +00:00

LibWeb: Make TreeWalker GC-allocated

This commit is contained in:
Andreas Kling 2022-08-08 23:03:27 +02:00
parent bd629c45b5
commit a4ddb0ef87
7 changed files with 41 additions and 30 deletions

View file

@ -351,7 +351,7 @@ public:
static ExceptionOr<PrefixAndTagName> validate_qualified_name(String const& qualified_name);
JS::NonnullGCPtr<NodeIterator> create_node_iterator(Node& root, unsigned what_to_show, JS::GCPtr<NodeFilter>);
NonnullRefPtr<TreeWalker> create_tree_walker(Node& root, unsigned what_to_show, NodeFilter*);
JS::NonnullGCPtr<TreeWalker> create_tree_walker(Node& root, unsigned what_to_show, JS::GCPtr<NodeFilter>);
void register_node_iterator(Badge<NodeIterator>, NodeIterator&);
void unregister_node_iterator(Badge<NodeIterator>, NodeIterator&);