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

Unified Diff: ui/views/layout/fill_layout.cc

Issue 6541030: View API/implementation cleanup:... (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « ui/views/focus/focus_search.cc ('k') | ui/views/rendering/border_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/layout/fill_layout.cc
===================================================================
--- ui/views/layout/fill_layout.cc (revision 75141)
+++ ui/views/layout/fill_layout.cc (working copy)
@@ -22,16 +22,16 @@
// FillLayout, LayoutManager implementation:
void FillLayout::Layout(View* host) {
- if (host->child_count() == 0)
+ if (host->children_empty())
return;
- View* child = host->GetChildViewAt(0);
- child->SetBounds(0, 0, host->width(), host->height());
+ View* child = host->child_at(0);
+ child->SetBounds(gfx::Rect(gfx::Point(), host->size()));
}
gfx::Size FillLayout::GetPreferredSize(View* host) {
- DCHECK(host->child_count() == 1);
- return host->GetChildViewAt(0)->GetPreferredSize();
+ DCHECK_EQ(1U, host->children_size());
+ return host->child_at(0)->GetPreferredSize();
}
} // namespace ui
« no previous file with comments | « ui/views/focus/focus_search.cc ('k') | ui/views/rendering/border_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698