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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.cc

Issue 58503002: Stop trying to use the italic version of the system font; it doesn't exist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
index 4bd8e38ab070773282c3d4120f04dc8f38e4899b..7e4acdf271bc89f60f094f363e169a16f8e759e8 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
@@ -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() {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698