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

Unified Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 12094103: Added MappedListIterable/Iterator to implement map() on Lists. (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:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/svg/dart2js/svg_dart2js.dart
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart
index 4c35db8107978288ec4b9c23cb96b96532ecdd48..75cb9991d935c06ed93fc784ec2bbf790053f192 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -2961,7 +2961,7 @@ class FilterElement extends SvgElement implements UriReference, ExternalResource
@DomName('SVGFilterPrimitiveStandardAttributes')
-abstract class FilterPrimitiveStandardAttributes implements Stylable {
+abstract class FilterPrimitiveStandardAttributes extends Stylable {
AnimatedLength height;
@@ -2972,14 +2972,6 @@ abstract class FilterPrimitiveStandardAttributes implements Stylable {
AnimatedLength x;
AnimatedLength y;
-
- // From SVGStylable
-
- AnimatedString $dom_svgClassName;
-
- CssStyleDeclaration style;
-
- CssValue getPresentationAttribute(String name);
}
// 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
@@ -3622,7 +3614,7 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
IterableMixinWorkaround.joinList(this, separator);
Iterable map(f(Length element)) =>
- IterableMixinWorkaround.map(this, f);
+ IterableMixinWorkaround.mapList(this, f);
List mappedBy(f(Length element)) =>
IterableMixinWorkaround.mappedByList(this, f);
@@ -4311,7 +4303,7 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
IterableMixinWorkaround.joinList(this, separator);
Iterable map(f(Number element)) =>
- IterableMixinWorkaround.map(this, f);
+ IterableMixinWorkaround.mapList(this, f);
List mappedBy(f(Number element)) =>
IterableMixinWorkaround.mappedByList(this, f);
@@ -5222,7 +5214,7 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
IterableMixinWorkaround.joinList(this, separator);
Iterable map(f(PathSeg element)) =>
- IterableMixinWorkaround.map(this, f);
+ IterableMixinWorkaround.mapList(this, f);
List mappedBy(f(PathSeg element)) =>
IterableMixinWorkaround.mappedByList(this, f);
@@ -6152,7 +6144,7 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
IterableMixinWorkaround.joinList(this, separator);
Iterable map(f(String element)) =>
- IterableMixinWorkaround.map(this, f);
+ IterableMixinWorkaround.mapList(this, f);
List mappedBy(f(String element)) =>
IterableMixinWorkaround.mappedByList(this, f);
@@ -6334,14 +6326,21 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
// BSD-style license that can be found in the LICENSE file.
+@DocsEditable
@DomName('SVGStylable')
-abstract class Stylable {
+class Stylable native "*SVGStylable" {
- AnimatedString $dom_svgClassName;
+ @DomName('SVGStylable.className')
+ @DocsEditable
+ final AnimatedString className;
- CssStyleDeclaration style;
+ @DomName('SVGStylable.style')
+ @DocsEditable
+ final CssStyleDeclaration style;
- CssValue getPresentationAttribute(String name);
+ @DomName('SVGStylable.getPresentationAttribute')
+ @DocsEditable
+ CssValue getPresentationAttribute(String name) 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
@@ -7377,7 +7376,7 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
IterableMixinWorkaround.joinList(this, separator);
Iterable map(f(Transform element)) =>
- IterableMixinWorkaround.map(this, f);
+ IterableMixinWorkaround.mapList(this, f);
List mappedBy(f(Transform element)) =>
IterableMixinWorkaround.mappedByList(this, f);
@@ -7916,7 +7915,7 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
IterableMixinWorkaround.joinList(this, separator);
Iterable map(f(ElementInstance element)) =>
- IterableMixinWorkaround.map(this, f);
+ IterableMixinWorkaround.mapList(this, f);
List mappedBy(f(ElementInstance element)) =>
IterableMixinWorkaround.mappedByList(this, f);

Powered by Google App Engine
This is Rietveld 408576698