mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
LibWeb: Schedule a layout update in Document::invalidate_layout()
Otherwise, nothing will repaint until someone else decides to trigger an update.
This commit is contained in:
parent
463355d1eb
commit
df49a6ae9b
1 changed files with 1 additions and 0 deletions
|
@ -757,6 +757,7 @@ void Document::force_layout()
|
||||||
void Document::invalidate_layout()
|
void Document::invalidate_layout()
|
||||||
{
|
{
|
||||||
tear_down_layout_tree();
|
tear_down_layout_tree();
|
||||||
|
schedule_layout_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Document::update_layout()
|
void Document::update_layout()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue