Chromium Code Reviews| Index: ui/views/view.cc |
| diff --git a/ui/views/view.cc b/ui/views/view.cc |
| index 4bd82c84994af9c27ef343a7fadd29d3a4bef176..a0aac56b2bdc367e3ea4f359a88245cde471d237 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()->StackAbove(layer, View::layer()); |
|
sky
2013/05/23 22:17:14
I think StackAtTop is going to be closer to what w
pkotwicz
2013/05/23 22:22:11
You're right
|
| + |
| layer_->set_scale_content(layer->scale_content()); |
| return layer; |
| } |