1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

LibWeb: Convert Node.childNodes to NodeList

This changes the old child_nodes implementation to children_as_vector
so that can still be used in insert_before.
This commit is contained in:
Luke Wilde 2021-10-02 20:37:45 +01:00 committed by Andreas Kling
parent 2f7fb1fe63
commit 6a7739c645
3 changed files with 15 additions and 5 deletions

View file

@ -96,7 +96,8 @@ public:
// NOTE: This is intended for the JS bindings.
bool has_child_nodes() const { return has_children(); }
NonnullRefPtrVector<Node> child_nodes() const;
NonnullRefPtr<NodeList> child_nodes();
NonnullRefPtrVector<Node> children_as_vector() const;
virtual RefPtr<Layout::Node> create_layout_node();