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

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

Issue 231193002: Makes recreating a layer inherit target visibility and opacity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « ui/compositor/layer_owner_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 6e83c2f8a792a494ca630badadd3181d442dca11..42439e37ea132e5a2165960cc137aad30752aacc 100644
--- a/ui/wm/core/window_animations.cc
+++ b/ui/wm/core/window_animations.cc
@@ -508,12 +508,6 @@ void HidingWindowAnimationObserver::DetachAndRecreateLayers() {
layer_owner_->root(), topmost_transient_child->layer());
}
}
-
- // TODO(sky): The recreated layer should have the target visibility of
- // the original layer.
- // Make the new layer invisible immediately.
- window_->layer()->SetVisible(false);
- window_->layer()->SetOpacity(0);
}
void HidingWindowAnimationObserver::WindowInvalid() {
« no previous file with comments | « ui/compositor/layer_owner_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698