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

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

Issue 10933129: Add RenderText::SetFont() function to simplify some call sites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | ui/gfx/canvas_skia.cc » ('j') | 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
===================================================================
--- chrome/browser/ui/views/omnibox/omnibox_result_view.cc (revision 157127)
+++ chrome/browser/ui/views/omnibox/omnibox_result_view.cc (working copy)
@@ -396,8 +396,7 @@
render_texts.push_back(gfx::RenderText::CreateInstance());
current_data->render_text = render_texts.back();
- current_data->render_text->SetFontList(
- gfx::FontList(*current_data->font));
+ current_data->render_text->SetFont(*current_data->font);
current_data->render_text->SetText(current_data->text);
gfx::StyleRange style_range;
@@ -532,7 +531,7 @@
(on_first_classification ||
(prior_classification->font == &normal_font_))) {
j->font = &normal_font_;
- j->render_text->SetFontList(gfx::FontList(*j->font));
+ j->render_text->SetFont(*j->font);
}
j->render_text->SetText(elided_text);
« no previous file with comments | « no previous file | ui/gfx/canvas_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698