summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2021-04-06 17:58:20 +0100
committerAndreas Kling <kling@serenityos.org>2021-04-06 21:42:00 +0200
commite3d01c5e10e18e8bf5239b49ecf0b198121a8189 (patch)
treee6631fc90c7809c4280de54f6c35d4021ffbf784 /Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h
parent9e338a2be20b6ea343d141b28513e9c89f3da4db (diff)
downloadserenity-e3d01c5e10e18e8bf5239b49ecf0b198121a8189.zip
LibWeb: Make the node mutation event functions spec compliant
This particularly affects the insertion steps and the removed steps. The insertion steps no longer take into the parent that the node was inserted to, as per the spec. Due to this, I have renamed the function from "inserted_into" to simply "inserted". None of the users of the insertion steps was using it anyway. The removed steps now take a pointer to the old parent instead of a reference. This is because it is optional according to the spec and old parent is null when running the removal steps for the descendants of a node that just got removed. This commit does not affect HTMLScriptElement as there is a bit more to that, which is better suited for a separate commit. Also adds in the adopted steps as they will be used later.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h
index fc0df34bad..84a59d853e 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.h
@@ -39,7 +39,7 @@ public:
HTMLLinkElement(DOM::Document&, QualifiedName);
virtual ~HTMLLinkElement() override;
- virtual void inserted_into(Node&) override;
+ virtual void inserted() override;
String rel() const { return attribute(HTML::AttributeNames::rel); }
String type() const { return attribute(HTML::AttributeNames::type); }