mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Check the pipeline ID of the new root layer.
This isn't related to any known issue, but is just to ensure that the IDs are set correctly within this function.
This commit is contained in:
parent
e9efa60647
commit
2b0134be7b
1 changed files with 4 additions and 2 deletions
|
@ -367,8 +367,10 @@ impl IOCompositor {
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
match self.root_pipeline {
|
match self.root_pipeline {
|
||||||
Some(ref root_pipeline) => (root_pipeline.clone(), LayerId::null()),
|
Some(ref root_pipeline) if root_pipeline.id == id => {
|
||||||
None => fail!("Compositor: Received new layer without initialized pipeline"),
|
(root_pipeline.clone(), LayerId::null())
|
||||||
|
},
|
||||||
|
_ => fail!("Compositor: Received new layer without initialized pipeline"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue