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

Unified Diff: Source/core/css/CSSFontSelector.cpp

Issue 23503080: Pass DOM locale to Skia in FontCache::getFontDataForCharacter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@fontcleanup
Patch Set: Pure Android only Created 7 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: Source/core/css/CSSFontSelector.cpp
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
index bfe6bfefa7478aee003eba7bbd33af4d865e09bd..36abb664aa24ea7b43c1b79eff1da03c73d3cee3 100644
--- a/Source/core/css/CSSFontSelector.cpp
+++ b/Source/core/css/CSSFontSelector.cpp
@@ -43,6 +43,7 @@
#include "core/page/Settings.h"
#include "core/platform/graphics/FontCache.h"
#include "core/platform/graphics/SimpleFontData.h"
+#include "core/platform/text/LocaleToScriptMapping.h"
#include "wtf/text/AtomicString.h"
using namespace std;
@@ -168,7 +169,7 @@ static PassRefPtr<FontData> fontDataForGenericFamily(Document* document, const F
return 0;
AtomicString genericFamily;
- UScriptCode script = fontDescription.script();
+ UScriptCode script = localeToScriptCodeForFontSelection(fontDescription.locale());
if (familyName == serifFamily)
genericFamily = settings->serifFontFamily(script);

Powered by Google App Engine
This is Rietveld 408576698