diff options
author | Luke Wilde <lukew@serenityos.org> | 2022-07-11 16:39:14 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-11 22:35:08 +0200 |
commit | 56cfd5ced85f5a8332a9788ed6b0306742abc48b (patch) | |
tree | 45aa508bcb9d1822fbbb1884cadcc4c327c51354 /Userland/Libraries/LibWeb/DOM/Node.h | |
parent | c9ba5531e0e0985408dbc0905263ce3a38e1ad20 (diff) | |
download | serenity-56cfd5ced85f5a8332a9788ed6b0306742abc48b.zip |
LibWeb: Implement all "childList" mutation records for MutationObserver
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Node.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Node.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h index 293e666b29..d30275ef5c 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.h +++ b/Userland/Libraries/LibWeb/DOM/Node.h @@ -229,6 +229,8 @@ public: void add_registered_observer(RegisteredObserver& registered_observer) { m_registered_observer_list.append(registered_observer); } + void queue_mutation_record(FlyString const& type, String attribute_name, String attribute_namespace, String old_value, NonnullRefPtr<NodeList> added_nodes, NonnullRefPtr<NodeList> removed_nodes, Node* previous_sibling, Node* next_sibling); + protected: Node(Document&, NodeType); @@ -243,6 +245,9 @@ protected: // https://dom.spec.whatwg.org/#registered-observer-list // "Nodes have a strong reference to registered observers in their registered observer list." https://dom.spec.whatwg.org/#garbage-collection NonnullRefPtrVector<RegisteredObserver> m_registered_observer_list; + +private: + void queue_tree_mutation_record(NonnullRefPtr<NodeList> added_nodes, NonnullRefPtr<NodeList> removed_nodes, Node* previous_sibling, Node* next_sibling); }; } |