mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 07:22:50 +00:00
LibWeb: Reschedule HTML event loop processing if navigable needs repaint
This is an attempt to fix the hanging CI on macOS caused by some screenshot requests being stuck unprocessed. With this change, we at least make sure that the HTML event loop processing, which triggers repainting, will happen as long as there are navigables that need to be repainted.
This commit is contained in:
parent
8a7afffdd3
commit
72b4d44d07
Notes:
sideshowbarker
2024-07-17 01:04:03 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 72b4d44d07
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/361
1 changed files with 2 additions and 0 deletions
|
@ -207,6 +207,8 @@ void EventLoop::process()
|
|||
// loop processing.
|
||||
for_each_fully_active_document_in_docs([&](DOM::Document& document) {
|
||||
auto navigable = document.navigable();
|
||||
if (navigable && !navigable->has_a_rendering_opportunity() && navigable->needs_repaint())
|
||||
schedule();
|
||||
if (navigable && navigable->has_a_rendering_opportunity())
|
||||
return;
|
||||
auto* browsing_context = document.browsing_context();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue