summaryrefslogtreecommitdiffstats
path: root/views/layout/box_layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/layout/box_layout.cc')
-rw-r--r--views/layout/box_layout.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/layout/box_layout.cc b/views/layout/box_layout.cc
index a9aa227..bc9f46a 100644
--- a/views/layout/box_layout.cc
+++ b/views/layout/box_layout.cc
@@ -30,7 +30,7 @@ void BoxLayout::Layout(View* host) {
inside_border_vertical_spacing_);
int x = child_area.x();
int y = child_area.y();
- for (int i = 0; i < host->GetChildViewCount(); ++i) {
+ for (int i = 0; i < host->child_count(); ++i) {
View* child = host->GetChildViewAt(i);
if (child->IsVisible()) {
gfx::Rect bounds(x, y, child_area.width(), child_area.height());
@@ -51,7 +51,7 @@ void BoxLayout::Layout(View* host) {
gfx::Size BoxLayout::GetPreferredSize(View* host) {
gfx::Rect bounds;
int position = 0;
- for (int i = 0; i < host->GetChildViewCount(); ++i) {
+ for (int i = 0; i < host->child_count(); ++i) {
View* child = host->GetChildViewAt(i);
if (child->IsVisible()) {
gfx::Size size(child->GetPreferredSize());