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

Issue 2192703002: More LayoutLocale refactor with additional Chinese support (Closed)

Created:
4 years, 4 months ago by kojii
Modified:
4 years, 4 months ago
Reviewers:
drott, eae
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Patch Set 2 : Add encompassed languages within Chinese macrolanguage #

Total comments: 5

Patch Set 3 : Comment updated as per drott review #

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

Messages

Total messages: 27 (18 generated)
kojii
PTAL. drott@, I included the Emoji locale priority fix we discussed offline in this CL ...
4 years, 4 months ago (2016-07-28 06:56:15 UTC) #9
drott
Small remarks, the overall change looks great - happy to see locale usage getting cleaned ...
4 years, 4 months ago (2016-07-28 08:05:23 UTC) #11
eae
LGTM
4 years, 4 months ago (2016-07-28 17:08:40 UTC) #14
kojii
drott@, comments inline: https://codereview.chromium.org/2192703002/diff/20001/third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.cpp File third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.cpp (right): https://codereview.chromium.org/2192703002/diff/20001/third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.cpp#newcode14 third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.cpp:14: LayoutLocale::setLocaleForHan( On 2016/07/28 at 08:05:23, drott ...
4 years, 4 months ago (2016-07-29 04:27:40 UTC) #17
drott
LGTM, thanks. https://codereview.chromium.org/2192703002/diff/20001/third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.cpp File third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.cpp (right): https://codereview.chromium.org/2192703002/diff/20001/third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.cpp#newcode14 third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolver.cpp:14: LayoutLocale::setLocaleForHan( On 2016/07/29 at 04:27:40, kojii wrote: ...
4 years, 4 months ago (2016-08-02 07:14:15 UTC) #20
kojii
Thanks!
4 years, 4 months ago (2016-08-02 07:15:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2192703002/40001
4 years, 4 months ago (2016-08-02 07:15:54 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-02 08:27:15 UTC) #25
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 08:28:33 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3ec109dc729a647b433136b2328e9da01ba9c8b8
Cr-Commit-Position: refs/heads/master@{#409157}

Powered by Google App Engine
This is Rietveld 408576698