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

Issue 2754543004: Make Selection#modify() with word granularity not to skip punctuation (Closed)

Created:
3 years, 9 months ago by yosin_UTC9
Modified:
3 years, 9 months ago
Reviewers:
tkent, yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Selection#modify() with word granularity not to skip punctuation This patch makes |Selection#modify()| with word granularity to work as same as mouse double-clicking to avoid skipping punctuation characters. Example: Ctrl+ArrowRight or selection.modify('move', 'forward', 'word') Before this patch: |ab := bc -> ab := |bc After this patch: |ab := bc -> ab |:= bc Where "|" represent caret. Note: this is Windows only behavior. BUG=699903 TEST=attached test especially for "first-letter-word-boundary.html" Review-Url: https://codereview.chromium.org/2754543004 Cr-Commit-Position: refs/heads/master@{#459700} Committed: https://chromium.googlesource.com/chromium/src/+/117a5ba5073a1c78d08d3be3210afc09af96158c

Patch Set 1 : 2017-03-15T17:17:51 #

Patch Set 2 : 2017-03-16T18:32:12 #

Patch Set 3 : 2017-03-17T19:52:56 #

Total comments: 4

Patch Set 4 : 2017-03-21T18:18:41 #

Patch Set 5 : 2017-03-26T01:40:34 rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -38 lines) Patch
M third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend_by_word_002.html View 1 2 3 1 chunk +1 line, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/text-iterator/first-letter-word-boundary.html View 1 2 chunks +2 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionModifier.cpp View 1 chunk +5 lines, -22 lines 0 comments Download

Messages

Total messages: 29 (21 generated)
yosin_UTC9
PTAL https://codereview.chromium.org/2754543004/diff/40001/third_party/WebKit/LayoutTests/editing/selection/extend-selection-enclosing-block-win-expected.txt File third_party/WebKit/LayoutTests/editing/selection/extend-selection-enclosing-block-win-expected.txt (right): https://codereview.chromium.org/2754543004/diff/40001/third_party/WebKit/LayoutTests/editing/selection/extend-selection-enclosing-block-win-expected.txt#newcode16 third_party/WebKit/LayoutTests/editing/selection/extend-selection-enclosing-block-win-expected.txt:16: Extending left: "Lorem "[(0,5), (0,0), (0,0), (0,5)], "ipsum ...
3 years, 9 months ago (2017-03-17 11:00:12 UTC) #16
Xiaocheng
I'm a little skeptical about what happened in extend-selection-enclosing-block-win.html... Besides, the code change in VisibleUnits ...
3 years, 9 months ago (2017-03-17 22:49:02 UTC) #19
yoichio
> Example: Ctrl+ArrowLeft or selection.modify('move', 'forward', 'word') This description should be Ctrl+ArrowRight?
3 years, 9 months ago (2017-03-21 05:52:38 UTC) #20
yosin_UTC9
On 2017/03/21 at 05:52:38, yoichio wrote: > > Example: Ctrl+ArrowLeft or selection.modify('move', 'forward', 'word') > ...
3 years, 9 months ago (2017-03-25 16:42:03 UTC) #22
yosin_UTC9
PTAL https://codereview.chromium.org/2754543004/diff/40001/third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend_by_word_002.html File third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend_by_word_002.html (right): https://codereview.chromium.org/2754543004/diff/40001/third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend_by_word_002.html#newcode33 third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend_by_word_002.html:33: // should be at 'Steak & |Ribs'. A ...
3 years, 9 months ago (2017-03-25 16:42:38 UTC) #23
Xiaocheng
lgtm
3 years, 9 months ago (2017-03-25 18:59:57 UTC) #24
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/2754543004/80001
3 years, 9 months ago (2017-03-27 02:03:21 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 03:46:43 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/117a5ba5073a1c78d08d3be3210a...

Powered by Google App Engine
This is Rietveld 408576698