Chromium Code Reviews
Description[bindings] ship "IterableCollections"
Enable and remove flag for runtime-enabled feature "IterableCollections"
This adds Symbol.iterator to WebIDL interfaces containing both an attribute named "length",
and an integer-indexed property getter, per http://heycam.github.io/webidl/#es-iterators.
Such interfaces are now iterable via ECMAScript for-of loops. Currently, this applies to the
following interfaces:
CSSRuleList, CSSStyleDeclaration, ClientRectList, DOMStringList, DataTransferItemList,
FileList, HTMLAllCollection, HTMLCollection, HTMLFormElement, HTMLOptionsCollection,
HTMLSelectElement, MediaList, MimeTypeArray, NamedNodeMap, Plugin, PluginArray,
SVGLengthList, SVGNumberList, SVGPointList, SVGStringList, SVGTransformList,
SourceBufferList, Storage, StyleSheetList, TextTrackCueList, TextTrackList, TouchList, and
webkitSpeechGrammarList.
In addition to the above interfaces, the NodeList interface is granted the methods "forEach",
"keys", "values", and "entries", due to the `iterable<Node>` definition in
https://dom.spec.whatwg.org/#interface-nodelist. Like the above interfaces,
NodeLists are also iterable via ECMAScript for-of loops.
Intent-to-Ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/FWu2lHOCbNg
BUG=538558
LOG=N
R=haraken@chromium.org, yukishiino@chromium.org, jsbell@chromium.org, philipj@opera.com
Committed: https://crrev.com/2f9367a3f1bc731e1cae19edfa3b89bc18071093
Cr-Commit-Position: refs/heads/master@{#381249}
Patch Set 1 #Patch Set 2 : Update expectations for stable/webexposed/global-interface-listing.html #
Total comments: 2
Patch Set 3 : rebase #Patch Set 4 : Update test expectations #Patch Set 5 : Remove IterableCollections flag entirely #Messages
Total messages: 32 (12 generated)
|