summaryrefslogtreecommitdiffstats
path: root/views/view_unittest.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-05 13:58:33 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-05 13:58:33 +0000
commite4e8afef78d9eed19ddacfe2b186cb8c501dabff (patch)
tree98bbbcfcc75753aa3f0f573637c4a846a70a90ac /views/view_unittest.cc
parent59909cb4e05f95e2dee8e25c31e5c3c0f61c38a7 (diff)
downloadchromium_src-e4e8afef78d9eed19ddacfe2b186cb8c501dabff.zip
chromium_src-e4e8afef78d9eed19ddacfe2b186cb8c501dabff.tar.gz
chromium_src-e4e8afef78d9eed19ddacfe2b186cb8c501dabff.tar.bz2
Makes visbility inherited. That is, in order for a window to be
visible all of its ancestor must be visible too. BUG=none TEST=covered by unit tests. R=ben@chromium.org Review URL: http://codereview.chromium.org/8136005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view_unittest.cc')
-rw-r--r--views/view_unittest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/views/view_unittest.cc b/views/view_unittest.cc
index 7dca14c..bb99bf9a 100644
--- a/views/view_unittest.cc
+++ b/views/view_unittest.cc
@@ -2375,6 +2375,7 @@ class ViewLayerTest : public ViewsTestBase {
Widget::InitParams params(Widget::InitParams::TYPE_POPUP);
params.bounds = gfx::Rect(50, 50, 200, 200);
widget_->Init(params);
+ widget_->Show();
widget_->GetRootView()->SetBounds(0, 0, 200, 200);
}