From 56cfd5ced85f5a8332a9788ed6b0306742abc48b Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Mon, 11 Jul 2022 16:39:14 +0100 Subject: LibWeb: Implement all "childList" mutation records for MutationObserver --- Userland/Libraries/LibWeb/DOM/Node.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Userland/Libraries/LibWeb/DOM/Node.h') 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 added_nodes, NonnullRefPtr 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 m_registered_observer_list; + +private: + void queue_tree_mutation_record(NonnullRefPtr added_nodes, NonnullRefPtr removed_nodes, Node* previous_sibling, Node* next_sibling); }; } -- cgit v1.2.3