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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

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, 2 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 | « pkg/polymer/lib/src/instance.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 9ceaa5bfb8e4c12321459bca2bf97a6d1cecae88..dec8d31cfa4a78be2888e0b4a785225a6a517ef3 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -23608,7 +23608,7 @@ class TemplateElement extends HtmlElement native "HTMLTemplateElement" {
}
if (!isNative) {
- var doc = _getTemplateContentsOwner(templateElement.document);
+ var doc = _getTemplateContentsOwner(templateElement.ownerDocument);
templateElement._templateContent = doc.createDocumentFragment();
}
@@ -23657,7 +23657,7 @@ class TemplateElement extends HtmlElement native "HTMLTemplateElement" {
// + <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 | « pkg/polymer/lib/src/instance.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698