Index: core/dom/Document.idl |
diff --git a/core/dom/Document.idl b/core/dom/Document.idl |
index 3e1af34765153ba73181c050e3ba8122a07fc93b..0fc91ba9df1a5d9367b7bc9baa6d17cf3a4d989b 100644 |
--- a/core/dom/Document.idl |
+++ b/core/dom/Document.idl |
@@ -29,7 +29,7 @@ callback CustomElementConstructor = Element (); |
readonly attribute DOMImplementation implementation; |
readonly attribute Element documentElement; |
- [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElement([TreatNullAs=NullString,Default=Undefined] optional DOMString tagName); |
+ [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElement([TreatNullAs=NullString,Default=Undefined] optional DOMString tagName); |
DocumentFragment createDocumentFragment(); |
[PerWorldBindings] Text createTextNode([Default=Undefined] optional DOMString data); |
Comment createComment([Default=Undefined] optional DOMString data); |
@@ -41,9 +41,9 @@ callback CustomElementConstructor = Element (); |
// Introduced in DOM Level 2: |
- [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Node importNode([Default=Undefined] optional Node importedNode, |
+ [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Node importNode([Default=Undefined] optional Node importedNode, |
optional boolean deep); |
- [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
+ [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
[TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); |
[RaisesException] Attr createAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
[TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); |
@@ -59,7 +59,7 @@ callback CustomElementConstructor = Element (); |
[TreatReturnedNullStringAs=Null, TreatNullAs=NullString, SetterRaisesException] attribute DOMString xmlVersion; |
[SetterRaisesException] attribute boolean xmlStandalone; |
- [RaisesException] Node adoptNode([Default=Undefined] optional Node source); |
+ [RaisesException, CustomElementCallbacks=Enable] Node adoptNode([Default=Undefined] optional Node source); |
[TreatReturnedNullStringAs=Null] readonly attribute DOMString documentURI; |
@@ -98,7 +98,7 @@ callback CustomElementConstructor = Element (); |
[Default=Undefined] optional DOMString pseudoElement); |
// Common extensions |
- [DeliverCustomElementCallbacks] |
+ [CustomElementCallbacks=Enable] |
boolean execCommand([Default=Undefined] optional DOMString command, |
[Default=Undefined] optional boolean userInterface, |
[TreatNullAs=NullString, TreatUndefinedAs=NullString,Default=Undefined] optional DOMString value); |
@@ -111,14 +111,14 @@ callback CustomElementConstructor = Element (); |
// Moved down from HTMLDocument |
- [TreatNullAs=NullString] attribute DOMString title; |
+ [TreatNullAs=NullString, CustomElementCallbacks=Enable] attribute DOMString title; |
readonly attribute DOMString referrer; |
[TreatNullAs=NullString, SetterRaisesException] attribute DOMString domain; |
readonly attribute DOMString URL; |
[TreatNullAs=NullString, GetterRaisesException, SetterRaisesException] attribute DOMString cookie; |
- [SetterRaisesException] attribute HTMLElement body; |
+ [SetterRaisesException, CustomElementCallbacks=Enable] attribute HTMLElement body; |
readonly attribute HTMLHeadElement head; |
readonly attribute HTMLCollection images; |
@@ -171,82 +171,82 @@ callback CustomElementConstructor = Element (); |
[EnabledAtRuntime=fontLoadEvents] readonly attribute FontLoader fontloader; |
// Event handler DOM attributes |
- [NotEnumerable] attribute EventListener onabort; |
- [NotEnumerable] attribute EventListener onblur; |
- [NotEnumerable] attribute EventListener onchange; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onclick; |
- [NotEnumerable] attribute EventListener oncontextmenu; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondblclick; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondrag; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragend; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragenter; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragleave; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragover; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondragstart; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener ondrop; |
- [NotEnumerable] attribute EventListener onerror; |
- [NotEnumerable] attribute EventListener onfocus; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener oninput; |
- [NotEnumerable] attribute EventListener oninvalid; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onkeydown; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onkeypress; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onkeyup; |
- [NotEnumerable] attribute EventListener onload; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmousedown; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseenter; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseleave; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmousemove; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseout; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseover; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmouseup; |
- [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventListener onmousewheel; |
- [NotEnumerable] attribute EventListener onreadystatechange; |
- [NotEnumerable] attribute EventListener onscroll; |
- [NotEnumerable] attribute EventListener onselect; |
- [NotEnumerable] attribute EventListener onsubmit; |
- |
- // attribute [NotEnumerable] EventListener oncanplay; |
- // attribute [NotEnumerable] EventListener oncanplaythrough; |
- // attribute [NotEnumerable] EventListener ondurationchange; |
- // attribute [NotEnumerable] EventListener onemptied; |
- // attribute [NotEnumerable] EventListener onended; |
- // attribute [NotEnumerable] EventListener onloadeddata; |
- // attribute [NotEnumerable] EventListener onloadedmetadata; |
- // attribute [NotEnumerable] EventListener onloadstart; |
- // attribute [NotEnumerable] EventListener onpause; |
- // attribute [NotEnumerable] EventListener onplay; |
- // attribute [NotEnumerable] EventListener onplaying; |
- // attribute [NotEnumerable] EventListener onprogress; |
- // attribute [NotEnumerable] EventListener onratechange; |
- // attribute [NotEnumerable] EventListener onseeked; |
- // attribute [NotEnumerable] EventListener onseeking; |
- // attribute [NotEnumerable] EventListener onshow; |
- // attribute [NotEnumerable] EventListener onstalled; |
- // attribute [NotEnumerable] EventListener onsuspend; |
- // attribute [NotEnumerable] EventListener ontimeupdate; |
- // attribute [NotEnumerable] EventListener onvolumechange; |
- // attribute [NotEnumerable] EventListener onwaiting; |
+ [NotEnumerable] attribute EventHandler onabort; |
+ [NotEnumerable] attribute EventHandler onblur; |
+ [NotEnumerable] attribute EventHandler onchange; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onclick; |
+ [NotEnumerable] attribute EventHandler oncontextmenu; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondblclick; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondrag; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragend; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragenter; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragleave; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragover; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondragstart; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler ondrop; |
+ [NotEnumerable] attribute EventHandler onerror; |
+ [NotEnumerable] attribute EventHandler onfocus; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler oninput; |
+ [NotEnumerable] attribute EventHandler oninvalid; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onkeydown; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onkeypress; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onkeyup; |
+ [NotEnumerable] attribute EventHandler onload; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmousedown; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseenter; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseleave; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmousemove; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseout; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseover; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmouseup; |
+ [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attribute EventHandler onmousewheel; |
+ [NotEnumerable] attribute EventHandler onreadystatechange; |
+ [NotEnumerable] attribute EventHandler onscroll; |
+ [NotEnumerable] attribute EventHandler onselect; |
+ [NotEnumerable] attribute EventHandler onsubmit; |
+ |
+ // attribute [NotEnumerable] EventHandler oncanplay; |
+ // attribute [NotEnumerable] EventHandler oncanplaythrough; |
+ // attribute [NotEnumerable] EventHandler ondurationchange; |
+ // attribute [NotEnumerable] EventHandler onemptied; |
+ // attribute [NotEnumerable] EventHandler onended; |
+ // attribute [NotEnumerable] EventHandler onloadeddata; |
+ // attribute [NotEnumerable] EventHandler onloadedmetadata; |
+ // attribute [NotEnumerable] EventHandler onloadstart; |
+ // attribute [NotEnumerable] EventHandler onpause; |
+ // attribute [NotEnumerable] EventHandler onplay; |
+ // attribute [NotEnumerable] EventHandler onplaying; |
+ // attribute [NotEnumerable] EventHandler onprogress; |
+ // attribute [NotEnumerable] EventHandler onratechange; |
+ // attribute [NotEnumerable] EventHandler onseeked; |
+ // attribute [NotEnumerable] EventHandler onseeking; |
+ // attribute [NotEnumerable] EventHandler onshow; |
+ // attribute [NotEnumerable] EventHandler onstalled; |
+ // attribute [NotEnumerable] EventHandler onsuspend; |
+ // attribute [NotEnumerable] EventHandler ontimeupdate; |
+ // attribute [NotEnumerable] EventHandler onvolumechange; |
+ // attribute [NotEnumerable] EventHandler onwaiting; |
// WebKit extensions |
- [NotEnumerable] attribute EventListener onbeforecut; |
- [NotEnumerable] attribute EventListener oncut; |
- [NotEnumerable] attribute EventListener onbeforecopy; |
- [NotEnumerable] attribute EventListener oncopy; |
- [NotEnumerable] attribute EventListener onbeforepaste; |
- [NotEnumerable] attribute EventListener onpaste; |
- [NotEnumerable] attribute EventListener onreset; |
- [NotEnumerable] attribute EventListener onsearch; |
- [NotEnumerable] attribute EventListener onselectstart; |
- [NotEnumerable] attribute EventListener onselectionchange; |
- [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchstart; |
- [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchmove; |
- [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchend; |
- [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchcancel; |
- [NotEnumerable] attribute EventListener onwebkitfullscreenchange; |
- [NotEnumerable] attribute EventListener onwebkitfullscreenerror; |
- [NotEnumerable] attribute EventListener onwebkitpointerlockchange; |
- [NotEnumerable] attribute EventListener onwebkitpointerlockerror; |
- [NotEnumerable, EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] attribute EventListener onsecuritypolicyviolation; |
+ [NotEnumerable] attribute EventHandler onbeforecut; |
+ [NotEnumerable] attribute EventHandler oncut; |
+ [NotEnumerable] attribute EventHandler onbeforecopy; |
+ [NotEnumerable] attribute EventHandler oncopy; |
+ [NotEnumerable] attribute EventHandler onbeforepaste; |
+ [NotEnumerable] attribute EventHandler onpaste; |
+ [NotEnumerable] attribute EventHandler onreset; |
+ [NotEnumerable] attribute EventHandler onsearch; |
+ [NotEnumerable] attribute EventHandler onselectstart; |
+ [NotEnumerable] attribute EventHandler onselectionchange; |
+ [NotEnumerable,EnabledAtRuntime=touch] attribute EventHandler ontouchstart; |
+ [NotEnumerable,EnabledAtRuntime=touch] attribute EventHandler ontouchmove; |
+ [NotEnumerable,EnabledAtRuntime=touch] attribute EventHandler ontouchend; |
+ [NotEnumerable,EnabledAtRuntime=touch] attribute EventHandler ontouchcancel; |
+ [NotEnumerable] attribute EventHandler onwebkitfullscreenchange; |
+ [NotEnumerable] attribute EventHandler onwebkitfullscreenerror; |
+ [NotEnumerable] attribute EventHandler onwebkitpointerlockchange; |
+ [NotEnumerable] attribute EventHandler onwebkitpointerlockerror; |
+ [NotEnumerable, EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] attribute EventHandler onsecuritypolicyviolation; |
[EnabledAtRuntime=touch] Touch createTouch([Default=Undefined] optional Window window, |
[Default=Undefined] optional EventTarget target, |
@@ -261,10 +261,10 @@ callback CustomElementConstructor = Element (); |
[Default=Undefined] optional float webkitForce); |
[EnabledAtRuntime=touch, Custom, RaisesException] TouchList createTouchList(); |
- [DeprecateAs=PrefixedDocumentRegister, EnabledAtRuntime=customDOMElements, ImplementedAs=registerElement, CallWith=ScriptState, DeliverCustomElementCallbacks, RaisesException] CustomElementConstructor webkitRegister(DOMString name, optional Dictionary options); |
- [EnabledAtRuntime=customDOMElements, ImplementedAs=registerElement, CallWith=ScriptState, DeliverCustomElementCallbacks, RaisesException] CustomElementConstructor register(DOMString name, optional Dictionary options); |
- [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElement(DOMString localName, [TreatNullAs=NullString] DOMString typeExtension); |
- [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName, |
+ [DeprecateAs=PrefixedDocumentRegister, EnabledAtRuntime=customDOMElements, ImplementedAs=registerElement, CallWith=ScriptState, CustomElementCallbacks=Enable, RaisesException] CustomElementConstructor webkitRegister(DOMString name, optional Dictionary options); |
+ [EnabledAtRuntime=customDOMElements, ImplementedAs=registerElement, CallWith=ScriptState, CustomElementCallbacks=Enable, RaisesException] CustomElementConstructor register(DOMString name, optional Dictionary options); |
+ [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElement(DOMString localName, [TreatNullAs=NullString] DOMString typeExtension); |
+ [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName, |
[TreatNullAs=NullString] DOMString typeExtension); |
// Page visibility API. |