summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-29 22:26:26 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-29 22:26:26 +0000
commiteca29bcb6d70840cee235225f8d4810dc4f6fd36 (patch)
tree38defbd3c4ab09c1edf31d2951ff6dde598db82f /views/view.cc
parent83e875da32de6614774f976b49bc2fd42997f433 (diff)
downloadchromium_src-eca29bcb6d70840cee235225f8d4810dc4f6fd36.zip
chromium_src-eca29bcb6d70840cee235225f8d4810dc4f6fd36.tar.gz
chromium_src-eca29bcb6d70840cee235225f8d4810dc4f6fd36.tar.bz2
Fix regression showing layers for nested child views.
When a view hierarchy is added to a layer, child==this was preventing nested child views from having their layers reparented. TBR=sky BUG=none TEST=none Review URL: http://codereview.chromium.org/8086013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103373 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/view.cc b/views/view.cc
index 6bc4b8c..338db86 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1483,7 +1483,7 @@ void View::ViewHierarchyChangedImpl(bool register_accelerators,
}
}
- if (is_add && child == this && layer() && !layer()->parent())
+ if (is_add && layer() && !layer()->parent())
UpdateParentLayer();
ViewHierarchyChanged(is_add, parent, child);