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

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

Issue 12401002: Make List.from and Iterable.toList default to not growable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 02dbb77cebb1628f34c6c4931707d90ea7b2aa44..d049d13115b6a2989905a6755ac2adbd143f6d5e 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -3356,7 +3356,7 @@ class LengthList extends NativeFieldWrapperClass1 implements List<Length> {
bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f);
- List<Length> toList({ bool growable: false }) =>
+ List<Length> toList({ bool growable: true }) =>
new List<Length>.from(this, growable: growable);
Set<Length> toSet() => new Set<Length>.from(this);
@@ -4059,7 +4059,7 @@ class NumberList extends NativeFieldWrapperClass1 implements List<Number> {
bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f);
- List<Number> toList({ bool growable: false }) =>
+ List<Number> toList({ bool growable: true }) =>
new List<Number>.from(this, growable: growable);
Set<Number> toSet() => new Set<Number>.from(this);
@@ -5238,7 +5238,7 @@ class PathSegList extends NativeFieldWrapperClass1 implements List<PathSeg> {
bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f);
- List<PathSeg> toList({ bool growable: false }) =>
+ List<PathSeg> toList({ bool growable: true }) =>
new List<PathSeg>.from(this, growable: growable);
Set<PathSeg> toSet() => new Set<PathSeg>.from(this);
@@ -6222,7 +6222,7 @@ class StringList extends NativeFieldWrapperClass1 implements List<String> {
bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
- List<String> toList({ bool growable: false }) =>
+ List<String> toList({ bool growable: true }) =>
new List<String>.from(this, growable: growable);
Set<String> toSet() => new Set<String>.from(this);
@@ -7475,7 +7475,7 @@ class TransformList extends NativeFieldWrapperClass1 implements List<Transform>
bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f);
- List<Transform> toList({ bool growable: false }) =>
+ List<Transform> toList({ bool growable: true }) =>
new List<Transform>.from(this, growable: growable);
Set<Transform> toSet() => new Set<Transform>.from(this);
@@ -8048,7 +8048,7 @@ class _ElementInstanceList extends NativeFieldWrapperClass1 implements List<Elem
bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f);
- List<ElementInstance> toList({ bool growable: false }) =>
+ List<ElementInstance> toList({ bool growable: true }) =>
new List<ElementInstance>.from(this, growable: growable);
Set<ElementInstance> toSet() => new Set<ElementInstance>.from(this);
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698