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

Issue 256013002: Make NodeIterator.detach() a no-op (Closed)

Created:
6 years, 8 months ago by Inactive
Modified:
6 years, 7 months ago
CC:
blink-reviews, chrishtr, sof, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, Inactive, ojan, rwlbuis
Visibility:
Public.

Description

Make NodeIterator.detach() a no-op Make NodeIterator.detach() a no-op as per the DOM specification: http://dom.spec.whatwg.org/#dom-nodeiterator-detach This makes the code simpler, and a bit more efficient. Firefox already does this since version 22: https://bugzilla.mozilla.org/show_bug.cgi?id=823549 However, this method is not a no-op in IE11. R=arv@chromium.org, tkent@chromium.org BUG=367558 TEST=fast/dom/NodeIterator/detach-no-op.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172768

Patch Set 1 #

Total comments: 6

Patch Set 2 : Take feedback into consideration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -17 lines) Patch
A LayoutTests/fast/dom/NodeIterator/detach-no-op.html View 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/NodeIterator/detach-no-op-expected.txt View 1 1 chunk +13 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/node-iterator-with-doctype-root-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/NodeIterator.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/NodeIterator.cpp View 1 6 chunks +2 lines, -15 lines 0 comments Download
M Source/core/dom/NodeIterator.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/UseCounter.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/UseCounter.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Inactive
6 years, 8 months ago (2014-04-27 20:24:37 UTC) #1
tkent
Same comment as Range.detach.
6 years, 8 months ago (2014-04-28 01:37:12 UTC) #2
tkent
On 2014/04/28 01:37:12, tkent wrote: > Same comment as Range.detach. IE has supported NodeIterator since ...
6 years, 7 months ago (2014-04-28 12:13:51 UTC) #3
tkent
lgtm https://codereview.chromium.org/256013002/diff/1/Source/core/frame/UseCounter.cpp File Source/core/frame/UseCounter.cpp (right): https://codereview.chromium.org/256013002/diff/1/Source/core/frame/UseCounter.cpp#newcode716 Source/core/frame/UseCounter.cpp:716: return "'NodeIterator.detach' is now a no-op, as per ...
6 years, 7 months ago (2014-04-28 12:15:38 UTC) #4
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/256013002/diff/1/Source/core/dom/NodeIterator.cpp File Source/core/dom/NodeIterator.cpp (right): https://codereview.chromium.org/256013002/diff/1/Source/core/dom/NodeIterator.cpp#newcode138 Source/core/dom/NodeIterator.cpp:138: // This is now a no-op as per ...
6 years, 7 months ago (2014-04-28 14:22:24 UTC) #5
Inactive
https://codereview.chromium.org/256013002/diff/1/Source/core/dom/NodeIterator.cpp File Source/core/dom/NodeIterator.cpp (right): https://codereview.chromium.org/256013002/diff/1/Source/core/dom/NodeIterator.cpp#newcode138 Source/core/dom/NodeIterator.cpp:138: // This is now a no-op as per the ...
6 years, 7 months ago (2014-04-28 14:26:20 UTC) #6
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-04-28 14:26:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/256013002/20001
6 years, 7 months ago (2014-04-28 14:26:47 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 15:38:31 UTC) #9
Message was sent while issue was closed.
Change committed as 172768

Powered by Google App Engine
This is Rietveld 408576698