summaryrefslogtreecommitdiffstats
path: root/views/layout/fill_layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/layout/fill_layout.cc')
-rw-r--r--views/layout/fill_layout.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/layout/fill_layout.cc b/views/layout/fill_layout.cc
index cc636ad..921f27b 100644
--- a/views/layout/fill_layout.cc
+++ b/views/layout/fill_layout.cc
@@ -15,7 +15,7 @@ FillLayout::~FillLayout() {
}
void FillLayout::Layout(View* host) {
- if (host->GetChildViewCount() == 0)
+ if (!host->has_children())
return;
View* frame_view = host->GetChildViewAt(0);
@@ -23,7 +23,7 @@ void FillLayout::Layout(View* host) {
}
gfx::Size FillLayout::GetPreferredSize(View* host) {
- DCHECK(host->GetChildViewCount() == 1);
+ DCHECK(host->child_count() == 1);
return host->GetChildViewAt(0)->GetPreferredSize();
}