From 5897bc5c1fc98cf756623e4abf6977522b28fd22 Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 5 Jul 2021 05:33:35 +0100 Subject: [PATCH] LibWeb: Make adopted_from no longer take a const Document reference Nodes implementing the adoption steps can modify the passed in document, for example HTMLTemplateElement does so to adopt it's contents into the new document. --- Userland/Libraries/LibWeb/DOM/Node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h index 0c21d6cd64..a4845b5a94 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.h +++ b/Userland/Libraries/LibWeb/DOM/Node.h @@ -133,7 +133,7 @@ public: virtual void inserted(); virtual void removed_from(Node*) { } virtual void children_changed() { } - virtual void adopted_from(const Document&) { } + virtual void adopted_from(Document&) { } virtual void cloned(Node&, bool) {}; const Layout::Node* layout_node() const { return m_layout_node; }