| 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 f035404bac423a5c8772eb589789cc72cf9a5f17..678904fd17ae695cd72de885a735c37f20b23426 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);
|
| + if (current_font_size != desired_font_size) {
|
| + 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);
|
|
|