diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-29 22:26:26 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-29 22:26:26 +0000 |
commit | eca29bcb6d70840cee235225f8d4810dc4f6fd36 (patch) | |
tree | 38defbd3c4ab09c1edf31d2951ff6dde598db82f /views/view.cc | |
parent | 83e875da32de6614774f976b49bc2fd42997f433 (diff) | |
download | chromium_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.cc | 2 |
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); |