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

Unified Diff: ui/views/controls/menu/menu_config_win.cc

Issue 117903006: Refactor: Makes menus use gfx::FontList instead of gfx::Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: ui/views/controls/menu/menu_config_win.cc
diff --git a/ui/views/controls/menu/menu_config_win.cc b/ui/views/controls/menu/menu_config_win.cc
index e0bde54c30b29f5c6e9ef3d631867b46fdfee1c1..ab038a73a0035783a90ca5852a276abeee377c58 100644
--- a/ui/views/controls/menu/menu_config_win.cc
+++ b/ui/views/controls/menu/menu_config_win.cc
@@ -43,7 +43,7 @@ void MenuConfig::Init(const NativeTheme* theme) {
{
base::win::ScopedHFONT new_font(CreateFontIndirect(&metrics.lfMenuFont));
DLOG_ASSERT(new_font.Get());
- font = gfx::Font(new_font);
+ font_list = gfx::FontList(gfx::Font(new_font));
}
NativeTheme::ExtraParams extra;
extra.menu_check.is_radio = false;

Powered by Google App Engine
This is Rietveld 408576698