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

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

Created:
5 years, 5 months ago by caitp (gmail)
Modified:
5 years, 3 months ago
Reviewers:
philipj_slow, jsbell
CC:
blink-reviews, blink-reviews-html_chromium.org, arv+blink, vivekg, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, vivekg_samsung, Inactive, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
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. BUG=229398 LOG=N R=jsbell@chromium.org, philipj@opera.com

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add testharness.js tests for NodeList iterable remove HTMLCollection changes #

Total comments: 7

Patch Set 3 : Test removal of earlier/later items during iteration of LiveNodeList #

Patch Set 4 : Add a little title #

Total comments: 5

Patch Set 5 : Fix expectations for webexposed/global-interface-listing #

Patch Set 6 : cosmetic changes #

Patch Set 7 : Check that it merges cleanly #

Total comments: 5

Patch Set 8 : Fix virtual/stable/webexposed/global-interface-listing expectations #

Patch Set 9 : Fix typo in test expectations, tested build #

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

Messages

Total messages: 32 (3 generated)
caitp (gmail)
PTAL + /cc DOM-y people
5 years, 5 months ago (2015-07-01 17:07:30 UTC) #1
jsbell
Code l*g*t*m but: * Is HTMLCollection/HTMLAllCollection supposed to be iterable<> ? I'm not seeing it ...
5 years, 5 months ago (2015-07-01 18:00:30 UTC) #2
jsbell
-arv, +philipj
5 years, 5 months ago (2015-07-01 18:01:08 UTC) #4
caitp (gmail)
On 2015/07/01 18:00:30, jsbell wrote: > Code l*g*t*m but: > > * Is HTMLCollection/HTMLAllCollection supposed ...
5 years, 5 months ago (2015-07-01 18:07:08 UTC) #5
arv (Not doing code reviews)
On 2015/07/01 18:07:08, caitp wrote: > On 2015/07/01 18:00:30, jsbell wrote: > > Code l*g*t*m ...
5 years, 5 months ago (2015-07-01 18:10:15 UTC) #6
philipj_slow
(s/phillipj/philipj/ in the description, that's why I didn't see this initially. Cursed be names with ...
5 years, 5 months ago (2015-07-01 19:06:13 UTC) #7
philipj_slow
On 2015/07/01 18:10:15, arv wrote: > On 2015/07/01 18:07:08, caitp wrote: > > On 2015/07/01 ...
5 years, 5 months ago (2015-07-01 19:13:45 UTC) #8
caitp (gmail)
On 2015/07/01 18:00:30, jsbell wrote: > Code l*g*t*m but: > > * Is HTMLCollection/HTMLAllCollection supposed ...
5 years, 5 months ago (2015-07-01 19:19:51 UTC) #9
jsbell
On 2015/07/01 19:19:51, caitp wrote: > Added some behavioural tests --- but there's a catch ...
5 years, 5 months ago (2015-07-01 19:22:03 UTC) #10
caitp (gmail)
On 2015/07/01 19:13:45, philipj wrote: > On 2015/07/01 18:10:15, arv wrote: > > On 2015/07/01 ...
5 years, 5 months ago (2015-07-01 19:32:04 UTC) #11
jsbell
On 2015/07/01 19:22:03, jsbell wrote: > On 2015/07/01 19:19:51, caitp wrote: > > Added some ...
5 years, 5 months ago (2015-07-01 19:34:40 UTC) #12
jsbell
Since this is a live NodeList, a test case or two where the list is ...
5 years, 5 months ago (2015-07-01 19:41:19 UTC) #13
caitp (gmail)
https://codereview.chromium.org/1220883007/diff/20001/LayoutTests/fast/dom/NodeList/nodelist-iterable.html File LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): https://codereview.chromium.org/1220883007/diff/20001/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode3 LayoutTests/fast/dom/NodeList/nodelist-iterable.html:3: <script src="../../../resources/testharness.js"></script> On 2015/07/01 19:41:19, jsbell wrote: > Nit: ...
5 years, 5 months ago (2015-07-01 20:22:35 UTC) #14
arv (Not doing code reviews)
I like https://codereview.chromium.org/1220883007/diff/60001/LayoutTests/fast/dom/NodeList/nodelist-iterable.html File LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): https://codereview.chromium.org/1220883007/diff/60001/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode107 LayoutTests/fast/dom/NodeList/nodelist-iterable.html:107: container.style.display = "none"; You could put your ...
5 years, 5 months ago (2015-07-01 20:53:08 UTC) #15
caitp (gmail)
https://codereview.chromium.org/1220883007/diff/60001/LayoutTests/fast/dom/script-tests/domListEnumeration.js File LayoutTests/fast/dom/script-tests/domListEnumeration.js (right): https://codereview.chromium.org/1220883007/diff/60001/LayoutTests/fast/dom/script-tests/domListEnumeration.js#newcode100 LayoutTests/fast/dom/script-tests/domListEnumeration.js:100: shouldBe("resultArray.length", "9"); On 2015/07/01 20:53:08, arv wrote: > Why ...
5 years, 5 months ago (2015-07-01 20:57:36 UTC) #16
arv (Not doing code reviews)
So sad that WebIDL methods are enumerable. https://codereview.chromium.org/1220883007/diff/60001/LayoutTests/fast/dom/script-tests/domListEnumeration.js File LayoutTests/fast/dom/script-tests/domListEnumeration.js (right): https://codereview.chromium.org/1220883007/diff/60001/LayoutTests/fast/dom/script-tests/domListEnumeration.js#newcode100 LayoutTests/fast/dom/script-tests/domListEnumeration.js:100: shouldBe("resultArray.length", "9"); ...
5 years, 5 months ago (2015-07-01 21:01:29 UTC) #17
caitp (gmail)
https://codereview.chromium.org/1220883007/diff/60001/LayoutTests/fast/dom/script-tests/domListEnumeration.js File LayoutTests/fast/dom/script-tests/domListEnumeration.js (right): https://codereview.chromium.org/1220883007/diff/60001/LayoutTests/fast/dom/script-tests/domListEnumeration.js#newcode100 LayoutTests/fast/dom/script-tests/domListEnumeration.js:100: shouldBe("resultArray.length", "9"); On 2015/07/01 21:01:29, arv wrote: > On ...
5 years, 5 months ago (2015-07-01 21:09:36 UTC) #18
philipj_slow
On 2015/07/01 21:01:29, arv wrote: > So sad that WebIDL methods are enumerable. Do you ...
5 years, 5 months ago (2015-07-01 21:25:45 UTC) #19
arv (Not doing code reviews)
On 2015/07/01 21:25:45, philipj wrote: > On 2015/07/01 21:01:29, arv wrote: > > So sad ...
5 years, 5 months ago (2015-07-01 21:26:54 UTC) #20
philipj_slow
On 2015/07/01 21:26:54, arv wrote: > On 2015/07/01 21:25:45, philipj wrote: > > On 2015/07/01 ...
5 years, 5 months ago (2015-07-01 21:46:22 UTC) #21
jsbell
What happened to this CL? Did we all just get distracted by other shiny things ...
5 years, 3 months ago (2015-09-09 15:56:48 UTC) #23
caitp (gmail)
On 2015/09/09 15:56:48, jsbell wrote: > What happened to this CL? Did we all just ...
5 years, 3 months ago (2015-09-09 15:58:20 UTC) #24
caitp (gmail)
On 2015/09/09 15:58:20, caitp wrote: > On 2015/09/09 15:56:48, jsbell wrote: > > What happened ...
5 years, 3 months ago (2015-09-18 20:20:29 UTC) #26
jsbell
non-owner lgtm (note previous question from comment #2 repeated, though) https://codereview.chromium.org/1220883007/diff/160001/LayoutTests/fast/dom/NodeList/nodelist-iterable.html File LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): https://codereview.chromium.org/1220883007/diff/160001/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode35 ...
5 years, 3 months ago (2015-09-21 17:55:18 UTC) #27
caitp (gmail)
https://codereview.chromium.org/1220883007/diff/160001/LayoutTests/fast/dom/NodeList/nodelist-iterable.html File LayoutTests/fast/dom/NodeList/nodelist-iterable.html (right): https://codereview.chromium.org/1220883007/diff/160001/LayoutTests/fast/dom/NodeList/nodelist-iterable.html#newcode35 LayoutTests/fast/dom/NodeList/nodelist-iterable.html:35: let id = entry[0] + 1; On 2015/09/21 17:55:18, ...
5 years, 3 months ago (2015-09-22 01:57:33 UTC) #28
philipj_slow
I started a bot to see if this compiles and if some tests need fixing. ...
5 years, 3 months ago (2015-09-22 09:03:44 UTC) #29
caitp (gmail)
On 2015/09/22 09:03:44, philipj wrote: > I started a bot to see if this compiles ...
5 years, 3 months ago (2015-09-22 10:15:50 UTC) #30
caitp (gmail)
Fixed expectations that caused failure in the try run. Since there are separate expectations for ...
5 years, 3 months ago (2015-09-22 18:05:31 UTC) #31
caitp (gmail)
5 years, 3 months ago (2015-09-23 11:04:38 UTC) #32
On 2015/09/22 18:05:31, caitp wrote:
> Fixed expectations that caused failure in the try run.
> 
> Since there are separate expectations for android, I expect those to fail
still,
> but I'm not sure about that one.
> 
> I'm also not sure if the most recent patch will build, because the recent
> dcommited pushes to the blink repo are preventing me from building on top of
> lkgr. It probably won't be tested properly until after the 23rd

It builds just fine, so that's good.

Powered by Google App Engine
This is Rietveld 408576698