mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/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…
Reference in a new issue