Remove LegacyDefaultOptionalArguments flag from DOM-related files except Document.idl
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Aug 2011 00:03:14 +0000 (00:03 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Aug 2011 00:03:14 +0000 (00:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=65715

Patch by Mark Pilgrim <pilgrim@chromium.org> on 2011-08-04
Reviewed by Adam Barth.

No new tests, all existing tests pass.

* dom/CharacterData.idl:
* dom/ClientRectList.idl:
* dom/Clipboard.idl:
* dom/DOMImplementation.idl:
* dom/DOMStringList.idl:
* dom/DataTransferItem.idl:
* dom/DataTransferItems.idl:
* dom/DocumentFragment.idl:
* dom/Element.idl:
* dom/EventListener.idl:
* dom/EventTarget.idl:
* dom/MediaStream.idl:
* dom/MediaStreamList.idl:
* dom/MediaStreamTrackList.idl:
* dom/MessagePort.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/NodeFilter.idl:
* dom/NodeList.idl:
* dom/Range.idl:
* dom/RequestAnimationFrameCallback.idl:
* dom/StringCallback.idl:
* dom/Text.idl:
* dom/TouchList.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@92433 268f45cc-cd09-0410-ab3c-d52691b4dbfc

25 files changed:
Source/WebCore/ChangeLog
Source/WebCore/dom/CharacterData.idl
Source/WebCore/dom/ClientRectList.idl
Source/WebCore/dom/Clipboard.idl
Source/WebCore/dom/DOMImplementation.idl
Source/WebCore/dom/DOMStringList.idl
Source/WebCore/dom/DataTransferItem.idl
Source/WebCore/dom/DataTransferItems.idl
Source/WebCore/dom/DocumentFragment.idl
Source/WebCore/dom/Element.idl
Source/WebCore/dom/EventListener.idl
Source/WebCore/dom/EventTarget.idl
Source/WebCore/dom/MediaStream.idl
Source/WebCore/dom/MediaStreamList.idl
Source/WebCore/dom/MediaStreamTrackList.idl
Source/WebCore/dom/MessagePort.idl
Source/WebCore/dom/NamedNodeMap.idl
Source/WebCore/dom/Node.idl
Source/WebCore/dom/NodeFilter.idl
Source/WebCore/dom/NodeList.idl
Source/WebCore/dom/Range.idl
Source/WebCore/dom/RequestAnimationFrameCallback.idl
Source/WebCore/dom/StringCallback.idl
Source/WebCore/dom/Text.idl
Source/WebCore/dom/TouchList.idl

index 265a3a87822ba6e230c0a2603c44497cfeaa8b5a..96e4ae22806a51c5b91cf556670e0d200d7f691b 100644 (file)
@@ -1,3 +1,37 @@
+2011-08-04  Mark Pilgrim  <pilgrim@chromium.org>
+
+        Remove LegacyDefaultOptionalArguments flag from DOM-related files except Document.idl
+        https://bugs.webkit.org/show_bug.cgi?id=65715
+
+        Reviewed by Adam Barth.
+
+        No new tests, all existing tests pass.
+
+        * dom/CharacterData.idl:
+        * dom/ClientRectList.idl:
+        * dom/Clipboard.idl:
+        * dom/DOMImplementation.idl:
+        * dom/DOMStringList.idl:
+        * dom/DataTransferItem.idl:
+        * dom/DataTransferItems.idl:
+        * dom/DocumentFragment.idl:
+        * dom/Element.idl:
+        * dom/EventListener.idl:
+        * dom/EventTarget.idl:
+        * dom/MediaStream.idl:
+        * dom/MediaStreamList.idl:
+        * dom/MediaStreamTrackList.idl:
+        * dom/MessagePort.idl:
+        * dom/NamedNodeMap.idl:
+        * dom/Node.idl:
+        * dom/NodeFilter.idl:
+        * dom/NodeList.idl:
+        * dom/Range.idl:
+        * dom/RequestAnimationFrameCallback.idl:
+        * dom/StringCallback.idl:
+        * dom/Text.idl:
+        * dom/TouchList.idl:
+
 2011-08-04  Mark Rowe  <mrowe@apple.com>
 
         Future-proof Xcode configuration settings.
index 0038fde9b2f74ebf2ec933c629650850ca3075c9..ca44741c5304f068664dd0bc7df68b84290db03e 100644 (file)
 
 module core {
 
-    interface [
-        LegacyDefaultOptionalArguments,
-    ] CharacterData : Node {
+    interface CharacterData : Node {
 
         attribute [ConvertNullToNullString] DOMString data
             setter raises(DOMException);
 
         readonly attribute unsigned long length;
         
-        [ConvertNullStringTo=Null, OldStyleObjC] DOMString substringData(in [IsIndex] unsigned long offset, 
-                                                           in [IsIndex] unsigned long length)
+        [ConvertNullStringTo=Null, OldStyleObjC] DOMString substringData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset, 
+                                                                         in [IsIndex,Optional=CallWithDefaultValue] unsigned long length)
             raises(DOMException);
 
-        void appendData(in DOMString data)
+        void appendData(in [Optional=CallWithDefaultValue] DOMString data)
             raises(DOMException);
 
-        [OldStyleObjC] void insertData(in [IsIndex] unsigned long offset, 
-                        in DOMString data)
+        [OldStyleObjC] void insertData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset, 
+                                       in [Optional=CallWithDefaultValue] DOMString data)
             raises(DOMException);
 
-        [OldStyleObjC] void deleteData(in [IsIndex] unsigned long offset, 
-                        in [IsIndex] unsigned long length)
+        [OldStyleObjC] void deleteData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset, 
+                                       in [IsIndex,Optional=CallWithDefaultValue] unsigned long length)
             raises(DOMException);
 
-        [OldStyleObjC] void replaceData(in [IsIndex] unsigned long offset, 
-                         in [IsIndex] unsigned long length,
-                         in DOMString data)
+        [OldStyleObjC] void replaceData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset, 
+                                        in [IsIndex,Optional=CallWithDefaultValue] unsigned long length,
+                                        in [Optional=CallWithDefaultValue] DOMString data)
             raises(DOMException);
     
     };
