diff options
author | Luke Wilde <lukew@serenityos.org> | 2021-10-02 20:37:45 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-03 00:18:52 +0200 |
commit | 6a7739c6455a000ace70b9c28038f554c6579db8 (patch) | |
tree | c710e016f0293d05fe69bf7c992981e1fcbf9868 /Userland/Libraries/LibWeb/DOM/Node.h | |
parent | 2f7fb1fe63530815c496e9324c14124a65f39b3f (diff) | |
download | serenity-6a7739c6455a000ace70b9c28038f554c6579db8.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Node.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Node.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h index ae21a766fd..a19bad0546 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.h +++ b/Userland/Libraries/LibWeb/DOM/Node.h @@ -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(); |