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

Unified Diff: ui/views/controls/scrollbar/kennedy_scroll_bar.cc

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | « ui/views/controls/button/label_button.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scrollbar/kennedy_scroll_bar.cc
diff --git a/ui/views/controls/scrollbar/kennedy_scroll_bar.cc b/ui/views/controls/scrollbar/kennedy_scroll_bar.cc
index 2998374752a0d58f2d3ff92c15e7dcea4240f332..f263068ecd736879ac1a7092f1733eeb0b6e94e8 100644
--- a/ui/views/controls/scrollbar/kennedy_scroll_bar.cc
+++ b/ui/views/controls/scrollbar/kennedy_scroll_bar.cc
@@ -68,7 +68,7 @@ KennedyScrollBar::~KennedyScrollBar() {
gfx::Rect KennedyScrollBar::GetTrackBounds() const {
gfx::Rect local_bounds(GetLocalBounds());
gfx::Size track_size = local_bounds.size();
- track_size.ClampToMin(GetThumb()->size());
+ track_size.SetToMax(GetThumb()->size());
local_bounds.set_size(track_size);
return local_bounds;
}
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698