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

Issue 1135003004: Make small-caps work correctly with tr locale (Closed)

Created:
5 years, 7 months ago by rwlbuis
Modified:
5 years, 6 months ago
Reviewers:
tkent, eae
CC:
blink-reviews, krit, Rik, dshwang, jbroman, danakj, pdr+graphicswatchlist_chromium.org, f(malita), aandrey+blink_chromium.org, Stephen Chennney, Mikhail, blink-reviews-wtf_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make small-caps work correctly with tr locale We correctly support tr upper/lower casing rules for Strings through StringImpl::lower/upper methods that take a locale parameter. However for upper/lowering case for single Char32, which the small-caps code path uses, there is no such overload, so add that to wtf. Behavior matches Firefox. BUG=395369 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196325 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196432

Patch Set 1 #

Patch Set 2 : Add NeedsRebaseline #

Patch Set 3 : Add virtual/slimmingpaint test result #

Patch Set 4 : Rebase against ToT #

Patch Set 5 : Remove rawLocale #

Patch Set 6 : Add boolean param #

Total comments: 1

Patch Set 7 : Patch for landing #

Total comments: 12

Patch Set 8 : Address review comments #

Total comments: 1

Patch Set 9 : Fix TODOs #

Total comments: 1

Patch Set 10 : Patch for landing #

Patch Set 11 : another try #

Patch Set 12 : Remove characters8 change #

