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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_result_view.cc

Issue 57373003: omnibox: DeriveFontList() call should use Font::BOLD. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/omnibox/omnibox_result_view.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
index 6433466eb8414599797e6293e07962fc37d5780f..4ba9ae390740e529075d10e4cc1f32b994ca19df 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
@@ -103,11 +103,10 @@ class OmniboxResultView::MirroringContext {
DISALLOW_COPY_AND_ASSIGN(MirroringContext);
};
-OmniboxResultView::OmniboxResultView(
- OmniboxResultViewModel* model,
- int model_index,
- LocationBarView* location_bar_view,
- const gfx::FontList& font_list)
+OmniboxResultView::OmniboxResultView(OmniboxResultViewModel* model,
+ int model_index,
+ LocationBarView* location_bar_view,
+ const gfx::FontList& font_list)
: edge_item_padding_(LocationBarView::GetItemPadding()),
item_padding_(LocationBarView::GetItemPadding()),
minimum_text_vertical_padding_(kMinimumTextVerticalPadding),
@@ -115,8 +114,9 @@ OmniboxResultView::OmniboxResultView(
model_index_(model_index),
location_bar_view_(location_bar_view),
font_list_(font_list),
- font_height_(std::max(font_list.GetHeight(),
- font_list.DeriveFontList(gfx::BOLD).GetHeight())),
+ font_height_(
+ std::max(font_list.GetHeight(),
+ font_list.DeriveFontList(gfx::Font::BOLD).GetHeight())),
ellipsis_width_(font_list.GetPrimaryFont().GetStringWidth(
string16(kEllipsis))),
mirroring_context_(new MirroringContext()),
« 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