summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-16 14:52:03 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-16 18:06:45 +0100
commit28721874e891c363c927129782503c421aa46908 (patch)
treecd612137c5d4aed2e35cea2de449e671e2738c38 /Userland
parenta2b960979379b641830920bfed2a3fb0f9e30b72 (diff)
downloadserenity-28721874e891c363c927129782503c421aa46908.zip
LibWeb: Schedule a relayout after setting Element.innerHTML
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Element.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp
index 7004a9c534..30bc862768 100644
--- a/Userland/Libraries/LibWeb/DOM/Element.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Element.cpp
@@ -352,6 +352,7 @@ ExceptionOr<void> Element::set_inner_html(String const& markup)
return result.exception();
set_needs_style_update(true);
+ document().set_needs_layout();
return {};
}