Patch Set 13 : add back TestExpectations change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -17 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
A + LayoutTests/fast/text/small-caps-turkish.html View 5 1 chunk +1 line, -13 lines 0 comments Download
A LayoutTests/platform/linux/fast/text/small-caps-turkish-expected.png View 1 2 3 Binary file 0 comments Download
A LayoutTests/platform/linux/fast/text/small-caps-turkish-expected.txt View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
A LayoutTests/platform/linux/virtual/antialiasedtext/fast/text/small-caps-turkish-expected.png View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
A LayoutTests/platform/linux/virtual/antialiasedtext/fast/text/small-caps-turkish-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +93 lines, -0 lines 0 comments Download
M Source/platform/fonts/Font.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M Source/platform/fonts/FontDescription.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/fonts/FontDescription.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/wtf/text/StringImpl.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M Source/wtf/text/StringImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 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: 80 (43 generated)
rwlbuis
PTAL. Sadly I think we still need pixel tests here...
5 years, 7 months ago (2015-05-19 15:59:02 UTC) #4
rwlbuis
On 2015/05/19 15:59:02, rwlbuis wrote: > PTAL. Sadly I think we still need pixel tests ...
5 years, 7 months ago (2015-05-21 16:56:43 UTC) #5
eae
What's rawLocale and how is it different from locale?
5 years, 6 months ago (2015-05-26 22:41:17 UTC) #6
rwlbuis
On 2015/05/26 22:41:17, eae wrote: > What's rawLocale and how is it different from locale? ...
5 years, 6 months ago (2015-05-26 23:27:25 UTC) #7
eae
On 2015/05/26 23:27:25, rwlbuis wrote: > On 2015/05/26 22:41:17, eae wrote: > > What's rawLocale ...
5 years, 6 months ago (2015-05-27 00:17:33 UTC) #8
rwlbuis
On 2015/05/27 00:17:33, eae wrote: > On 2015/05/26 23:27:25, rwlbuis wrote: > > On 2015/05/26 ...
5 years, 6 months ago (2015-05-27 15:23:08 UTC) #9
eae
LGTM w/nit https://codereview.chromium.org/1135003004/diff/140001/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/1135003004/diff/140001/Source/platform/fonts/Font.cpp#newcode430 Source/platform/fonts/Font.cpp:430: UChar32 upperC = toUpper(c, m_fontDescription.locale(false)); bool includeDefault ...
5 years, 6 months ago (2015-05-27 15:57:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/160001
5 years, 6 months ago (2015-05-27 16:58:22 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/33929)
5 years, 6 months ago (2015-05-27 17:05:00 UTC) #15
rwlbuis
Adding tkent for the wtf changes, PTAL
5 years, 6 months ago (2015-05-27 17:52:07 UTC) #17
tkent
https://codereview.chromium.org/1135003004/diff/180001/Source/wtf/text/StringImpl.cpp File Source/wtf/text/StringImpl.cpp (left): https://codereview.chromium.org/1135003004/diff/180001/Source/wtf/text/StringImpl.cpp#oldcode533 Source/wtf/text/StringImpl.cpp:533: data8[i] = static_cast<LChar>(Unicode::toLower(characters8()[i])); I prefer keeping Unicode::. We have ...
5 years, 6 months ago (2015-05-28 00:38:26 UTC) #19
rwlbuis
PTAL :) https://codereview.chromium.org/1135003004/diff/180001/Source/wtf/text/StringImpl.cpp File Source/wtf/text/StringImpl.cpp (left): https://codereview.chromium.org/1135003004/diff/180001/Source/wtf/text/StringImpl.cpp#oldcode533 Source/wtf/text/StringImpl.cpp:533: data8[i] = static_cast<LChar>(Unicode::toLower(characters8()[i])); On 2015/05/28 00:38:26, tkent ...
5 years, 6 months ago (2015-05-28 23:03:08 UTC) #21
tkent
https://codereview.chromium.org/1135003004/diff/180001/Source/wtf/text/StringImpl.cpp File Source/wtf/text/StringImpl.cpp (right): https://codereview.chromium.org/1135003004/diff/180001/Source/wtf/text/StringImpl.cpp#newcode2107 Source/wtf/text/StringImpl.cpp:2107: // FIXME On 2015/05/28 23:03:07, rwlbuis wrote: > On ...
5 years, 6 months ago (2015-05-29 05:49:51 UTC) #23
rwlbuis
On 2015/05/29 05:49:51, tkent wrote: > https://codereview.chromium.org/1135003004/diff/180001/Source/wtf/text/StringImpl.cpp > File Source/wtf/text/StringImpl.cpp (right): > > https://codereview.chromium.org/1135003004/diff/180001/Source/wtf/text/StringImpl.cpp#newcode2107 > ...
5 years, 6 months ago (2015-05-29 23:04:19 UTC) #25
tkent
lgtm https://codereview.chromium.org/1135003004/diff/280001/Source/wtf/text/StringImpl.cpp File Source/wtf/text/StringImpl.cpp (right): https://codereview.chromium.org/1135003004/diff/280001/Source/wtf/text/StringImpl.cpp#newcode2106 Source/wtf/text/StringImpl.cpp:2106: // TODO(rob.buis) Please add information about what we ...
5 years, 6 months ago (2015-05-31 23:19:03 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/300001
5 years, 6 months ago (2015-06-01 13:50:38 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/64586)
5 years, 6 months ago (2015-06-01 17:22:41 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/300001
5 years, 6 months ago (2015-06-01 17:30:07 UTC) #35
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 6 months ago (2015-06-01 20:20:41 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/320001
5 years, 6 months ago (2015-06-01 20:51:19 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/64287)
5 years, 6 months ago (2015-06-01 23:38:05 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/340001
5 years, 6 months ago (2015-06-02 14:32:50 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/360001
5 years, 6 months ago (2015-06-02 14:34:13 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/46197) mac_blink_rel on tryserver.blink (JOB_FAILED, ...
5 years, 6 months ago (2015-06-02 14:38:19 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/380001
5 years, 6 months ago (2015-06-02 14:40:15 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/34328)
5 years, 6 months ago (2015-06-02 14:46:31 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/400001
5 years, 6 months ago (2015-06-02 15:06:02 UTC) #63
commit-bot: I haz the power
Committed patchset #11 (id:400001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196325
5 years, 6 months ago (2015-06-02 16:13:19 UTC) #64
Justin Novosad
On 2015/06/02 16:13:19, commit-bot: I haz the power wrote: > Committed patchset #11 (id:400001) as ...
5 years, 6 months ago (2015-06-02 20:34:07 UTC) #65
Justin Novosad
On 2015/06/02 20:34:07, Justin Novosad wrote: > On 2015/06/02 16:13:19, commit-bot: I haz the power ...
5 years, 6 months ago (2015-06-02 20:44:44 UTC) #66
tkent
https://codereview.chromium.org/1135003004/diff/240001/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/1135003004/diff/240001/Source/platform/fonts/Font.cpp#newcode431 Source/platform/fonts/Font.cpp:431: UChar32 upperC = toUpper(c, m_fontDescription.locale(includeDefault).characters8()); Why did you add ...
5 years, 6 months ago (2015-06-02 22:42:20 UTC) #67
rwlbuis
On 2015/06/02 22:42:20, tkent wrote: > https://codereview.chromium.org/1135003004/diff/240001/Source/platform/fonts/Font.cpp > File Source/platform/fonts/Font.cpp (right): > > https://codereview.chromium.org/1135003004/diff/240001/Source/platform/fonts/Font.cpp#newcode431 > ...
5 years, 6 months ago (2015-06-03 15:35:46 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/420001
5 years, 6 months ago (2015-06-03 16:56:05 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/440001
5 years, 6 months ago (2015-06-03 18:13:14 UTC) #75
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/64796)
5 years, 6 months ago (2015-06-03 20:06:14 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135003004/440001
5 years, 6 months ago (2015-06-03 20:44:41 UTC) #79
commit-bot: I haz the power
5 years, 6 months ago (2015-06-03 21:37:30 UTC) #80
Message was sent while issue was closed.
Committed patchset #13 (id:440001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196432

Powered by Google App Engine
This is Rietveld 408576698