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

Unified Diff: ui/views/controls/tabbed_pane/tabbed_pane.cc

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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: ui/views/controls/tabbed_pane/tabbed_pane.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.cc b/ui/views/controls/tabbed_pane/tabbed_pane.cc
index 2cf72dd8f0bcb56dc846c9b3c0a8b94986bb6a5a..12e1e6cf508889bd43c22a45d9df5543a9980285 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.cc
@@ -308,7 +308,7 @@ void TabbedPane::SelectTab(Tab* tab) {
gfx::Size TabbedPane::GetPreferredSize() {
gfx::Size size;
for (int i = 0; i < contents_->child_count(); ++i)
- size.ClampToMin(contents_->child_at(i)->GetPreferredSize());
+ size.ClampToLowerBound(contents_->child_at(i)->GetPreferredSize());
size.Enlarge(0, tab_strip_->GetPreferredSize().height());
return size;
}

Powered by Google App Engine
This is Rietveld 408576698