index d48fc840d2935c7b9314a24c9260c17792c79bd7..ee4629c30bb966cdccf54e263a2b7a328ef7a1f1 100644 (file)
 module view {
 
     interface [
-        LegacyDefaultOptionalArguments,
         HasIndexGetter
     ] ClientRectList {
         readonly attribute unsigned long length;
-        ClientRect item(in [IsIndex] unsigned long index);
+        ClientRect item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
         // FIXME: Fix list behavior to allow custom exceptions to be thrown.
     };
 
index 86d1161cec1dd8ba3828bbc5e6e1f0c5dec5ea76..d5bb33117d44962c85d8e2ca6e3a762bce78c3c5 100644 (file)
@@ -28,9 +28,7 @@
 
 module core {
 
-    interface [
-        LegacyDefaultOptionalArguments,
-    ] Clipboard {
+    interface Clipboard {
                  attribute [ConvertNullStringTo=Undefined] DOMString dropEffect;
                  attribute [ConvertNullStringTo=Undefined] DOMString effectAllowed;
         readonly attribute [CustomGetter] Array types;
index 36aeabcaa91d81ade8b233bf97e82f80c7c75223..d96329498065202040d0199ec75efb884b53ed85 100644 (file)
 module core {
 
     interface [
-        LegacyDefaultOptionalArguments,
         GenerateIsReachable=ImplDocument,
         V8DependentLifetime
     ] DOMImplementation {
 
         // DOM Level 1
 
-        [OldStyleObjC] boolean hasFeature(in DOMString feature, 
-                                          in [ConvertNullToNullString] DOMString version);
+        [OldStyleObjC] boolean hasFeature(in [Optional=CallWithDefaultValue] DOMString feature, 
+                                          in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString version);
 
         // DOM Level 2
 
-        [OldStyleObjC] DocumentType createDocumentType(in [ConvertUndefinedOrNullToNullString] DOMString qualifiedName,
-                                                       in [ConvertUndefinedOrNullToNullString] DOMString publicId,
-                                                       in [ConvertUndefinedOrNullToNullString] DOMString systemId)
+        [OldStyleObjC] DocumentType createDocumentType(in [ConvertUndefinedOrNullToNullString,Optional=CallWithDefaultValue] DOMString qualifiedName,
+                                                       in [ConvertUndefinedOrNullToNullString,Optional=CallWithDefaultValue] DOMString publicId,
+                                                       in [ConvertUndefinedOrNullToNullString,Optional=CallWithDefaultValue] DOMString systemId)
             raises(DOMException);
-        [OldStyleObjC] Document createDocument(in [ConvertNullToNullString] DOMString namespaceURI, 
-                                               in [ConvertNullToNullString] DOMString qualifiedName, 
-                                               in [ConvertNullToNullString] DocumentType doctype)
+        [OldStyleObjC] Document createDocument(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 
+                                               in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString qualifiedName, 
+                                               in [ConvertNullToNullString,Optional=CallWithDefaultValue] DocumentType doctype)
             raises(DOMException);
 
         // DOMImplementationCSS interface from DOM Level 2 CSS
 
-        [OldStyleObjC] CSSStyleSheet createCSSStyleSheet(in DOMString title,
-                                                         in DOMString media)
+        [OldStyleObjC] CSSStyleSheet createCSSStyleSheet(in [Optional=CallWithDefaultValue] DOMString title,
+                                                         in [Optional=CallWithDefaultValue] DOMString media)
             raises(DOMException);
 
         // HTMLDOMImplementation interface from DOM Level 2 HTML
 
-        HTMLDocument createHTMLDocument(in DOMString title);
+        HTMLDocument createHTMLDocument(in [Optional=CallWithDefaultValue] DOMString title);
     };
 
 }
index fb7a2cef53ad52394a886d7b03ce747dbe99a5e1..43af8259f0c0cada60d95994d375eb764c57da44 100644 (file)
 module core {
 
     interface [
-        LegacyDefaultOptionalArguments,
         GenerateConstructor,
         HasIndexGetter
     ] DOMStringList {
         readonly attribute unsigned long length;
-        [ConvertNullStringTo=Null] DOMString item(in [IsIndex] unsigned long index);
-        boolean contains(in DOMString string);
+        [ConvertNullStringTo=Null] DOMString item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
+        boolean contains(in [Optional=CallWithDefaultValue] DOMString string);
     };
 
 }
index 8be9aa1f8187a0e93a78fd6099ada4c0391b9b13..befd7e2b13ef780cbf5d724a48d765feb4828cfa 100644 (file)
@@ -32,12 +32,11 @@ module core {
 
     interface [
         Conditional=DATA_TRANSFER_ITEMS,
-        LegacyDefaultOptionalArguments,
     ] DataTransferItem {
         readonly attribute DOMString kind;
         readonly attribute DOMString type;
 
-        void getAsString(in [Callback] StringCallback callback);
+        void getAsString(in [Callback,Optional=CallWithDefaultValue] StringCallback callback);
         Blob getAsFile();
     };
 
index a8d5a1f181b90b2e6421b3510f8e77d5cf2a9601..2c7f1ec8d8d579102f83601d9936329caaa4628a 100644 (file)
@@ -32,17 +32,17 @@ module core {
 
     interface [
         Conditional=DATA_TRANSFER_ITEMS,
-        LegacyDefaultOptionalArguments,
         HasIndexGetter,
 #if defined(V8_BINDING) && V8_BINDING
         CustomDeleteProperty,
 #endif
     ] DataTransferItems {
         readonly attribute long length;
-        DataTransferItem item(in unsigned long index) getter;
+        DataTransferItem item(in [Optional=CallWithDefaultValue] unsigned long index) getter;
 
         void clear();
-        void add(in DOMString data, in DOMString type) raises(DOMException);
+        void add(in [Optional=CallWithDefaultValue] DOMString data, 
+                 in [Optional=CallWithDefaultValue] DOMString type) raises(DOMException);
     };
 
 }
index c8bfbcd71a82856a576b4358a841acfd91143341..882b62db39eb7f2e05047820492b7e9361a8eded 100644 (file)
 
 module core {
 
-    interface [
-        LegacyDefaultOptionalArguments,
-    ] DocumentFragment : Node {
+    interface DocumentFragment : Node {
         // NodeSelector - Selector API
-        [RequiresAllArguments=Raise] Element querySelector(in DOMString selectors)
+        Element querySelector(in DOMString selectors)
             raises(DOMException);
-        [RequiresAllArguments=Raise] NodeList querySelectorAll(in DOMString selectors)
+        NodeList querySelectorAll(in DOMString selectors)
             raises(DOMException);
     };
 
index 07649af6335bcc2b65542759dd76cd149dddbf2b..c728abd0a4bff12a47e41d82e5ada495451fe819 100644 (file)
@@ -21,7 +21,6 @@
 module core {
 
     interface [
-        LegacyDefaultOptionalArguments,
         GenerateNativeConverter,
         InlineGetOwnPropertySlot
     ] Element : Node {
@@ -30,39 +29,39 @@ module core {
 
         readonly attribute [ConvertNullStringTo=Null] DOMString tagName;
 
-        [ConvertNullStringTo=Null] DOMString getAttribute(in DOMString name);
-        [OldStyleObjC] void setAttribute(in DOMString name,
-                                         in DOMString value)
+        [ConvertNullStringTo=Null] DOMString getAttribute(in [Optional=CallWithDefaultValue] DOMString name);
+        [OldStyleObjC] void setAttribute(in [Optional=CallWithDefaultValue] DOMString name,
+                                         in [Optional=CallWithDefaultValue] DOMString value)
             raises(DOMException);
-        void removeAttribute(in DOMString name)
+        void removeAttribute(in [Optional=CallWithDefaultValue] DOMString name)
             raises(DOMException);
-        Attr getAttributeNode(in DOMString name);
-        Attr setAttributeNode(in Attr newAttr)
+        Attr getAttributeNode(in [Optional=CallWithDefaultValue] DOMString name);
+        Attr setAttributeNode(in [Optional=CallWithDefaultValue] Attr newAttr)
             raises(DOMException);
-        Attr removeAttributeNode(in Attr oldAttr)
+        Attr removeAttributeNode(in [Optional=CallWithDefaultValue] Attr oldAttr)
             raises(DOMException);
-        NodeList getElementsByTagName(in DOMString name);
+        NodeList getElementsByTagName(in [Optional=CallWithDefaultValue] DOMString name);
 
         // DOM Level 2 Core
 
-        [OldStyleObjC] DOMString getAttributeNS(in [ConvertNullToNullString] DOMString namespaceURI,
-                                                in DOMString localName);
-        [OldStyleObjC] void setAttributeNS(in [ConvertNullToNullString] DOMString namespaceURI,
-                                           in DOMString qualifiedName, 
-                                           in DOMString value)
+        [OldStyleObjC] DOMString getAttributeNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
+                                                in [Optional=CallWithDefaultValue] DOMString localName);
+        [OldStyleObjC] void setAttributeNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
+                                           in [Optional=CallWithDefaultValue] DOMString qualifiedName, 
+                                           in [Optional=CallWithDefaultValue] DOMString value)
             raises(DOMException);
         [OldStyleObjC] void removeAttributeNS(in [ConvertNullToNullString] DOMString namespaceURI,
                                               in DOMString localName)
             raises(DOMException);
-        [OldStyleObjC] NodeList getElementsByTagNameNS(in [ConvertNullToNullString] DOMString namespaceURI,
-                                                       in DOMString localName);
-        [OldStyleObjC] Attr getAttributeNodeNS(in [ConvertNullToNullString] DOMString namespaceURI,
-                                               in DOMString localName);
-        Attr setAttributeNodeNS(in Attr newAttr)
+        [OldStyleObjC] NodeList getElementsByTagNameNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
+                                                       in [Optional=CallWithDefaultValue] DOMString localName);
+        [OldStyleObjC] Attr getAttributeNodeNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
+                                               in [Optional=CallWithDefaultValue] DOMString localName);
+        Attr setAttributeNodeNS(in [Optional=CallWithDefaultValue] Attr newAttr)
             raises(DOMException);
         boolean hasAttribute(in DOMString name);
-        [OldStyleObjC] boolean hasAttributeNS(in [ConvertNullToNullString] DOMString namespaceURI,
-                                              in DOMString localName);
+        [OldStyleObjC] boolean hasAttributeNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
+                                              in [Optional=CallWithDefaultValue] DOMString localName);
 
         readonly attribute CSSStyleDeclaration style;
 
@@ -88,33 +87,33 @@ module core {
 
         // IE extensions
 
-        boolean contains(in Element element);
+        boolean contains(in [Optional=CallWithDefaultValue] Element element);
 
         // WebKit extensions
 
         void scrollIntoViewIfNeeded(in [Optional] boolean centerIfNeeded);
-        void scrollByLines(in long lines);
-        void scrollByPages(in long pages);
+        void scrollByLines(in [Optional=CallWithDefaultValue] long lines);
+        void scrollByPages(in [Optional=CallWithDefaultValue] long pages);
 
 #if defined(ENABLE_ANIMATION_API) && ENABLE_ANIMATION_API
         WebKitAnimationList webkitGetAnimations();
 #endif
 
         // HTML 5
-        NodeList getElementsByClassName(in DOMString name);
+        NodeList getElementsByClassName(in [Optional=CallWithDefaultValue] DOMString name);
 
 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
         readonly attribute DOMStringMap dataset;
 #endif
 
         // NodeSelector - Selector API
-        [RequiresAllArguments=Raise] Element querySelector(in DOMString selectors)
+        Element querySelector(in DOMString selectors)
             raises(DOMException);
-        [RequiresAllArguments=Raise] NodeList querySelectorAll(in DOMString selectors)
+        NodeList querySelectorAll(in DOMString selectors)
             raises(DOMException);
 
         // WebKit extension, pending specification.
-        boolean webkitMatchesSelector(in DOMString selectors)
+        boolean webkitMatchesSelector(in [Optional=CallWithDefaultValue] DOMString selectors)
             raises(DOMException);
 
         // ElementTraversal API
@@ -137,7 +136,7 @@ module core {
 
 #if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
         const unsigned short ALLOW_KEYBOARD_INPUT = 1;
-        void webkitRequestFullScreen(in unsigned short flags);
+        void webkitRequestFullScreen(in [Optional=CallWithDefaultValue] unsigned short flags);
 #endif
 
 #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
index 3a68f4a4b4e2d989688f87c30653720aa079d414..023777bf3943257e9d3bc6624597e310d0e66932 100644 (file)
@@ -22,7 +22,6 @@ module events {
 
     // Introduced in DOM Level 2:
     interface [
-        LegacyDefaultOptionalArguments,
         NoStaticTables,
         ObjCProtocol,
         PureInterface,
index 543132ec0c096d66abc5bd69fc522fe19bff8d19..8c683da1ee007ce1880d90926f7012092011ae3b 100644 (file)
@@ -22,7 +22,6 @@ module events {
 
     // Introduced in DOM Level 2:
     interface [
-        LegacyDefaultOptionalArguments,
         ObjCProtocol,
         PureInterface,
         OmitConstructor
index e3212ce5f7b3bfcc4e018d15548aa311e383008c..7ff953b6a12a6f53a3ae3f3636a46fc3b589cc71 100644 (file)
@@ -25,7 +25,6 @@
 module core {
 
     interface [
-        LegacyDefaultOptionalArguments,
         Conditional=MEDIA_STREAM,
         EventTarget
     ] MediaStream {
index aa967c96ecfcebd142d339fe4e19f91a7cc56452..3ad77a95e71d9d79e314bf98d6de1951456d2492 100644 (file)
@@ -25,7 +25,6 @@
 module core {
 
     interface [
-        LegacyDefaultOptionalArguments,
         Conditional=MEDIA_STREAM,
         HasIndexGetter
     ] MediaStreamList {
index e3496ec62c43eca5525a7c48ba9d40ce0e2cc928..3e3eca14ea9940c63c32fdb42de5c0be017e7681 100644 (file)
@@ -25,7 +25,6 @@
 module core {
 
     interface [
-        LegacyDefaultOptionalArguments,
         Conditional=MEDIA_STREAM,
         HasIndexGetter
     ] MediaStreamTrackList {
index 0f410cc0f56c315f8d0a82d76ad37122616531b0..28833cea9225418a5b868ef583ebeb9da0ebf927 100644 (file)
@@ -27,7 +27,6 @@
 module events {
 
     interface [
-        LegacyDefaultOptionalArguments,
         CustomMarkFunction,
         GenerateIsReachable=Impl,
         ActiveDOMObject,
index 6614741aaad49bd206091144dcf12d2d26bc0fb6..1bf45214b64c6fba91178bbd20147642dc059e34 100644 (file)
 module core {
 
     interface [
-        LegacyDefaultOptionalArguments,
         GenerateIsReachable=ImplElementRoot,
         CustomMarkFunction,
         HasIndexGetter,
         HasNameGetter
     ] NamedNodeMap {
 
-        Node getNamedItem(in DOMString name);
+        Node getNamedItem(in [Optional=CallWithDefaultValue] DOMString name);
 
-        Node setNamedItem(in Node node)
+        Node setNamedItem(in [Optional=CallWithDefaultValue] Node node)
             raises(DOMException);
 
-        Node removeNamedItem(in DOMString name)
+        Node removeNamedItem(in [Optional=CallWithDefaultValue] DOMString name)
             raises(DOMException);
 
-        Node item(in unsigned long index);
+        Node item(in [Optional=CallWithDefaultValue] unsigned long index);
         
         readonly attribute unsigned long length;
 
 
         // Introduced in DOM Level 2:
 
-        [OldStyleObjC] Node getNamedItemNS(in [ConvertNullToNullString] DOMString namespaceURI, 
-                                           in DOMString localName)
+        [OldStyleObjC] Node getNamedItemNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 
+                                           in [Optional=CallWithDefaultValue] DOMString localName)
             // FIXME: the implementation does take an exceptioncode parameter.
             /*raises(DOMException)*/;
 
-        Node setNamedItemNS(in Node node)
+        Node setNamedItemNS(in [Optional=CallWithDefaultValue] Node node)
             raises(DOMException);
 
-        [OldStyleObjC] Node removeNamedItemNS(in [ConvertNullToNullString] DOMString namespaceURI, 
-                                              in DOMString localName)
+        [OldStyleObjC] Node removeNamedItemNS(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI, 
+                                              in [Optional=CallWithDefaultValue] DOMString localName)
             raises(DOMException);
 
     };
index c4f044dc36f06925a3ccb09650cd392825a3a6b6..aacef15b665b50e6194050dce8d3a017cc14f6d5 100644 (file)
@@ -21,7 +21,6 @@
 module core {
 
     interface [
-        LegacyDefaultOptionalArguments,
         CustomHeader,
         CustomMarkFunction,
         CustomPushEventHandlerScope,
@@ -80,13 +79,13 @@ module core {
             raises(DOMException);
 
         boolean            hasChildNodes();
-        Node               cloneNode(in boolean deep);
+        Node               cloneNode(in [Optional=CallWithDefaultValue] boolean deep);
         void               normalize();
 
         // Introduced in DOM Level 2:
 
-        [OldStyleObjC] boolean isSupported(in DOMString feature, 
-                                           in [ConvertNullToNullString] DOMString version);
+        [OldStyleObjC] boolean isSupported(in [Optional=CallWithDefaultValue] DOMString feature, 
+                                           in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString version);
 
         readonly attribute [ConvertNullStringTo=Null] DOMString        namespaceURI;
                  attribute [ConvertNullStringTo=Null, ConvertNullToNullString] DOMString        prefix
@@ -103,11 +102,11 @@ module core {
                  attribute [ConvertNullStringTo=Null, ConvertNullToNullString] DOMString       textContent
                      setter raises(DOMException);
 
-        boolean            isSameNode(in Node other);
-        boolean            isEqualNode(in Node other);
-        [ConvertNullStringTo=Null] DOMString          lookupPrefix(in [ConvertNullToNullString] DOMString namespaceURI);
-        boolean            isDefaultNamespace(in [ConvertNullToNullString] DOMString namespaceURI);
-        [ConvertNullStringTo=Null] DOMString          lookupNamespaceURI(in [ConvertNullToNullString] DOMString prefix);
+        boolean            isSameNode(in [Optional=CallWithDefaultValue] Node other);
+        boolean            isEqualNode(in [Optional=CallWithDefaultValue] Node other);
+        [ConvertNullStringTo=Null] DOMString          lookupPrefix(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI);
+        boolean            isDefaultNamespace(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString namespaceURI);
+        [ConvertNullStringTo=Null] DOMString          lookupNamespaceURI(in [ConvertNullToNullString,Optional=CallWithDefaultValue] DOMString prefix);
 
         // DocumentPosition
         const unsigned short      DOCUMENT_POSITION_DISCONNECTED = 0x01;
@@ -117,7 +116,7 @@ module core {
         const unsigned short      DOCUMENT_POSITION_CONTAINED_BY = 0x10;
         const unsigned short      DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
 
-        unsigned short     compareDocumentPosition(in Node other);
+        unsigned short     compareDocumentPosition(in [Optional=CallWithDefaultValue] Node other);
 
 #if 0
         DOMObject          getFeature(in DOMString feature, 
index d79838912f8f3f49b9dc045410199f6bbc3eea27..38dac10f0354bf920060138e040c90a9ba17c484 100644 (file)
@@ -22,7 +22,6 @@ module traversal {
 
     // Introduced in DOM Level 2:
     interface [
-        LegacyDefaultOptionalArguments,
         CustomMarkFunction,
         CustomNativeConverter,
         ObjCProtocol,
@@ -48,7 +47,7 @@ module traversal {
         const unsigned long       SHOW_DOCUMENT_FRAGMENT         = 0x00000400;
         const unsigned long       SHOW_NOTATION                  = 0x00000800;
 
-        [CallWith=ScriptState] short acceptNode(in Node n);
+        [CallWith=ScriptState] short acceptNode(in [Optional=CallWithDefaultValue] Node n);
 
     };
 
index 0e505b4396282e9516ddfe68f8af619c089cce37..5ba8b2000f9a11e2cc149942748cd4de04f34e88 100644 (file)
 module core {
 
     interface [
-        LegacyDefaultOptionalArguments,
         CustomIsReachable,
         HasIndexGetter,
         HasNameGetter,
         CustomCall
     ] NodeList {
 
-        Node item(in [IsIndex] unsigned long index);
+        Node item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
 
         readonly attribute unsigned long length;
 
index 30afedd96b1a64793b8efc0659d5cea60e4fc0c9..668fd5f13e195d412826d38e943da565a8d11bd3 100644 (file)
@@ -21,9 +21,7 @@
 module ranges {
 
     // Introduced in DOM Level 2:
-    interface [
-        LegacyDefaultOptionalArguments,
-    ] Range {
+    interface Range {
 
         readonly attribute Node startContainer
             getter raises(DOMException);
@@ -38,25 +36,25 @@ module ranges {
         readonly attribute Node commonAncestorContainer
             getter raises(DOMException);
 
-        [OldStyleObjC] void setStart(in Node refNode, 
-                                     in long offset)
+        [OldStyleObjC] void setStart(in [Optional=CallWithDefaultValue] Node refNode, 
+                                     in [Optional=CallWithDefaultValue] long offset)
             raises(RangeException, DOMException);
-        [OldStyleObjC] void setEnd(in Node refNode, 
-                                   in long offset)
+        [OldStyleObjC] void setEnd(in [Optional=CallWithDefaultValue] Node refNode, 
+                                   in [Optional=CallWithDefaultValue] long offset)
             raises(RangeException, DOMException);
-        void setStartBefore(in Node refNode)
+        void setStartBefore(in [Optional=CallWithDefaultValue] Node refNode)
             raises(RangeException, DOMException);
-        void setStartAfter(in Node refNode)
+        void setStartAfter(in [Optional=CallWithDefaultValue] Node refNode)
             raises(RangeException, DOMException);
-        void setEndBefore(in Node refNode)
+        void setEndBefore(in [Optional=CallWithDefaultValue] Node refNode)
             raises(RangeException, DOMException);
-        void setEndAfter(in Node refNode)
+        void setEndAfter(in [Optional=CallWithDefaultValue] Node refNode)
             raises(RangeException, DOMException);
-        void collapse(in boolean toStart)
+        void collapse(in [Optional=CallWithDefaultValue] boolean toStart)
             raises(DOMException);
-        void selectNode(in Node refNode)
+        void selectNode(in [Optional=CallWithDefaultValue] Node refNode)
             raises(RangeException, DOMException);
-        void selectNodeContents(in Node refNode)
+        void selectNodeContents(in [Optional=CallWithDefaultValue] Node refNode)
             raises(RangeException, DOMException);
 
         // CompareHow
@@ -65,8 +63,8 @@ module ranges {
         const unsigned short END_TO_END     = 2;
         const unsigned short END_TO_START   = 3;
 
-        [OldStyleObjC] short compareBoundaryPoints(in CompareHow how,
-                                                   in Range sourceRange)
+        [OldStyleObjC] short compareBoundaryPoints(in [Optional=CallWithDefaultValue] CompareHow how,
+                                                   in [Optional=CallWithDefaultValue] Range sourceRange)
             raises(DOMException);
 
         void deleteContents()
@@ -75,9 +73,9 @@ module ranges {
             raises(DOMException);
         DocumentFragment cloneContents()
             raises(DOMException);
-        void insertNode(in Node newNode)
+        void insertNode(in [Optional=CallWithDefaultValue] Node newNode)
             raises(DOMException, RangeException);
-        void surroundContents(in Node newParent)
+        void surroundContents(in [Optional=CallWithDefaultValue] Node newParent)
             raises(DOMException, RangeException);
         Range cloneRange()
             raises(DOMException);
@@ -96,15 +94,15 @@ module ranges {
 
         // extensions
 
-        DocumentFragment createContextualFragment(in DOMString html)
+        DocumentFragment createContextualFragment(in [Optional=CallWithDefaultValue] DOMString html)
             raises(DOMException);
 
         // WebKit extensions
 
-        boolean intersectsNode(in Node refNode)
+        boolean intersectsNode(in [Optional=CallWithDefaultValue] Node refNode)
             raises(RangeException, DOMException);
 
-        short compareNode(in Node refNode)
+        short compareNode(in [Optional=CallWithDefaultValue] Node refNode)
             raises(RangeException, DOMException);
 
         // CompareResults
@@ -113,15 +111,15 @@ module ranges {
         const unsigned short NODE_BEFORE_AND_AFTER = 2;
         const unsigned short NODE_INSIDE           = 3;
 
-        short comparePoint(in Node refNode, 
-                           in long offset)
+        short comparePoint(in [Optional=CallWithDefaultValue] Node refNode, 
+                           in [Optional=CallWithDefaultValue] long offset)
             raises(RangeException, DOMException);
 
-        boolean isPointInRange(in Node refNode, 
-                               in long offset)
+        boolean isPointInRange(in [Optional=CallWithDefaultValue] Node refNode, 
+                               in [Optional=CallWithDefaultValue] long offset)
             raises(RangeException, DOMException);
 
-        void expand(in DOMString unit)
+        void expand(in [Optional=CallWithDefaultValue] DOMString unit)
             raises(RangeException, DOMException);
 
 #if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
index 8f0fbfa291e6ef36df4bde34786427af79bf2798..5f726afc2b16970c304f7fd21e5ca9af3705aa32 100644 (file)
@@ -32,7 +32,6 @@ module core {
     interface [
         Callback=FunctionOnly,
         Conditional=REQUEST_ANIMATION_FRAME,
-        LegacyDefaultOptionalArguments,
     ] RequestAnimationFrameCallback{
         boolean handleEvent(in DOMTimeStamp time);
     };
index 4468d5e7b1a06819bd90b4d7d31996aa5845fda4..1e18d83fe0af4c2a5d432a850a0bd08e3c32ed2f 100644 (file)
@@ -30,7 +30,6 @@
 
 module core {
     interface [
-        LegacyDefaultOptionalArguments,
         Callback
     ] StringCallback {
         boolean handleEvent(in DOMString data);
index b5ef7db23f711fb608eb03d6b5f68132093f27de..d781677f59c98314d4f20f04a0455a542af5530d 100644 (file)
 
 module core {
 
-    interface [
-        LegacyDefaultOptionalArguments,
-    ] Text : CharacterData {
+    interface Text : CharacterData {
 
         // DOM Level 1
 
-        Text splitText(in [IsIndex] unsigned long offset)
+        Text splitText(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset)
             raises (DOMException);
 
         // Introduced in DOM Level 3:
         readonly attribute DOMString       wholeText;
-        Text               replaceWholeText(in DOMString content)
+        Text               replaceWholeText(in [Optional=CallWithDefaultValue] DOMString content)
                                             raises(DOMException);
     };
 
index b85e9381c58f64bc0e42f563307e4f023a33a2e5..ede7bf2e5d76227fa651cad0ab01b61dfd296cec 100644 (file)
@@ -26,7 +26,6 @@
 module events {
 
     interface [
-        LegacyDefaultOptionalArguments,
         Conditional=TOUCH_EVENTS,
         HasIndexGetter
     ] TouchList {