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.
This commit is contained in:
Martin Robinson 2014-11-17 10:59:43 -08:00
parent 19f57008da
commit efdc758dd7

View file

@ -626,9 +626,10 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
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)