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

Unified Diff: chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc

Issue 3083022: Rework gfx::Font by moving platform-specific code into inner classes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/autocomplete/autocomplete_popup_view_gtk.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc (revision 55911)
+++ chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc (working copy)
@@ -285,9 +285,9 @@
// plumb a gfx::Font through. This is because popup windows have a
// different font size, although we could just derive that font here.
// For now, force the font size.
- gfx::Font font = gfx::Font::CreateFont(
- gfx::Font().FontName(), browser_defaults::kAutocompletePopupFontSize);
- PangoFontDescription* pfd = gfx::Font::PangoFontFromGfxFont(font);
+ gfx::Font font(gfx::Font().GetFontName(),
+ browser_defaults::kAutocompletePopupFontSize);
+ PangoFontDescription* pfd = font.GetNativeFont();
pango_layout_set_font_description(layout_, pfd);
pango_font_description_free(pfd);
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_win.cc ('k') | chrome/browser/autocomplete/autocomplete_popup_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698