From 28721874e891c363c927129782503c421aa46908 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 16 Mar 2022 14:52:03 +0100 Subject: LibWeb: Schedule a relayout after setting Element.innerHTML --- Userland/Libraries/LibWeb/DOM/Element.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Libraries') 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 Element::set_inner_html(String const& markup) return result.exception(); set_needs_style_update(true); + document().set_needs_layout(); return {}; } -- cgit v1.2.3