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

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

Issue 2705213003: Refined types for most HtmlElement factory constructors (Closed)
Patch Set: Created 3 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') | tools/dom/scripts/css_code_generator.py » ('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 72bce94523a277775d782b5b1e818d3222b048ba..4a98eec6aa20aaa9d6a198867ba3dfabc2f5c61d 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -6126,14 +6126,14 @@ class SvgElement extends Element implements GlobalEventHandlers {
}
String get outerHtml {
- final container = new Element.tag("div");
+ final container = new DivElement();
final SvgElement cloned = this.clone(true);
container.children.add(cloned);
return container.innerHtml;
}
String get innerHtml {
- final container = new Element.tag("div");
+ final container = new DivElement();
final SvgElement cloned = this.clone(true);
container.children.addAll(cloned.children);
return container.innerHtml;
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tools/dom/scripts/css_code_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698