LibWeb: Return actual callback object from NodeIterator::filter

This commit is contained in:
Luke Wilde 2025-02-24 16:28:53 +00:00 committed by Jelle Raaijmakers
commit 95949ba8f2
Notes: github-actions[bot] 2025-02-24 17:30:16 +00:00
5 changed files with 1000 additions and 2 deletions

View file

@ -26,7 +26,7 @@ public:
bool pointer_before_reference_node() const { return m_reference.is_before_node; }
unsigned what_to_show() const { return m_what_to_show; }
NodeFilter* filter() { return m_filter.ptr(); }
JS::Object* filter() const;
JS::ThrowCompletionOr<GC::Ptr<Node>> next_node();
JS::ThrowCompletionOr<GC::Ptr<Node>> previous_node();