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:
Andreas Kling 2022-10-29 13:09:42 +02:00
parent c7489e7665
commit ba5e511dc1
Notes: sideshowbarker 2024-07-17 18:46:57 +09:00

View file

@ -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