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

Unified Diff: lib/html/templates/html/dart2js/factoryprovider_ShadowRoot.darttemplate

Issue 10987080: Adding 'supported' check for shadow root. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating review feedback. Created 8 years, 3 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 | « lib/html/dartium/html_dartium.dart ('k') | lib/html/templates/html/impl/impl_ShadowRoot.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/html/dart2js/factoryprovider_ShadowRoot.darttemplate
diff --git a/lib/html/templates/html/dart2js/factoryprovider_ShadowRoot.darttemplate b/lib/html/templates/html/dart2js/factoryprovider_ShadowRoot.darttemplate
index c3ba1b9a03334a7b82d4b693dadeabdacf889e6b..c1f081edebd73eb13427a3cabe5ef7f3a0804ddb 100644
--- a/lib/html/templates/html/dart2js/factoryprovider_ShadowRoot.darttemplate
+++ b/lib/html/templates/html/dart2js/factoryprovider_ShadowRoot.darttemplate
@@ -4,6 +4,6 @@
class $FACTORYPROVIDER {
static ShadowRoot createShadowRoot(Element host) native '''
- return new WebKitShadowRoot(host);
+ return new (window.ShadowRoot || window.WebKitShadowRoot)(host);
''';
}
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/templates/html/impl/impl_ShadowRoot.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698