LibWeb: Make DOM::Node::set_needs_style_update() schedule the update

After you mark a node as needing new style, there's no situation in
which we don't want a style update to happen, so just take care of
scheduling it automatically.
This commit is contained in:
Andreas Kling 2020-12-13 15:19:42 +01:00
parent b9b7b2b28a
commit 6af55a234f
Notes: sideshowbarker 2024-07-19 00:53:47 +09:00
4 changed files with 10 additions and 4 deletions

View file

@ -105,7 +105,6 @@ void HTMLElement::set_inner_text(StringView text)
append_child(document().create_text_node(text));
set_needs_style_update(true);
document().schedule_style_update();
document().invalidate_layout();
}