mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibWeb: Trigger a relayout after setting Element.innerHTML
In addition to tearing down the layout tree, we also want to trigger a relayout for the changes made by setting Element.innerHTML to take effect.
This commit is contained in:
parent
1d81d2e072
commit
9498555256
1 changed files with 1 additions and 0 deletions
|
@ -468,6 +468,7 @@ ExceptionOr<void> Element::set_inner_html(String const& markup)
|
||||||
|
|
||||||
// NOTE: Since the DOM has changed, we have to rebuild the layout tree.
|
// NOTE: Since the DOM has changed, we have to rebuild the layout tree.
|
||||||
document().invalidate_layout();
|
document().invalidate_layout();
|
||||||
|
document().set_needs_layout();
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue