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

Unified Diff: ui/wm/core/window_animations.cc

Issue 2020563006: [Merge to M51] Fix the issue that Apps window keeps moving down to the right when reopened. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 | « ui/wm/core/visibility_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/window_animations.cc
diff --git a/ui/wm/core/window_animations.cc b/ui/wm/core/window_animations.cc
index 80950c67ca836e517f99d0c4cf5ce31f3fd93cd6..0006000ad465ccc897d2c57a9840c776f67ee1f1 100644
--- a/ui/wm/core/window_animations.cc
+++ b/ui/wm/core/window_animations.cc
@@ -104,6 +104,11 @@ class HidingWindowAnimationObserverBase : public aura::WindowObserver {
layer_owner_->root(), topmost_transient_child->layer());
}
}
+ // Reset the transform for the |window_|. Because the animation may have
+ // changed the transform, when recreating the layers we need to reset the
+ // transform otherwise the recreated layer has the transform installed
+ // for the animation.
+ window_->layer()->SetTransform(gfx::Transform());
}
protected:
« no previous file with comments | « ui/wm/core/visibility_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698