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

Unified Diff: ui/views/controls/textfield/native_textfield_views.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 | « ui/gfx/render_text_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_views.cc
===================================================================
--- ui/views/controls/textfield/native_textfield_views.cc (revision 157127)
+++ ui/views/controls/textfield/native_textfield_views.cc (working copy)
@@ -81,7 +81,7 @@
GetRenderText()->SetFontList(gfx::FontList(l10n_util::GetStringUTF8(
IDS_UI_FONT_FAMILY_CROS)));
#else
- GetRenderText()->SetFontList(gfx::FontList(textfield_->font()));
+ GetRenderText()->SetFont(textfield_->font());
#endif
// Set the default text style.
gfx::StyleRange default_style;
@@ -435,7 +435,7 @@
// only changes the font size, not the font family names.
GetRenderText()->SetFontSize(textfield_->font().GetFontSize());
#else
- GetRenderText()->SetFontList(gfx::FontList(textfield_->font()));
+ GetRenderText()->SetFont(textfield_->font());
#endif
OnCaretBoundsChanged();
}
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698