| Index: core/dom/Element.idl
|
| diff --git a/core/dom/Element.idl b/core/dom/Element.idl
|
| index ac5003883eed1ac5b3776bcf2519d7dbb0c60dc5..a715874c2da6fde2745a4184633f4e5b3ca46e37 100644
|
| --- a/core/dom/Element.idl
|
| +++ b/core/dom/Element.idl
|
| @@ -32,7 +32,7 @@
|
| [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined] optional DOMString name); // Removed from DOM4.
|
| [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr newAttr); // Removed from DOM4.
|
| [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNode] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr oldAttr); // Removed from DOM4.
|
| - [PerWorldBindings] NodeList getElementsByTagName(DOMString name);
|
| + [PerWorldBindings] HTMLCollection getElementsByTagName(DOMString name);
|
|
|
| [PerWorldBindings] readonly attribute NamedNodeMap attributes;
|
| [MeasureAs=HasAttributes] boolean hasAttributes();
|
| @@ -42,34 +42,40 @@
|
| DOMString getAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName);
|
| [RaisesException, CustomElementCallbacks] void setAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName, DOMString value);
|
| [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName);
|
| - NodeList getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName);
|
| + HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName);
|
| [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
|
| [Default=Undefined] optional DOMString localName); // Removed from DOM4.
|
| - [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeNS] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); // Removed from DOM4.
|
| boolean hasAttribute(DOMString name);
|
| boolean hasAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName);
|
|
|
| [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
|
|
|
| // DOM4
|
| - [Reflect] attribute DOMString id;
|
| + [Reflect, PerWorldBindings] attribute DOMString id;
|
| [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMString namespaceURI;
|
| [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, RaisesException=Setter] attribute DOMString prefix;
|
| [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMString localName;
|
|
|
| + [RaisesException] boolean matches(DOMString selectors);
|
| +
|
| // Common extensions
|
|
|
| [PerWorldBindings] readonly attribute long offsetLeft;
|
| [PerWorldBindings] readonly attribute long offsetTop;
|
| [PerWorldBindings] readonly attribute long offsetWidth;
|
| [PerWorldBindings] readonly attribute long offsetHeight;
|
| - [ImplementedAs=bindingsOffsetParent, PerWorldBindings] readonly attribute Element offsetParent;
|
| + [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element offsetParent;
|
| [PerWorldBindings] readonly attribute long clientLeft;
|
| [PerWorldBindings] readonly attribute long clientTop;
|
| [PerWorldBindings] readonly attribute long clientWidth;
|
| [PerWorldBindings] readonly attribute long clientHeight;
|
| - [PerWorldBindings] attribute long scrollLeft;
|
| - [PerWorldBindings] attribute long scrollTop;
|
| +
|
| + // FIXME: should be:
|
| + // [PerWorldBindings] attribute (Dictionary or long) scrollLeft;
|
| + // [PerWorldBindings] attribute (Dictionary or long) scrollTop;
|
| + // http://crbug.com/240176
|
| + [PerWorldBindings, Custom=Setter] attribute long scrollLeft;
|
| + [PerWorldBindings, Custom=Setter] attribute long scrollTop;
|
| [PerWorldBindings] readonly attribute long scrollWidth;
|
| [PerWorldBindings] readonly attribute long scrollHeight;
|
|
|
| @@ -84,9 +90,12 @@
|
| void scrollByPages([Default=Undefined] optional long pages);
|
|
|
| // HTML 5
|
| - NodeList getElementsByClassName(DOMString classNames);
|
| + HTMLCollection getElementsByClassName(DOMString classNames);
|
| [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString innerHTML;
|
| [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] attribute DOMString outerHTML;
|
| +
|
| + [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] Element insertAdjacentElement(DOMString where, Element element);
|
| + [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMString where, DOMString text);
|
| [CustomElementCallbacks, RaisesException] void insertAdjacentHTML(DOMString where, DOMString html);
|
|
|
| [Reflect=class, PerWorldBindings] attribute DOMString className;
|
| @@ -99,16 +108,14 @@
|
| [RaisesException] NodeList querySelectorAll(DOMString selectors);
|
|
|
| // WebKit extension
|
| - [RaisesException, MeasureAs=ElementPrefixedMatchesSelector] boolean webkitMatchesSelector([Default=Undefined] optional DOMString selectors);
|
| + [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSelector] boolean webkitMatchesSelector(DOMString selectors);
|
|
|
| // Shadow DOM API
|
| - [RuntimeEnabled=ShadowDOM, Reflect, TreatNullAs=NullString, PerWorldBindings] attribute DOMString pseudo;
|
| [RuntimeEnabled=ShadowDOM, RaisesException] ShadowRoot createShadowRoot();
|
| [RuntimeEnabled=ShadowDOM, PerWorldBindings] readonly attribute ShadowRoot shadowRoot;
|
| [RuntimeEnabled=ShadowDOM, PerWorldBindings] NodeList getDestinationInsertionPoints();
|
|
|
| // To-be-deprecated prefixed Shadow DOM API
|
| - [Reflect=pseudo, TreatNullAs=NullString, ImplementedAs=pseudo, PerWorldBindings, MeasureAs=ShadowDOMPrefixedPseudo] attribute DOMString webkitPseudo;
|
| [ImplementedAs=createShadowRoot, RaisesException, MeasureAs=ShadowDOMPrefixedCreateShadowRoot] ShadowRoot webkitCreateShadowRoot();
|
| [ImplementedAs=shadowRoot, PerWorldBindings, MeasureAs=ShadowDOMPrefixedShadowRoot] readonly attribute ShadowRoot webkitShadowRoot;
|
|
|
| @@ -125,10 +132,6 @@
|
|
|
| void webkitRequestPointerLock();
|
|
|
| - // CSS Regions API
|
| - [RuntimeEnabled=CSSRegions, PerWorldBindings] readonly attribute DOMString webkitRegionOverset;
|
| - [RuntimeEnabled=CSSRegions] sequence<Range> webkitGetRegionFlowRanges();
|
| -
|
| // Event handler attributes
|
| attribute EventHandler onbeforecopy;
|
| attribute EventHandler onbeforecut;
|
|
|