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

Unified Diff: third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm

Issue 2138613002: Set the font family for the "system-ui" generic font family on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP Created 4 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
Index: third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm
diff --git a/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm b/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm
index f6768763da548d0dc8aba13bab3844d6b23f10c6..2fbff9f23bd6a11e710ed3d2444e677c6f70070a 100644
--- a/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm
+++ b/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm
@@ -56,6 +56,13 @@ namespace blink {
const char* kColorEmojiFontMac = "Apple Color Emoji";
+// static
+const AtomicString& FontCache::systemFontFamily()
+{
+ DEFINE_STATIC_LOCAL(AtomicString, systemFontFamilyName, ("system-ui"));
drott 2016/09/29 13:48:54 Does this work on all OS X versions?
+ return systemFontFamilyName;
+}
+
static void invalidateFontCache()
{
if (!isMainThread()) {

Powered by Google App Engine
This is Rietveld 408576698