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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 23576013: Fixing Element.shadowRoot to work with webkitShadowRoot (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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:
Download patch
« no previous file with comments | « no previous file | tests/html/shadowroot_test.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 9d221b16bd2d08ad8a1280257e08d23a4fdc71af..19dff339315e401651951d3285b3dfd150f1a426 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -9388,6 +9388,12 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
this, this, this);
}
+ @DomName('Element.shadowRoot')
+ @SupportedBrowser(SupportedBrowser.CHROME, '25')
+ @Experimental()
+ ShadowRoot get shadowRoot =>
+ JS('ShadowRoot', '#.shadowRoot || #.webkitShadowRoot', this, this);
+
/**
* Gets the template this node refers to.
@@ -10126,12 +10132,6 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
@DocsEditable()
final int scrollWidth;
- @DomName('Element.shadowRoot')
- @DocsEditable()
- // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#api-shadow-aware-create-shadow-root
- @Experimental()
- final ShadowRoot shadowRoot;
-
@DomName('Element.style')
@DocsEditable()
final CssStyleDeclaration style;
« no previous file with comments | « no previous file | tests/html/shadowroot_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698