1
Fork 0
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:
Andreas Kling 2022-10-29 13:09:42 +02:00
parent c7489e7665
commit ba5e511dc1

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