mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-01 11:57:19 +02: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. (cherry picked from commit 72b4d44d07e12cc04bde90872e2f31aaab64aa00)
This commit is contained in:
committed by
Nico Weber
parent
cfa3a91fb5
commit
0130372531
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user