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

Unified Diff: client/html/release/htmlimpl.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:
Download patch
« no previous file with comments | « client/html/release/html.dart ('k') | client/html/src/DocumentFragment.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/release/htmlimpl.dart
diff --git a/client/html/release/htmlimpl.dart b/client/html/release/htmlimpl.dart
index 7a80a81496a614d6c735665835152b8e9eeb2c8c..406136874ad52409f0194c6584a80fb23919d2aa 100644
--- a/client/html/release/htmlimpl.dart
+++ b/client/html/release/htmlimpl.dart
@@ -22050,6 +22050,8 @@ class DocumentFragmentWrappingImplementation extends NodeWrappingImplementation
throw new UnsupportedOperationException(
"WebKit drop zone can't be set for document fragments.");
}
+
+ DocumentFragment clone(bool deep) => super.clone(deep);
}
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -23026,6 +23028,8 @@ class ElementWrappingImplementation extends NodeWrappingImplementation implement
}
return _on;
}
+
+ Element clone(bool deep) => super.clone(deep);
}
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24071,7 +24075,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;
}
@@ -24082,6 +24086,8 @@ 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);
}
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « client/html/release/html.dart ('k') | client/html/src/DocumentFragment.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698