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

Unified Diff: ui/views/bubble/bubble_border.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/message_center/views/notifier_settings_view.cc ('k') | ui/views/bubble/bubble_frame_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_border.cc
diff --git a/ui/views/bubble/bubble_border.cc b/ui/views/bubble/bubble_border.cc
index 37a8eb1546696758592c88b8b332e3db8c4318da..8b9a6126274523f74a300cecad79a41a2fcbbb2e 100644
--- a/ui/views/bubble/bubble_border.cc
+++ b/ui/views/bubble/bubble_border.cc
@@ -158,11 +158,11 @@ gfx::Rect BubbleBorder::GetBounds(const gfx::Rect& anchor_rect,
std::max(images_->arrow_thickness + images_->border_interior_thickness,
images_->border_thickness);
if (is_arrow_on_horizontal(arrow_))
- size.ClampToMin(gfx::Size(min_with_arrow_width, min_with_arrow_thickness));
+ size.SetToMax(gfx::Size(min_with_arrow_width, min_with_arrow_thickness));
else if (has_arrow(arrow_))
- size.ClampToMin(gfx::Size(min_with_arrow_thickness, min_with_arrow_width));
+ size.SetToMax(gfx::Size(min_with_arrow_thickness, min_with_arrow_width));
else
- size.ClampToMin(gfx::Size(min, min));
+ size.SetToMax(gfx::Size(min, min));
int x = anchor_rect.x();
int y = anchor_rect.y();
« no previous file with comments | « ui/message_center/views/notifier_settings_view.cc ('k') | ui/views/bubble/bubble_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698