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

Unified Diff: chrome/browser/ui/views/location_bar/content_setting_image_view.cc

Issue 16123010: Fix one straggling call to ClampToMin (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/content_setting_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
index 11d6b92448a4813dc4d9e9f0a10c05326c29e433..f1dd93dfc3cbb752757640cce832c42c61ae0d1c 100644
--- a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
@@ -154,7 +154,7 @@ gfx::Size ContentSettingImageView::GetPreferredSize() {
size.Enlarge(
size_fraction * (text_label_->GetPreferredSize().width() +
GetTotalSpacingWhileAnimating()), 0);
- size.ClampToMin(background_painter_->GetMinimumSize());
+ size.SetToMax(background_painter_->GetMinimumSize());
}
return size;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698