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

Unified Diff: ash/wm/visibility_controller.cc

Issue 9233044: Acquire all layers when hiding window gets destroyed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 11 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
Index: ash/wm/visibility_controller.cc
diff --git a/ash/wm/visibility_controller.cc b/ash/wm/visibility_controller.cc
index 8006ff35a0748951ffccf547f82aed87f22d829c..2fe55b8c7953f8a2ff07621a86a7f35de2b61a1a 100644
--- a/ash/wm/visibility_controller.cc
+++ b/ash/wm/visibility_controller.cc
@@ -35,8 +35,7 @@ void VisibilityController::UpdateLayerVisibility(aura::Window* window,
bool animated = GetChildWindowVisibilityChangesAnimated(window->parent()) &&
window->type() != aura::client::WINDOW_TYPE_CONTROL &&
window->type() != aura::client::WINDOW_TYPE_UNKNOWN;
- if (animated)
- AnimateOnChildWindowVisibilityChanged(window, visible);
+ animated = animated && AnimateOnChildWindowVisibilityChanged(window, visible);
// When a window is made visible, we always make its layer visible
// immediately. When a window is hidden, the layer must be left visible and
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/window_animations.h » ('j') | ash/wm/window_animations.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698