summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-14 21:39:33 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-15 19:48:19 +0100
commit5b8290dfa3982e029c84b888a8ba493d7a718c3a (patch)
tree70c6ef6e328ac9845f3761eb97aab0dce9f57092
parentcf49e93b04a25ef8b62adfbb93f611510413d397 (diff)
downloadserenity-5b8290dfa3982e029c84b888a8ba493d7a718c3a.zip
LibWeb: Invalidate document style after Node.insertBefore()
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp
index 84c80187b8..c55999285a 100644
--- a/Userland/Libraries/LibWeb/DOM/Node.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Node.cpp
@@ -334,6 +334,8 @@ void Node::insert_before(NonnullRefPtr<Node> node, RefPtr<Node> child, bool supp
}
children_changed();
+
+ document().invalidate_style();
}
// https://dom.spec.whatwg.org/#concept-node-pre-insert