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

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

Issue 2137483004: Enable "system-ui" generic font family (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drott nit Created 4 years, 2 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 5956c7a737beead71d6df78f75f6246d807c35e4..aedc226a995e93287ff796cec45b7c530b4ac76a 100644
--- a/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm
+++ b/third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm
@@ -61,6 +61,13 @@ namespace blink {
const char* kColorEmojiFontMac = "Apple Color Emoji";
+// static
+const AtomicString& FontCache::legacySystemFontFamily() {
+ DEFINE_STATIC_LOCAL(AtomicString, legacySystemFontFamily,
+ ("BlinkMacSystemFont"));
+ return legacySystemFontFamily;
+}
+
static void invalidateFontCache() {
if (!isMainThread()) {
Platform::current()->mainThread()->getWebTaskRunner()->postTask(

Powered by Google App Engine
This is Rietveld 408576698