Skip to content

Commit

Permalink
Auto merge of #6863 - pcwalton:null-layer-id, r=glennw
Browse files Browse the repository at this point in the history
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.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6863)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Jul 31, 2015
2 parents ff0549a + 1589fe5 commit 1fc50c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/compositing/compositor.rs
Expand Up @@ -1324,7 +1324,12 @@ impl<Window: WindowMethods> IOCompositor<Window> {
// have not requested a paint of the current epoch.
// 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.
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;
}

Expand Down

0 comments on commit 1fc50c6

Please sign in to comment.