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

Issue 1367523002: [dom] support iterable<> NodeList (Closed)

Created:
5 years, 3 months ago by caitp (gmail)
Modified:
5 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[dom] support iterable<> NodeList Adds missing iterable<Node> support to NodeList. This results in 4 additional enumerable properties on the interface: - values() - entries() - keys() - forEach() The WebIDL spec wants each of these methods to return an ArrayIterator, but for the time being these are still returning IDL Iterator types. Ported from https://codereview.chromium.org/1220883007/ BUG=229398 LOG=N R=jsbell@chromium.org, philipj@opera.com Committed: https://crrev.com/9004adaa987fa68b8b4da6abfdc4669d6c8a3b9b Cr-Commit-Position: refs/heads/master@{#356744}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Fix nits / Don't ship feature by default #

Total comments: 6

Patch Set 3 : Rebase #

Patch Set 4 : Remove unneeded flag code, use IterableCollections flag because NodeList isn't special, adjust tests #

Patch Set 5 : Consistently put expected value on left, actual on right in tests #

Patch Set 6 : Remove redundant assertion #

Total comments: 1

Patch Set 7 : Actual on the left, expected on the right #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html View 1 2 3 4 5 6 1 chunk +102 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/domListEnumeration-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/script-tests/domListEnumeration.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/NodeList.h View 1 3 chunks +5 lines, -1 line 0 comments Download
A third_party/WebKit/Source/core/dom/NodeList.cpp View 1 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/NodeList.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (9 generated)
caitp (gmail)
Ported to chromium
5 years, 3 months ago (2015-09-23 16:20:31 UTC) #1
caitp (gmail)
On 2015/09/23 16:20:31, caitp wrote: > Ported to chromium So, this is marked as "no ...
5 years, 2 months ago (2015-10-02 16:46:59 UTC) #2
jsbell
On 2015/10/02 16:46:59, caitp wrote: > On 2015/09/23 16:20:31, caitp wrote: > > Ported to ...
5 years, 2 months ago (2015-10-02 17:39:14 UTC) #3
caitp (gmail)
On 2015/10/02 17:39:14, jsbell wrote: > On 2015/10/02 16:46:59, caitp wrote: > > On 2015/09/23 ...
5 years, 2 months ago (2015-10-02 18:12:01 UTC) #4
esprehn
https://codereview.chromium.org/1367523002/diff/1/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html File third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): https://codereview.chromium.org/1367523002/diff/1/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode22 third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html:22: test(function () { no space after function keyword https://codereview.chromium.org/1367523002/diff/1/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode32 ...
5 years, 2 months ago (2015-10-03 05:07:45 UTC) #6
caitp (gmail)
https://codereview.chromium.org/1367523002/diff/1/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html File third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): https://codereview.chromium.org/1367523002/diff/1/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode32 third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html:32: test(function () { On 2015/10/03 05:07:45, esprehn wrote: > ...
5 years, 2 months ago (2015-10-03 15:46:45 UTC) #7
esprehn
On 2015/10/03 at 15:46:45, caitpotter88 wrote: > https://codereview.chromium.org/1367523002/diff/1/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html > File third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): > > https://codereview.chromium.org/1367523002/diff/1/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode32 ...
5 years, 2 months ago (2015-10-03 17:18:44 UTC) #8
caitp (gmail)
On 2015/10/03 17:18:44, esprehn wrote: > On 2015/10/03 at 15:46:45, caitpotter88 wrote: > > > ...
5 years, 2 months ago (2015-10-23 15:50:17 UTC) #9
esprehn
On 2015/10/23 at 15:50:17, caitpotter88 wrote: > On 2015/10/03 17:18:44, esprehn wrote: > ... > ...
5 years, 2 months ago (2015-10-23 20:19:57 UTC) #10
jsbell
Re: "It's not super clear, but I don't really see a reason for NodeList's iterator ...
5 years, 1 month ago (2015-10-26 22:53:34 UTC) #11
jsbell
https://codereview.chromium.org/1367523002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html File third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): https://codereview.chromium.org/1367523002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode27 third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html:27: assert_equals(node.id, "div" + ++id, "elements should be the expected ...
5 years, 1 month ago (2015-10-26 23:02:07 UTC) #12
caitp (gmail)
On 2015/10/26 22:53:34, jsbell wrote: > Re: "It's not super clear, but I don't really ...
5 years, 1 month ago (2015-10-26 23:11:47 UTC) #13
caitp (gmail)
https://codereview.chromium.org/1367523002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html File third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): https://codereview.chromium.org/1367523002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode27 third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html:27: assert_equals(node.id, "div" + ++id, "elements should be the expected ...
5 years, 1 month ago (2015-10-27 02:30:59 UTC) #14
jsbell
(non-OWNER) lgtm, other than the test nits. https://codereview.chromium.org/1367523002/diff/100001/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html File third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): https://codereview.chromium.org/1367523002/diff/100001/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode29 third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-iterable.html:29: assert_array_equals(["div1", "div2", ...
5 years, 1 month ago (2015-10-27 16:47:58 UTC) #15
caitp (gmail)
On 2015/10/27 16:47:58, jsbell wrote: > (non-OWNER) lgtm, other than the test nits. > > ...
5 years, 1 month ago (2015-10-27 16:54:35 UTC) #16
esprehn
lgtm
5 years, 1 month ago (2015-10-27 19:20:33 UTC) #17
caitp (gmail)
On 2015/10/27 19:20:33, esprehn wrote: > lgtm Thanks for the reviews, looking forward to flipping ...
5 years, 1 month ago (2015-10-28 05:12:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367523002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367523002/120001
5 years, 1 month ago (2015-10-28 05:13:57 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/132306)
5 years, 1 month ago (2015-10-28 06:15:11 UTC) #23
caitp (gmail)
On 2015/10/28 06:15:11, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-10-28 08:30:50 UTC) #24
caitp (gmail)
On 2015/10/28 08:30:50, caitp wrote: > On 2015/10/28 06:15:11, commit-bot: I haz the power wrote: ...
5 years, 1 month ago (2015-10-28 12:51:00 UTC) #25
caitp (gmail)
On 2015/10/28 12:51:00, caitp wrote: > On 2015/10/28 08:30:50, caitp wrote: > > On 2015/10/28 ...
5 years, 1 month ago (2015-10-28 15:31:33 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367523002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367523002/120001
5 years, 1 month ago (2015-10-28 15:34:50 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/132493)
5 years, 1 month ago (2015-10-28 16:54:09 UTC) #32
caitp (gmail)
On 2015/10/28 16:54:09, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-10-29 00:36:47 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367523002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367523002/120001
5 years, 1 month ago (2015-10-29 00:39:13 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-10-29 02:50:09 UTC) #36
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 02:51:15 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9004adaa987fa68b8b4da6abfdc4669d6c8a3b9b
Cr-Commit-Position: refs/heads/master@{#356744}

Powered by Google App Engine
This is Rietveld 408576698