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

Issue 23618052: TextBreakIterator should use the C++ icu API instead of the C one (Closed)

Created:
7 years, 3 months ago by igoroliveira
Modified:
7 years, 2 months ago
CC:
blink-reviews, jamesr, loislo+blink_chromium.org, dsinclair, eae+blinkwatch, leviw+renderwatch, abarth-chromium, danakj, yurys+blink_chromium.org, Rik, groby+blinkspell_chromium.org, jchaffraix+rendering, Stephen Chennney, jeez, pdr., adamk+blink_chromium.org, Peter Beverloo, Xianzhu
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use icu::BreakIterator instead of the ubrk_* api. It makes the code cleaner. BUG=232922 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159441 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159508

Patch Set 1 #

Total comments: 1

Patch Set 2 : Proposed patch v2 #

Patch Set 3 : Proposed patch v3 #

Patch Set 4 : Proposed patch v4 #

Total comments: 1

Patch Set 5 : Downcast to icu::RuleBasedBreakIterator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -161 lines) Patch
M Source/core/editing/TextCheckingHelper.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/VisibleUnits.cpp View 1 2 3 6 chunks +8 lines, -8 lines 0 comments Download
M Source/core/page/TouchAdjustment.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/platform/graphics/mac/ComplexTextController.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderText.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/rendering/break_lines.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/text/TextBoundaries.cpp View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M Source/platform/text/TextBreakIterator.h View 1 2 3 2 chunks +1 line, -9 lines 0 comments Download
M Source/platform/text/TextBreakIteratorICU.cpp View 1 2 3 4 15 chunks +81 lines, -124 lines 0 comments Download
M Source/web/ContextMenuClientImpl.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/wtf/unicode/icu/UnicodeIcu.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
igoroliveira
The currently code depends of one small change in third_party/icu. I will upload the patch ...
7 years, 3 months ago (2013-09-17 21:41:13 UTC) #1
leviw_travelin_and_unemployed
lgtm this is way better. https://codereview.chromium.org/23618052/diff/1/Source/core/editing/TextCheckingHelper.cpp File Source/core/editing/TextCheckingHelper.cpp (right): https://codereview.chromium.org/23618052/diff/1/Source/core/editing/TextCheckingHelper.cpp#newcode78 Source/core/editing/TextCheckingHelper.cpp:78: int wordEnd = iterator->current(); ...
7 years, 3 months ago (2013-09-17 21:53:39 UTC) #2
igoroliveira
On 2013/09/17 21:53:39, Levi wrote: > lgtm this is way better. > > https://codereview.chromium.org/23618052/diff/1/Source/core/editing/TextCheckingHelper.cpp > ...
7 years, 3 months ago (2013-09-17 21:55:12 UTC) #3
jungshik at Google
Thank you for the CL. You can add "BUG=232922" which is about this kind of ...
7 years, 3 months ago (2013-09-18 00:26:01 UTC) #4
igoroliveira
On 2013/09/18 00:26:01, Jungshik Shin wrote: > Thank you for the CL. > > You ...
7 years, 3 months ago (2013-09-18 20:54:52 UTC) #5
leviw_travelin_and_unemployed
This patch doesn't compile :(
7 years, 3 months ago (2013-09-20 23:24:40 UTC) #6
igoroliveira
On 2013/09/20 23:24:40, Levi wrote: > This patch doesn't compile :( Yes the https://codereview.chromium.org/23480090/ needs ...
7 years, 3 months ago (2013-09-20 23:38:04 UTC) #7
igoroliveira
On 2013/09/20 23:38:04, Igor Oliveira wrote: > On 2013/09/20 23:24:40, Levi wrote: > > This ...
7 years, 3 months ago (2013-09-24 21:03:42 UTC) #8
jungshik at Google
On 2013/09/24 21:03:42, Igor Oliveira wrote: > On 2013/09/20 23:38:04, Igor Oliveira wrote: > > ...
7 years, 3 months ago (2013-09-24 22:56:28 UTC) #9
igoroliveira
Levi, Could you take a look? I updated/rebased the patch. On 2013/09/24 22:56:28, Jungshik Shin ...
7 years, 2 months ago (2013-10-10 22:14:44 UTC) #10
eseidel
lgtm Looks reasonable to me.
7 years, 2 months ago (2013-10-10 23:44:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igor.o@sisa.samsung.com/23618052/28001
7 years, 2 months ago (2013-10-11 00:38:43 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=10278
7 years, 2 months ago (2013-10-11 06:15:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igor.o@sisa.samsung.com/23618052/28001
7 years, 2 months ago (2013-10-11 06:16:13 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=10327
7 years, 2 months ago (2013-10-11 09:22:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igor.o@sisa.samsung.com/23618052/28001
7 years, 2 months ago (2013-10-11 09:36:06 UTC) #16
commit-bot: I haz the power
Change committed as 159441
7 years, 2 months ago (2013-10-11 10:17:12 UTC) #17
ojan
Unfortunately, this broke the android_aosp build. As it's blocking the Blink roll, I'm going to ...
7 years, 2 months ago (2013-10-11 17:18:52 UTC) #18
ojan
On 2013/10/11 17:18:52, ojan wrote: > Unfortunately, this broke the android_aosp build. As it's blocking ...
7 years, 2 months ago (2013-10-11 18:06:36 UTC) #19
jungshik at Google
On 2013/10/11 18:06:36, ojan wrote: > On 2013/10/11 17:18:52, ojan wrote: > > Unfortunately, this ...
7 years, 2 months ago (2013-10-11 18:37:33 UTC) #20
jungshik at Google
On 2013/10/11 18:37:33, Jungshik Shin wrote: > On 2013/10/11 18:06:36, ojan wrote: > > On ...
7 years, 2 months ago (2013-10-11 18:38:33 UTC) #21
jungshik at Google
https://codereview.chromium.org/23618052/diff/28001/Source/platform/text/TextBreakIteratorICU.cpp File Source/platform/text/TextBreakIteratorICU.cpp (right): https://codereview.chromium.org/23618052/diff/28001/Source/platform/text/TextBreakIteratorICU.cpp#newcode747 Source/platform/text/TextBreakIteratorICU.cpp:747: int ruleStatus = iterator->getRuleStatus(); With ICU 51 or earlier ...
7 years, 2 months ago (2013-10-11 20:18:29 UTC) #22
igoroliveira
On 2013/10/11 20:18:29, Jungshik Shin wrote: > https://codereview.chromium.org/23618052/diff/28001/Source/platform/text/TextBreakIteratorICU.cpp > File Source/platform/text/TextBreakIteratorICU.cpp (right): > > https://codereview.chromium.org/23618052/diff/28001/Source/platform/text/TextBreakIteratorICU.cpp#newcode747 ...
7 years, 2 months ago (2013-10-11 20:29:16 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igor.o@sisa.samsung.com/23618052/61001
7 years, 2 months ago (2013-10-12 02:00:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igor.o@sisa.samsung.com/23618052/61001
7 years, 2 months ago (2013-10-12 03:46:46 UTC) #25
commit-bot: I haz the power
7 years, 2 months ago (2013-10-12 13:12:02 UTC) #26
Message was sent while issue was closed.
Change committed as 159508

Powered by Google App Engine
This is Rietveld 408576698