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

Unified Diff: ui/views/view.cc

Issue 15932003: Make RecreateLayer() order the old layer above the new layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/aura/window_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 2b965e7182aad531065a9de7de6dc28fdee00f61..43719f3681104385fa109ad928e868707c74bbc9 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -535,6 +535,12 @@ ui::Layer* View::RecreateLayer() {
return NULL;
CreateLayer();
+
+ // TODO(pkotwicz): Remove this once ReorderLayers() stacks layers not attached
+ // to a view above layers attached to a view.
+ if (layer->parent())
+ layer->parent()->StackAtTop(layer);
+
layer_->set_scale_content(layer->scale_content());
return layer;
}
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698