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

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

Issue 142523003: Renames gfx::FontList::Derive* family. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: chrome/browser/ui/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index dc6872531d5b8c437bdd855b373abf1a32a73316..b180c2cbf8ecac9354b4172f7f1f71401a2bd20a 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -264,8 +264,10 @@ void LocationBarView::Init() {
ResourceBundle::BaseFont);
const int current_font_size = font_list.GetFontSize();
const int desired_font_size = browser_defaults::kOmniboxFontPixelSize;
- if (current_font_size < desired_font_size)
- font_list = font_list.DeriveFontListWithSize(desired_font_size);
Alexei Svitkine (slow) 2014/01/20 15:38:10 Hmm, the left side looks cleaner. Is there a good
Yuki 2014/01/20 16:43:24 IMHO, all the fonts should ideally have relative s
+ if (current_font_size < desired_font_size) {
msw 2014/01/21 19:31:12 nit: this should be !=, to also decrease the font
Yuki 2014/01/23 15:24:19 Done.
+ font_list =
+ font_list.DeriveWithSizeDelta(desired_font_size - current_font_size);
+ }
// Shrink large fonts to make them fit.
// TODO(pkasting): Stretch the location bar instead in this case.
const int location_height = GetInternalHeight(true);

Powered by Google App Engine
This is Rietveld 408576698