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

Unified Diff: client/html/src/SVGElementWrappingImplementation.dart

Issue 9127005: Properly type the clone method for Element and a few of its subclasses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « client/html/src/SVGElement.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/SVGElementWrappingImplementation.dart
diff --git a/client/html/src/SVGElementWrappingImplementation.dart b/client/html/src/SVGElementWrappingImplementation.dart
index 9187d7905360a4f7c1cc66838732ef4a17c1d489..090a723ba5082d396a84c8994c7ee5da4510a0fd 100644
--- a/client/html/src/SVGElementWrappingImplementation.dart
+++ b/client/html/src/SVGElementWrappingImplementation.dart
@@ -59,7 +59,7 @@ class SVGElementWrappingImplementation extends ElementWrappingImplementation imp
String get innerHTML() {
final container = new Element.tag("div");
- container.elements.addAll(this.clone(true).dynamic.elements);
+ container.elements.addAll(this.clone(true).elements);
return container.innerHTML;
}
@@ -70,4 +70,6 @@ class SVGElementWrappingImplementation extends ElementWrappingImplementation imp
container.innerHTML = '<svg version="1.1">$svg</svg>';
this.elements = container.elements.first.elements;
}
+
+ SVGElement clone(bool deep) => super.clone(deep);
}
« no previous file with comments | « client/html/src/SVGElement.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698