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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 1e0009da387e7fc61f2f9e03dc3b7880f8ab9a84..f760d524e8422a43b0fd465a7ad5966d7c2f9c1e 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -6133,10 +6133,6 @@ class Document extends Node native "*Document"
@DocsEditable
final String $dom_referrer;
- @DomName('Document.securityPolicy')
- @DocsEditable
- final DomSecurityPolicy securityPolicy;
-
@JSName('selectedStylesheetSet')
@DomName('Document.selectedStylesheetSet')
@DocsEditable
@@ -6973,14 +6969,6 @@ class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(DomMimeType element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -7243,14 +7231,6 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(DomPlugin element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -7309,77 +7289,6 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
@DocsEditable
-@DomName('SecurityPolicy')
-class DomSecurityPolicy native "*SecurityPolicy" {
-
- @DomName('DOMSecurityPolicy.allowsEval')
- @DocsEditable
- final bool allowsEval;
-
- @DomName('DOMSecurityPolicy.allowsInlineScript')
- @DocsEditable
- final bool allowsInlineScript;
-
- @DomName('DOMSecurityPolicy.allowsInlineStyle')
- @DocsEditable
- final bool allowsInlineStyle;
-
- @DomName('DOMSecurityPolicy.isActive')
- @DocsEditable
- final bool isActive;
-
- @DomName('DOMSecurityPolicy.reportURIs')
- @DocsEditable
- @Returns('DomStringList')
- @Creates('DomStringList')
- final List<String> reportURIs;
-
- @DomName('DOMSecurityPolicy.allowsConnectionTo')
- @DocsEditable
- bool allowsConnectionTo(String url) native;
-
- @DomName('DOMSecurityPolicy.allowsFontFrom')
- @DocsEditable
- bool allowsFontFrom(String url) native;
-
- @DomName('DOMSecurityPolicy.allowsFormAction')
- @DocsEditable
- bool allowsFormAction(String url) native;
-
- @DomName('DOMSecurityPolicy.allowsFrameFrom')
- @DocsEditable
- bool allowsFrameFrom(String url) native;
-
- @DomName('DOMSecurityPolicy.allowsImageFrom')
- @DocsEditable
- bool allowsImageFrom(String url) native;
-
- @DomName('DOMSecurityPolicy.allowsMediaFrom')
- @DocsEditable
- bool allowsMediaFrom(String url) native;
-
- @DomName('DOMSecurityPolicy.allowsObjectFrom')
- @DocsEditable
- bool allowsObjectFrom(String url) native;
-
- @DomName('DOMSecurityPolicy.allowsPluginType')
- @DocsEditable
- bool allowsPluginType(String type) native;
-
- @DomName('DOMSecurityPolicy.allowsScriptFrom')
- @DocsEditable
- bool allowsScriptFrom(String url) native;
-
- @DomName('DOMSecurityPolicy.allowsStyleFrom')
- @DocsEditable
- bool allowsStyleFrom(String url) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DocsEditable
@DomName('Selection')
class DomSelection native "*Selection" {
@@ -7661,14 +7570,6 @@ class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(String element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -7935,14 +7836,6 @@ class _ChildrenElementList extends ListBase<Element> {
}
}
- void removeAll(Iterable elements) {
- _childElements.removeAll(elements);
- }
-
- void retainAll(Iterable elements) {
- _childElements.retainAll(elements);
- }
-
void removeWhere(bool test(Element element)) {
_childElements.removeWhere(test);
}
@@ -8104,14 +7997,6 @@ class _FrozenElementList extends ListBase {
throw new UnsupportedError('');
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError('');
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError('');
- }
-
void removeWhere(bool test(Element element)) {
throw new UnsupportedError('');
}
@@ -8270,7 +8155,7 @@ abstract class Element extends Node implements ElementTraversal native "*Element
*/
CssClassSet get classes => new _ElementCssClassSet(this);
- void set classes(Collection<String> value) {
+ void set classes(Iterable<String> value) {
CssClassSet classSet = classes;
classSet.clear();
classSet.addAll(value);
@@ -10408,14 +10293,6 @@ class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(File element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -10900,14 +10777,6 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(num element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -11134,14 +11003,6 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(num element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -11788,14 +11649,6 @@ class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(Node element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -12011,14 +11864,6 @@ class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(Node element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -12905,10 +12750,6 @@ class IFrameElement extends Element native "*HTMLIFrameElement" {
@DocsEditable
String sandbox;
- @DomName('HTMLIFrameElement.seamless')
- @DocsEditable
- bool seamless;
-
@DomName('HTMLIFrameElement.src')
@DocsEditable
String src;
@@ -14057,14 +13898,6 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(int element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -14291,14 +14124,6 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(int element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -14525,14 +14350,6 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(int element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -16937,14 +16754,6 @@ class _ChildNodeListLazy extends ListBase<Node> {
_this.$dom_removeChild(node);
}
- void removeAll(Iterable elements) {
- // This is not using the default removeAll from ListBase because
- // DOM nodes can be efficiently removed in constant time.
- for (var element in elements) {
- remove(element);
- }
- }
-
void _filter(bool test(Node node), bool removeMatching) {
// This implementation of removeWhere/retainWhere is more efficient
// than the default in ListBase. Child nodes can be removed in constant
@@ -16959,11 +16768,6 @@ class _ChildNodeListLazy extends ListBase<Node> {
}
}
- void retainAll(Iterable elements) {
- Set retainSet = (elements is Set) ? elements : elements.toSet();
- _filter(retainSet.contains, false);
- }
-
void removeWhere(bool test(Node node)) {
_filter(test, true);
}
@@ -17043,7 +16847,7 @@ class Node extends EventTarget native "*Node" {
return new _ChildNodeListLazy(this);
}
- void set nodes(Collection<Node> value) {
+ void set nodes(Iterable<Node> value) {
// Copy list first since we don't want liveness during iteration.
// TODO(jacobr): there is a better way to do this.
List copy = new List.from(value);
@@ -17554,14 +17358,6 @@ class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(Node element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -19403,10 +19199,6 @@ class ScriptElement extends Element native "*HTMLScriptElement" {
@DocsEditable
String htmlFor;
- @DomName('HTMLScriptElement.nonce')
- @DocsEditable
- String nonce;
-
@DomName('HTMLScriptElement.src')
@DocsEditable
String src;
@@ -19491,49 +19283,6 @@ class ScriptProfileNode native "*ScriptProfileNode" {
// BSD-style license that can be found in the LICENSE file.
-@DocsEditable
-@DomName('SecurityPolicyViolationEvent')
-class SecurityPolicyViolationEvent extends Event native "*SecurityPolicyViolationEvent" {
-
- @JSName('blockedURI')
- @DomName('SecurityPolicyViolationEvent.blockedURI')
- @DocsEditable
- final String blockedUri;
-
- @JSName('documentURI')
- @DomName('SecurityPolicyViolationEvent.documentURI')
- @DocsEditable
- final String documentUri;
-
- @DomName('SecurityPolicyViolationEvent.effectiveDirective')
- @DocsEditable
- final String effectiveDirective;
-
- @DomName('SecurityPolicyViolationEvent.lineNumber')
- @DocsEditable
- final int lineNumber;
-
- @DomName('SecurityPolicyViolationEvent.originalPolicy')
- @DocsEditable
- final String originalPolicy;
-
- @DomName('SecurityPolicyViolationEvent.referrer')
- @DocsEditable
- final String referrer;
-
- @DomName('SecurityPolicyViolationEvent.sourceFile')
- @DocsEditable
- final String sourceFile;
-
- @DomName('SecurityPolicyViolationEvent.violatedDirective')
- @DocsEditable
- final String violatedDirective;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
@DomName('HTMLSelectElement')
class SelectElement extends Element native "*HTMLSelectElement" {
@@ -19906,14 +19655,6 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(SourceBuffer element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -20202,14 +19943,6 @@ class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(SpeechGrammar element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -20597,13 +20330,13 @@ class Storage implements Map<String, String>
}
}
- Collection<String> get keys {
+ Iterable<String> get keys {
final keys = [];
forEach((k, v) => keys.add(k));
return keys;
}
- Collection<String> get values {
+ Iterable<String> get values {
final values = [];
forEach((k, v) => values.add(v));
return values;
@@ -21661,14 +21394,6 @@ class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(TextTrackCue element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -21882,14 +21607,6 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(TextTrack element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -22329,14 +22046,6 @@ class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(Touch element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -22813,14 +22522,6 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(int element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -23047,14 +22748,6 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(int element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -23281,14 +22974,6 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(int element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -23512,14 +23197,6 @@ class Uint8ClampedArray extends Uint8Array implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(int element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -25794,14 +25471,6 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<Rect> native "
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(Rect element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -26016,14 +25685,6 @@ class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(CssRule element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -26229,14 +25890,6 @@ class _CssValueList extends _CSSValue implements JavaScriptIndexingBehavior, Lis
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(_CSSValue element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -26510,14 +26163,6 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(Entry element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -26723,14 +26368,6 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<_EntrySync> na
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(_EntrySync element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -26979,14 +26616,6 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(Gamepad element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -27255,14 +26884,6 @@ class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*N
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(Node element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -27539,14 +27160,6 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(SpeechInputResult element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -27752,14 +27365,6 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(SpeechRecognitionResult element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -27965,14 +27570,6 @@ class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainAll(Iterable elements) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
void removeWhere(bool test(StyleSheet element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -28155,7 +27752,7 @@ abstract class _AttributeMap implements Map<String, String> {
}
}
- Collection<String> get keys {
+ Iterable<String> get keys {
// TODO: generate a lazy collection instead.
var attributes = _element.$dom_attributes;
var keys = new List<String>();
@@ -28167,7 +27764,7 @@ abstract class _AttributeMap implements Map<String, String> {
return keys;
}
- Collection<String> get values {
+ Iterable<String> get values {
// TODO: generate a lazy collection instead.
var attributes = _element.$dom_attributes;
var values = new List<String>();
@@ -28308,7 +27905,7 @@ class _DataAttributeMap implements Map<String, String> {
});
}
- Collection<String> get keys {
+ Iterable<String> get keys {
final keys = new List<String>();
$dom_attributes.forEach((String key, String value) {
if (_matches(key)) {
@@ -28318,7 +27915,7 @@ class _DataAttributeMap implements Map<String, String> {
return keys;
}
- Collection<String> get values {
+ Iterable<String> get values {
final values = new List<String>();
$dom_attributes.forEach((String key, String value) {
if (_matches(key)) {
@@ -28649,9 +28246,6 @@ abstract class CssClassSet implements Set<String> {
_modify((s) => s.retainWhere(test));
}
- bool isSubsetOf(Collection<String> collection) =>
- readClasses().isSubsetOf(collection);
-
bool containsAll(Iterable<String> collection) =>
readClasses().containsAll(collection);
@@ -31089,10 +30683,6 @@ class _WrappedList<E> implements List<E> {
void remove(Object element) { _list.remove(element); }
- void removeAll(Iterable elements) { _list.removeAll(elements); }
-
- void retainAll(Iterable elements) { _list.retainAll(elements); }
-
void removeWhere(bool test(E element)) { _list.removeWhere(test); }
void retainWhere(bool test(E element)) { _list.retainWhere(test); }

Powered by Google App Engine
This is Rietveld 408576698