mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Remove set_needs_display() from PageClient::ready_to_paint()
There is no need to force repaint when client is ready for the next frame. We simply need to make sure HTML event loop processing is scheduled.
This commit is contained in:
parent
c87214d79c
commit
3edd22143d
Notes:
github-actions[bot]
2024-08-19 07:05:49 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 3edd22143d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1115
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ void PageClient::ready_to_paint()
|
|||
if (old_paint_state == PaintState::PaintWhenReady) {
|
||||
// NOTE: Repainting always has to be scheduled from HTML event loop processing steps
|
||||
// to make sure style and layout are up-to-date.
|
||||
page().top_level_traversable()->set_needs_display();
|
||||
Web::HTML::main_thread_event_loop().schedule();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue