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

Unified Diff: ui/aura/window.cc

Issue 7980023: Fixes aura unit tests. There were a couple of problems: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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.h ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 412bd1a2c01b65e07f9084d9aecc7227c9b1a819..6ccf808d8a7c93106a8c7afc6c8213a6a65ac8a0 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -126,6 +126,10 @@ void Window::MoveChildToFront(Window* child) {
// TODO(beng): this obviously has to handle different window types.
children_.insert(children_.begin() + children_.size(), child);
SchedulePaintInRect(gfx::Rect());
+
+ ui::Layer* parent_layer = child->layer()->parent();
+ parent_layer->Remove(child->layer());
+ parent_layer->Add(child->layer());
}
void Window::AddChild(Window* child) {
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698