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

Issue 2704443002: Selection API: extend() should operate DOM Ranges. (Closed)

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

Description

Selection API: extend() should operate DOM Ranges. This CL fixes 1,856 tests in external/wpt/selection/. BUG=692400 Review-Url: https://codereview.chromium.org/2704443002 Cr-Commit-Position: refs/heads/master@{#450962} Committed: https://chromium.googlesource.com/chromium/src/+/4d81e25a23b11c7193b09b3e2f4d69f3d06d31a6

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : Apply yoichio's comments, remove unused focusPosition(). #

Total comments: 2

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3392 lines, -16885 lines) Patch
M third_party/WebKit/LayoutTests/editing/assert_selection.html View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/execCommand/crash-indenting-list-item.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/execCommand/format-block-multiple-paragraphs.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/execCommand/format-block-multiple-paragraphs-in-pre.html View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/character-data-mutation.html View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/document-mutation.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/selection/extend-00-expected.txt View 1 2 16 chunks +1516 lines, -2613 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/selection/extend-20-expected.txt View 1 2 7 chunks +1689 lines, -3263 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/extend-40-expected.txt View 1 2 1 chunk +118 lines, -116 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dynamic/move-node-with-selection.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/external/wpt/selection/extend-00-expected.txt View 1 2 1 chunk +0 lines, -5300 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/external/wpt/selection/extend-20-expected.txt View 1 2 1 chunk +0 lines, -5561 lines 0 comments Download
M third_party/WebKit/Source/core/editing/DOMSelection.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/DOMSelection.cpp View 1 2 4 chunks +51 lines, -15 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
tkent
yosin@, yoichio@, would you review this please?
3 years, 10 months ago (2017-02-16 06:03:33 UTC) #13
yoichio
https://codereview.chromium.org/2704443002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2704443002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp#newcode448 third_party/WebKit/Source/core/editing/DOMSelection.cpp:448: Position newFocus(node, offset); Could you declare |const Position newFocus| ...
3 years, 10 months ago (2017-02-16 07:26:05 UTC) #15
yosin_UTC9
lgtm
3 years, 10 months ago (2017-02-16 07:33:53 UTC) #16
tkent
https://codereview.chromium.org/2704443002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2704443002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp#newcode448 third_party/WebKit/Source/core/editing/DOMSelection.cpp:448: Position newFocus(node, offset); On 2017/02/16 at 07:26:05, yoichio wrote: ...
3 years, 10 months ago (2017-02-16 08:14:38 UTC) #17
yoichio
lgtm
3 years, 10 months ago (2017-02-16 08:42:34 UTC) #18
yosin_UTC9
https://codereview.chromium.org/2704443002/diff/30001/third_party/WebKit/Source/core/editing/DOMSelection.cpp File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2704443002/diff/30001/third_party/WebKit/Source/core/editing/DOMSelection.cpp#newcode473 third_party/WebKit/Source/core/editing/DOMSelection.cpp:473: if (newRange->collapsed()) How about below? builder.setBaseAndExtent(EphemeralRange(newRange))
3 years, 10 months ago (2017-02-16 10:05:41 UTC) #19
tkent
https://codereview.chromium.org/2704443002/diff/30001/third_party/WebKit/Source/core/editing/DOMSelection.cpp File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2704443002/diff/30001/third_party/WebKit/Source/core/editing/DOMSelection.cpp#newcode473 third_party/WebKit/Source/core/editing/DOMSelection.cpp:473: if (newRange->collapsed()) On 2017/02/16 at 10:05:41, yosin_UTC9 wrote: > ...
3 years, 10 months ago (2017-02-16 14:44:26 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/2704443002/40001
3 years, 10 months ago (2017-02-16 14:44:58 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 14:56:31 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4d81e25a23b11c7193b09b3e2f4d...

Powered by Google App Engine
This is Rietveld 408576698