Index: ui/views/view_unittest.cc |
diff --git a/ui/views/view_unittest.cc b/ui/views/view_unittest.cc |
index 86705ef3f4ff707b2b215ea313fe7cc4fc5fbc0a..db3664c937dfa67e7dd29957906e676c97000a0b 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; |