mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibWeb: Make layout-after-resize lazy (because why not)
There's no need to force a synchronous relayout after the viewport has been resized. By making it lazy, we might be able to coalesce it with other layout work.
This commit is contained in:
parent
c7489e7665
commit
ba5e511dc1
1 changed files with 1 additions and 1 deletions
|
@ -1694,7 +1694,7 @@ void Document::run_the_resize_steps()
|
|||
|
||||
window().dispatch_event(*DOM::Event::create(realm(), UIEvents::EventNames::resize));
|
||||
|
||||
update_layout();
|
||||
schedule_layout_update();
|
||||
}
|
||||
|
||||
// https://w3c.github.io/csswg-drafts/cssom-view-1/#document-run-the-scroll-steps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue