|
|
Chromium Code Reviews|
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. |
DescriptionRange 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 #
Messages
Total messages: 31 (24 generated)
The CQ bit was checked by tkent@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Range object should not check 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. BUG= ========== to ========== Range object should not check 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. This CL fixes 1,323 failing tests. BUG= ==========
Description was changed from ========== Range object should not check 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. This CL fixes 1,323 failing tests. BUG= ========== to ========== Range object should not check 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. BUG= ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by tkent@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #1 (id:1) has been deleted
The CQ bit was checked by tkent@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Range object should not check 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. BUG= ========== to ========== 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. BUG=656459 ==========
tkent@chromium.org changed reviewers: + yosin@chromium.org
yosin@, would you review this please?
Patchset #1 (id:10001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
yosin@chromium.org changed reviewers: + yosin@chromium.orgs/
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/Sour... File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2416963007/diff/30001/third_party/WebKit/Sour... third_party/WebKit/Source/core/dom/Range.cpp:255: if (node.isConnected() && m_start.container()->isConnected() && Q: Is it better to use isInTreeScope() == isConnected or isInShadowTree? https://codereview.chromium.org/2416963007/diff/30001/third_party/WebKit/Sour... third_party/WebKit/Source/core/dom/Range.cpp:258: return commonAncestorContainer(m_start.container(), &node); nit: Is m_start.container()->treeScope().commonAncestorTreeScope(node.treeScope()) faster than commonAncestorContainer(Node*, Node*)?
Description was changed from ========== 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. BUG=656459 ========== to ========== 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 ==========
tkent@chromium.org changed reviewers: - yosin@chromium.orgs/
The CQ bit was checked by tkent@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2416963007/diff/30001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2416963007/diff/30001/third_party/WebKit/Sour... third_party/WebKit/Source/core/dom/Range.cpp:255: if (node.isConnected() && m_start.container()->isConnected() && On 2016/10/17 at 04:14:30, Yosi_UTC9 wrote: > Q: Is it better to use isInTreeScope() == isConnected or isInShadowTree? Yeah, that's a good idea. It improves the coverage of this fast-path. Done in Patch Set 2. https://codereview.chromium.org/2416963007/diff/30001/third_party/WebKit/Sour... third_party/WebKit/Source/core/dom/Range.cpp:258: return commonAncestorContainer(m_start.container(), &node); On 2016/10/17 at 04:14:30, Yosi_UTC9 wrote: > nit: Is m_start.container()->treeScope().commonAncestorTreeScope(node.treeScope()) faster than commonAncestorContainer(Node*, Node*)? The comparison doesn't make sense because we can't use commonAncestorTreeScope() here.
lgtm
The CQ bit was unchecked by tkent@chromium.org
The CQ bit was checked by tkent@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:50001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/8a2aa879982c582f811a9d9ef75286b8d27aab84 Cr-Commit-Position: refs/heads/master@{#425630} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
