| Index: ui/aura/window.cc
|
| diff --git a/ui/aura/window.cc b/ui/aura/window.cc
|
| index b1e95c3f4739743c33a2f1858dcb716746dde5ce..22262d0a81480e5c3447318d20df19d62e84bba2 100644
|
| --- a/ui/aura/window.cc
|
| +++ b/ui/aura/window.cc
|
| @@ -217,8 +217,11 @@ Window::Window(WindowDelegate* delegate)
|
|
|
| Window::~Window() {
|
| // |layer()| can be NULL during tests, or if this Window is layerless.
|
| - if (layer())
|
| + if (layer()) {
|
| + if (layer()->owner() == this)
|
| + layer()->CompleteAllAnimations();
|
| layer()->SuppressPaint();
|
| + }
|
|
|
| // Let the delegate know we're in the processing of destroying.
|
| if (delegate_)
|
|
|