Commit 921a29b5 authored by avi@chromium.org's avatar avi@chromium.org

Stop trying to use the italic version of the system font; it doesn't exist.

With recent changes to ui::gfx::Font, attempting to actually draw non-existent font styles crashes.

BUG=171518,314577
TEST=no crashes as in bug 314577
NOTRY=true

Review URL: https://codereview.chromium.org/58503002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233072 0039d316-1c4b-4281-b951-d872f2087c98
parent 7b1c08fd
......@@ -113,8 +113,13 @@ AutofillPopupControllerImpl::AutofillPopupControllerImpl(
ClearState();
#if !defined(OS_ANDROID)
subtext_font_ = name_font_.DeriveFont(kLabelFontSizeDelta);
#if defined(OS_MACOSX)
// There is no italic version of the system font.
warning_font_ = name_font_;
#else
warning_font_ = name_font_.DeriveFont(0, gfx::Font::ITALIC);
#endif
#endif
}
AutofillPopupControllerImpl::~AutofillPopupControllerImpl() {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment