Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: ui/aura/window.cc

Issue 241983003: Stops animations when removing a window from its parent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stops animations when removing a layer from its parent and fixes broken test Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/desktop_background/desktop_background_controller_unittest.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 2ef70c6b0595dd3170608dff6a96aa71d6757b30..98808ddc2b84aa2946e30ec3835c7c1239ba08a1 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -1007,10 +1007,6 @@ Window* Window::GetWindowForPoint(const gfx::Point& local_point,
}
void Window::RemoveChildImpl(Window* child, Window* new_parent) {
- // Stop (and complete) an ongoing animation to make sure bounds are updated
- // before updating the layers bounds again.
- if (child->layer() && child->layer()->GetAnimator())
- child->layer()->GetAnimator()->StopAnimating();
if (layout_manager_)
layout_manager_->OnWillRemoveWindowFromLayout(child);
FOR_EACH_OBSERVER(WindowObserver, observers_, OnWillRemoveWindow(child));
« no previous file with comments | « ash/desktop_background/desktop_background_controller_unittest.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698