1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

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.
This commit is contained in:
Luke 2021-07-05 05:33:35 +01:00 committed by Andreas Kling
parent f3f2170ac6
commit 5897bc5c1f

View file

@ -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; }