summaryrefslogtreecommitdiffstats
path: root/ui/views/view_unittest.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 22:27:03 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 22:27:03 +0000
commitcd3bb1d73122de4da25bfc02d7f8eb471e13d48f (patch)
treedf115e4483c76c1a6055e0b748457a678836c791 /ui/views/view_unittest.cc
parentcc70b3b02ad045332993886765060147a50df64a (diff)
downloadchromium_src-cd3bb1d73122de4da25bfc02d7f8eb471e13d48f.zip
chromium_src-cd3bb1d73122de4da25bfc02d7f8eb471e13d48f.tar.gz
chromium_src-cd3bb1d73122de4da25bfc02d7f8eb471e13d48f.tar.bz2
views: Rename IsVisibleInRootView() to IsDrawn().
BUG=105879 R=ben@chromium.org TBR=stevenjb@chromium.org Review URL: http://codereview.chromium.org/8915007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114506 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/view_unittest.cc')
-rw-r--r--ui/views/view_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/views/view_unittest.cc b/ui/views/view_unittest.cc
index 86705ef..db3664c 100644
--- a/ui/views/view_unittest.cc
+++ b/ui/views/view_unittest.cc
@@ -120,11 +120,11 @@ bool ViewAndLayerTreeAreConsistent(const views::View* view,
return false;
// Check if the visibility states of the View and the Layer are in sync.
- EXPECT_EQ(l->IsDrawn(), v->IsVisibleInRootView());
- if (v->IsVisibleInRootView() != l->IsDrawn()) {
+ EXPECT_EQ(l->IsDrawn(), v->IsDrawn());
+ if (v->IsDrawn() != l->IsDrawn()) {
for (const views::View* vv = v; vv; vv = vv->parent())
LOG(ERROR) << "V: " << vv << " " << vv->visible() << " "
- << vv->IsVisibleInRootView() << " " << vv->layer();
+ << vv->IsDrawn() << " " << vv->layer();
for (const ui::Layer* ll = l; ll; ll = ll->parent())
LOG(ERROR) << "L: " << ll << " " << ll->IsDrawn();
return false;