Index: third_party/WebKit/Source/core/dom/Element.idl |
diff --git a/third_party/WebKit/Source/core/dom/Element.idl b/third_party/WebKit/Source/core/dom/Element.idl |
index e43db09bbd518d01d25377deb9a0d2ece0af346a..7ba83bfb5791516edf17102dbd3014c007c6486d 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.idl |
+++ b/third_party/WebKit/Source/core/dom/Element.idl |
@@ -39,7 +39,7 @@ interface Element : Node { |
[RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long pointerId); |
[RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (long pointerId); |
- [MeasureAs=HasAttributes] boolean hasAttributes(); |
+ boolean hasAttributes(); |
[SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes; |
DOMString? getAttribute(DOMString name); |
DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); |
@@ -50,24 +50,28 @@ interface Element : Node { |
boolean hasAttribute(DOMString name); |
boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); |
- [MeasureAs=ElementGetAttributeNode] Attr? getAttributeNode(DOMString name); |
- [MeasureAs=ElementGetAttributeNodeNS] Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); |
- [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr? setAttributeNode(Attr attr); |
- [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeNS] Attr? setAttributeNodeNS(Attr attr); |
- [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNode] Attr removeAttributeNode(Attr attr); |
+ Attr? getAttributeNode(DOMString name); |
+ Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); |
+ [RaisesException, CustomElementCallbacks] Attr? setAttributeNode(Attr attr); |
+ [RaisesException, CustomElementCallbacks] Attr? setAttributeNodeNS(Attr attr); |
+ [RaisesException, CustomElementCallbacks] Attr removeAttributeNode(Attr attr); |
[RaisesException] Element? closest(DOMString selectors); |
[RaisesException] boolean matches(DOMString selectors); |
+ [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSelector] boolean webkitMatchesSelector(DOMString selectors); // historical alias of .matches |
HTMLCollection getElementsByTagName(DOMString localName); |
HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString localName); |
HTMLCollection getElementsByClassName(DOMString classNames); |
+ [RaisesException, CustomElementCallbacks] Element? insertAdjacentElement(DOMString where, Element element); |
+ [RaisesException] void insertAdjacentText(DOMString where, DOMString data); |
+ |
// DOM Parsing and Serialization |
// https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-the-element-interface |
[TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] attribute DOMString innerHTML; |
[TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] attribute DOMString outerHTML; |
- [CustomElementCallbacks, RaisesException, MeasureAs=InsertAdjacentHTML] void insertAdjacentHTML(DOMString position, DOMString text); |
+ [CustomElementCallbacks, RaisesException] void insertAdjacentHTML(DOMString position, DOMString text); |
// Shadow DOM |
// http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-interface |
@@ -109,12 +113,8 @@ interface Element : Node { |
[RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
[RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
- // Non-standard APIs |
- // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 |
- [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] Element insertAdjacentElement(DOMString where, Element element); |
- [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMString where, DOMString text); |
+ // Non-standard API |
[MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); |
- [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSelector] boolean webkitMatchesSelector(DOMString selectors); |
// Experimental accessibility API |
[RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? computedRole; |