mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
19f57008da
commit
efdc758dd7
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue