mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 13:02:28 +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
Notes:
sideshowbarker
2024-07-17 07:10:11 +09:00
Author: https://github.com/awesomekling
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