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

Issue 1853033002: Use our own grapheme boundary handling. (Closed)

Created:
4 years, 8 months ago by Seigo Nonaka
Modified:
4 years, 8 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use our own grapheme boundary handling This CL replaces the grapheme boundary detection from ICU's implementation to our own. By replacing with own implementation, we can support latest Unicode spec without waiting ICU update. For example, grapheme boundary for the recent complex emoji sequence is now supported. There is another benefit of new implementation. The interface of new implementation does not require the full continuous text buffer. This is good if the target text crosses the Nodes. BUG=594923 Committed: https://crrev.com/3d284a415f093a8e0ddbdd955f9f3ee5e11c2a57 Cr-Commit-Position: refs/heads/master@{#385720}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 1

Patch Set 3 : rebase #

Total comments: 10

Patch Set 4 : Addressing comments #

Patch Set 5 : fix the crash? #

Patch Set 6 : left TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -64 lines) Patch
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 2 3 4 5 4 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp View 1 2 11 chunks +40 lines, -50 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
Seigo Nonaka
Yosi-san, this is the last CL for grapheme boundary. Could you kindly take a look? ...
4 years, 8 months ago (2016-04-06 06:18:56 UTC) #3
yosin_UTC9
https://codereview.chromium.org/1853033002/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1853033002/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode574 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:574: int uncheckedPreviousOffset(const Node* node, int current) It seems make ...
4 years, 8 months ago (2016-04-06 07:33:43 UTC) #4
yosin_UTC9
To reduce confusion, I recommend rename - uncheckedNextOffset() to nextGraphmeBoundaryOf() - uncheckedPreviousOffset() to previousGraphmeBoundaryOf() first ...
4 years, 8 months ago (2016-04-06 07:44:00 UTC) #5
Seigo Nonaka
Thank you for your review. I rebased for renaming CL. Could you kindly take an ...
4 years, 8 months ago (2016-04-06 10:13:04 UTC) #9
yosin_UTC9
Could you add why we switch to use "our own grapheme boundary handling" in change ...
4 years, 8 months ago (2016-04-07 01:06:54 UTC) #10
Seigo Nonaka
Thank you for your review. Please take an another look. https://codereview.chromium.org/1853033002/diff/80001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1853033002/diff/80001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode574 ...
4 years, 8 months ago (2016-04-07 03:44:59 UTC) #12
yosin_UTC9
lgtm
4 years, 8 months ago (2016-04-07 04:25:40 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1853033002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1853033002/100001
4 years, 8 months ago (2016-04-07 04:25:48 UTC) #15
Seigo Nonaka
Thank you for your review, but I'm sorry this cl is not ready for submit. ...
4 years, 8 months ago (2016-04-07 04:26:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1853033002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1853033002/100001
4 years, 8 months ago (2016-04-07 06:28:31 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/208562)
4 years, 8 months ago (2016-04-07 07:37:48 UTC) #21
Seigo Nonaka
Ugh, I'm sorry the failure looks real. I'm going to address it.
4 years, 8 months ago (2016-04-07 07:39:37 UTC) #22
Seigo Nonaka
Looks like https://codereview.chromium.org/1867793003/ is necessary for passing paste-multiline-text-input.html
4 years, 8 months ago (2016-04-07 09:02:55 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1853033002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1853033002/160001
4 years, 8 months ago (2016-04-07 11:02:04 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 8 months ago (2016-04-07 12:16:58 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 12:17:56 UTC) #31
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3d284a415f093a8e0ddbdd955f9f3ee5e11c2a57
Cr-Commit-Position: refs/heads/master@{#385720}

Powered by Google App Engine
This is Rietveld 408576698