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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 11792006: Re-generating generated DOM files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/html_json_doc/lib/json_to_html.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index d4d78c6b3462004ad01b2f74afee2130405fc900..a7a05c3970ee8d8748a9a21493fd10ed1ac55c2d 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -8399,7 +8399,7 @@ class _ChildrenElementList implements List {
}
Iterable<Element> where(bool f(Element element))
- => new WhereIterable<Element>(this, f);
+ => new WhereIterable(this, f);
bool get isEmpty {
return _element.$dom_firstElementChild == null;
@@ -8582,7 +8582,7 @@ class _FrozenElementList implements List {
}
Iterable<Element> where(bool f(Element element))
- => new WhereIterable<Element>(this, f);
+ => new WhereIterable(this, f);
bool every(bool f(Element element)) {
for(Element element in this) {
@@ -8721,7 +8721,7 @@ class _FrozenElementList implements List {
class _FrozenElementListIterator implements Iterator<Element> {
final _FrozenElementList _list;
- int _index = 0;
+ int _index = -1;
Element _current;
_FrozenElementListIterator(this._list);
@@ -19764,13 +19764,15 @@ class SelectElement extends _Element_Merged {
// Override default options, since IE returns SelectElement itself and it
// does not operate as a List.
List<OptionElement> get options {
- return this.children.where((e) => e is OptionElement).toList();
+ var options = this.children.where((e) => e is OptionElement).toList();
+ return new ListView(options, 0, options.length);
}
List<OptionElement> get selectedOptions {
// IE does not change the selected flag for single-selection items.
if (this.multiple) {
- return this.options.where((o) => o.selected).toList();
+ var options = this.options.where((o) => o.selected).toList();
+ return new ListView(options, 0, options.length);
} else {
return [this.options[this.selectedIndex]];
}
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/html_json_doc/lib/json_to_html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698