Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Unified Diff: views/layout/box_layout.cc

Issue 6452011: Rework tree APIs to reflect Google style and more const-correctness.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: views/layout/box_layout.cc
===================================================================
--- views/layout/box_layout.cc (revision 74117)
+++ views/layout/box_layout.cc (working copy)
@@ -30,7 +30,7 @@
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 @@
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());
« no previous file with comments | « views/focus/focus_search.cc ('k') | views/layout/fill_layout.cc » ('j') | views/view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698