mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
compositing: Don't count the root layer when checking to see when to
take the screenshot, as it isn't painted after first layout comes in.
This commit is contained in:
parent
fd211dcc92
commit
1589fe5404
1 changed files with 6 additions and 1 deletions
|
@ -1324,7 +1324,12 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
||||||
// have not requested a paint of the current epoch.
|
// have not requested a paint of the current epoch.
|
||||||
// If a layer has sent a request for the current epoch, but it hasn't
|
// If a layer has sent a request for the current epoch, but it hasn't
|
||||||
// arrived yet then this layer is waiting for a paint message.
|
// arrived yet then this layer is waiting for a paint message.
|
||||||
if layer_data.requested_epoch == current_epoch && layer_data.painted_epoch != current_epoch {
|
//
|
||||||
|
// Also don't check the root layer, because the paint task won't paint
|
||||||
|
// anything for it after first layout.
|
||||||
|
if layer_data.id != LayerId::null() &&
|
||||||
|
layer_data.requested_epoch == current_epoch &&
|
||||||
|
layer_data.painted_epoch != current_epoch {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue