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

Unified Diff: third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp

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: jochen review nit (add braces) 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/linux/FontCacheLinux.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp b/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
index 7bdc2a3a9eab4514e30d059c5600fe7b58d855e0..4b51489187fbea7431d364d8964d8bc4c04ec452 100644
--- a/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
+++ b/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
@@ -54,8 +54,8 @@ const AtomicString& FontCache::systemFontFamily() {
}
// static
-void FontCache::setSystemFontFamily(const char* familyName) {
- DCHECK(familyName && *familyName);
+void FontCache::setSystemFontFamily(const AtomicString& familyName) {
+ DCHECK(!familyName.isEmpty());
mutableSystemFontFamily() = familyName;
}

Powered by Google App Engine
This is Rietveld 408576698