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 |