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

Issue 2687273002: Selection API: Mutating a Range object after adding it to Selection should update Selection attribu… (Closed)

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

Description

Selection API: Mutating a Range object after adding it to Selection should update Selection attributes. This CL fixes 182 sub-tests in external/wpt/selection/addRange-NN.html, however it breaks 19 sub-tests. This is due to the unpredictability of the current Selection.addRange() implementation. BUG=490206 Review-Url: https://codereview.chromium.org/2687273002 Cr-Commit-Position: refs/heads/master@{#449920} Committed: https://chromium.googlesource.com/chromium/src/+/0cc18c1b352bd7a0e8107652399c823f5bb81196

Patch Set 1 #

Patch Set 2 : . #

Total comments: 9

Patch Set 3 : Handle diffrent root cases #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1589 lines, -2997 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/addRange.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/selection-update-range-after-addrange.html View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-00-expected.txt View 1 2 17 chunks +45 lines, -43 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-04-expected.txt View 1 2 38 chunks +138 lines, -142 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-12-expected.txt View 1 2 41 chunks +165 lines, -519 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-16-expected.txt View 1 2 58 chunks +264 lines, -611 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-20-expected.txt View 1 2 18 chunks +60 lines, -85 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-24-expected.txt View 1 2 26 chunks +67 lines, -124 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-28-expected.txt View 1 2 52 chunks +178 lines, -237 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-32-expected.txt View 1 2 60 chunks +253 lines, -546 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-36-expected.txt View 1 2 72 chunks +286 lines, -671 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/insert-text-crash-expected.txt View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/images/element-gcd-while-generating-alt-content-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/selection/addRange-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/selection/addRange-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-expected.txt View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-125-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-125-expected.txt View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-150-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-150-expected.txt View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-175-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-175-expected.txt View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-200-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-200-expected.txt View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-250-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/spellmarkers/document-markers-zoom-250-expected.txt View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/selection/addRange-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Range.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Range.cpp View 1 2 9 chunks +45 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
tkent
yoichio@, yosin@, would you review this please? Note that addRange-NN-expected.txt changes are ignorable. I'll explain ...
3 years, 10 months ago (2017-02-10 09:07:47 UTC) #6
yosin_UTC9
Could you add difference of number of PASS and FAIL for explaining improvement from this ...
3 years, 10 months ago (2017-02-10 10:26:28 UTC) #9
yoichio
On 2017/02/10 10:26:28, yosin_UTC9 wrote: > Could you add difference of number of PASS and ...
3 years, 10 months ago (2017-02-10 11:40:19 UTC) #10
tkent
On 2017/02/10 at 10:26:28, yosin wrote: > Could you add difference of number of PASS ...
3 years, 10 months ago (2017-02-13 03:47:29 UTC) #11
tkent
https://codereview.chromium.org/2687273002/diff/10001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2687273002/diff/10001/third_party/WebKit/Source/core/dom/Range.cpp#newcode187 third_party/WebKit/Source/core/dom/Range.cpp:187: if (didMoveDocument || checkForDifferentRootContainer(m_start, m_end)) On 2017/02/10 at 10:26:27, ...
3 years, 10 months ago (2017-02-13 04:04:13 UTC) #12
tkent
https://codereview.chromium.org/2687273002/diff/10001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2687273002/diff/10001/third_party/WebKit/Source/core/dom/Range.cpp#newcode187 third_party/WebKit/Source/core/dom/Range.cpp:187: if (didMoveDocument || checkForDifferentRootContainer(m_start, m_end)) On 2017/02/13 at 04:04:13, ...
3 years, 10 months ago (2017-02-13 05:45:29 UTC) #13
tkent
Uploaded new patch set. https://codereview.chromium.org/2687273002/diff/10001/third_party/WebKit/LayoutTests/editing/selection/selection-update-range-after-addrange.html File third_party/WebKit/LayoutTests/editing/selection/selection-update-range-after-addrange.html (right): https://codereview.chromium.org/2687273002/diff/10001/third_party/WebKit/LayoutTests/editing/selection/selection-update-range-after-addrange.html#newcode15 third_party/WebKit/LayoutTests/editing/selection/selection-update-range-after-addrange.html:15: assert_equals(selection.anchorNode, text); On 2017/02/10 at ...
3 years, 10 months ago (2017-02-13 07:31:41 UTC) #16
yosin_UTC9
lgtm
3 years, 10 months ago (2017-02-13 08:05:21 UTC) #17
tkent
On 2017/02/10 at 10:26:28, yosin wrote: > Could you add difference of number of PASS ...
3 years, 10 months ago (2017-02-13 08:27:36 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/2687273002/20001
3 years, 10 months ago (2017-02-13 08:48:21 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 08:53:31 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0cc18c1b352bd7a0e8107652399c...

Powered by Google App Engine
This is Rietveld 408576698