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

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

Issue 21085008: Fixing some SVG collections not working on Dartium (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | « no previous file | tests/html/svgelement_test.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 0e76bccb29ba7dbff8602313d239e11a0d18e7ca..35fa28a6a28378989ec98ab9316740ec84ac2c2d 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -3435,9 +3435,8 @@ class LengthList extends NativeFieldWrapperClass1 with ListMixin<Length>, Immuta
Length operator[](int index) {
if (index < 0 || index >= length)
throw new RangeError.range(index, 0, length);
- return _nativeIndexedGetter(index);
+ return this.getItem(index)(index);
}
- Length _nativeIndexedGetter(int index) native "SVGLengthList_item_Callback";
void operator[]=(int index, Length value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
@@ -4025,9 +4024,8 @@ class NumberList extends NativeFieldWrapperClass1 with ListMixin<Number>, Immuta
Number operator[](int index) {
if (index < 0 || index >= length)
throw new RangeError.range(index, 0, length);
- return _nativeIndexedGetter(index);
+ return this.getItem(index)(index);
}
- Number _nativeIndexedGetter(int index) native "SVGNumberList_item_Callback";
void operator[]=(int index, Number value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
@@ -5096,9 +5094,8 @@ class PathSegList extends NativeFieldWrapperClass1 with ListMixin<PathSeg>, Immu
PathSeg operator[](int index) {
if (index < 0 || index >= length)
throw new RangeError.range(index, 0, length);
- return _nativeIndexedGetter(index);
+ return this.getItem(index)(index);
}
- PathSeg _nativeIndexedGetter(int index) native "SVGPathSegList_item_Callback";
void operator[]=(int index, PathSeg value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
@@ -6005,9 +6002,8 @@ class StringList extends NativeFieldWrapperClass1 with ListMixin<String>, Immuta
String operator[](int index) {
if (index < 0 || index >= length)
throw new RangeError.range(index, 0, length);
- return _nativeIndexedGetter(index);
+ return this.getItem(index)(index);
}
- String _nativeIndexedGetter(int index) native "SVGStringList_item_Callback";
void operator[]=(int index, String value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
@@ -7143,9 +7139,8 @@ class TransformList extends NativeFieldWrapperClass1 with ListMixin<Transform>,
Transform operator[](int index) {
if (index < 0 || index >= length)
throw new RangeError.range(index, 0, length);
- return _nativeIndexedGetter(index);
+ return this.getItem(index)(index);
}
- Transform _nativeIndexedGetter(int index) native "SVGTransformList_item_Callback";
void operator[]=(int index, Transform value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
« no previous file with comments | « no previous file | tests/html/svgelement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698