Chromium Code Reviews| 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..7b8486e4c769647278916b7b0deb76c08fab6227 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] boolean webkitMatchesSelector(DOMString selectors); // historical alias of .matches |
|
tkent
2016/03/16 23:57:45
Won't we discuss removing webkitMatchesSelector fr
philipj_slow
2016/03/17 10:41:42
Usage is now about 10%, and has for far roughly ha
|
| 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; |