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

Issue 2695193002: Selection API: setBaseAndExtent() and selectAllChildren() should create new Range based on the spec… (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, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Selection API: setBaseAndExtent() and selectAllChildren() should create new Range based on the specified nodes. * ConsoleViewport._textOffsetInNode(): It supported only Text node |container|. This CL adds Element support. This CL removes the following tests because they are covered by external/wpt/selection/: - editing/selection/getRangeAt.html - editing/selection/select_all/select_all_html.html - editing/selection/set_base_and_extent/set_base_and_extent_html.html This CL fixes 2056 sub-tests in external/wpt/selection/. BUG=692400 Review-Url: https://codereview.chromium.org/2695193002 Cr-Commit-Position: refs/heads/master@{#450876} Committed: https://chromium.googlesource.com/chromium/src/+/de65c2b24fc750fd8aee253b2be3600bf1a6555b

Patch Set 1 #

Patch Set 2 : adjust more tests #

Total comments: 3

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -6225 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/smart-paste-008.html View 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/dump-as-markup-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/focus-contenteditable-iframe-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/editing/selection/getRangeAt.html View 1 chunk +0 lines, -43 lines 0 comments Download
D third_party/WebKit/LayoutTests/editing/selection/getRangeAt-expected.txt View 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/legal-positions.html View 1 chunk +3 lines, -3 lines 0 comments Download
D third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_html.html View 1 1 chunk +0 lines, -21 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/selection_remove_children.html View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/set_base_and_extent/crossing_editable_boundary.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/editing/selection/set_base_and_extent/set_base_and_extent_html.html View 1 1 chunk +0 lines, -21 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/undo/remove-css-property-and-remove-style-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/selection/selectAllChildren-expected.txt View 1 chunk +0 lines, -3000 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/setBaseAndExtent-expected.txt View 2 chunks +52 lines, -97 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/pre-wrap-trailing-tab.html View 1 2 chunks +6 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/pre-wrap-trailing-tab-expected.txt View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/css/first-letter-rtc-crash-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/external/wpt/selection/selectAllChildren-expected.txt View 1 chunk +0 lines, -2996 lines 0 comments Download
M third_party/WebKit/Source/core/editing/DOMSelection.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/DOMSelection.cpp View 7 chunks +29 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js View 1 1 chunk +9 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (29 generated)
tkent
yoichio@, yosin@, would you review this please?
3 years, 10 months ago (2017-02-15 08:29:09 UTC) #13
yoichio
https://codereview.chromium.org/2695193002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2695193002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp#newcode106 third_party/WebKit/Source/core/editing/DOMSelection.cpp:106: if (!frame() || isBaseFirstInSelection()) What's the difference?
3 years, 10 months ago (2017-02-15 08:36:26 UTC) #16
tkent
https://codereview.chromium.org/2695193002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2695193002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp#newcode106 third_party/WebKit/Source/core/editing/DOMSelection.cpp:106: if (!frame() || isBaseFirstInSelection()) On 2017/02/15 at 08:36:25, yoichio ...
3 years, 10 months ago (2017-02-15 08:49:49 UTC) #17
yoichio
lgtm https://codereview.chromium.org/2695193002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2695193002/diff/20001/third_party/WebKit/Source/core/editing/DOMSelection.cpp#newcode106 third_party/WebKit/Source/core/editing/DOMSelection.cpp:106: if (!frame() || isBaseFirstInSelection()) On 2017/02/15 08:49:48, tkent ...
3 years, 10 months ago (2017-02-15 08:55:57 UTC) #18
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/2695193002/40001
3 years, 10 months ago (2017-02-16 00:23:23 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_ozone_rel_ng on ...
3 years, 10 months ago (2017-02-16 00:55:32 UTC) #28
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/2695193002/40001
3 years, 10 months ago (2017-02-16 01:08:12 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-16 03:11:14 UTC) #32
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/2695193002/40001
3 years, 10 months ago (2017-02-16 03:20:07 UTC) #34
commit-bot: I haz the power
Exceeded global retry quota
3 years, 10 months ago (2017-02-16 05:23:08 UTC) #36
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/2695193002/40001
3 years, 10 months ago (2017-02-16 05:42:29 UTC) #38
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 06:26:50 UTC) #41
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/de65c2b24fc750fd8aee253b2be3...

Powered by Google App Engine
This is Rietveld 408576698