|
More LayoutLocale refactor with additional Chinese support
Following the initial LayoutLocale refactoring CL[1], this patch:
1. Support 14 encompassed languages within the Chinese macrolanguage[2].
2. Add "mo" (Macau) as "Traditional by default", as pointed out by W3C
I18N WG and match to Firefox.
3. Better and more spec conformance to parse BCP-47 language tags[3].
4. Change "und-Zsye" (Emoji) priority from the lowest to the highest.
5. Unify the logic for disambiguation of the Unified Han Ideographs for
Linux/Android and Windows.
6. Merge duplicated code in AcceptLanguagesResolver to LayoutLocale.
7. Centralize locale-related methods more to LayoutLocale for better
discoverability, caching, and code sharing.
[1] https://codereview.chromium.org/2161683002
[2] http://www-01.sil.org/iso639-3/documentation.asp?id=zho
[3] https://tools.ietf.org/html/bcp47
BUG= 586517, 611817
Committed: https://crrev.com/3ec109dc729a647b433136b2328e9da01ba9c8b8
Cr-Commit-Position: refs/heads/master@{#409157}
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+349 lines, -281 lines) |
Patch |
|
M |
third_party/WebKit/Source/platform/LayoutLocale.h
|
View
|
|
2 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/LayoutLocale.cpp
|
View
|
|
3 chunks |
+105 lines, -23 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/LayoutLocaleTest.cpp
|
View
|
1
|
2 chunks |
+82 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/blink_platform.gypi
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.h
|
View
|
|
1 chunk |
+3 lines, -11 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.cpp
|
View
|
|
2 chunks |
+8 lines, -52 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolverTest.cpp
|
View
|
|
3 chunks |
+18 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
|
View
|
1
2
|
2 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp
|
View
|
|
4 chunks |
+10 lines, -25 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/text/LocaleToScriptMapping.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/text/LocaleToScriptMapping.cpp
|
View
|
1
|
5 chunks |
+92 lines, -87 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/platform/text/LocaleToScriptMappingTest.cpp
|
View
|
|
1 chunk |
+0 lines, -58 lines |
0 comments
|
Download
|
Total messages: 27 (18 generated)
|