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; |
}; |