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

Unified Diff: views/layout/box_layout.cc

Issue 7057014: Variety of tweaks to View API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | « views/focus/focus_search.cc ('k') | views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/layout/box_layout.cc
===================================================================
--- views/layout/box_layout.cc (revision 86083)
+++ views/layout/box_layout.cc (working copy)
@@ -32,7 +32,7 @@
int y = child_area.y();
for (int i = 0; i < host->child_count(); ++i) {
View* child = host->GetChildViewAt(i);
- if (child->IsVisible()) {
+ if (child->visible()) {
gfx::Rect bounds(x, y, child_area.width(), child_area.height());
gfx::Size size(child->GetPreferredSize());
if (orientation_ == kHorizontal) {
@@ -53,7 +53,7 @@
int position = 0;
for (int i = 0; i < host->child_count(); ++i) {
View* child = host->GetChildViewAt(i);
- if (child->IsVisible()) {
+ if (child->visible()) {
gfx::Size size(child->GetPreferredSize());
if (orientation_ == kHorizontal) {
gfx::Rect child_bounds(position, 0, size.width(), size.height());
« no previous file with comments | « views/focus/focus_search.cc ('k') | views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698