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

Issue 1167523003: Define a variable to distinguish system_icu from bundled_icu in Blink (Closed)

Created:
5 years, 6 months ago by jungshik at Google
Modified:
5 years, 6 months ago
Reviewers:
Nico, jsbell
CC:
blink-reviews, blink-reviews-wtf_chromium.org, Mikhail
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Define a variable to distinguish system_icu from bundled_icu Most of encoding name aliases manually added in TextCodecICU are present in Chrome's copy of ICU. So, they don't have to be added when Chrome's ICU is used. Define 'USING_SYSTEM_ICU" when 'use_system_icu=1' and register the above encoding name aliases only when 'USING_SYSTEM_ICU' is set. In addition, the following was done : * Remove GBK aliases not specified in the encoding spec. * Add tests for GBK and EUC-KR aliases in the spec that have not been tested before. * Add two aliases for ISO-8859-8-I regardless of whether bundled or system ICU is used. * Remove xA3xA0 => U+3000 override in GBK and GB18030 because Chrome's copy of ICU already has that with https://codereview.chromium.org/1162723008/ * Remove gbkFallback for 4 code points when bundled ICU is used for the same reason as above. * Remove one-way mapping from Unicode for U+22EF and U+301C even with system_icu because Chinese IMEs on Mac do not produce them on Mac. (they're added to Webkit to be compatible with an old Mac converter, but they're not specified in the encoding spec.) BUG=493824 TEST=Layout test fast/encoding/* Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196607

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : update #

Total comments: 2

Patch Set 4 : remove xA3xA0 => U 3000 override #

Patch Set 5 : drop U+1E3F change until the spec resolution #

Patch Set 6 : comment about U+3000 updated #

Patch Set 7 : comment about U+3000 mapping updated #

Patch Set 8 : add a TODO to BUILD.gn #

Patch Set 9 : fix the comment in BUILD.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -97 lines) Patch
D LayoutTests/fast/encoding/GBK/cn-gb.html View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -10 lines 0 comments Download
D LayoutTests/fast/encoding/GBK/cn-gb-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -5 lines 0 comments Download
D LayoutTests/fast/encoding/GBK/csgb231280.html View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -10 lines 0 comments Download
D LayoutTests/fast/encoding/GBK/csgb231280-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -5 lines 0 comments Download
D LayoutTests/fast/encoding/GBK/x-euc-cn.html View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -10 lines 0 comments Download
D LayoutTests/fast/encoding/GBK/x-euc-cn-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -5 lines 0 comments Download
M LayoutTests/fast/encoding/char-decoding.html View 1 2 3 4 5 1 chunk +25 lines, -2 lines 0 comments Download
M LayoutTests/fast/encoding/char-decoding-expected.txt View 1 2 3 4 2 chunks +42 lines, -24 lines 0 comments Download
M LayoutTests/fast/encoding/char-encoding.html View 1 2 3 4 1 chunk +11 lines, -3 lines 0 comments Download
M LayoutTests/fast/encoding/char-encoding-expected.txt View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M Source/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M Source/config.gyp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/wtf/text/TextCodecICU.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M Source/wtf/text/TextCodecICU.cpp View 1 2 3 4 13 chunks +57 lines, -21 lines 0 comments Download
M Source/wtf/unicode/CharacterNames.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
jungshik at Google
This CL works as intended with a bundled ICU, but I can't test a case ...
5 years, 6 months ago (2015-06-01 23:49:49 UTC) #2
jsbell
lgtm https://codereview.chromium.org/1167523003/diff/40001/LayoutTests/fast/encoding/char-decoding.html File LayoutTests/fast/encoding/char-decoding.html (right): https://codereview.chromium.org/1167523003/diff/40001/LayoutTests/fast/encoding/char-decoding.html#newcode13 LayoutTests/fast/encoding/char-decoding.html:13: // <http://bugs.webkit.org/show_bug.cgi?id=17014> EUC-CN code A3A0 is mapped to ...
5 years, 6 months ago (2015-06-02 00:06:32 UTC) #3
jungshik at Google
Thanks for the review. https://codereview.chromium.org/1167523003/diff/40001/LayoutTests/fast/encoding/char-decoding.html File LayoutTests/fast/encoding/char-decoding.html (right): https://codereview.chromium.org/1167523003/diff/40001/LayoutTests/fast/encoding/char-decoding.html#newcode13 LayoutTests/fast/encoding/char-decoding.html:13: // <http://bugs.webkit.org/show_bug.cgi?id=17014> EUC-CN code A3A0 ...
5 years, 6 months ago (2015-06-02 00:20:35 UTC) #4
jungshik at Google
Sorry for further changes after lgtm. Can you take another look? Now I removed all ...
5 years, 6 months ago (2015-06-04 19:36:44 UTC) #5
jungshik at Google
thakis@chromium.org: Please review/approve changes in Source/*. Thanks
5 years, 6 months ago (2015-06-04 19:38:09 UTC) #7
Nico
do you need to change a BUILD.gn file too?
5 years, 6 months ago (2015-06-04 19:57:43 UTC) #8
jungshik at Google
On 2015/06/04 19:57:43, Nico wrote: > do you need to change a BUILD.gn file too? ...
5 years, 6 months ago (2015-06-04 23:05:32 UTC) #9
Nico
lgtm
5 years, 6 months ago (2015-06-04 23:09:02 UTC) #10
jungshik at Google
Thanks, Nico. Joshua: are you ok with additional changes I made since your review? * ...
5 years, 6 months ago (2015-06-05 05:20:11 UTC) #11
jsbell
yes, still lgtm!
5 years, 6 months ago (2015-06-05 16:34:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1167523003/160001
5 years, 6 months ago (2015-06-05 20:09:21 UTC) #15
commit-bot: I haz the power
5 years, 6 months ago (2015-06-05 22:48:10 UTC) #16
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196607

Powered by Google App Engine
This is Rietveld 408576698