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:
Aliaksandr Kalenik 2024-08-18 21:59:08 +02:00 committed by Andreas Kling
commit 3edd22143d
Notes: github-actions[bot] 2024-08-19 07:05:49 +00:00

View file

@ -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();
}
}