From efdc758dd7bb983f81737a927b1724bacecd5aea Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Mon, 17 Nov 2014 10:59:43 -0800 Subject: [PATCH] Only send SetLayerRect messages for compositor-backed frames Only send SetLayerRect when we know that a frame has a compositor layer. If it doesn't, we wait until we send the new layer to the compositor. --- components/compositing/constellation.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/compositing/constellation.rs b/components/compositing/constellation.rs index e1fa00c2e82..fca671550b1 100644 --- a/components/compositing/constellation.rs +++ b/components/compositing/constellation.rs @@ -626,9 +626,10 @@ impl Constellation { match children.iter_mut().find(|child| subpage_eq(child)) { None => {} Some(child) => { + let has_compositor_layer = child.frame_tree.has_compositor_layer.get(); update_child_rect(child, rect, - true, + has_compositor_layer, &mut already_sent, &mut self.compositor_proxy, self.window_size.device_pixel_ratio)