summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-30 09:02:28 +0200
committerAndreas Kling <kling@serenityos.org>2023-03-30 11:10:02 +0200
commita925c2dcf213ba1901c7812814777488caea8686 (patch)
treee77a297b9f9812715c21630f34f7d6eb85b2058d /Userland/Libraries
parent7319deb03d6f2c44ba48fc01b8f8a44335478cd0 (diff)
downloadserenity-a925c2dcf213ba1901c7812814777488caea8686.zip
LibWeb: Remove redundant invocation of `children changed` in HTMLParser
Setting the `data` of a text node already triggers `children changed` per spec, so there's no need for an explicit call. This avoids parsing every HTMLStyleElement sheet twice. :^)
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp
index c0877cc9af..ae94d43a08 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp
@@ -957,7 +957,6 @@ void HTMLParser::flush_character_insertions()
if (m_character_insertion_builder.is_empty())
return;
m_character_insertion_node->set_data(m_character_insertion_builder.to_deprecated_string());
- m_character_insertion_node->parent()->children_changed();
m_character_insertion_builder.clear();
}