mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
LibWeb: Invalidate layout tree in textContent setter
The textContent setter changes the structure of the DOM, therefore the layout tree becomes invalid.
This commit is contained in:
parent
617edafbf2
commit
827936cf7b
1 changed files with 2 additions and 1 deletions
|
@ -201,7 +201,8 @@ void Node::set_text_content(DeprecatedString const& content)
|
|||
|
||||
// Otherwise, do nothing.
|
||||
|
||||
set_needs_style_update(true);
|
||||
document().invalidate_style();
|
||||
document().invalidate_layout();
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-node-nodevalue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue