| Index: third_party/WebKit/Source/platform/fonts/FontCache.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/FontCache.cpp b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
|
| index 3a7a8db2b36ae38f15abb6e66edf6d4b82c66917..fbff07e7b59ab6e6a4189874d13888a8e86030d4 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/FontCache.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
|
| @@ -411,21 +411,4 @@ void FontCache::dumpShapeResultCache(base::trace_event::ProcessMemoryDump* memor
|
| memoryDump->AddSuballocation(dump->guid(), WTF::Partitions::kAllocatedObjectPoolName);
|
| }
|
|
|
| -// SkFontMgr requires script-based locale names, like "zh-Hant" and "zh-Hans",
|
| -// instead of "zh-CN" and "zh-TW".
|
| -CString toSkFontMgrLocale(const String& locale)
|
| -{
|
| - if (!locale.startsWith("zh", TextCaseInsensitive))
|
| - return locale.ascii();
|
| -
|
| - switch (localeToScriptCodeForFontSelection(locale)) {
|
| - case USCRIPT_SIMPLIFIED_HAN:
|
| - return "zh-Hans";
|
| - case USCRIPT_TRADITIONAL_HAN:
|
| - return "zh-Hant";
|
| - default:
|
| - return locale.ascii();
|
| - }
|
| -}
|
| -
|
| } // namespace blink
|
|
|