| Index: ui/compositor/layer.cc
|
| ===================================================================
|
| --- ui/compositor/layer.cc (revision 158150)
|
| +++ ui/compositor/layer.cc (working copy)
|
| @@ -95,7 +95,9 @@
|
| // Destroying the animator may cause observers to use the layer (and
|
| // indirectly the WebLayer). Destroy the animator first so that the WebLayer
|
| // is still around.
|
| - animator_.reset();
|
| + if (animator_)
|
| + animator_->SetDelegate(NULL);
|
| + animator_ = NULL;
|
| if (compositor_)
|
| compositor_->SetRootLayer(NULL);
|
| if (parent_)
|
| @@ -174,7 +176,7 @@
|
| void Layer::SetAnimator(LayerAnimator* animator) {
|
| if (animator)
|
| animator->SetDelegate(this);
|
| - animator_.reset(animator);
|
| + animator_ = animator;
|
| }
|
|
|
| LayerAnimator* Layer::GetAnimator() {
|
|
|