Remove all old layers when creating a new root.

Fixes #2259.
This commit is contained in:
Matt Brubeck 2014-06-04 09:29:36 -07:00
parent 33c4a7a5dc
commit e9efa60647
2 changed files with 2 additions and 8 deletions

View file

@ -381,13 +381,7 @@ impl IOCompositor {
self.opts.cpu_painting);
new_layer.unrendered_color = unrendered_color;
let first_child = self.root_layer.first_child.borrow().clone();
match first_child {
None => {}
Some(old_layer) => {
ContainerLayer::remove_child(self.root_layer.clone(), old_layer)
}
}
self.root_layer.remove_all_children();
assert!(new_layer.add_child_if_necessary(self.root_layer.clone(),
root_pipeline_id,

@ -1 +1 @@
Subproject commit 29a0f4c36292314671778631e336aa845276c733
Subproject commit 261bef5849b817df2288f2f7dac5fe8f255a04ab