|
@@ -389,7 +389,9 @@ ExceptionOr<void> Element::set_inner_html(String const& markup)
|
|
return result.exception();
|
|
return result.exception();
|
|
|
|
|
|
set_needs_style_update(true);
|
|
set_needs_style_update(true);
|
|
- document().set_needs_layout();
|
|
|
|
|
|
+
|
|
|
|
+ // NOTE: Since the DOM has changed, we have to rebuild the layout tree.
|
|
|
|
+ document().invalidate_layout();
|
|
return {};
|
|
return {};
|
|
}
|
|
}
|
|
|
|
|