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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 34613005: Revert "Converting Polymer and TemplateElement to use deprecated Node.document" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 6615ea2212b7b0045a2339b61838f994c7a47169..4e7a0f2f19fefd49029f32517c7016b3e668476c 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -25440,7 +25440,7 @@ class TemplateElement extends HtmlElement {
}
if (!isNative) {
- var doc = _getTemplateContentsOwner(templateElement.document);
+ var doc = _getTemplateContentsOwner(templateElement.ownerDocument);
templateElement._templateContent = doc.createDocumentFragment();
}
@@ -25489,7 +25489,7 @@ class TemplateElement extends HtmlElement {
// + <td>Bar</td>
//
static Element _extractTemplateFromAttributeTemplate(Element el) {
- var template = el.document.createElement('template');
+ var template = el.ownerDocument.createElement('template');
el.parentNode.insertBefore(template, el);
for (var name in el.attributes.keys.toList()) {
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/templates/html/impl/impl_HTMLTemplateElement.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698