mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +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:
parent
2f7fb1fe63
commit
6a7739c645
Notes:
sideshowbarker
2024-07-18 03:11:11 +09:00
Author: https://github.com/Lubrsi
Commit: 6a7739c645
Pull-request: https://github.com/SerenityOS/serenity/pull/10317
3 changed files with 15 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue