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

Issue 2416963007: Range object should check root node identify instead of inActiveDocument(). (Closed)

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

Description

Range object should check root node identify instead of inActiveDocument(). https://dom.spec.whatwg.org/#dom-range-ispointinrange According to the DOM standard, isPointInRange(), comparePoint(), and intersectNode() should check root identity, not whether the specified node is in an active document. Thew new behavior matches to Firefox and Safari. This CL fixes 1,323 failing tests in imported/wpt/dom/ranges/. BUG=656459 Committed: https://crrev.com/8a2aa879982c582f811a9d9ef75286b8d27aab84 Cr-Commit-Position: refs/heads/master@{#425630}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use isInTreeScope #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -5528 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/imported/wpt/dom/ranges/Range-isPointInRange-expected.txt View 1 chunk +0 lines, -5500 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Range.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Range.cpp View 1 4 chunks +18 lines, -27 lines 0 comments Download

Messages

Total messages: 31 (24 generated)
tkent
yosin@, would you review this please?
4 years, 2 months ago (2016-10-17 03:34:38 UTC) #14
yosin_UTC9
s/This CL fixes 1,323 failing tests./This CL fixes 1,323 failing tests in wpt/dom/ranges/Range-set.html/ https://codereview.chromium.org/2416963007/diff/30001/third_party/WebKit/Source/core/dom/Range.cpp File ...
4 years, 2 months ago (2016-10-17 04:14:30 UTC) #19
tkent
https://codereview.chromium.org/2416963007/diff/30001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2416963007/diff/30001/third_party/WebKit/Source/core/dom/Range.cpp#newcode255 third_party/WebKit/Source/core/dom/Range.cpp:255: if (node.isConnected() && m_start.container()->isConnected() && On 2016/10/17 at 04:14:30, ...
4 years, 2 months ago (2016-10-17 04:48:03 UTC) #24
yosin_UTC9
lgtm
4 years, 2 months ago (2016-10-17 04:56:32 UTC) #25
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/2416963007/50001
4 years, 2 months ago (2016-10-17 05:48:24 UTC) #28
commit-bot: I haz the power
Committed patchset #2 (id:50001)
4 years, 2 months ago (2016-10-17 08:08:28 UTC) #29
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 08:10:52 UTC) #31
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8a2aa879982c582f811a9d9ef75286b8d27aab84
Cr-Commit-Position: refs/heads/master@{#425630}

Powered by Google App Engine
This is Rietveld 408576698