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

Unified Diff: core/dom/shadow/ShadowRoot.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/dom/XMLDocument.idl ('k') | core/dom/shadow/ShadowRootInit.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/dom/shadow/ShadowRoot.idl
diff --git a/core/dom/shadow/ShadowRoot.idl b/core/dom/shadow/ShadowRoot.idl
index f884756a4f942ac4d426364c6fa72ec529ff9334..cfb06f2daa039241bc40baa68b6c3314b857edae 100644
--- a/core/dom/shadow/ShadowRoot.idl
+++ b/core/dom/shadow/ShadowRoot.idl
@@ -24,24 +24,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-interface ShadowRoot : DocumentFragment {
- readonly attribute Element activeElement;
-
- [ImplementedAs=olderShadowRootForBindings] readonly attribute ShadowRoot olderShadowRoot;
+// https://w3c.github.io/webcomponents/spec/shadow/#the-shadowroot-interface
+interface ShadowRoot : DocumentFragment {
+ Selection? getSelection();
+ // TODO(philipj): The x and y arguments should be of type double.
+ Element? elementFromPoint(long x, long y);
+ sequence<Element> elementsFromPoint(long x, long y);
+ readonly attribute Element? activeElement;
+ readonly attribute Element host;
+ [ImplementedAs=olderShadowRootForBindings] readonly attribute ShadowRoot? olderShadowRoot;
[TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] attribute DOMString innerHTML;
+ readonly attribute StyleSheetList styleSheets;
+ [RuntimeEnabled=ShadowRootDelegatesFocus] readonly attribute boolean delegatesFocus;
+ // TODO(philipj): The spec does not override cloneNode() on the ShadowRoot
+ // interface. Here, it's used to implement "Invoking the cloneNode() method
+ // on a ShadowRoot instance must always throw a DATA_CLONE_ERR exception" as
+ // Node.cloneNode() does not have [RaisesException].
[RaisesException] Node cloneNode([Default=Undefined] optional boolean deep);
- Selection getSelection();
- Element getElementById([Default=Undefined] optional DOMString elementId);
- HTMLCollection getElementsByClassName([Default=Undefined] optional DOMString className);
- HTMLCollection getElementsByTagName([Default=Undefined] optional DOMString tagName);
- HTMLCollection getElementsByTagNameNS([Default=Undefined] optional DOMString? namespaceURI,
- [Default=Undefined] optional DOMString localName);
-
- Element elementFromPoint([Default=Undefined] optional long x,
- [Default=Undefined] optional long y);
-
- readonly attribute StyleSheetList styleSheets;
- readonly attribute Element host;
};
« no previous file with comments | « core/dom/XMLDocument.idl ('k') | core/dom/shadow/ShadowRootInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698