mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make ContainerLayer::first_child borrow temporary
Fixes a crash in ContainerLayer::remove_child (#1778).
This commit is contained in:
parent
abe50544a9
commit
9f76252928
1 changed files with 2 additions and 1 deletions
|
@ -376,7 +376,8 @@ impl IOCompositor {
|
|||
self.opts.tile_size,
|
||||
self.opts.cpu_painting);
|
||||
|
||||
match *self.root_layer.first_child.borrow() {
|
||||
let first_child = self.root_layer.first_child.borrow().clone();
|
||||
match first_child {
|
||||
None => {}
|
||||
Some(ref old_layer) => {
|
||||
ContainerLayer::remove_child(self.root_layer.clone(), old_layer.clone())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue