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

Unified Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 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:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/svg/dartium/svg_dartium.dart
diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart
index d6b19dd5d8144054b45ac9715e1c7d09f92f5eb3..02dbb77cebb1628f34c6c4931707d90ea7b2aa44 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -3356,7 +3356,9 @@ class LengthList extends NativeFieldWrapperClass1 implements List<Length> {
bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f);
- List<Length> toList() => new List<Length>.from(this);
+ List<Length> toList({ bool growable: false }) =>
+ new List<Length>.from(this, growable: growable);
+
Set<Length> toSet() => new Set<Length>.from(this);
bool get isEmpty => this.length == 0;
@@ -4057,7 +4059,9 @@ class NumberList extends NativeFieldWrapperClass1 implements List<Number> {
bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f);
- List<Number> toList() => new List<Number>.from(this);
+ List<Number> toList({ bool growable: false }) =>
+ new List<Number>.from(this, growable: growable);
+
Set<Number> toSet() => new Set<Number>.from(this);
bool get isEmpty => this.length == 0;
@@ -5234,7 +5238,9 @@ class PathSegList extends NativeFieldWrapperClass1 implements List<PathSeg> {
bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f);
- List<PathSeg> toList() => new List<PathSeg>.from(this);
+ List<PathSeg> toList({ bool growable: false }) =>
+ new List<PathSeg>.from(this, growable: growable);
+
Set<PathSeg> toSet() => new Set<PathSeg>.from(this);
bool get isEmpty => this.length == 0;
@@ -6216,7 +6222,9 @@ class StringList extends NativeFieldWrapperClass1 implements List<String> {
bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
- List<String> toList() => new List<String>.from(this);
+ List<String> toList({ bool growable: false }) =>
+ new List<String>.from(this, growable: growable);
+
Set<String> toSet() => new Set<String>.from(this);
bool get isEmpty => this.length == 0;
@@ -7467,7 +7475,9 @@ class TransformList extends NativeFieldWrapperClass1 implements List<Transform>
bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f);
- List<Transform> toList() => new List<Transform>.from(this);
+ List<Transform> toList({ bool growable: false }) =>
+ new List<Transform>.from(this, growable: growable);
+
Set<Transform> toSet() => new Set<Transform>.from(this);
bool get isEmpty => this.length == 0;
@@ -8038,7 +8048,9 @@ class _ElementInstanceList extends NativeFieldWrapperClass1 implements List<Elem
bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f);
- List<ElementInstance> toList() => new List<ElementInstance>.from(this);
+ List<ElementInstance> toList({ bool growable: false }) =>
+ new List<ElementInstance>.from(this, growable: growable);
+
Set<ElementInstance> toSet() => new Set<ElementInstance>.from(this);
bool get isEmpty => this.length == 0;

Powered by Google App Engine
This is Rietveld 408576698