forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Move updating the rendering into HTML task
Implements whatwg/html#10007 which basically moves style, layout and painting from HTML processing task into HTML task with "rendering" source. The biggest difference is that now we no longer schedule HTML event loop processing whenever we might need a repaint, but instead queue a global rendering task 60 times per second that will check if any documents need a style/layout/paint update. That is a great simplification of our repaint scheduling model. Before we had: - Optional timer that schedules animation updates 60 hz - Optional timer that schedules rAF updates - PaintWhenReady state to schedule a paint if navigable doesn't have a rendering opportunity on the last event loop iteration Now all that is gone and replaced with a single timer that drives repainting at 60 hz and we don't have to worry about excessive repaints. In the future, hard-coded 60 hz refresh interval could be replaced with CADisplayLink on macOS and similar API on linux to drive repainting in synchronization with display's refresh rate.
- Loading branch information
1 parent
81be285
commit 55a4a18
Showing
12 changed files
with
199 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
384 changes: 184 additions & 200 deletions
384
Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters