mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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
Notes:
sideshowbarker
2024-07-17 01:10:58 +09:00
Author: https://github.com/axgallo
Commit: 827936cf7b
Pull-request: https://github.com/SerenityOS/serenity/pull/19192
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