Skip to content

Commit e32cbb6

Browse files
committed
include layout rasterization pending images when waiting
1 parent a080474 commit e32cbb6

File tree

2 files changed

+81
-2
lines changed

2 files changed

+81
-2
lines changed

components/script/dom/window.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,12 +2342,12 @@ impl Window {
23422342
});
23432343

23442344
let has_sent_idle_message = self.has_sent_idle_message.get();
2345-
let pending_images = !self.pending_layout_images.borrow().is_empty();
2345+
let no_pending_images= self.pending_layout_images.borrow().is_empty() && self.pending_images_for_rasterization.borrow().is_empty();
23462346

23472347
if !has_sent_idle_message &&
23482348
is_ready_state_complete &&
23492349
!reftest_wait &&
2350-
!pending_images &&
2350+
no_pending_images &&
23512351
!waiting_for_web_fonts_to_load
23522352
{
23532353
debug!(

0 commit comments

Comments
 (0)