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

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

Issue 2161683002: Add LayoutLocale class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test stability Created 4 years, 5 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 630fb24d207c9570cc1839ffd86d7f53352b8b31..6b57d8532d45191b5c74c07db724d0feb0661ef1 100644
--- a/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
+++ b/third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp
@@ -105,7 +105,7 @@ PassRefPtr<SimpleFontData> FontCache::fallbackFontForCharacter(
}
FontCache::PlatformFallbackFont fallbackFont;
- FontCache::getFontForCharacter(c, fontDescription.locale().ascii().data(), &fallbackFont);
+ FontCache::getFontForCharacter(c, fontDescription.localeOrDefault().ascii().data(), &fallbackFont);
if (fallbackFont.name.isEmpty())
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698