Changeset 107204 in webkit


Ignore:
Timestamp:
Feb 9, 2012 2:00:39 AM (12 years ago)
Author:
haraken@chromium.org
Message:

Unreviewed, rolling out r107182, r107186, r107189, r107191,
and r107199.
http://trac.webkit.org/changeset/107182
http://trac.webkit.org/changeset/107186
http://trac.webkit.org/changeset/107189
http://trac.webkit.org/changeset/107191
http://trac.webkit.org/changeset/107199
https://bugs.webkit.org/show_bug.cgi?id=78200

Layout tests of JSC-related port are crashing

  • Modules/gamepad/GamepadList.idl:
  • Modules/intents/Intent.idl:
  • bindings/js/JSDOMBinding.h:
  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateGetOwnPropertySlotBody):
(GenerateParametersCheck):
(NativeToJSValue):
(GenerateConstructorDefinition):

  • bindings/scripts/CodeGeneratorV8.pm:

(GenerateParametersCheck):
(GenerateImplementationIndexer):
(RequiresCustomSignature):
(NativeToJSValue):

  • bindings/scripts/test/CPP/WebDOMTestObj.cpp:
  • bindings/scripts/test/CPP/WebDOMTestObj.h:
  • bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  • bindings/scripts/test/GObject/WebKitDOMTestObj.h:
  • bindings/scripts/test/JS/JSFloat64Array.cpp:

(WebCore::jsFloat64ArrayPrototypeFunctionFoo):

  • bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:

(WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunction):
(WebCore::jsTestActiveDOMObjectPrototypeFunctionPostMessage):

  • bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:

(WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction):

  • bindings/scripts/test/JS/JSTestEventTarget.cpp:

(WebCore::jsTestEventTargetPrototypeFunctionItem):
(WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent):

  • bindings/scripts/test/JS/JSTestInterface.cpp:

(WebCore::JSTestInterfaceConstructor::constructJSTestInterface):
(WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):

  • bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:

(WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):

  • bindings/scripts/test/JS/JSTestNamedConstructor.cpp:

(WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor):

  • bindings/scripts/test/JS/JSTestObj.cpp:

(WebCore):
(WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
(WebCore::jsTestObjPrototypeFunctionSerializedValue):
(WebCore::jsTestObjPrototypeFunctionIdbKey):
(WebCore::jsTestObjPrototypeFunctionOptionsObject):
(WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
(WebCore::jsTestObjConstructorFunctionClassMethodWithOptional):
(WebCore::jsTestObjConstructorFunctionOverloadedMethod11):
(WebCore::jsTestObjConstructorFunctionOverloadedMethod12):
(WebCore::jsTestObjPrototypeFunctionConvert1):
(WebCore::jsTestObjPrototypeFunctionConvert2):
(WebCore::jsTestObjPrototypeFunctionConvert3):
(WebCore::jsTestObjPrototypeFunctionConvert4):
(WebCore::jsTestObjPrototypeFunctionConvert5):
(WebCore::jsTestObjPrototypeFunctionStrictFunction):

  • bindings/scripts/test/JS/JSTestObj.h:

(WebCore):

  • bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:

(WebCore::JSTestSerializedScriptValueInterfaceConstructor::constructJSTestSerializedScriptValueInterface):

  • bindings/scripts/test/ObjC/DOMTestObj.h:
  • bindings/scripts/test/ObjC/DOMTestObj.mm:
  • bindings/scripts/test/TestInterface.idl:
  • bindings/scripts/test/TestNamedConstructor.idl:
  • bindings/scripts/test/TestObj.idl:
  • bindings/scripts/test/V8/V8Float64Array.cpp:

(WebCore::Float64ArrayInternal::fooCallback):

  • bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:

(WebCore::TestActiveDOMObjectInternal::excitingFunctionCallback):
(WebCore::TestActiveDOMObjectInternal::postMessageCallback):

  • bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:

(WebCore::TestCustomNamedGetterInternal::anotherFunctionCallback):

  • bindings/scripts/test/V8/V8TestEventTarget.cpp:

(WebCore::TestEventTargetInternal::itemCallback):
(WebCore::TestEventTargetInternal::dispatchEventCallback):

  • bindings/scripts/test/V8/V8TestInterface.cpp:

(WebCore::TestInterfaceInternal::supplementalMethod2Callback):
(WebCore::V8TestInterface::constructorCallback):

  • bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:

(WebCore::TestMediaQueryListListenerInternal::methodCallback):

  • bindings/scripts/test/V8/V8TestNamedConstructor.cpp:

(WebCore::V8TestNamedConstructorConstructorCallback):

  • bindings/scripts/test/V8/V8TestObj.cpp:

(WebCore::TestObjInternal::voidMethodWithArgsCallback):
(WebCore::TestObjInternal::intMethodWithArgsCallback):
(WebCore::TestObjInternal::objMethodWithArgsCallback):
(WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
(WebCore::TestObjInternal::idbKeyCallback):
(WebCore::TestObjInternal::optionsObjectCallback):
(WebCore::TestObjInternal::customArgsAndExceptionCallback):
(WebCore::TestObjInternal::methodWithOptionalArgCallback):
(WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
(WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
(WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
(WebCore::TestObjInternal::overloadedMethod1Callback):
(WebCore::TestObjInternal::overloadedMethod2Callback):
(WebCore::TestObjInternal::overloadedMethod3Callback):
(WebCore::TestObjInternal::overloadedMethod4Callback):
(WebCore::TestObjInternal::overloadedMethod6Callback):
(WebCore::TestObjInternal::overloadedMethod7Callback):
(WebCore::TestObjInternal::classMethodWithOptionalCallback):
(WebCore::TestObjInternal::overloadedMethod11Callback):
(WebCore::TestObjInternal::overloadedMethod12Callback):
(WebCore::TestObjInternal::enabledAtRuntimeMethod1Callback):
(WebCore::TestObjInternal::enabledAtRuntimeMethod2Callback):
(WebCore::TestObjInternal::convert1Callback):
(WebCore::TestObjInternal::convert2Callback):
(WebCore::TestObjInternal::convert3Callback):
(WebCore::TestObjInternal::convert4Callback):
(WebCore::TestObjInternal::convert5Callback):
(WebCore::TestObjInternal::strictFunctionCallback):
(WebCore):

  • bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:

(WebCore::V8TestSerializedScriptValueInterface::constructorCallback):

  • bindings/v8/V8Binding.h:
  • bindings/v8/custom/V8BindingMacros.h:
  • css/CSSCharsetRule.idl:
  • css/CSSImportRule.idl:
  • css/CSSMediaRule.idl:
  • css/CSSPageRule.idl:
  • css/CSSPrimitiveValue.idl:
  • css/CSSRule.idl:
  • css/CSSRuleList.idl:
  • css/CSSStyleDeclaration.idl:
  • css/CSSStyleRule.idl:
  • css/CSSStyleSheet.idl:
  • css/CSSValue.idl:
  • css/CSSValueList.idl:
  • css/MediaList.idl:
  • css/MediaQueryList.idl:
  • css/MediaQueryListListener.idl:
  • css/StyleMedia.idl:
  • css/StyleSheet.idl:
  • css/StyleSheetList.idl:
  • css/WebKitCSSKeyframesRule.idl:
  • css/WebKitCSSMatrix.idl:
  • dom/Attr.idl:
  • dom/CharacterData.idl:
  • dom/ClientRectList.idl:
  • dom/Clipboard.idl:
  • dom/CompositionEvent.idl:
  • dom/CustomEvent.idl:
  • dom/DOMImplementation.idl:
  • dom/DOMStringList.idl:
  • dom/DataTransferItem.idl:
  • dom/DataTransferItemList.idl:
  • dom/DeviceMotionEvent.idl:
  • dom/DeviceOrientationEvent.idl:
  • dom/Document.idl:
  • dom/DocumentType.idl:
  • dom/Element.idl:
  • dom/Entity.idl:
  • dom/Event.idl:
  • dom/HashChangeEvent.idl:
  • dom/KeyboardEvent.idl:
  • dom/MessageEvent.idl:
  • dom/MouseEvent.idl:
  • dom/MutationEvent.idl:
  • dom/MutationRecord.idl:
  • dom/NamedNodeMap.idl:
  • dom/Node.idl:
  • dom/NodeFilter.idl:
  • dom/NodeList.idl:
  • dom/Notation.idl:
  • dom/OverflowEvent.idl:
  • dom/ProcessingInstruction.idl:
  • dom/Range.idl:
  • dom/ShadowRoot.idl:
  • dom/Text.idl:
  • dom/TextEvent.idl:
  • dom/TouchEvent.idl:
  • dom/UIEvent.idl:
  • dom/WheelEvent.idl:
  • html/DOMFormData.idl:
  • html/DOMTokenList.idl:
  • html/DOMURL.idl:
  • html/HTMLAllCollection.idl:
  • html/HTMLAudioElement.idl:
  • html/HTMLCanvasElement.idl:
  • html/HTMLCollection.idl:
  • html/HTMLDocument.idl:
  • html/HTMLElement.idl:
  • html/HTMLInputElement.idl:
  • html/HTMLMediaElement.idl:
  • html/HTMLOptionElement.idl:
  • html/HTMLOptionsCollection.idl:
  • html/HTMLSelectElement.idl:
  • html/HTMLTableElement.idl:
  • html/HTMLTableRowElement.idl:
  • html/HTMLTableSectionElement.idl:
  • html/HTMLTextAreaElement.idl:
  • html/TextTrackCue.idl:
  • html/canvas/CanvasGradient.idl:
  • html/canvas/CanvasRenderingContext2D.idl:
  • html/canvas/Float32Array.idl:
  • html/canvas/Float64Array.idl:
  • html/canvas/Int16Array.idl:
  • html/canvas/Int32Array.idl:
  • html/canvas/Int8Array.idl:
  • html/canvas/OESVertexArrayObject.idl:
  • html/canvas/Uint16Array.idl:
  • html/canvas/Uint32Array.idl:
  • html/canvas/Uint8Array.idl:
  • html/canvas/Uint8ClampedArray.idl:
  • html/canvas/WebGLDebugShaders.idl:
  • html/canvas/WebGLRenderingContext.idl:
  • page/Console.idl:
  • page/DOMSelection.idl:
  • page/DOMWindow.idl:
  • page/History.idl:
  • page/Location.idl:
  • plugins/DOMMimeTypeArray.idl:
  • plugins/DOMPlugin.idl:
  • plugins/DOMPluginArray.idl:
  • storage/IDBDatabase.idl:
  • storage/IDBObjectStore.idl:
  • storage/IDBRequest.idl:
  • storage/Storage.idl:
  • storage/StorageEvent.idl:
  • svg/ElementTimeControl.idl:
  • svg/SVGDocument.idl:
  • svg/SVGElementInstanceList.idl:
  • svg/SVGFEDropShadowElement.idl:
  • svg/SVGFEGaussianBlurElement.idl:
  • svg/SVGFEMorphologyElement.idl:
  • svg/SVGFilterElement.idl:
  • svg/SVGLocatable.idl:
  • svg/SVGMarkerElement.idl:
  • svg/SVGPathElement.idl:
  • svg/SVGSVGElement.idl:
  • svg/SVGStylable.idl:
  • svg/SVGTests.idl:
  • svg/SVGTextContentElement.idl:
  • webaudio/AudioNode.idl:
  • websockets/WebSocket.idl:
  • workers/SharedWorker.idl:
  • workers/WorkerContext.idl:
  • xml/DOMParser.idl:
  • xml/XMLHttpRequest.idl:
  • xml/XMLSerializer.idl:
  • xml/XPathEvaluator.idl:
  • xml/XPathExpression.idl:
  • xml/XPathNSResolver.idl:
  • xml/XPathResult.idl:
  • xml/XSLTProcessor.idl:
Location:
trunk/Source/WebCore
Files:
165 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107202 r107204  
     12012-02-09  Kentaro Hara  <haraken@chromium.org>
     2
     3        Unreviewed, rolling out r107182, r107186, r107189, r107191,
     4        and r107199.
     5        http://trac.webkit.org/changeset/107182
     6        http://trac.webkit.org/changeset/107186
     7        http://trac.webkit.org/changeset/107189
     8        http://trac.webkit.org/changeset/107191
     9        http://trac.webkit.org/changeset/107199
     10        https://bugs.webkit.org/show_bug.cgi?id=78200
     11
     12        Layout tests of JSC-related port are crashing
     13
     14        * Modules/gamepad/GamepadList.idl:
     15        * Modules/intents/Intent.idl:
     16        * bindings/js/JSDOMBinding.h:
     17        * bindings/scripts/CodeGeneratorJS.pm:
     18        (GenerateGetOwnPropertySlotBody):
     19        (GenerateParametersCheck):
     20        (NativeToJSValue):
     21        (GenerateConstructorDefinition):
     22        * bindings/scripts/CodeGeneratorV8.pm:
     23        (GenerateParametersCheck):
     24        (GenerateImplementationIndexer):
     25        (RequiresCustomSignature):
     26        (NativeToJSValue):
     27        * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
     28        * bindings/scripts/test/CPP/WebDOMTestObj.h:
     29        * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
     30        * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
     31        * bindings/scripts/test/JS/JSFloat64Array.cpp:
     32        (WebCore::jsFloat64ArrayPrototypeFunctionFoo):
     33        * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
     34        (WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunction):
     35        (WebCore::jsTestActiveDOMObjectPrototypeFunctionPostMessage):
     36        * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
     37        (WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction):
     38        * bindings/scripts/test/JS/JSTestEventTarget.cpp:
     39        (WebCore::jsTestEventTargetPrototypeFunctionItem):
     40        (WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent):
     41        * bindings/scripts/test/JS/JSTestInterface.cpp:
     42        (WebCore::JSTestInterfaceConstructor::constructJSTestInterface):
     43        (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
     44        * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
     45        (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
     46        * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
     47        (WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor):
     48        * bindings/scripts/test/JS/JSTestObj.cpp:
     49        (WebCore):
     50        (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
     51        (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
     52        (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
     53        (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
     54        (WebCore::jsTestObjPrototypeFunctionSerializedValue):
     55        (WebCore::jsTestObjPrototypeFunctionIdbKey):
     56        (WebCore::jsTestObjPrototypeFunctionOptionsObject):
     57        (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
     58        (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
     59        (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
     60        (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
     61        (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
     62        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
     63        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
     64        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
     65        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
     66        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
     67        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
     68        (WebCore::jsTestObjConstructorFunctionClassMethodWithOptional):
     69        (WebCore::jsTestObjConstructorFunctionOverloadedMethod11):
     70        (WebCore::jsTestObjConstructorFunctionOverloadedMethod12):
     71        (WebCore::jsTestObjPrototypeFunctionConvert1):
     72        (WebCore::jsTestObjPrototypeFunctionConvert2):
     73        (WebCore::jsTestObjPrototypeFunctionConvert3):
     74        (WebCore::jsTestObjPrototypeFunctionConvert4):
     75        (WebCore::jsTestObjPrototypeFunctionConvert5):
     76        (WebCore::jsTestObjPrototypeFunctionStrictFunction):
     77        * bindings/scripts/test/JS/JSTestObj.h:
     78        (WebCore):
     79        * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
     80        (WebCore::JSTestSerializedScriptValueInterfaceConstructor::constructJSTestSerializedScriptValueInterface):
     81        * bindings/scripts/test/ObjC/DOMTestObj.h:
     82        * bindings/scripts/test/ObjC/DOMTestObj.mm:
     83        * bindings/scripts/test/TestInterface.idl:
     84        * bindings/scripts/test/TestNamedConstructor.idl:
     85        * bindings/scripts/test/TestObj.idl:
     86        * bindings/scripts/test/V8/V8Float64Array.cpp:
     87        (WebCore::Float64ArrayInternal::fooCallback):
     88        * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
     89        (WebCore::TestActiveDOMObjectInternal::excitingFunctionCallback):
     90        (WebCore::TestActiveDOMObjectInternal::postMessageCallback):
     91        * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
     92        (WebCore::TestCustomNamedGetterInternal::anotherFunctionCallback):
     93        * bindings/scripts/test/V8/V8TestEventTarget.cpp:
     94        (WebCore::TestEventTargetInternal::itemCallback):
     95        (WebCore::TestEventTargetInternal::dispatchEventCallback):
     96        * bindings/scripts/test/V8/V8TestInterface.cpp:
     97        (WebCore::TestInterfaceInternal::supplementalMethod2Callback):
     98        (WebCore::V8TestInterface::constructorCallback):
     99        * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
     100        (WebCore::TestMediaQueryListListenerInternal::methodCallback):
     101        * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
     102        (WebCore::V8TestNamedConstructorConstructorCallback):
     103        * bindings/scripts/test/V8/V8TestObj.cpp:
     104        (WebCore::TestObjInternal::voidMethodWithArgsCallback):
     105        (WebCore::TestObjInternal::intMethodWithArgsCallback):
     106        (WebCore::TestObjInternal::objMethodWithArgsCallback):
     107        (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
     108        (WebCore::TestObjInternal::idbKeyCallback):
     109        (WebCore::TestObjInternal::optionsObjectCallback):
     110        (WebCore::TestObjInternal::customArgsAndExceptionCallback):
     111        (WebCore::TestObjInternal::methodWithOptionalArgCallback):
     112        (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
     113        (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
     114        (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
     115        (WebCore::TestObjInternal::overloadedMethod1Callback):
     116        (WebCore::TestObjInternal::overloadedMethod2Callback):
     117        (WebCore::TestObjInternal::overloadedMethod3Callback):
     118        (WebCore::TestObjInternal::overloadedMethod4Callback):
     119        (WebCore::TestObjInternal::overloadedMethod6Callback):
     120        (WebCore::TestObjInternal::overloadedMethod7Callback):
     121        (WebCore::TestObjInternal::classMethodWithOptionalCallback):
     122        (WebCore::TestObjInternal::overloadedMethod11Callback):
     123        (WebCore::TestObjInternal::overloadedMethod12Callback):
     124        (WebCore::TestObjInternal::enabledAtRuntimeMethod1Callback):
     125        (WebCore::TestObjInternal::enabledAtRuntimeMethod2Callback):
     126        (WebCore::TestObjInternal::convert1Callback):
     127        (WebCore::TestObjInternal::convert2Callback):
     128        (WebCore::TestObjInternal::convert3Callback):
     129        (WebCore::TestObjInternal::convert4Callback):
     130        (WebCore::TestObjInternal::convert5Callback):
     131        (WebCore::TestObjInternal::strictFunctionCallback):
     132        (WebCore):
     133        * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
     134        (WebCore::V8TestSerializedScriptValueInterface::constructorCallback):
     135        * bindings/v8/V8Binding.h:
     136        * bindings/v8/custom/V8BindingMacros.h:
     137        * css/CSSCharsetRule.idl:
     138        * css/CSSImportRule.idl:
     139        * css/CSSMediaRule.idl:
     140        * css/CSSPageRule.idl:
     141        * css/CSSPrimitiveValue.idl:
     142        * css/CSSRule.idl:
     143        * css/CSSRuleList.idl:
     144        * css/CSSStyleDeclaration.idl:
     145        * css/CSSStyleRule.idl:
     146        * css/CSSStyleSheet.idl:
     147        * css/CSSValue.idl:
     148        * css/CSSValueList.idl:
     149        * css/MediaList.idl:
     150        * css/MediaQueryList.idl:
     151        * css/MediaQueryListListener.idl:
     152        * css/StyleMedia.idl:
     153        * css/StyleSheet.idl:
     154        * css/StyleSheetList.idl:
     155        * css/WebKitCSSKeyframesRule.idl:
     156        * css/WebKitCSSMatrix.idl:
     157        * dom/Attr.idl:
     158        * dom/CharacterData.idl:
     159        * dom/ClientRectList.idl:
     160        * dom/Clipboard.idl:
     161        * dom/CompositionEvent.idl:
     162        * dom/CustomEvent.idl:
     163        * dom/DOMImplementation.idl:
     164        * dom/DOMStringList.idl:
     165        * dom/DataTransferItem.idl:
     166        * dom/DataTransferItemList.idl:
     167        * dom/DeviceMotionEvent.idl:
     168        * dom/DeviceOrientationEvent.idl:
     169        * dom/Document.idl:
     170        * dom/DocumentType.idl:
     171        * dom/Element.idl:
     172        * dom/Entity.idl:
     173        * dom/Event.idl:
     174        * dom/HashChangeEvent.idl:
     175        * dom/KeyboardEvent.idl:
     176        * dom/MessageEvent.idl:
     177        * dom/MouseEvent.idl:
     178        * dom/MutationEvent.idl:
     179        * dom/MutationRecord.idl:
     180        * dom/NamedNodeMap.idl:
     181        * dom/Node.idl:
     182        * dom/NodeFilter.idl:
     183        * dom/NodeList.idl:
     184        * dom/Notation.idl:
     185        * dom/OverflowEvent.idl:
     186        * dom/ProcessingInstruction.idl:
     187        * dom/Range.idl:
     188        * dom/ShadowRoot.idl:
     189        * dom/Text.idl:
     190        * dom/TextEvent.idl:
     191        * dom/TouchEvent.idl:
     192        * dom/UIEvent.idl:
     193        * dom/WheelEvent.idl:
     194        * html/DOMFormData.idl:
     195        * html/DOMTokenList.idl:
     196        * html/DOMURL.idl:
     197        * html/HTMLAllCollection.idl:
     198        * html/HTMLAudioElement.idl:
     199        * html/HTMLCanvasElement.idl:
     200        * html/HTMLCollection.idl:
     201        * html/HTMLDocument.idl:
     202        * html/HTMLElement.idl:
     203        * html/HTMLInputElement.idl:
     204        * html/HTMLMediaElement.idl:
     205        * html/HTMLOptionElement.idl:
     206        * html/HTMLOptionsCollection.idl:
     207        * html/HTMLSelectElement.idl:
     208        * html/HTMLTableElement.idl:
     209        * html/HTMLTableRowElement.idl:
     210        * html/HTMLTableSectionElement.idl:
     211        * html/HTMLTextAreaElement.idl:
     212        * html/TextTrackCue.idl:
     213        * html/canvas/CanvasGradient.idl:
     214        * html/canvas/CanvasRenderingContext2D.idl:
     215        * html/canvas/Float32Array.idl:
     216        * html/canvas/Float64Array.idl:
     217        * html/canvas/Int16Array.idl:
     218        * html/canvas/Int32Array.idl:
     219        * html/canvas/Int8Array.idl:
     220        * html/canvas/OESVertexArrayObject.idl:
     221        * html/canvas/Uint16Array.idl:
     222        * html/canvas/Uint32Array.idl:
     223        * html/canvas/Uint8Array.idl:
     224        * html/canvas/Uint8ClampedArray.idl:
     225        * html/canvas/WebGLDebugShaders.idl:
     226        * html/canvas/WebGLRenderingContext.idl:
     227        * page/Console.idl:
     228        * page/DOMSelection.idl:
     229        * page/DOMWindow.idl:
     230        * page/History.idl:
     231        * page/Location.idl:
     232        * plugins/DOMMimeTypeArray.idl:
     233        * plugins/DOMPlugin.idl:
     234        * plugins/DOMPluginArray.idl:
     235        * storage/IDBDatabase.idl:
     236        * storage/IDBObjectStore.idl:
     237        * storage/IDBRequest.idl:
     238        * storage/Storage.idl:
     239        * storage/StorageEvent.idl:
     240        * svg/ElementTimeControl.idl:
     241        * svg/SVGDocument.idl:
     242        * svg/SVGElementInstanceList.idl:
     243        * svg/SVGFEDropShadowElement.idl:
     244        * svg/SVGFEGaussianBlurElement.idl:
     245        * svg/SVGFEMorphologyElement.idl:
     246        * svg/SVGFilterElement.idl:
     247        * svg/SVGLocatable.idl:
     248        * svg/SVGMarkerElement.idl:
     249        * svg/SVGPathElement.idl:
     250        * svg/SVGSVGElement.idl:
     251        * svg/SVGStylable.idl:
     252        * svg/SVGTests.idl:
     253        * svg/SVGTextContentElement.idl:
     254        * webaudio/AudioNode.idl:
     255        * websockets/WebSocket.idl:
     256        * workers/SharedWorker.idl:
     257        * workers/WorkerContext.idl:
     258        * xml/DOMParser.idl:
     259        * xml/XMLHttpRequest.idl:
     260        * xml/XMLSerializer.idl:
     261        * xml/XPathEvaluator.idl:
     262        * xml/XPathExpression.idl:
     263        * xml/XPathNSResolver.idl:
     264        * xml/XPathResult.idl:
     265        * xml/XSLTProcessor.idl:
     266
    12672012-02-09  Shinya Kawanaka  <shinyak@google.com>
    2268
  • trunk/Source/WebCore/Modules/gamepad/GamepadList.idl

    r107182 r107204  
    3131    ] GamepadList {
    3232        readonly attribute unsigned long length;
    33         Gamepad item(in [Optional=TreatAsUndefined] unsigned long index);
     33        Gamepad item(in [Optional=CallWithDefaultValue] unsigned long index);
    3434    };
    3535
  • trunk/Source/WebCore/Modules/intents/Intent.idl

    r107182 r107204  
    2727  interface [
    2828      Conditional=WEB_INTENTS,
    29       Constructor(in DOMString action, in DOMString type, in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] SerializedScriptValue data),
     29      Constructor(in DOMString action, in DOMString type, in [Optional=CallWithNullValue] SerializedScriptValue data),
    3030      ConstructorRaisesException
    3131  ] Intent {
  • trunk/Source/WebCore/bindings/js/JSDOMBinding.h

    r107182 r107204  
    4343
    4444enum ParameterMissingPolicy {
    45     MissingIsUndefinedValue,
    46     MissingIsNullValue
     45    MissingIsUndefined,
     46    MissingIsEmpty
    4747};
    4848
    49 #define MAYBE_MISSING_PARAMETER(exec, index, policy) (((policy) == MissingIsNullValue && (index) >= (exec)->argumentCount()) ? (JSValue()) : ((exec)->argument(index)))
     49#define MAYBE_MISSING_PARAMETER(exec, index, policy) (((policy) == MissingIsEmpty && (index) >= (exec)->argumentCount()) ? (JSValue()) : ((exec)->argument(index)))
    5050
    5151    class Frame;
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r107199 r107204  
    438438        push(@getOwnPropertySlotImpl, "    unsigned index = propertyName.toUInt32(ok);\n");
    439439
    440         # If the item function returns a string then we let the TreatReturnedNullStringAs handle the cases
     440        # If the item function returns a string then we let the ConvertNullStringTo handle the cases
    441441        # where the index is out of range.
    442442        if (IndexGetterReturnsStrings($implClassName)) {
     
    24282428
    24292429    foreach my $parameter (@{$function->parameters}) {
    2430         # Optional arguments with [Optional] should generate an early call with fewer arguments.
    2431         # Optional arguments with [Optional=TreatAsUndefined] should not generate the early call.
    2432         if ($parameter->extendedAttributes->{"Optional"} && $parameter->extendedAttributes->{"Optional"} ne "TreatAsUndefined" && !$parameter->extendedAttributes->{"Callback"}) {
     2430        # Optional callbacks should be treated differently, because they always have a default value (0),
     2431        # and we can reduce the number of overloaded functions that take a different number of parameters.
     2432        # Optional arguments with [Optional=CallWithDefaultValue] or [Optional=CallWithNullValue]
     2433        # should not generate an early call.
     2434        my $optional = $parameter->extendedAttributes->{"Optional"};
     2435        if ($optional && $optional ne "CallWithDefaultValue" && $optional ne "CallWithNullValue" && !$parameter->extendedAttributes->{"Callback"}) {
     2436            # Generate early call if there are enough parameters.
    24332437            if (!$hasOptionalArguments) {
    24342438                push(@$outputArray, "\n    size_t argsCount = exec->argumentCount();\n");
     
    24962500            }
    24972501
    2498             my $parameterMissingPolicy = "MissingIsUndefinedValue";
    2499             if ($parameter->extendedAttributes->{"Optional"} and $parameter->extendedAttributes->{"Optional"} eq "TreatAsUndefined" and $parameter->extendedAttributes->{"TreatUndefinedAs"} and $parameter->extendedAttributes->{"TreatUndefinedAs"} eq "NullString") {
    2500                 $parameterMissingPolicy = "MissingIsNullValue";
     2502            my $optional = $parameter->extendedAttributes->{"Optional"};
     2503            my $parameterMissingPolicy = "MissingIsUndefined";
     2504            if ($optional && $optional eq "CallWithNullValue") {
     2505                $parameterMissingPolicy = "MissingIsEmpty";
    25012506            }
    25022507
     
    29372942    if ($codeGenerator->IsStringType($type)) {
    29382943        AddToImplIncludes("KURL.h", $conditional);
    2939         my $conv = $signature->extendedAttributes->{"TreatReturnedNullStringAs"};
     2944        my $conv = $signature->extendedAttributes->{"ConvertNullStringTo"};
    29402945        if (defined $conv) {
    29412946            return "jsStringOrNull(exec, $value)" if $conv eq "Null";
     
    29432948            return "jsStringOrFalse(exec, $value)" if $conv eq "False";
    29442949
    2945             die "Unknown value for TreatReturnedNullStringAs extended attribute";
     2950            die "Unknown value for ConvertNullStringTo extended attribute";
    29462951        }
    29472952        $conv = $signature->extendedAttributes->{"ConvertScriptString"};
     
    35173522
    35183523            # For now, we do not support SVG constructors.
    3519             # In constructor arguments, we can use [Optional=TreatAsUndefined] but cannot use [Optional].
     3524            # We do not also support a constructor [Optional] argument without CallWithDefaultValue
     3525            # nor CallWithNullValue.
    35203526            my $numParameters = @{$function->parameters};
    35213527            my ($dummy, $paramIndex) = GenerateParametersCheck($outputArray, $function, $dataNode, $numParameters, $interfaceName, "constructorCallback", undef, undef, undef);
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r107199 r107204  
    15271527        my $parameterName = $parameter->name;
    15281528
    1529         # Optional arguments with [Optional] should generate an early call with fewer arguments.
    1530         # Optional arguments with [Optional=TreatAsUndefined] should not generate the early call.
    1531         if ($parameter->extendedAttributes->{"Optional"} && $parameter->extendedAttributes->{"Optional"} ne "TreatAsUndefined" && !$parameter->extendedAttributes->{"Callback"}) {
     1529        # Optional callbacks should be treated differently, because they always have a default value (0),
     1530        # and we can reduce the number of overloaded functions that take a different number of parameters.
     1531        # Optional arguments with default values [Optional=CallWithDefaultValue] or [Optional=CallWithNullValue] should not generate an early call.
     1532        my $optional = $parameter->extendedAttributes->{"Optional"};       
     1533        if ($optional && $optional ne "CallWithDefaultValue" && $optional ne "CallWithNullValue" && !$parameter->extendedAttributes->{"Callback"}) {
    15321534            # Generate early call if there are not enough parameters.
    15331535            $parameterCheckString .= "    if (args.Length() <= $paramIndex) {\n";
     
    15371539        }
    15381540
    1539         my $parameterMissingPolicy = "MissingIsUndefinedValue";
    1540         if ($parameter->extendedAttributes->{"Optional"} and $parameter->extendedAttributes->{"Optional"} eq "TreatAsUndefined" and $parameter->extendedAttributes->{"TreatUndefinedAs"} and $parameter->extendedAttributes->{"TreatUndefinedAs"} eq "NullString") {
    1541             $parameterMissingPolicy = "MissingIsNullValue";
     1541        my $parameterMissingPolicy = "MissingIsUndefined";
     1542        if ($optional && $optional eq "CallWithNullValue") {
     1543            $parameterMissingPolicy = "MissingIsEmpty";
    15421544        }
    15431545
     
    20852087    if ($indexerType && !$hasCustomSetter) {
    20862088        if ($indexerType eq "DOMString") {
    2087             my $conversion = $indexer->extendedAttributes->{"TreatReturnedNullStringAs"};
     2089            my $conversion = $indexer->extendedAttributes->{"ConvertNullStringTo"};
    20882090            if ($conversion && $conversion eq "Null") {
    20892091                push(@implContent, <<END);
     
    35923594    }
    35933595    foreach my $parameter (@{$function->parameters}) {
    3594         if (($parameter->extendedAttributes->{"Optional"} && $parameter->extendedAttributes->{"Optional"} ne "TreatAsUndefined") || $parameter->extendedAttributes->{"Callback"}) {
     3596        my $optional = $parameter->extendedAttributes->{"Optional"};
     3597        if (($optional && $optional ne "CallWithDefaultValue" && $optional ne "CallWithNullValue") || $parameter->extendedAttributes->{"Callback"}) {
    35953598            return 0;
    35963599        }
     
    37153718
    37163719    if ($codeGenerator->IsStringType($type)) {
    3717         my $conv = $signature->extendedAttributes->{"TreatReturnedNullStringAs"};
     3720        my $conv = $signature->extendedAttributes->{"ConvertNullStringTo"};
    37183721        if (defined $conv) {
    37193722            return "v8StringOrNull($value)" if $conv eq "Null";
     
    37213724            return "v8StringOrFalse($value)" if $conv eq "False";
    37223725
    3723             die "Unknown value for TreatReturnedNullStringAs extended attribute";
     3726            die "Unknown value for ConvertNullStringTo extended attribute";
    37243727        }
    37253728        $conv = $signature->extendedAttributes->{"ConvertScriptString"};
  • trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp

    r107191 r107204  
    944944}
    945945
    946 void WebDOMTestObj::methodWithOptionalString(const WebDOMString& str)
    947 {
    948     if (!impl())
    949         return;
    950 
    951     impl()->methodWithOptionalString(str);
    952 }
    953 
    954 void WebDOMTestObj::methodWithOptionalIsUndefinedString(const WebDOMString& str)
    955 {
    956     if (!impl())
    957         return;
    958 
    959     impl()->methodWithOptionalIsUndefinedString(str);
    960 }
    961 
    962 void WebDOMTestObj::methodWithOptionalIsNullStringString(const WebDOMString& str)
    963 {
    964     if (!impl())
    965         return;
    966 
    967     impl()->methodWithOptionalIsNullStringString(str);
    968 }
    969 
    970946
    971947#if ENABLE(Condition1)
  • trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h

    r107191 r107204  
    187187    void methodWithNonOptionalArgAndOptionalArg(int nonOpt, int opt);
    188188    void methodWithNonOptionalArgAndTwoOptionalArgs(int nonOpt, int opt1, int opt2);
    189     void methodWithOptionalString(const WebDOMString& str);
    190     void methodWithOptionalIsUndefinedString(const WebDOMString& str);
    191     void methodWithOptionalIsNullStringString(const WebDOMString& str);
    192189    WebDOMString conditionalMethod1();
    193190    void conditionalMethod2();
  • trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp

    r107191 r107204  
    333333    WebCore::TestObj * item = WebKit::core(self);
    334334    item->methodWithNonOptionalArgAndTwoOptionalArgs(non_opt, opt1, opt2);
    335 }
    336 
    337 void
    338 webkit_dom_test_obj_method_with_optional_string(WebKitDOMTestObj* self, const gchar* str)
    339 {
    340     g_return_if_fail(self);
    341     WebCore::JSMainThreadNullState state;
    342     WebCore::TestObj * item = WebKit::core(self);
    343     g_return_if_fail(str);
    344     WTF::String converted_str = WTF::String::fromUTF8(str);
    345     item->methodWithOptionalString(converted_str);
    346 }
    347 
    348 void
    349 webkit_dom_test_obj_method_with_optional_is_undefined_string(WebKitDOMTestObj* self, const gchar* str)
    350 {
    351     g_return_if_fail(self);
    352     WebCore::JSMainThreadNullState state;
    353     WebCore::TestObj * item = WebKit::core(self);
    354     g_return_if_fail(str);
    355     WTF::String converted_str = WTF::String::fromUTF8(str);
    356     item->methodWithOptionalIsUndefinedString(converted_str);
    357 }
    358 
    359 void
    360 webkit_dom_test_obj_method_with_optional_is_null_string_string(WebKitDOMTestObj* self, const gchar* str)
    361 {
    362     g_return_if_fail(self);
    363     WebCore::JSMainThreadNullState state;
    364     WebCore::TestObj * item = WebKit::core(self);
    365     g_return_if_fail(str);
    366     WTF::String converted_str = WTF::String::fromUTF8(str);
    367     item->methodWithOptionalIsNullStringString(converted_str);
    368335}
    369336
  • trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h

    r107191 r107204  
    263263
    264264/**
    265  * webkit_dom_test_obj_method_with_optional_string:
    266  * @self: A #WebKitDOMTestObj
    267  * @str: A #gchar
    268  *
    269  * Returns:
    270  *
    271 **/
    272 WEBKIT_API void
    273 webkit_dom_test_obj_method_with_optional_string(WebKitDOMTestObj* self, const gchar* str);
    274 
    275 /**
    276  * webkit_dom_test_obj_method_with_optional_is_undefined_string:
    277  * @self: A #WebKitDOMTestObj
    278  * @str: A #gchar
    279  *
    280  * Returns:
    281  *
    282 **/
    283 WEBKIT_API void
    284 webkit_dom_test_obj_method_with_optional_is_undefined_string(WebKitDOMTestObj* self, const gchar* str);
    285 
    286 /**
    287  * webkit_dom_test_obj_method_with_optional_is_null_string_string:
    288  * @self: A #WebKitDOMTestObj
    289  * @str: A #gchar
    290  *
    291  * Returns:
    292  *
    293 **/
    294 WEBKIT_API void
    295 webkit_dom_test_obj_method_with_optional_is_null_string_string(WebKitDOMTestObj* self, const gchar* str);
    296 
    297 /**
    298265 * webkit_dom_test_obj_conditional_method1:
    299266 * @self: A #WebKitDOMTestObj
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSFloat64Array.cpp

    r107182 r107204  
    236236    if (exec->argumentCount() < 1)
    237237        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    238     Float32Array* array(toFloat32Array(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     238    Float32Array* array(toFloat32Array(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    239239    if (exec->hadException())
    240240        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp

    r107182 r107204  
    187187    if (exec->argumentCount() < 1)
    188188        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    189     Node* nextChild(toNode(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     189    Node* nextChild(toNode(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    190190    if (exec->hadException())
    191191        return JSValue::encode(jsUndefined());
     
    204204    if (exec->argumentCount() < 1)
    205205        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    206     const String& message(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
     206    const String& message(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
    207207    if (exec->hadException())
    208208        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp

    r107182 r107204  
    177177    if (exec->argumentCount() < 1)
    178178        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    179     const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
     179    const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
    180180    if (exec->hadException())
    181181        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp

    r107182 r107204  
    232232    if (exec->argumentCount() < 1)
    233233        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    234     int index(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toUInt32(exec));
     234    int index(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toUInt32(exec));
    235235    if (index < 0) {
    236236        setDOMException(exec, INDEX_SIZE_ERR);
     
    289289        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    290290    ExceptionCode ec = 0;
    291     Event* evt(toEvent(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     291    Event* evt(toEvent(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    292292    if (exec->hadException())
    293293        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp

    r107182 r107204  
    119119        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    120120    ExceptionCode ec = 0;
    121     const String& str1(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
     121    const String& str1(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
    122122    if (exec->hadException())
    123123        return JSValue::encode(jsUndefined());
    124     const String& str2(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toString(exec)->value(exec)));
     124    const String& str2(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)->value(exec)));
    125125    if (exec->hadException())
    126126        return JSValue::encode(jsUndefined());
     
    324324    if (!scriptContext)
    325325        return JSValue::encode(jsUndefined());
    326     const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
     326    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
    327327    if (exec->hadException())
    328328        return JSValue::encode(jsUndefined());
    329     TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue)));
     329    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined)));
    330330    if (exec->hadException())
    331331        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp

    r107182 r107204  
    167167    if (exec->argumentCount() < 1)
    168168        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    169     RefPtr<MediaQueryListListener> listener(MediaQueryListListener::create(ScriptValue(exec->globalData(), MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue))));
     169    RefPtr<MediaQueryListListener> listener(MediaQueryListListener::create(ScriptValue(exec->globalData(), MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined))));
    170170    if (exec->hadException())
    171171        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp

    r107191 r107204  
    9898        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    9999    ExceptionCode ec = 0;
    100     const String& str1(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
     100    const String& str1(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
    101101    if (exec->hadException())
    102102        return JSValue::encode(jsUndefined());
    103     const String& str2(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toString(exec)->value(exec)));
     103    const String& str2(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)->value(exec)));
    104104    if (exec->hadException())
    105105        return JSValue::encode(jsUndefined());
    106     const String& str3(ustringToString(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsNullValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 2, MissingIsNullValue).toString(exec)->value(exec)));
     106    const String& str3(ustringToString(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsEmpty).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 2, MissingIsEmpty).toString(exec)->value(exec)));
    107107    if (exec->hadException())
    108108        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp

    r107191 r107204  
    270270    { "methodWithNonOptionalArgAndOptionalArg", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg), (intptr_t)2, NoIntrinsic },
    271271    { "methodWithNonOptionalArgAndTwoOptionalArgs", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs), (intptr_t)3, NoIntrinsic },
    272     { "methodWithOptionalString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalString), (intptr_t)1, NoIntrinsic },
    273     { "methodWithOptionalIsUndefinedString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString), (intptr_t)1, NoIntrinsic },
    274     { "methodWithOptionalIsNullStringString", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString), (intptr_t)1, NoIntrinsic },
    275272    { "methodWithCallbackArg", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithCallbackArg), (intptr_t)1, NoIntrinsic },
    276273    { "methodWithNonCallbackArgAndCallbackArg", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg), (intptr_t)2, NoIntrinsic },
     
    299296};
    300297
    301 static const HashTable JSTestObjPrototypeTable = { 266, 255, JSTestObjPrototypeTableValues, 0 };
     298static const HashTable JSTestObjPrototypeTable = { 138, 127, JSTestObjPrototypeTableValues, 0 };
    302299const ClassInfo JSTestObjPrototype::s_info = { "TestObjPrototype", &Base::s_info, &JSTestObjPrototypeTable, 0, CREATE_METHOD_TABLE(JSTestObjPrototype) };
    303300
     
    11911188    if (exec->argumentCount() < 3)
    11921189        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1193     int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
    1194     if (exec->hadException())
    1195         return JSValue::encode(jsUndefined());
    1196     const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toString(exec)->value(exec)));
    1197     if (exec->hadException())
    1198         return JSValue::encode(jsUndefined());
    1199     TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefinedValue)));
     1190    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
     1191    if (exec->hadException())
     1192        return JSValue::encode(jsUndefined());
     1193    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)->value(exec)));
     1194    if (exec->hadException())
     1195        return JSValue::encode(jsUndefined());
     1196    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefined)));
    12001197    if (exec->hadException())
    12011198        return JSValue::encode(jsUndefined());
     
    12271224    if (exec->argumentCount() < 3)
    12281225        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1229     int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
    1230     if (exec->hadException())
    1231         return JSValue::encode(jsUndefined());
    1232     const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toString(exec)->value(exec)));
    1233     if (exec->hadException())
    1234         return JSValue::encode(jsUndefined());
    1235     TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefinedValue)));
     1226    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
     1227    if (exec->hadException())
     1228        return JSValue::encode(jsUndefined());
     1229    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)->value(exec)));
     1230    if (exec->hadException())
     1231        return JSValue::encode(jsUndefined());
     1232    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefined)));
    12361233    if (exec->hadException())
    12371234        return JSValue::encode(jsUndefined());
     
    12641261    if (exec->argumentCount() < 3)
    12651262        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1266     int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
    1267     if (exec->hadException())
    1268         return JSValue::encode(jsUndefined());
    1269     const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toString(exec)->value(exec)));
    1270     if (exec->hadException())
    1271         return JSValue::encode(jsUndefined());
    1272     TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefinedValue)));
     1263    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
     1264    if (exec->hadException())
     1265        return JSValue::encode(jsUndefined());
     1266    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)->value(exec)));
     1267    if (exec->hadException())
     1268        return JSValue::encode(jsUndefined());
     1269    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefined)));
    12731270    if (exec->hadException())
    12741271        return JSValue::encode(jsUndefined());
     
    12891286        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    12901287    ExceptionCode ec = 0;
    1291     const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
    1292     if (exec->hadException())
    1293         return JSValue::encode(jsUndefined());
    1294     TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue)));
     1288    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
     1289    if (exec->hadException())
     1290        return JSValue::encode(jsUndefined());
     1291    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined)));
    12951292    if (exec->hadException())
    12961293        return JSValue::encode(jsUndefined());
     
    13111308    if (exec->argumentCount() < 1)
    13121309        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1313     RefPtr<SerializedScriptValue> serializedArg(SerializedScriptValue::create(exec, MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1310    RefPtr<SerializedScriptValue> serializedArg(SerializedScriptValue::create(exec, MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    13141311    if (exec->hadException())
    13151312        return JSValue::encode(jsUndefined());
     
    13281325    if (exec->argumentCount() < 1)
    13291326        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1330     RefPtr<IDBKey> key(createIDBKeyFromValue(exec, MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1327    RefPtr<IDBKey> key(createIDBKeyFromValue(exec, MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    13311328    if (exec->hadException())
    13321329        return JSValue::encode(jsUndefined());
     
    13451342    if (exec->argumentCount() < 1)
    13461343        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1347     OptionsObject* oo(toOptionsObject(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1344    OptionsObject* oo(toOptionsObject(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    13481345    if (exec->hadException())
    13491346        return JSValue::encode(jsUndefined());
     
    13551352    }
    13561353
    1357     OptionsObject* ooo(toOptionsObject(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue)));
     1354    OptionsObject* ooo(toOptionsObject(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined)));
    13581355    if (exec->hadException())
    13591356        return JSValue::encode(jsUndefined());
     
    14091406    RefPtr<ScriptArguments> scriptArguments(createScriptArguments(exec, 1));
    14101407    RefPtr<ScriptCallStack> callStack(createScriptCallStackForInspector(exec));
    1411     log* intArg(tolog(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1408    log* intArg(tolog(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    14121409    if (exec->hadException())
    14131410        return JSValue::encode(jsUndefined());
     
    15391536    }
    15401537
    1541     int opt(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
     1538    int opt(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    15421539    if (exec->hadException())
    15431540        return JSValue::encode(jsUndefined());
     
    15561553    if (exec->argumentCount() < 1)
    15571554        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1558     int nonOpt(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
     1555    int nonOpt(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    15591556    if (exec->hadException())
    15601557        return JSValue::encode(jsUndefined());
     
    15661563    }
    15671564
    1568     int opt(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toInt32(exec));
     1565    int opt(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toInt32(exec));
    15691566    if (exec->hadException())
    15701567        return JSValue::encode(jsUndefined());
     
    15831580    if (exec->argumentCount() < 1)
    15841581        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1585     int nonOpt(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
     1582    int nonOpt(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    15861583    if (exec->hadException())
    15871584        return JSValue::encode(jsUndefined());
     
    15931590    }
    15941591
    1595     int opt1(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toInt32(exec));
     1592    int opt1(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toInt32(exec));
    15961593    if (exec->hadException())
    15971594        return JSValue::encode(jsUndefined());
     
    16011598    }
    16021599
    1603     int opt2(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefinedValue).toInt32(exec));
     1600    int opt2(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefined).toInt32(exec));
    16041601    if (exec->hadException())
    16051602        return JSValue::encode(jsUndefined());
    16061603    impl->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
    1607     return JSValue::encode(jsUndefined());
    1608 }
    1609 
    1610 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalString(ExecState* exec)
    1611 {
    1612     JSValue thisValue = exec->hostThisValue();
    1613     if (!thisValue.inherits(&JSTestObj::s_info))
    1614         return throwVMTypeError(exec);
    1615     JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
    1616     ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    1617     TestObj* impl = static_cast<TestObj*>(castedThis->impl());
    1618 
    1619     size_t argsCount = exec->argumentCount();
    1620     if (argsCount <= 0) {
    1621         impl->methodWithOptionalString();
    1622         return JSValue::encode(jsUndefined());
    1623     }
    1624 
    1625     const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
    1626     if (exec->hadException())
    1627         return JSValue::encode(jsUndefined());
    1628     impl->methodWithOptionalString(str);
    1629     return JSValue::encode(jsUndefined());
    1630 }
    1631 
    1632 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString(ExecState* exec)
    1633 {
    1634     JSValue thisValue = exec->hostThisValue();
    1635     if (!thisValue.inherits(&JSTestObj::s_info))
    1636         return throwVMTypeError(exec);
    1637     JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
    1638     ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    1639     TestObj* impl = static_cast<TestObj*>(castedThis->impl());
    1640     const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
    1641     if (exec->hadException())
    1642         return JSValue::encode(jsUndefined());
    1643     impl->methodWithOptionalIsUndefinedString(str);
    1644     return JSValue::encode(jsUndefined());
    1645 }
    1646 
    1647 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString(ExecState* exec)
    1648 {
    1649     JSValue thisValue = exec->hostThisValue();
    1650     if (!thisValue.inherits(&JSTestObj::s_info))
    1651         return throwVMTypeError(exec);
    1652     JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
    1653     ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestObj::s_info);
    1654     TestObj* impl = static_cast<TestObj*>(castedThis->impl());
    1655     const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsNullValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsNullValue).toString(exec)->value(exec)));
    1656     if (exec->hadException())
    1657         return JSValue::encode(jsUndefined());
    1658     impl->methodWithOptionalIsNullStringString(str);
    16591604    return JSValue::encode(jsUndefined());
    16601605}
     
    16891634    if (exec->argumentCount() < 2)
    16901635        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1691     int nonCallback(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
     1636    int nonCallback(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    16921637    if (exec->hadException())
    16931638        return JSValue::encode(jsUndefined());
     
    17771722    if (exec->argumentCount() < 2)
    17781723        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1779     TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
    1780     if (exec->hadException())
    1781         return JSValue::encode(jsUndefined());
    1782     const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toString(exec)->value(exec)));
     1724    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
     1725    if (exec->hadException())
     1726        return JSValue::encode(jsUndefined());
     1727    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toString(exec)->value(exec)));
    17831728    if (exec->hadException())
    17841729        return JSValue::encode(jsUndefined());
     
    17971742    if (exec->argumentCount() < 1)
    17981743        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1799     TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1744    TestObj* objArg(toTestObj(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    18001745    if (exec->hadException())
    18011746        return JSValue::encode(jsUndefined());
     
    18071752    }
    18081753
    1809     int intArg(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toInt32(exec));
     1754    int intArg(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toInt32(exec));
    18101755    if (exec->hadException())
    18111756        return JSValue::encode(jsUndefined());
     
    18241769    if (exec->argumentCount() < 1)
    18251770        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1826     const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
     1771    const String& strArg(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
    18271772    if (exec->hadException())
    18281773        return JSValue::encode(jsUndefined());
     
    18411786    if (exec->argumentCount() < 1)
    18421787        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1843     int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
     1788    int intArg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    18441789    if (exec->hadException())
    18451790        return JSValue::encode(jsUndefined());
     
    18771822    if (exec->argumentCount() < 1)
    18781823        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1879     DOMStringList* listArg(toDOMStringList(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1824    DOMStringList* listArg(toDOMStringList(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    18801825    if (exec->hadException())
    18811826        return JSValue::encode(jsUndefined());
     
    18941839    if (exec->argumentCount() < 1)
    18951840        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1896     DOMStringList* arrayArg(toDOMStringList(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1841    DOMStringList* arrayArg(toDOMStringList(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    18971842    if (exec->hadException())
    18981843        return JSValue::encode(jsUndefined());
     
    19391884    }
    19401885
    1941     int arg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
     1886    int arg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    19421887    if (exec->hadException())
    19431888        return JSValue::encode(jsUndefined());
     
    19521897    if (exec->argumentCount() < 1)
    19531898        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1954     int arg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toInt32(exec));
     1899    int arg(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toInt32(exec));
    19551900    if (exec->hadException())
    19561901        return JSValue::encode(jsUndefined());
     
    19661911    if (exec->argumentCount() < 1)
    19671912        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    1968     const String& type(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
     1913    const String& type(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
    19691914    if (exec->hadException())
    19701915        return JSValue::encode(jsUndefined());
     
    20131958    if (exec->argumentCount() < 1)
    20141959        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    2015     a* (toa(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1960    a* (toa(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    20161961    if (exec->hadException())
    20171962        return JSValue::encode(jsUndefined());
     
    20301975    if (exec->argumentCount() < 1)
    20311976        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    2032     b* (tob(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1977    b* (tob(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    20331978    if (exec->hadException())
    20341979        return JSValue::encode(jsUndefined());
     
    20471992    if (exec->argumentCount() < 1)
    20481993        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    2049     c* (toc(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     1994    c* (toc(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    20501995    if (exec->hadException())
    20511996        return JSValue::encode(jsUndefined());
     
    20642009    if (exec->argumentCount() < 1)
    20652010        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    2066     d* (tod(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue)));
     2011    d* (tod(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    20672012    if (exec->hadException())
    20682013        return JSValue::encode(jsUndefined());
     
    20812026    if (exec->argumentCount() < 1)
    20822027        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    2083     e* (toe(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsNullValue)));
     2028    e* (toe(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined)));
    20842029    if (exec->hadException())
    20852030        return JSValue::encode(jsUndefined());
     
    21372082        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    21382083    ExceptionCode ec = 0;
    2139     const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
    2140     if (exec->hadException())
    2141         return JSValue::encode(jsUndefined());
    2142     float a(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue).toFloat(exec));
     2084    const String& str(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
     2085    if (exec->hadException())
     2086        return JSValue::encode(jsUndefined());
     2087    float a(MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined).toFloat(exec));
    21432088    if (exec->hadException())
    21442089        return JSValue::encode(jsUndefined());
    21452090    if (exec->argumentCount() > 2 && !exec->argument(2).isUndefinedOrNull() && !exec->argument(2).inherits(&JSint::s_info))
    21462091        return throwVMTypeError(exec);
    2147     int* b(toint(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefinedValue)));
     2092    int* b(toint(MAYBE_MISSING_PARAMETER(exec, 2, MissingIsUndefined)));
    21482093    if (exec->hadException())
    21492094        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h

    r107191 r107204  
    175175JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg(JSC::ExecState*);
    176176JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs(JSC::ExecState*);
    177 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalString(JSC::ExecState*);
    178 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsUndefinedString(JSC::ExecState*);
    179 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString(JSC::ExecState*);
    180177JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackArg(JSC::ExecState*);
    181178JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg(JSC::ExecState*);
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp

    r107182 r107204  
    9191    if (exec->argumentCount() < 2)
    9292        return throwVMError(exec, createTypeError(exec, "Not enough arguments"));
    93     const String& hello(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefinedValue).toString(exec)->value(exec)));
     93    const String& hello(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)->value(exec)));
    9494    if (exec->hadException())
    9595        return JSValue::encode(jsUndefined());
    96     RefPtr<SerializedScriptValue> value(SerializedScriptValue::create(exec, MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefinedValue)));
     96    RefPtr<SerializedScriptValue> value(SerializedScriptValue::create(exec, MAYBE_MISSING_PARAMETER(exec, 1, MissingIsUndefined)));
    9797    if (exec->hadException())
    9898        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h

    r107191 r107204  
    184184- (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt;
    185185- (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2;
    186 - (void)methodWithOptionalString:(NSString *)str;
    187 - (void)methodWithOptionalIsUndefinedString:(NSString *)str;
    188 - (void)methodWithOptionalIsNullStringString:(NSString *)str;
    189186- (NSString *)conditionalMethod1;
    190187- (void)conditionalMethod2;
  • trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm

    r107191 r107204  
    801801}
    802802
    803 - (void)methodWithOptionalString:(NSString *)str
    804 {
    805     WebCore::JSMainThreadNullState state;
    806     IMPL->methodWithOptionalString(str);
    807 }
    808 
    809 - (void)methodWithOptionalIsUndefinedString:(NSString *)str
    810 {
    811     WebCore::JSMainThreadNullState state;
    812     IMPL->methodWithOptionalIsUndefinedString(str);
    813 }
    814 
    815 - (void)methodWithOptionalIsNullStringString:(NSString *)str
    816 {
    817     WebCore::JSMainThreadNullState state;
    818     IMPL->methodWithOptionalIsNullStringString(str);
    819 }
    820 
    821803
    822804#if ENABLE(Condition1)
  • trunk/Source/WebCore/bindings/scripts/test/TestInterface.idl

    r107182 r107204  
    3535        Conditional=Condition1|Condition2,
    3636        CallWith=ScriptExecutionContext,
    37         Constructor(in DOMString str1, in [Optional=TreatAsUndefined] DOMString str2),
     37        Constructor(in DOMString str1, in [Optional=CallWithDefaultValue] DOMString str2),
    3838        ConstructorRaisesException
    3939    ] TestInterface {
  • trunk/Source/WebCore/bindings/scripts/test/TestNamedConstructor.idl

    r107182 r107204  
    3232    interface [
    3333        ActiveDOMObject,
    34         NamedConstructor=Audio(in DOMString str1, in [Optional=TreatAsUndefined] DOMString str2, in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] DOMString str3),
     34        NamedConstructor=Audio(in DOMString str1, in [Optional=CallWithDefaultValue] DOMString str2, in [Optional=CallWithNullValue] DOMString str3),
    3535        ConstructorRaisesException
    3636    ] TestNamedConstructor {
  • trunk/Source/WebCore/bindings/scripts/test/TestObj.idl

    r107191 r107204  
    119119        void    methodWithNonOptionalArgAndOptionalArg(in long nonOpt, in [Optional] long opt);
    120120        void    methodWithNonOptionalArgAndTwoOptionalArgs(in long nonOpt, in [Optional] long opt1, in [Optional] long opt2);
    121         void    methodWithOptionalString(in [Optional] DOMString str);
    122         void    methodWithOptionalIsUndefinedString(in [Optional=TreatAsUndefined] DOMString str);
    123         void    methodWithOptionalIsNullStringString(in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] DOMString str);
    124121
    125122#if defined(TESTING_V8) || defined(TESTING_JS)
     
    192189            raises(DOMException);
    193190
    194         void convert1(in [TreatReturnedNullStringAs=Null] a);
    195         void convert2(in [TreatReturnedNullStringAs=Undefined] b);
    196         void convert3(in [TreatReturnedNullStringAs=False] c);
     191        void convert1(in [ConvertNullStringTo=Null] a);
     192        void convert2(in [ConvertNullStringTo=Undefined] b);
     193        void convert3(in [ConvertNullStringTo=False] c);
    197194        void convert4(in [TreatNullAs=NullString] d);
    198195        void convert5(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] e);
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.cpp

    r107182 r107204  
    5555        return throwError("Not enough arguments", V8Proxy::TypeError);
    5656    Float64Array* imp = V8Float64Array::toNative(args.Holder());
    57     EXCEPTION_BLOCK(Float32Array*, array, V8Float32Array::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8Float32Array::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     57    EXCEPTION_BLOCK(Float32Array*, array, V8Float32Array::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8Float32Array::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    5858    return toV8(imp->foo(array));
    5959}
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestActiveDOMObject.cpp

    r107182 r107204  
    5656    if (!V8BindingSecurity::canAccessFrame(V8BindingState::Only(), imp->frame(), true))
    5757        return v8::Handle<v8::Value>();
    58     EXCEPTION_BLOCK(Node*, nextChild, V8Node::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     58    EXCEPTION_BLOCK(Node*, nextChild, V8Node::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    5959    imp->excitingFunction(nextChild);
    6060    return v8::Handle<v8::Value>();
     
    6767        return throwError("Not enough arguments", V8Proxy::TypeError);
    6868    TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder());
    69     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, message, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
     69    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, message, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
    7070    imp->postMessage(message);
    7171    return v8::Handle<v8::Value>();
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp

    r107182 r107204  
    4646        return throwError("Not enough arguments", V8Proxy::TypeError);
    4747    TestCustomNamedGetter* imp = V8TestCustomNamedGetter::toNative(args.Holder());
    48     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
     48    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
    4949    imp->anotherFunction(str);
    5050    return v8::Handle<v8::Value>();
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventTarget.cpp

    r107182 r107204  
    5151    ExceptionCode ec = 0;
    5252    {
    53     EXCEPTION_BLOCK(int, index, toUInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     53    EXCEPTION_BLOCK(int, index, toUInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    5454    if (UNLIKELY(index < 0)) {
    5555        ec = INDEX_SIZE_ERR;
     
    9393    ExceptionCode ec = 0;
    9494    {
    95     EXCEPTION_BLOCK(Event*, evt, V8Event::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8Event::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     95    EXCEPTION_BLOCK(Event*, evt, V8Event::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8Event::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    9696    bool result = imp->dispatchEvent(evt, ec);
    9797    if (UNLIKELY(ec))
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp

    r107182 r107204  
    104104    ExceptionCode ec = 0;
    105105    {
    106     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
    107     EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue))) : 0);
     106    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
     107    EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined))) : 0);
    108108    ScriptExecutionContext* scriptContext = getScriptExecutionContext();
    109109    if (!scriptContext)
     
    177177
    178178    ExceptionCode ec = 0;
    179     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str1, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
    180     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str2, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue));
     179    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str1, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
     180    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str2, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined));
    181181
    182182    ScriptExecutionContext* context = getScriptExecutionContext();
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp

    r107182 r107204  
    4747        return throwError("Not enough arguments", V8Proxy::TypeError);
    4848    TestMediaQueryListListener* imp = V8TestMediaQueryListListener::toNative(args.Holder());
    49     EXCEPTION_BLOCK(RefPtr<MediaQueryListListener>, listener, MediaQueryListListener::create(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     49    EXCEPTION_BLOCK(RefPtr<MediaQueryListListener>, listener, MediaQueryListListener::create(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    5050    imp->method(listener);
    5151    return v8::Handle<v8::Value>();
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp

    r107182 r107204  
    6868
    6969    ExceptionCode ec = 0;
    70     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str1, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
    71     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str2, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue));
    72     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str3, MAYBE_MISSING_PARAMETER(args, 2, MissingIsNullValue));
     70    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str1, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
     71    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str2, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined));
     72    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str3, MAYBE_MISSING_PARAMETER(args, 2, MissingIsEmpty));
    7373
    7474    RefPtr<TestNamedConstructor> impl = TestNamedConstructor::createForJSConstructor(document, str1, str2, str3, ec);
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp

    r107191 r107204  
    876876        return throwError("Not enough arguments", V8Proxy::TypeError);
    877877    TestObj* imp = V8TestObj::toNative(args.Holder());
    878     EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
    879     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue));
    880     EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefinedValue)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefinedValue))) : 0);
     878    EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
     879    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined));
     880    EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined))) : 0);
    881881    imp->voidMethodWithArgs(intArg, strArg, objArg);
    882882    return v8::Handle<v8::Value>();
     
    896896        return throwError("Not enough arguments", V8Proxy::TypeError);
    897897    TestObj* imp = V8TestObj::toNative(args.Holder());
    898     EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
    899     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue));
    900     EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefinedValue)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefinedValue))) : 0);
     898    EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
     899    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined));
     900    EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined))) : 0);
    901901    return v8::Integer::New(imp->intMethodWithArgs(intArg, strArg, objArg));
    902902}
     
    915915        return throwError("Not enough arguments", V8Proxy::TypeError);
    916916    TestObj* imp = V8TestObj::toNative(args.Holder());
    917     EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
    918     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue));
    919     EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefinedValue)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefinedValue))) : 0);
     917    EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
     918    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined));
     919    EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined))) : 0);
    920920    return toV8(imp->objMethodWithArgs(intArg, strArg, objArg));
    921921}
     
    929929    ExceptionCode ec = 0;
    930930    {
    931     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
    932     EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue))) : 0);
     931    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
     932    EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined))) : 0);
    933933    RefPtr<TestObj> result = imp->methodThatRequiresAllArgsAndThrows(strArg, objArg, ec);
    934934    if (UNLIKELY(ec))
     
    961961        return throwError("Not enough arguments", V8Proxy::TypeError);
    962962    TestObj* imp = V8TestObj::toNative(args.Holder());
    963     EXCEPTION_BLOCK(RefPtr<IDBKey>, key, createIDBKeyFromValue(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     963    EXCEPTION_BLOCK(RefPtr<IDBKey>, key, createIDBKeyFromValue(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    964964    imp->idbKey(key);
    965965    return v8::Handle<v8::Value>();
     
    972972        return throwError("Not enough arguments", V8Proxy::TypeError);
    973973    TestObj* imp = V8TestObj::toNative(args.Holder());
    974     EXCEPTION_BLOCK(OptionsObject, oo, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
     974    EXCEPTION_BLOCK(OptionsObject, oo, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
    975975    if (args.Length() > 0 && !oo.isUndefinedOrNull() && !oo.isObject()) {
    976976        ec = TYPE_MISMATCH_ERR;
     
    982982        return v8::Handle<v8::Value>();
    983983    }
    984     EXCEPTION_BLOCK(OptionsObject, ooo, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue));
     984    EXCEPTION_BLOCK(OptionsObject, ooo, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined));
    985985    if (args.Length() > 1 && !ooo.isUndefinedOrNull() && !ooo.isObject()) {
    986986        ec = TYPE_MISMATCH_ERR;
     
    10201020    if (!callStack)
    10211021        return v8::Undefined();
    1022     EXCEPTION_BLOCK(log*, intArg, V8log::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8log::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     1022    EXCEPTION_BLOCK(log*, intArg, V8log::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8log::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    10231023    imp->customArgsAndException(intArg, scriptArguments, callStack, ec);
    10241024    if (UNLIKELY(ec))
     
    11321132        return v8::Handle<v8::Value>();
    11331133    }
    1134     EXCEPTION_BLOCK(int, opt, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     1134    EXCEPTION_BLOCK(int, opt, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    11351135    imp->methodWithOptionalArg(opt);
    11361136    return v8::Handle<v8::Value>();
     
    11431143        return throwError("Not enough arguments", V8Proxy::TypeError);
    11441144    TestObj* imp = V8TestObj::toNative(args.Holder());
    1145     EXCEPTION_BLOCK(int, nonOpt, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     1145    EXCEPTION_BLOCK(int, nonOpt, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    11461146    if (args.Length() <= 1) {
    11471147        imp->methodWithNonOptionalArgAndOptionalArg(nonOpt);
    11481148        return v8::Handle<v8::Value>();
    11491149    }
    1150     EXCEPTION_BLOCK(int, opt, toInt32(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue)));
     1150    EXCEPTION_BLOCK(int, opt, toInt32(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined)));
    11511151    imp->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
    11521152    return v8::Handle<v8::Value>();
     
    11591159        return throwError("Not enough arguments", V8Proxy::TypeError);
    11601160    TestObj* imp = V8TestObj::toNative(args.Holder());
    1161     EXCEPTION_BLOCK(int, nonOpt, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     1161    EXCEPTION_BLOCK(int, nonOpt, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    11621162    if (args.Length() <= 1) {
    11631163        imp->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt);
    11641164        return v8::Handle<v8::Value>();
    11651165    }
    1166     EXCEPTION_BLOCK(int, opt1, toInt32(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue)));
     1166    EXCEPTION_BLOCK(int, opt1, toInt32(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined)));
    11671167    if (args.Length() <= 2) {
    11681168        imp->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1);
    11691169        return v8::Handle<v8::Value>();
    11701170    }
    1171     EXCEPTION_BLOCK(int, opt2, toInt32(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefinedValue)));
     1171    EXCEPTION_BLOCK(int, opt2, toInt32(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined)));
    11721172    imp->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
    1173     return v8::Handle<v8::Value>();
    1174 }
    1175 
    1176 static v8::Handle<v8::Value> methodWithOptionalStringCallback(const v8::Arguments& args)
    1177 {
    1178     INC_STATS("DOM.TestObj.methodWithOptionalString");
    1179     TestObj* imp = V8TestObj::toNative(args.Holder());
    1180     if (args.Length() <= 0) {
    1181         imp->methodWithOptionalString();
    1182         return v8::Handle<v8::Value>();
    1183     }
    1184     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
    1185     imp->methodWithOptionalString(str);
    1186     return v8::Handle<v8::Value>();
    1187 }
    1188 
    1189 static v8::Handle<v8::Value> methodWithOptionalIsUndefinedStringCallback(const v8::Arguments& args)
    1190 {
    1191     INC_STATS("DOM.TestObj.methodWithOptionalIsUndefinedString");
    1192     TestObj* imp = V8TestObj::toNative(args.Holder());
    1193     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
    1194     imp->methodWithOptionalIsUndefinedString(str);
    1195     return v8::Handle<v8::Value>();
    1196 }
    1197 
    1198 static v8::Handle<v8::Value> methodWithOptionalIsNullStringStringCallback(const v8::Arguments& args)
    1199 {
    1200     INC_STATS("DOM.TestObj.methodWithOptionalIsNullStringString");
    1201     TestObj* imp = V8TestObj::toNative(args.Holder());
    1202     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str, MAYBE_MISSING_PARAMETER(args, 0, MissingIsNullValue));
    1203     imp->methodWithOptionalIsNullStringString(str);
    12041173    return v8::Handle<v8::Value>();
    12051174}
     
    12241193        return throwError("Not enough arguments", V8Proxy::TypeError);
    12251194    TestObj* imp = V8TestObj::toNative(args.Holder());
    1226     EXCEPTION_BLOCK(int, nonCallback, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     1195    EXCEPTION_BLOCK(int, nonCallback, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    12271196    if (args.Length() <= 1 || !args[1]->IsObject())
    12281197        return throwError(TYPE_MISMATCH_ERR);
     
    12871256        return throwError("Not enough arguments", V8Proxy::TypeError);
    12881257    TestObj* imp = V8TestObj::toNative(args.Holder());
    1289     EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
    1290     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue));
     1258    EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
     1259    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined));
    12911260    imp->overloadedMethod(objArg, strArg);
    12921261    return v8::Handle<v8::Value>();
     
    12991268        return throwError("Not enough arguments", V8Proxy::TypeError);
    13001269    TestObj* imp = V8TestObj::toNative(args.Holder());
    1301     EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     1270    EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    13021271    if (args.Length() <= 1) {
    13031272        imp->overloadedMethod(objArg);
    13041273        return v8::Handle<v8::Value>();
    13051274    }
    1306     EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue)));
     1275    EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined)));
    13071276    imp->overloadedMethod(objArg, intArg);
    13081277    return v8::Handle<v8::Value>();
     
    13151284        return throwError("Not enough arguments", V8Proxy::TypeError);
    13161285    TestObj* imp = V8TestObj::toNative(args.Holder());
    1317     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
     1286    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
    13181287    imp->overloadedMethod(strArg);
    13191288    return v8::Handle<v8::Value>();
     
    13261295        return throwError("Not enough arguments", V8Proxy::TypeError);
    13271296    TestObj* imp = V8TestObj::toNative(args.Holder());
    1328     EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     1297    EXCEPTION_BLOCK(int, intArg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    13291298    imp->overloadedMethod(intArg);
    13301299    return v8::Handle<v8::Value>();
     
    13501319        return throwError("Not enough arguments", V8Proxy::TypeError);
    13511320    TestObj* imp = V8TestObj::toNative(args.Holder());
    1352     EXCEPTION_BLOCK(RefPtr<DOMStringList>, listArg, v8ValueToWebCoreDOMStringList(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     1321    EXCEPTION_BLOCK(RefPtr<DOMStringList>, listArg, v8ValueToWebCoreDOMStringList(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    13531322    imp->overloadedMethod(listArg);
    13541323    return v8::Handle<v8::Value>();
     
    13611330        return throwError("Not enough arguments", V8Proxy::TypeError);
    13621331    TestObj* imp = V8TestObj::toNative(args.Holder());
    1363     EXCEPTION_BLOCK(RefPtr<DOMStringList>, arrayArg, v8ValueToWebCoreDOMStringList(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     1332    EXCEPTION_BLOCK(RefPtr<DOMStringList>, arrayArg, v8ValueToWebCoreDOMStringList(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    13641333    imp->overloadedMethod(arrayArg);
    13651334    return v8::Handle<v8::Value>();
     
    14001369        return v8::Integer::New(TestObj::classMethodWithOptional());
    14011370    }
    1402     EXCEPTION_BLOCK(int, arg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     1371    EXCEPTION_BLOCK(int, arg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    14031372    return v8::Integer::New(TestObj::classMethodWithOptional(arg));
    14041373}
     
    14111380    if (args.Length() < 1)
    14121381        return throwError("Not enough arguments", V8Proxy::TypeError);
    1413     EXCEPTION_BLOCK(int, arg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)));
     1382    EXCEPTION_BLOCK(int, arg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)));
    14141383    TestObj::overloadedMethod1(arg);
    14151384    return v8::Handle<v8::Value>();
     
    14251394    if (args.Length() < 1)
    14261395        return throwError("Not enough arguments", V8Proxy::TypeError);
    1427     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, type, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
     1396    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, type, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
    14281397    TestObj::overloadedMethod1(type);
    14291398    return v8::Handle<v8::Value>();
     
    14531422        return throwError("Not enough arguments", V8Proxy::TypeError);
    14541423    TestObj* imp = V8TestObj::toNative(args.Holder());
    1455     EXCEPTION_BLOCK(int, intArg, V8int::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8int::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     1424    EXCEPTION_BLOCK(int, intArg, V8int::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8int::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    14561425    imp->enabledAtRuntimeMethod1(intArg);
    14571426    return v8::Handle<v8::Value>();
     
    14641433        return throwError("Not enough arguments", V8Proxy::TypeError);
    14651434    TestObj* imp = V8TestObj::toNative(args.Holder());
    1466     EXCEPTION_BLOCK(int, intArg, V8int::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8int::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     1435    EXCEPTION_BLOCK(int, intArg, V8int::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8int::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    14671436    imp->enabledAtRuntimeMethod2(intArg);
    14681437    return v8::Handle<v8::Value>();
     
    14931462        return throwError("Not enough arguments", V8Proxy::TypeError);
    14941463    TestObj* imp = V8TestObj::toNative(args.Holder());
    1495     EXCEPTION_BLOCK(a*, , V8a::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8a::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     1464    EXCEPTION_BLOCK(a*, , V8a::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8a::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    14961465    imp->convert1();
    14971466    return v8::Handle<v8::Value>();
     
    15041473        return throwError("Not enough arguments", V8Proxy::TypeError);
    15051474    TestObj* imp = V8TestObj::toNative(args.Holder());
    1506     EXCEPTION_BLOCK(b*, , V8b::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8b::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     1475    EXCEPTION_BLOCK(b*, , V8b::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8b::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    15071476    imp->convert2();
    15081477    return v8::Handle<v8::Value>();
     
    15151484        return throwError("Not enough arguments", V8Proxy::TypeError);
    15161485    TestObj* imp = V8TestObj::toNative(args.Holder());
    1517     EXCEPTION_BLOCK(c*, , V8c::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8c::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     1486    EXCEPTION_BLOCK(c*, , V8c::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8c::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    15181487    imp->convert3();
    15191488    return v8::Handle<v8::Value>();
     
    15261495        return throwError("Not enough arguments", V8Proxy::TypeError);
    15271496    TestObj* imp = V8TestObj::toNative(args.Holder());
    1528     EXCEPTION_BLOCK(d*, , V8d::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue)) ? V8d::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue))) : 0);
     1497    EXCEPTION_BLOCK(d*, , V8d::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8d::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    15291498    imp->convert4();
    15301499    return v8::Handle<v8::Value>();
     
    15371506        return throwError("Not enough arguments", V8Proxy::TypeError);
    15381507    TestObj* imp = V8TestObj::toNative(args.Holder());
    1539     EXCEPTION_BLOCK(e*, , V8e::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsNullValue)) ? V8e::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsNullValue))) : 0);
     1508    EXCEPTION_BLOCK(e*, , V8e::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)) ? V8e::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined))) : 0);
    15401509    imp->convert5();
    15411510    return v8::Handle<v8::Value>();
     
    15721541    ExceptionCode ec = 0;
    15731542    {
    1574     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
    1575     EXCEPTION_BLOCK(float, a, static_cast<float>(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefinedValue)->NumberValue()));
    1576     EXCEPTION_BLOCK(int, b, V8int::HasInstance(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefinedValue)) ? V8int::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefinedValue))) : 0);
     1543    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, str, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
     1544    EXCEPTION_BLOCK(float, a, static_cast<float>(MAYBE_MISSING_PARAMETER(args, 1, MissingIsUndefined)->NumberValue()));
     1545    EXCEPTION_BLOCK(int, b, V8int::HasInstance(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined)) ? V8int::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 2, MissingIsUndefined))) : 0);
    15771546    RefPtr<bool> result = imp->strictFunction(str, a, b, ec);
    15781547    if (UNLIKELY(ec))
     
    17181687    {"methodWithNonOptionalArgAndOptionalArg", TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback},
    17191688    {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback},
    1720     {"methodWithOptionalString", TestObjInternal::methodWithOptionalStringCallback},
    1721     {"methodWithOptionalIsUndefinedString", TestObjInternal::methodWithOptionalIsUndefinedStringCallback},
    1722     {"methodWithOptionalIsNullStringString", TestObjInternal::methodWithOptionalIsNullStringStringCallback},
    17231689    {"methodWithCallbackArg", TestObjInternal::methodWithCallbackArgCallback},
    17241690    {"methodWithNonCallbackArgAndCallbackArg", TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback},
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp

    r107182 r107204  
    128128    if (args.Length() < 2)
    129129        return throwError("Not enough arguments", V8Proxy::TypeError);
    130     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, hello, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefinedValue));
     130    STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, hello, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined));
    131131    bool valueDidThrow = false;
    132132    RefPtr<SerializedScriptValue> value = SerializedScriptValue::create(args[1], 0, 0, valueDidThrow);
  • trunk/Source/WebCore/bindings/v8/V8Binding.h

    r107182 r107204  
    513513
    514514    enum ParameterMissingPolicy {
    515         MissingIsUndefinedValue,
    516         MissingIsNullValue
     515        MissingIsUndefined,
     516        MissingIsEmpty
    517517    };
    518518
  • trunk/Source/WebCore/bindings/v8/custom/V8BindingMacros.h

    r107182 r107204  
    4949
    5050#define MAYBE_MISSING_PARAMETER(args, index, policy) \
    51     (((policy) == MissingIsNullValue && (index) >= (args).Length()) ? (v8::Local<v8::Value>()) : ((args)[(index)]))
     51    (((policy) == MissingIsEmpty && (index) >= (args).Length()) ? (v8::Local<v8::Value>()) : ((args)[(index)]))
  • trunk/Source/WebCore/css/CSSCharsetRule.idl

    r107189 r107204  
    2424    interface CSSCharsetRule : CSSRule {
    2525#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
    26         readonly attribute [TreatReturnedNullStringAs=Null] DOMString encoding;
     26        readonly attribute [ConvertNullStringTo=Null] DOMString encoding;
    2727#else
    28                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString encoding
     28                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString encoding
    2929                     setter raises(DOMException);
    3030#endif
  • trunk/Source/WebCore/css/CSSImportRule.idl

    r107189 r107204  
    2323    // Introduced in DOM Level 2:
    2424    interface CSSImportRule : CSSRule {
    25         readonly attribute [TreatReturnedNullStringAs=Null] DOMString href;
     25        readonly attribute [ConvertNullStringTo=Null] DOMString href;
    2626        readonly attribute MediaList media;
    2727        readonly attribute CSSStyleSheet styleSheet;
  • trunk/Source/WebCore/css/CSSMediaRule.idl

    r107182 r107204  
    2626        readonly attribute CSSRuleList cssRules;
    2727       
    28         [ObjCLegacyUnnamedParameters] unsigned long      insertRule(in [Optional=TreatAsUndefined] DOMString rule,
    29                                                      in [Optional=TreatAsUndefined] unsigned long index)
     28        [ObjCLegacyUnnamedParameters] unsigned long      insertRule(in [Optional=CallWithDefaultValue] DOMString rule,
     29                                                     in [Optional=CallWithDefaultValue] unsigned long index)
    3030            raises(DOMException);
    31         void               deleteRule(in [Optional=TreatAsUndefined] unsigned long index)
     31        void               deleteRule(in [Optional=CallWithDefaultValue] unsigned long index)
    3232            raises(DOMException);
    3333    };
  • trunk/Source/WebCore/css/CSSPageRule.idl

    r107189 r107204  
    2424    interface CSSPageRule : CSSRule {
    2525
    26                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString selectorText;
     26                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString selectorText;
    2727
    2828        readonly attribute CSSStyleDeclaration style;
  • trunk/Source/WebCore/css/CSSPrimitiveValue.idl

    r107182 r107204  
    5252        readonly attribute unsigned short primitiveType;
    5353
    54         [ObjCLegacyUnnamedParameters] void setFloatValue(in [Optional=TreatAsUndefined] unsigned short unitType,
    55                                           in [Optional=TreatAsUndefined] float floatValue)
     54        [ObjCLegacyUnnamedParameters] void setFloatValue(in [Optional=CallWithDefaultValue] unsigned short unitType,
     55                                          in [Optional=CallWithDefaultValue] float floatValue)
    5656            raises(DOMException);
    57         float getFloatValue(in [Optional=TreatAsUndefined] unsigned short unitType)
     57        float getFloatValue(in [Optional=CallWithDefaultValue] unsigned short unitType)
    5858            raises(DOMException);
    59         [ObjCLegacyUnnamedParameters] void setStringValue(in [Optional=TreatAsUndefined] unsigned short stringType,
    60                                            in [Optional=TreatAsUndefined] DOMString stringValue)
     59        [ObjCLegacyUnnamedParameters] void setStringValue(in [Optional=CallWithDefaultValue] unsigned short stringType,
     60                                           in [Optional=CallWithDefaultValue] DOMString stringValue)
    6161            raises(DOMException);
    6262        DOMString getStringValue()
  • trunk/Source/WebCore/css/CSSRule.idl

    r107189 r107204  
    4444        readonly attribute unsigned short   type;
    4545
    46                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString        cssText
     46                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString        cssText
    4747                     setter raises (DOMException);
    4848
  • trunk/Source/WebCore/css/CSSRuleList.idl

    r107182 r107204  
    3333    ] CSSRuleList {
    3434        readonly attribute unsigned long    length;
    35         CSSRule           item(in [Optional=TreatAsUndefined] unsigned long index);
     35        CSSRule           item(in [Optional=CallWithDefaultValue] unsigned long index);
    3636    };
    3737
  • trunk/Source/WebCore/css/CSSStyleDeclaration.idl

    r107189 r107204  
    3131        V8DependentLifetime
    3232    ] CSSStyleDeclaration {
    33                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString        cssText
     33                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString        cssText
    3434                     setter raises(DOMException);
    3535
    36         [TreatReturnedNullStringAs=Null] DOMString          getPropertyValue(in [Optional=TreatAsUndefined] DOMString propertyName);
    37         [JSCustom] CSSValue           getPropertyCSSValue(in [Optional=TreatAsUndefined] DOMString propertyName);
    38         [TreatReturnedNullStringAs=Null] DOMString          removeProperty(in [Optional=TreatAsUndefined] DOMString propertyName)
     36        [ConvertNullStringTo=Null] DOMString          getPropertyValue(in [Optional=CallWithDefaultValue] DOMString propertyName);
     37        [JSCustom] CSSValue           getPropertyCSSValue(in [Optional=CallWithDefaultValue] DOMString propertyName);
     38        [ConvertNullStringTo=Null] DOMString          removeProperty(in [Optional=CallWithDefaultValue] DOMString propertyName)
    3939            raises(DOMException);
    40         [TreatReturnedNullStringAs=Null] DOMString          getPropertyPriority(in [Optional=TreatAsUndefined] DOMString propertyName);
    41         [ObjCLegacyUnnamedParameters] void setProperty(in [Optional=TreatAsUndefined] DOMString propertyName,
    42                                         in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString value,
    43                                         in [Optional=TreatAsUndefined] DOMString priority)
     40        [ConvertNullStringTo=Null] DOMString          getPropertyPriority(in [Optional=CallWithDefaultValue] DOMString propertyName);
     41        [ObjCLegacyUnnamedParameters] void setProperty(in [Optional=CallWithDefaultValue] DOMString propertyName,
     42                                        in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString value,
     43                                        in [Optional=CallWithDefaultValue] DOMString priority)
    4444            raises(DOMException);
    4545
    4646        readonly attribute unsigned long    length;
    47         DOMString          item(in [Optional=TreatAsUndefined] unsigned long index);
     47        DOMString          item(in [Optional=CallWithDefaultValue] unsigned long index);
    4848        readonly attribute CSSRule          parentRule;
    4949
    5050        // Extensions
    51         [TreatReturnedNullStringAs=Null] DOMString          getPropertyShorthand(in [Optional=TreatAsUndefined] DOMString propertyName);
    52         boolean            isPropertyImplicit(in [Optional=TreatAsUndefined] DOMString propertyName);
     51        [ConvertNullStringTo=Null] DOMString          getPropertyShorthand(in [Optional=CallWithDefaultValue] DOMString propertyName);
     52        boolean            isPropertyImplicit(in [Optional=CallWithDefaultValue] DOMString propertyName);
    5353    };
    5454
  • trunk/Source/WebCore/css/CSSStyleRule.idl

    r107189 r107204  
    2424    interface CSSStyleRule : CSSRule {
    2525
    26                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString selectorText;
     26                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString selectorText;
    2727
    2828        readonly attribute CSSStyleDeclaration style;
  • trunk/Source/WebCore/css/CSSStyleSheet.idl

    r107182 r107204  
    2626        readonly attribute CSSRuleList      cssRules;
    2727
    28         [ObjCLegacyUnnamedParameters] unsigned long insertRule(in [Optional=TreatAsUndefined] DOMString rule,
    29                                                 in [Optional=TreatAsUndefined] unsigned long index)
     28        [ObjCLegacyUnnamedParameters] unsigned long insertRule(in [Optional=CallWithDefaultValue] DOMString rule,
     29                                                in [Optional=CallWithDefaultValue] unsigned long index)
    3030            raises(DOMException);
    31         void               deleteRule(in [Optional=TreatAsUndefined] unsigned long index)
     31        void               deleteRule(in [Optional=CallWithDefaultValue] unsigned long index)
    3232            raises(DOMException);
    3333
     
    3535        readonly attribute CSSRuleList      rules;
    3636
    37         long addRule(in [Optional=TreatAsUndefined] DOMString selector,
    38                      in [Optional=TreatAsUndefined] DOMString style,
     37        long addRule(in [Optional=CallWithDefaultValue] DOMString selector,
     38                     in [Optional=CallWithDefaultValue] DOMString style,
    3939                     in [Optional] unsigned long index)
    4040            raises(DOMException);
    41         void removeRule(in [Optional=TreatAsUndefined] unsigned long index)
     41        void removeRule(in [Optional=CallWithDefaultValue] unsigned long index)
    4242            raises(DOMException);
    4343    };
  • trunk/Source/WebCore/css/CSSValue.idl

    r107189 r107204  
    3535        const unsigned short CSS_CUSTOM          = 3;
    3636
    37                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString cssText
     37                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString cssText
    3838                     setter raises(DOMException);
    3939
  • trunk/Source/WebCore/css/CSSValueList.idl

    r107182 r107204  
    3131    ] CSSValueList : CSSValue {
    3232        readonly attribute unsigned long    length;
    33         CSSValue           item(in [Optional=TreatAsUndefined] unsigned long index);
     33        CSSValue           item(in [Optional=CallWithDefaultValue] unsigned long index);
    3434    };
    3535
  • trunk/Source/WebCore/css/MediaList.idl

    r107189 r107204  
    3232    ] MediaList {
    3333
    34                  attribute [TreatNullAs=NullString, TreatReturnedNullStringAs=Null] DOMString mediaText
     34                 attribute [TreatNullAs=NullString, ConvertNullStringTo=Null] DOMString mediaText
    3535                     setter raises(DOMException);
    3636        readonly attribute unsigned long length;
    3737
    38         [TreatReturnedNullStringAs=Null] DOMString item(in [Optional=TreatAsUndefined] unsigned long index);
    39         void deleteMedium(in [Optional=TreatAsUndefined] DOMString oldMedium)
     38        [ConvertNullStringTo=Null] DOMString item(in [Optional=CallWithDefaultValue] unsigned long index);
     39        void deleteMedium(in [Optional=CallWithDefaultValue] DOMString oldMedium)
    4040            raises(DOMException);
    41         void appendMedium(in [Optional=TreatAsUndefined] DOMString newMedium)
     41        void appendMedium(in [Optional=CallWithDefaultValue] DOMString newMedium)
    4242            raises(DOMException);
    4343
  • trunk/Source/WebCore/css/MediaQueryList.idl

    r107182 r107204  
    2222        readonly attribute DOMString media;
    2323        readonly attribute boolean matches;
    24         void addListener(in [Optional=TreatAsUndefined] MediaQueryListListener listener);
    25         void removeListener(in [Optional=TreatAsUndefined] MediaQueryListListener listener);
     24        void addListener(in [Optional=CallWithDefaultValue] MediaQueryListListener listener);
     25        void removeListener(in [Optional=CallWithDefaultValue] MediaQueryListListener listener);
    2626    };
    2727}
  • trunk/Source/WebCore/css/MediaQueryListListener.idl

    r107182 r107204  
    2525        OmitConstructor
    2626    ] MediaQueryListListener {
    27         void queryChanged(in [Optional=TreatAsUndefined] MediaQueryList list);
     27        void queryChanged(in [Optional=CallWithDefaultValue] MediaQueryList list);
    2828    };
    2929}
  • trunk/Source/WebCore/css/StyleMedia.idl

    r107182 r107204  
    3030    ] StyleMedia {
    3131        readonly attribute DOMString type;
    32         boolean matchMedium(in [Optional=TreatAsUndefined] DOMString mediaquery);
     32        boolean matchMedium(in [Optional=CallWithDefaultValue] DOMString mediaquery);
    3333    };
    3434}
  • trunk/Source/WebCore/css/StyleSheet.idl

    r107189 r107204  
    2929        V8DependentLifetime
    3030    ] StyleSheet {
    31         readonly attribute [TreatReturnedNullStringAs=Null] DOMString        type;
     31        readonly attribute [ConvertNullStringTo=Null] DOMString        type;
    3232                 attribute boolean          disabled;
    3333        readonly attribute Node             ownerNode;
    3434        readonly attribute StyleSheet       parentStyleSheet;
    35         readonly attribute [TreatReturnedNullStringAs=Null] DOMString        href;
    36         readonly attribute [TreatReturnedNullStringAs=Null] DOMString        title;
     35        readonly attribute [ConvertNullStringTo=Null] DOMString        href;
     36        readonly attribute [ConvertNullStringTo=Null] DOMString        title;
    3737        readonly attribute MediaList        media;
    3838
  • trunk/Source/WebCore/css/StyleSheetList.idl

    r107182 r107204  
    2929    ] StyleSheetList {
    3030        readonly attribute unsigned long    length;
    31         StyleSheet         item(in [Optional=TreatAsUndefined] unsigned long index);
     31        StyleSheet         item(in [Optional=CallWithDefaultValue] unsigned long index);
    3232    };
    3333
  • trunk/Source/WebCore/css/WebKitCSSKeyframesRule.idl

    r107189 r107204  
    3434    ] WebKitCSSKeyframesRule : CSSRule {
    3535
    36         attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString name;
     36        attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString name;
    3737        readonly attribute CSSRuleList cssRules;
    3838       
    39         void insertRule(in [Optional=TreatAsUndefined] DOMString rule);
    40         void deleteRule(in [Optional=TreatAsUndefined] DOMString key);
    41         WebKitCSSKeyframeRule findRule(in [Optional=TreatAsUndefined] DOMString key);
     39        void insertRule(in [Optional=CallWithDefaultValue] DOMString rule);
     40        void deleteRule(in [Optional=CallWithDefaultValue] DOMString key);
     41        WebKitCSSKeyframeRule findRule(in [Optional=CallWithDefaultValue] DOMString key);
    4242    };
    4343
  • trunk/Source/WebCore/css/WebKitCSSMatrix.idl

    r107182 r107204  
    2929    interface [
    3030        ConstructorParameters=1,
    31         Constructor(in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] DOMString cssValue),
     31        Constructor(in [Optional=CallWithNullValue] DOMString cssValue),
    3232        ConstructorRaisesException,
    3333    ] WebKitCSSMatrix {
     
    5858        attribute double m44;
    5959
    60         void setMatrixValue(in [Optional=TreatAsUndefined] DOMString string) raises (DOMException);
     60        void setMatrixValue(in [Optional=CallWithDefaultValue] DOMString string) raises (DOMException);
    6161       
    6262        // Multiply this matrix by secondMatrix, on the right (result = this * secondMatrix)
    63         [Immutable] WebKitCSSMatrix multiply(in [Optional=TreatAsUndefined] WebKitCSSMatrix secondMatrix);
     63        [Immutable] WebKitCSSMatrix multiply(in [Optional=CallWithDefaultValue] WebKitCSSMatrix secondMatrix);
    6464       
    6565        // Return the inverse of this matrix. Throw an exception if the matrix is not invertible
     
    6868        // Return this matrix translated by the passed values.
    6969        // Passing a NaN will use a value of 0. This allows the 3D form to used for 2D operations   
    70         [Immutable] WebKitCSSMatrix translate(in [Optional=TreatAsUndefined] double x,
    71                                               in [Optional=TreatAsUndefined] double y,
    72                                               in [Optional=TreatAsUndefined] double z);
     70        [Immutable] WebKitCSSMatrix translate(in [Optional=CallWithDefaultValue] double x,
     71                                              in [Optional=CallWithDefaultValue] double y,
     72                                              in [Optional=CallWithDefaultValue] double z);
    7373       
    7474        // Returns this matrix scaled by the passed values.
    7575        // Passing scaleX or scaleZ as NaN uses a value of 1, but passing scaleY of NaN
    7676        // makes it the same as scaleX. This allows the 3D form to used for 2D operations
    77         [Immutable] WebKitCSSMatrix scale(in [Optional=TreatAsUndefined] double scaleX,
    78                                           in [Optional=TreatAsUndefined] double scaleY,
    79                                           in [Optional=TreatAsUndefined] double scaleZ);
     77        [Immutable] WebKitCSSMatrix scale(in [Optional=CallWithDefaultValue] double scaleX,
     78                                          in [Optional=CallWithDefaultValue] double scaleY,
     79                                          in [Optional=CallWithDefaultValue] double scaleZ);
    8080       
    8181        // Returns this matrix rotated by the passed values.
    8282        // If rotY and rotZ are NaN, rotate about Z (rotX=0, rotateY=0, rotateZ=rotX).
    8383        // Otherwise use a rotation value of 0 for any passed NaN.   
    84         [Immutable] WebKitCSSMatrix rotate(in [Optional=TreatAsUndefined] double rotX,
    85                                            in [Optional=TreatAsUndefined] double rotY,
    86                                            in [Optional=TreatAsUndefined] double rotZ);
     84        [Immutable] WebKitCSSMatrix rotate(in [Optional=CallWithDefaultValue] double rotX,
     85                                           in [Optional=CallWithDefaultValue] double rotY,
     86                                           in [Optional=CallWithDefaultValue] double rotZ);
    8787       
    8888        // Returns this matrix rotated about the passed axis by the passed angle.
    8989        // Passing a NaN will use a value of 0. If the axis is (0,0,0) use a value
    9090        // of (0,0,1).
    91         [Immutable] WebKitCSSMatrix rotateAxisAngle(in [Optional=TreatAsUndefined] double x,
    92                                                     in [Optional=TreatAsUndefined] double y,
    93                                                     in [Optional=TreatAsUndefined] double z,
    94                                                     in [Optional=TreatAsUndefined] double angle);
     91        [Immutable] WebKitCSSMatrix rotateAxisAngle(in [Optional=CallWithDefaultValue] double x,
     92                                                    in [Optional=CallWithDefaultValue] double y,
     93                                                    in [Optional=CallWithDefaultValue] double z,
     94                                                    in [Optional=CallWithDefaultValue] double angle);
    9595
    9696        // Returns this matrix skewed along the X axis by the passed values.
    9797        // Passing a NaN will use a value of 0.
    98         [Immutable] WebKitCSSMatrix skewX(in [Optional=TreatAsUndefined] double angle);
     98        [Immutable] WebKitCSSMatrix skewX(in [Optional=CallWithDefaultValue] double angle);
    9999
    100100        // Returns this matrix skewed along the Y axis by the passed values.
    101101        // Passing a NaN will use a value of 0.
    102         [Immutable] WebKitCSSMatrix skewY(in [Optional=TreatAsUndefined] double angle);
     102        [Immutable] WebKitCSSMatrix skewY(in [Optional=CallWithDefaultValue] double angle);
    103103
    104104        [NotEnumerable] DOMString toString();
  • trunk/Source/WebCore/dom/Attr.idl

    r107189 r107204  
    2828        // DOM Level 1
    2929
    30         readonly attribute [TreatReturnedNullStringAs=Null] DOMString name;
     30        readonly attribute [ConvertNullStringTo=Null] DOMString name;
    3131
    3232        readonly attribute boolean specified;
    3333
    34                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString value
     34                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString value
    3535                     setter raises(DOMException);
    3636
  • trunk/Source/WebCore/dom/CharacterData.idl

    r107189 r107204  
    2727        readonly attribute unsigned long length;
    2828       
    29         [TreatReturnedNullStringAs=Null, ObjCLegacyUnnamedParameters] DOMString substringData(in [IsIndex,Optional=TreatAsUndefined] unsigned long offset,
    30                                                                          in [IsIndex,Optional=TreatAsUndefined] unsigned long length)
     29        [ConvertNullStringTo=Null, ObjCLegacyUnnamedParameters] DOMString substringData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
     30                                                                         in [IsIndex,Optional=CallWithDefaultValue] unsigned long length)
    3131            raises(DOMException);
    3232
    33         void appendData(in [Optional=TreatAsUndefined] DOMString data)
     33        void appendData(in [Optional=CallWithDefaultValue] DOMString data)
    3434            raises(DOMException);
    3535
    36         [ObjCLegacyUnnamedParameters] void insertData(in [IsIndex,Optional=TreatAsUndefined] unsigned long offset,
    37                                        in [Optional=TreatAsUndefined] DOMString data)
     36        [ObjCLegacyUnnamedParameters] void insertData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
     37                                       in [Optional=CallWithDefaultValue] DOMString data)
    3838            raises(DOMException);
    3939
    40         [ObjCLegacyUnnamedParameters] void deleteData(in [IsIndex,Optional=TreatAsUndefined] unsigned long offset,
    41                                        in [IsIndex,Optional=TreatAsUndefined] unsigned long length)
     40        [ObjCLegacyUnnamedParameters] void deleteData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
     41                                       in [IsIndex,Optional=CallWithDefaultValue] unsigned long length)
    4242            raises(DOMException);
    4343
    44         [ObjCLegacyUnnamedParameters] void replaceData(in [IsIndex,Optional=TreatAsUndefined] unsigned long offset,
    45                                         in [IsIndex,Optional=TreatAsUndefined] unsigned long length,
    46                                         in [Optional=TreatAsUndefined] DOMString data)
     44        [ObjCLegacyUnnamedParameters] void replaceData(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset,
     45                                        in [IsIndex,Optional=CallWithDefaultValue] unsigned long length,
     46                                        in [Optional=CallWithDefaultValue] DOMString data)
    4747            raises(DOMException);
    4848   
  • trunk/Source/WebCore/dom/ClientRectList.idl

    r107182 r107204  
    3131    ] ClientRectList {
    3232        readonly attribute unsigned long length;
    33         ClientRect item(in [IsIndex,Optional=TreatAsUndefined] unsigned long index);
     33        ClientRect item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
    3434        // FIXME: Fix list behavior to allow custom exceptions to be thrown.
    3535    };
  • trunk/Source/WebCore/dom/Clipboard.idl

    r107189 r107204  
    3030
    3131    interface Clipboard {
    32                  attribute [TreatReturnedNullStringAs=Undefined] DOMString dropEffect;
    33                  attribute [TreatReturnedNullStringAs=Undefined] DOMString effectAllowed;
     32                 attribute [ConvertNullStringTo=Undefined] DOMString dropEffect;
     33                 attribute [ConvertNullStringTo=Undefined] DOMString effectAllowed;
    3434        readonly attribute [CustomGetter] Array types;
    3535        readonly attribute FileList files;
  • trunk/Source/WebCore/dom/CompositionEvent.idl

    r107182 r107204  
    3131        readonly attribute DOMString data;
    3232
    33         void initCompositionEvent(in [Optional=TreatAsUndefined] DOMString typeArg,
    34                                   in [Optional=TreatAsUndefined] boolean canBubbleArg,
    35                                   in [Optional=TreatAsUndefined] boolean cancelableArg,
    36                                   in [Optional=TreatAsUndefined] DOMWindow viewArg,
    37                                   in [Optional=TreatAsUndefined] DOMString dataArg);
     33        void initCompositionEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,
     34                                  in [Optional=CallWithDefaultValue] boolean canBubbleArg,
     35                                  in [Optional=CallWithDefaultValue] boolean cancelableArg,
     36                                  in [Optional=CallWithDefaultValue] DOMWindow viewArg,
     37                                  in [Optional=CallWithDefaultValue] DOMString dataArg);
    3838
    3939    };
  • trunk/Source/WebCore/dom/CustomEvent.idl

    r107182 r107204  
    3333        readonly attribute [InitializedByEventConstructor] DOMObject detail;
    3434
    35         void initCustomEvent(in [Optional=TreatAsUndefined] DOMString typeArg,
    36                              in [Optional=TreatAsUndefined] boolean canBubbleArg,
    37                              in [Optional=TreatAsUndefined] boolean cancelableArg,
    38                              in [Optional=TreatAsUndefined] DOMObject detailArg);
     35        void initCustomEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,
     36                             in [Optional=CallWithDefaultValue] boolean canBubbleArg,
     37                             in [Optional=CallWithDefaultValue] boolean cancelableArg,
     38                             in [Optional=CallWithDefaultValue] DOMObject detailArg);
    3939    };
    4040#endif
  • trunk/Source/WebCore/dom/DOMImplementation.idl

    r107182 r107204  
    2828        // DOM Level 1
    2929
    30         [ObjCLegacyUnnamedParameters] boolean hasFeature(in [Optional=TreatAsUndefined] DOMString feature,
    31                                           in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString version);
     30        [ObjCLegacyUnnamedParameters] boolean hasFeature(in [Optional=CallWithDefaultValue] DOMString feature,
     31                                          in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString version);
    3232
    3333        // DOM Level 2
    3434
    35         [ObjCLegacyUnnamedParameters] DocumentType createDocumentType(in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=TreatAsUndefined] DOMString qualifiedName,
    36                                                        in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=TreatAsUndefined] DOMString publicId,
    37                                                        in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=TreatAsUndefined] DOMString systemId)
     35        [ObjCLegacyUnnamedParameters] DocumentType createDocumentType(in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString qualifiedName,
     36                                                       in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString publicId,
     37                                                       in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString systemId)
    3838            raises(DOMException);
    39         [ObjCLegacyUnnamedParameters] Document createDocument(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    40                                                in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString qualifiedName,
    41                                                in [TreatNullAs=NullString,Optional=TreatAsUndefined] DocumentType doctype)
     39        [ObjCLegacyUnnamedParameters] Document createDocument(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     40                                               in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString qualifiedName,
     41                                               in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DocumentType doctype)
    4242            raises(DOMException);
    4343
    4444        // DOMImplementationCSS interface from DOM Level 2 CSS
    4545
    46         [ObjCLegacyUnnamedParameters] CSSStyleSheet createCSSStyleSheet(in [Optional=TreatAsUndefined] DOMString title,
    47                                                          in [Optional=TreatAsUndefined] DOMString media)
     46        [ObjCLegacyUnnamedParameters] CSSStyleSheet createCSSStyleSheet(in [Optional=CallWithDefaultValue] DOMString title,
     47                                                         in [Optional=CallWithDefaultValue] DOMString media)
    4848            raises(DOMException);
    4949
    5050        // HTMLDOMImplementation interface from DOM Level 2 HTML
    5151
    52         HTMLDocument createHTMLDocument(in [Optional=TreatAsUndefined] DOMString title);
     52        HTMLDocument createHTMLDocument(in [Optional=CallWithDefaultValue] DOMString title);
    5353    };
    5454
  • trunk/Source/WebCore/dom/DOMStringList.idl

    r107189 r107204  
    3030    ] DOMStringList {
    3131        readonly attribute unsigned long length;
    32         [TreatReturnedNullStringAs=Null] DOMString item(in [IsIndex,Optional=TreatAsUndefined] unsigned long index);
    33         boolean contains(in [Optional=TreatAsUndefined] DOMString string);
     32        [ConvertNullStringTo=Null] DOMString item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
     33        boolean contains(in [Optional=CallWithDefaultValue] DOMString string);
    3434    };
    3535
  • trunk/Source/WebCore/dom/DataTransferItem.idl

    r107182 r107204  
    3737        readonly attribute DOMString type;
    3838
    39         void getAsString(in [Callback,Optional=TreatAsUndefined] StringCallback callback);
     39        void getAsString(in [Callback,Optional=CallWithDefaultValue] StringCallback callback);
    4040        Blob getAsFile();
    4141    };
  • trunk/Source/WebCore/dom/DataTransferItemList.idl

    r107182 r107204  
    4040    ] DataTransferItemList {
    4141        readonly attribute long length;
    42         DataTransferItem item(in [Optional=TreatAsUndefined] unsigned long index);
     42        DataTransferItem item(in [Optional=CallWithDefaultValue] unsigned long index);
    4343
    4444        void clear();
    4545        void add(in File file);
    46         void add(in [Optional=TreatAsUndefined] DOMString data,
    47                  in [Optional=TreatAsUndefined] DOMString type) raises(DOMException);
     46        void add(in [Optional=CallWithDefaultValue] DOMString data,
     47                 in [Optional=CallWithDefaultValue] DOMString type) raises(DOMException);
    4848    };
    4949
  • trunk/Source/WebCore/dom/DeviceMotionEvent.idl

    r107182 r107204  
    3333        readonly attribute [Custom] RotationRate rotationRate;
    3434        readonly attribute [Custom] double interval;
    35         [Custom] void initDeviceMotionEvent(in [Optional=TreatAsUndefined] DOMString type,
    36                                             in [Optional=TreatAsUndefined] boolean bubbles,
    37                                             in [Optional=TreatAsUndefined] boolean cancelable,
    38                                             in [Optional=TreatAsUndefined] Acceleration acceleration,
    39                                             in [Optional=TreatAsUndefined] Acceleration accelerationIncludingGravity,
    40                                             in [Optional=TreatAsUndefined] RotationRate rotationRate,
    41                                             in [Optional=TreatAsUndefined] double interval);
     35        [Custom] void initDeviceMotionEvent(in [Optional=CallWithDefaultValue] DOMString type,
     36                                            in [Optional=CallWithDefaultValue] boolean bubbles,
     37                                            in [Optional=CallWithDefaultValue] boolean cancelable,
     38                                            in [Optional=CallWithDefaultValue] Acceleration acceleration,
     39                                            in [Optional=CallWithDefaultValue] Acceleration accelerationIncludingGravity,
     40                                            in [Optional=CallWithDefaultValue] RotationRate rotationRate,
     41                                            in [Optional=CallWithDefaultValue] double interval);
    4242    };
    4343
  • trunk/Source/WebCore/dom/DeviceOrientationEvent.idl

    r107182 r107204  
    3333        readonly attribute [Custom] double gamma;
    3434        readonly attribute [Custom] boolean absolute;
    35         [Custom] void initDeviceOrientationEvent(in [Optional=TreatAsUndefined] DOMString type,
    36                                                  in [Optional=TreatAsUndefined] boolean bubbles,
    37                                                  in [Optional=TreatAsUndefined] boolean cancelable,
    38                                                  in [Optional=TreatAsUndefined] double alpha,
    39                                                  in [Optional=TreatAsUndefined] double beta,
    40                                                  in [Optional=TreatAsUndefined] double gamma,
    41                                                  in [Optional=TreatAsUndefined] boolean absolute);
     35        [Custom] void initDeviceOrientationEvent(in [Optional=CallWithDefaultValue] DOMString type,
     36                                                 in [Optional=CallWithDefaultValue] boolean bubbles,
     37                                                 in [Optional=CallWithDefaultValue] boolean cancelable,
     38                                                 in [Optional=CallWithDefaultValue] double alpha,
     39                                                 in [Optional=CallWithDefaultValue] double beta,
     40                                                 in [Optional=CallWithDefaultValue] double gamma,
     41                                                 in [Optional=CallWithDefaultValue] boolean absolute);
    4242    };
    4343
  • trunk/Source/WebCore/dom/Document.idl

    r107189 r107204  
    3232        readonly attribute Element documentElement;
    3333
    34         [ReturnNewObject] Element createElement(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString tagName)
     34        [ReturnNewObject] Element createElement(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString tagName)
    3535            raises (DOMException);
    3636        DocumentFragment   createDocumentFragment();
    37         [ReturnNewObject] Text createTextNode(in [Optional=TreatAsUndefined] DOMString data);
    38         [ReturnNewObject] Comment createComment(in [Optional=TreatAsUndefined] DOMString data);
    39         [ReturnNewObject] CDATASection createCDATASection(in [Optional=TreatAsUndefined] DOMString data)
    40             raises(DOMException);
    41         [ObjCLegacyUnnamedParameters, ReturnNewObject] ProcessingInstruction createProcessingInstruction(in [Optional=TreatAsUndefined] DOMString target,
    42                                                                                      in [Optional=TreatAsUndefined] DOMString data)
    43             raises (DOMException);
    44         [ReturnNewObject] Attr createAttribute(in [Optional=TreatAsUndefined] DOMString name)
    45             raises (DOMException);
    46         [ReturnNewObject] EntityReference createEntityReference(in [Optional=TreatAsUndefined] DOMString name)
    47             raises(DOMException);
    48         NodeList           getElementsByTagName(in [Optional=TreatAsUndefined] DOMString tagname);
     37        [ReturnNewObject] Text createTextNode(in [Optional=CallWithDefaultValue] DOMString data);
     38        [ReturnNewObject] Comment createComment(in [Optional=CallWithDefaultValue] DOMString data);
     39        [ReturnNewObject] CDATASection createCDATASection(in [Optional=CallWithDefaultValue] DOMString data)
     40            raises(DOMException);
     41        [ObjCLegacyUnnamedParameters, ReturnNewObject] ProcessingInstruction createProcessingInstruction(in [Optional=CallWithDefaultValue] DOMString target,
     42                                                                                     in [Optional=CallWithDefaultValue] DOMString data)
     43            raises (DOMException);
     44        [ReturnNewObject] Attr createAttribute(in [Optional=CallWithDefaultValue] DOMString name)
     45            raises (DOMException);
     46        [ReturnNewObject] EntityReference createEntityReference(in [Optional=CallWithDefaultValue] DOMString name)
     47            raises(DOMException);
     48        NodeList           getElementsByTagName(in [Optional=CallWithDefaultValue] DOMString tagname);
    4949
    5050        // Introduced in DOM Level 2:
    5151
    52         [ObjCLegacyUnnamedParameters, ReturnNewObject] Node importNode(in [Optional=TreatAsUndefined] Node importedNode,
     52        [ObjCLegacyUnnamedParameters, ReturnNewObject] Node importNode(in [Optional=CallWithDefaultValue] Node importedNode,
    5353                                                   in [Optional] boolean deep)
    5454            raises (DOMException);
    55         [ObjCLegacyUnnamedParameters, ReturnNewObject] Element createElementNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    56                                                            in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString qualifiedName)
    57             raises (DOMException);
    58         [ObjCLegacyUnnamedParameters, ReturnNewObject] Attr createAttributeNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    59                                                           in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString qualifiedName)
    60             raises (DOMException);
    61         [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    62                                                        in [Optional=TreatAsUndefined] DOMString localName);
    63         Element            getElementById(in [Optional=TreatAsUndefined] DOMString elementId);
     55        [ObjCLegacyUnnamedParameters, ReturnNewObject] Element createElementNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     56                                                           in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString qualifiedName)
     57            raises (DOMException);
     58        [ObjCLegacyUnnamedParameters, ReturnNewObject] Attr createAttributeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     59                                                          in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString qualifiedName)
     60            raises (DOMException);
     61        [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     62                                                       in [Optional=CallWithDefaultValue] DOMString localName);
     63        Element            getElementById(in [Optional=CallWithDefaultValue] DOMString elementId);
    6464
    6565        // DOM Level 3 Core
    6666
    67         readonly attribute [TreatReturnedNullStringAs=Null] DOMString inputEncoding;
    68 
    69         readonly attribute [TreatReturnedNullStringAs=Null] DOMString xmlEncoding;
    70                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString xmlVersion
     67        readonly attribute [ConvertNullStringTo=Null] DOMString inputEncoding;
     68
     69        readonly attribute [ConvertNullStringTo=Null] DOMString xmlEncoding;
     70                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString xmlVersion
    7171                    setter raises (DOMException);
    7272                 attribute boolean xmlStandalone
    7373                    setter raises (DOMException);
    7474
    75         Node               adoptNode(in [Optional=TreatAsUndefined] Node source)
    76             raises (DOMException);
    77 
    78                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString documentURI;
     75        Node               adoptNode(in [Optional=CallWithDefaultValue] Node source)
     76            raises (DOMException);
     77
     78                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString documentURI;
    7979
    8080        // DOM Level 2 Events (DocumentEvents interface)
    8181
    82         Event              createEvent(in [Optional=TreatAsUndefined] DOMString eventType)
     82        Event              createEvent(in [Optional=CallWithDefaultValue] DOMString eventType)
    8383            raises(DOMException);
    8484
     
    8989        // DOM Level 2 Tranversal and Range (DocumentTraversal interface)
    9090
    91         [ObjCLegacyUnnamedParameters] NodeIterator createNodeIterator(in [Optional=TreatAsUndefined] Node root,
    92                                                        in [Optional=TreatAsUndefined] unsigned long whatToShow,
    93                                                        in [Optional=TreatAsUndefined] NodeFilter filter,
    94                                                        in [Optional=TreatAsUndefined] boolean expandEntityReferences)
    95             raises(DOMException);
    96         [ObjCLegacyUnnamedParameters] TreeWalker createTreeWalker(in [Optional=TreatAsUndefined] Node root,
    97                                                    in [Optional=TreatAsUndefined] unsigned long whatToShow,
    98                                                    in [Optional=TreatAsUndefined] NodeFilter filter,
    99                                                    in [Optional=TreatAsUndefined] boolean expandEntityReferences)
     91        [ObjCLegacyUnnamedParameters] NodeIterator createNodeIterator(in [Optional=CallWithDefaultValue] Node root,
     92                                                       in [Optional=CallWithDefaultValue] unsigned long whatToShow,
     93                                                       in [Optional=CallWithDefaultValue] NodeFilter filter,
     94                                                       in [Optional=CallWithDefaultValue] boolean expandEntityReferences)
     95            raises(DOMException);
     96        [ObjCLegacyUnnamedParameters] TreeWalker createTreeWalker(in [Optional=CallWithDefaultValue] Node root,
     97                                                   in [Optional=CallWithDefaultValue] unsigned long whatToShow,
     98                                                   in [Optional=CallWithDefaultValue] NodeFilter filter,
     99                                                   in [Optional=CallWithDefaultValue] boolean expandEntityReferences)
    100100            raises(DOMException);
    101101
     
    110110        // DOM Level 2 Style (DocumentCSS interface)
    111111
    112         [ObjCLegacyUnnamedParameters] CSSStyleDeclaration getOverrideStyle(in [Optional=TreatAsUndefined] Element element,
    113                                                             in [Optional=TreatAsUndefined] DOMString pseudoElement);
     112        [ObjCLegacyUnnamedParameters] CSSStyleDeclaration getOverrideStyle(in [Optional=CallWithDefaultValue] Element element,
     113                                                            in [Optional=CallWithDefaultValue] DOMString pseudoElement);
    114114
    115115        // DOM Level 3 XPath (XPathEvaluator interface)
    116         [ObjCLegacyUnnamedParameters] XPathExpression createExpression(in [Optional=TreatAsUndefined] DOMString expression,
    117                                                         in [Optional=TreatAsUndefined] XPathNSResolver resolver)
     116        [ObjCLegacyUnnamedParameters] XPathExpression createExpression(in [Optional=CallWithDefaultValue] DOMString expression,
     117                                                        in [Optional=CallWithDefaultValue] XPathNSResolver resolver)
    118118            raises(DOMException);
    119119        XPathNSResolver    createNSResolver(in Node nodeResolver);
    120         [ObjCLegacyUnnamedParameters, V8Custom] XPathResult evaluate(in [Optional=TreatAsUndefined] DOMString expression,
    121                                                       in [Optional=TreatAsUndefined] Node contextNode,
    122                                                       in [Optional=TreatAsUndefined] XPathNSResolver resolver,
    123                                                       in [Optional=TreatAsUndefined] unsigned short type,
    124                                                       in [Optional=TreatAsUndefined] XPathResult inResult)
     120        [ObjCLegacyUnnamedParameters, V8Custom] XPathResult evaluate(in [Optional=CallWithDefaultValue] DOMString expression,
     121                                                      in [Optional=CallWithDefaultValue] Node contextNode,
     122                                                      in [Optional=CallWithDefaultValue] XPathNSResolver resolver,
     123                                                      in [Optional=CallWithDefaultValue] unsigned short type,
     124                                                      in [Optional=CallWithDefaultValue] XPathResult inResult)
    125125            raises(DOMException);
    126126
    127127        // Common extensions
    128128
    129         boolean            execCommand(in [Optional=TreatAsUndefined] DOMString command,
    130                                        in [Optional=TreatAsUndefined] boolean userInterface,
    131                                        in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=TreatAsUndefined] DOMString value);
     129        boolean            execCommand(in [Optional=CallWithDefaultValue] DOMString command,
     130                                       in [Optional=CallWithDefaultValue] boolean userInterface,
     131                                       in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString value);
    132132
    133133#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
     
    138138#endif
    139139
    140         boolean            queryCommandEnabled(in [Optional=TreatAsUndefined] DOMString command);
    141         boolean            queryCommandIndeterm(in [Optional=TreatAsUndefined] DOMString command);
    142         boolean            queryCommandState(in [Optional=TreatAsUndefined] DOMString command);
    143         boolean            queryCommandSupported(in [Optional=TreatAsUndefined] DOMString command);
    144         [TreatReturnedNullStringAs=False] DOMString queryCommandValue(in [Optional=TreatAsUndefined] DOMString command);
     140        boolean            queryCommandEnabled(in [Optional=CallWithDefaultValue] DOMString command);
     141        boolean            queryCommandIndeterm(in [Optional=CallWithDefaultValue] DOMString command);
     142        boolean            queryCommandState(in [Optional=CallWithDefaultValue] DOMString command);
     143        boolean            queryCommandSupported(in [Optional=CallWithDefaultValue] DOMString command);
     144        [ConvertNullStringTo=False] DOMString queryCommandValue(in [Optional=CallWithDefaultValue] DOMString command);
    145145
    146146        // Moved down from HTMLDocument
     
    173173        readonly attribute DOMString lastModified;
    174174
    175         NodeList getElementsByName(in [Optional=TreatAsUndefined] DOMString elementName);
     175        NodeList getElementsByName(in [Optional=CallWithDefaultValue] DOMString elementName);
    176176
    177177#if defined(ENABLE_MICRODATA) && ENABLE_MICRODATA
    178         NodeList getItems(in [TreatNullAs=NullString, TreatUndefinedAs=NullString, Optional=TreatAsUndefined] DOMString typeNames);
     178        NodeList getItems(in [TreatNullAs=NullString, TreatUndefinedAs=NullString, Optional=CallWithDefaultValue] DOMString typeNames);
    179179#endif
    180180
     
    185185        // IE extensions
    186186
    187                  attribute [TreatReturnedNullStringAs=Undefined, TreatNullAs=NullString] DOMString charset;
    188         readonly attribute [TreatReturnedNullStringAs=Undefined] DOMString defaultCharset;
    189         readonly attribute [TreatReturnedNullStringAs=Undefined] DOMString readyState;
    190 
    191         Element            elementFromPoint(in [Optional=TreatAsUndefined] long x,
    192                                             in [Optional=TreatAsUndefined] long y);
    193         Range              caretRangeFromPoint(in [Optional=TreatAsUndefined] long x,
    194                                                in [Optional=TreatAsUndefined] long y);
     187                 attribute [ConvertNullStringTo=Undefined, TreatNullAs=NullString] DOMString charset;
     188        readonly attribute [ConvertNullStringTo=Undefined] DOMString defaultCharset;
     189        readonly attribute [ConvertNullStringTo=Undefined] DOMString readyState;
     190
     191        Element            elementFromPoint(in [Optional=CallWithDefaultValue] long x,
     192                                            in [Optional=CallWithDefaultValue] long y);
     193        Range              caretRangeFromPoint(in [Optional=CallWithDefaultValue] long x,
     194                                               in [Optional=CallWithDefaultValue] long y);
    195195
    196196        // Mozilla extensions
     
    198198        DOMSelection       getSelection();
    199199#endif
    200         readonly attribute [TreatReturnedNullStringAs=Null] DOMString characterSet;
     200        readonly attribute [ConvertNullStringTo=Null] DOMString characterSet;
    201201
    202202        // WebKit extensions
    203203
    204         readonly attribute [TreatReturnedNullStringAs=Null] DOMString preferredStylesheetSet;
    205                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString selectedStylesheetSet;
     204        readonly attribute [ConvertNullStringTo=Null] DOMString preferredStylesheetSet;
     205                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString selectedStylesheetSet;
    206206
    207207#if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
     
    231231
    232232        // HTML 5
    233         NodeList getElementsByClassName(in [Optional=TreatAsUndefined] DOMString tagname);
     233        NodeList getElementsByClassName(in [Optional=CallWithDefaultValue] DOMString tagname);
    234234
    235235        readonly attribute DOMString compatMode;
     
    326326
    327327#if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS
    328         [ReturnNewObject, V8EnabledAtRuntime] Touch createTouch(in [Optional=TreatAsUndefined] DOMWindow window,
    329                                                          in [Optional=TreatAsUndefined] EventTarget target,
    330                                                          in [Optional=TreatAsUndefined] long identifier,
    331                                                          in [Optional=TreatAsUndefined] long pageX,
    332                                                          in [Optional=TreatAsUndefined] long pageY,
    333                                                          in [Optional=TreatAsUndefined] long screenX,
    334                                                          in [Optional=TreatAsUndefined] long screenY,
    335                                                          in [Optional=TreatAsUndefined] long webkitRadiusX,
    336                                                          in [Optional=TreatAsUndefined] long webkitRadiusY,
    337                                                          in [Optional=TreatAsUndefined] float webkitRotationAngle,
    338                                                          in [Optional=TreatAsUndefined] float webkitForce)
     328        [ReturnNewObject, V8EnabledAtRuntime] Touch createTouch(in [Optional=CallWithDefaultValue] DOMWindow window,
     329                                                         in [Optional=CallWithDefaultValue] EventTarget target,
     330                                                         in [Optional=CallWithDefaultValue] long identifier,
     331                                                         in [Optional=CallWithDefaultValue] long pageX,
     332                                                         in [Optional=CallWithDefaultValue] long pageY,
     333                                                         in [Optional=CallWithDefaultValue] long screenX,
     334                                                         in [Optional=CallWithDefaultValue] long screenY,
     335                                                         in [Optional=CallWithDefaultValue] long webkitRadiusX,
     336                                                         in [Optional=CallWithDefaultValue] long webkitRadiusY,
     337                                                         in [Optional=CallWithDefaultValue] float webkitRotationAngle,
     338                                                         in [Optional=CallWithDefaultValue] float webkitForce)
    339339            raises (DOMException);
    340340        [ReturnNewObject, V8EnabledAtRuntime, Custom] TouchList createTouchList()
  • trunk/Source/WebCore/dom/DocumentType.idl

    r107189 r107204  
    3232        // DOM Level 2
    3333
    34         readonly attribute [TreatReturnedNullStringAs=Null] DOMString publicId;
    35         readonly attribute [TreatReturnedNullStringAs=Null] DOMString systemId;
    36         readonly attribute [TreatReturnedNullStringAs=Null] DOMString internalSubset;       
     34        readonly attribute [ConvertNullStringTo=Null] DOMString publicId;
     35        readonly attribute [ConvertNullStringTo=Null] DOMString systemId;
     36        readonly attribute [ConvertNullStringTo=Null] DOMString internalSubset;       
    3737
    3838    };
  • trunk/Source/WebCore/dom/Element.idl

    r107189 r107204  
    2828        // DOM Level 1 Core
    2929
    30         readonly attribute [TreatReturnedNullStringAs=Null] DOMString tagName;
    31 
    32         [TreatReturnedNullStringAs=Null] DOMString getAttribute(in [Optional=TreatAsUndefined] DOMString name);
    33         [ObjCLegacyUnnamedParameters] void setAttribute(in [Optional=TreatAsUndefined] DOMString name,
    34                                          in [Optional=TreatAsUndefined] DOMString value)
    35             raises(DOMException);
    36         void removeAttribute(in [Optional=TreatAsUndefined] DOMString name);
    37         Attr getAttributeNode(in [Optional=TreatAsUndefined] DOMString name);
    38         Attr setAttributeNode(in [Optional=TreatAsUndefined] Attr newAttr)
    39             raises(DOMException);
    40         Attr removeAttributeNode(in [Optional=TreatAsUndefined] Attr oldAttr)
    41             raises(DOMException);
    42         NodeList getElementsByTagName(in [Optional=TreatAsUndefined] DOMString name);
     30        readonly attribute [ConvertNullStringTo=Null] DOMString tagName;
     31
     32        [ConvertNullStringTo=Null] DOMString getAttribute(in [Optional=CallWithDefaultValue] DOMString name);
     33        [ObjCLegacyUnnamedParameters] void setAttribute(in [Optional=CallWithDefaultValue] DOMString name,
     34                                         in [Optional=CallWithDefaultValue] DOMString value)
     35            raises(DOMException);
     36        void removeAttribute(in [Optional=CallWithDefaultValue] DOMString name);
     37        Attr getAttributeNode(in [Optional=CallWithDefaultValue] DOMString name);
     38        Attr setAttributeNode(in [Optional=CallWithDefaultValue] Attr newAttr)
     39            raises(DOMException);
     40        Attr removeAttributeNode(in [Optional=CallWithDefaultValue] Attr oldAttr)
     41            raises(DOMException);
     42        NodeList getElementsByTagName(in [Optional=CallWithDefaultValue] DOMString name);
    4343
    4444        // DOM Level 2 Core
    4545
    46         [ObjCLegacyUnnamedParameters] DOMString getAttributeNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    47                                                 in [Optional=TreatAsUndefined] DOMString localName);
    48         [ObjCLegacyUnnamedParameters] void setAttributeNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    49                                            in [Optional=TreatAsUndefined] DOMString qualifiedName,
    50                                            in [Optional=TreatAsUndefined] DOMString value)
     46        [ObjCLegacyUnnamedParameters] DOMString getAttributeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     47                                                in [Optional=CallWithDefaultValue] DOMString localName);
     48        [ObjCLegacyUnnamedParameters] void setAttributeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     49                                           in [Optional=CallWithDefaultValue] DOMString qualifiedName,
     50                                           in [Optional=CallWithDefaultValue] DOMString value)
    5151            raises(DOMException);
    5252        [ObjCLegacyUnnamedParameters] void removeAttributeNS(in [TreatNullAs=NullString] DOMString namespaceURI,
    5353                                              in DOMString localName);
    54         [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    55                                                        in [Optional=TreatAsUndefined] DOMString localName);
    56         [ObjCLegacyUnnamedParameters] Attr getAttributeNodeNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    57                                                in [Optional=TreatAsUndefined] DOMString localName);
    58         Attr setAttributeNodeNS(in [Optional=TreatAsUndefined] Attr newAttr)
     54        [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     55                                                       in [Optional=CallWithDefaultValue] DOMString localName);
     56        [ObjCLegacyUnnamedParameters] Attr getAttributeNodeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     57                                               in [Optional=CallWithDefaultValue] DOMString localName);
     58        Attr setAttributeNodeNS(in [Optional=CallWithDefaultValue] Attr newAttr)
    5959            raises(DOMException);
    6060        boolean hasAttribute(in DOMString name);
    61         [ObjCLegacyUnnamedParameters] boolean hasAttributeNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    62                                               in [Optional=TreatAsUndefined] DOMString localName);
     61        [ObjCLegacyUnnamedParameters] boolean hasAttributeNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     62                                              in [Optional=CallWithDefaultValue] DOMString localName);
    6363
    6464        readonly attribute CSSStyleDeclaration style;
     
    8787
    8888        void scrollIntoViewIfNeeded(in [Optional] boolean centerIfNeeded);
    89         void scrollByLines(in [Optional=TreatAsUndefined] long lines);
    90         void scrollByPages(in [Optional=TreatAsUndefined] long pages);
     89        void scrollByLines(in [Optional=CallWithDefaultValue] long lines);
     90        void scrollByPages(in [Optional=CallWithDefaultValue] long pages);
    9191
    9292#if defined(ENABLE_ANIMATION_API) && ENABLE_ANIMATION_API
     
    9595
    9696        // HTML 5
    97         NodeList getElementsByClassName(in [Optional=TreatAsUndefined] DOMString name);
     97        NodeList getElementsByClassName(in [Optional=CallWithDefaultValue] DOMString name);
    9898
    9999#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
     
    108108
    109109        // WebKit extension, pending specification.
    110         boolean webkitMatchesSelector(in [Optional=TreatAsUndefined] DOMString selectors)
     110        boolean webkitMatchesSelector(in [Optional=CallWithDefaultValue] DOMString selectors)
    111111            raises(DOMException);
    112112
     
    131131#if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
    132132        const unsigned short ALLOW_KEYBOARD_INPUT = 1;
    133         [V8EnabledAtRuntime] void webkitRequestFullScreen(in [Optional=TreatAsUndefined] unsigned short flags);
     133        [V8EnabledAtRuntime] void webkitRequestFullScreen(in [Optional=CallWithDefaultValue] unsigned short flags);
    134134#endif
    135135
  • trunk/Source/WebCore/dom/Entity.idl

    r107189 r107204  
    2121
    2222    interface Entity : Node {
    23         readonly attribute [TreatReturnedNullStringAs=Null] DOMString publicId;
    24         readonly attribute [TreatReturnedNullStringAs=Null] DOMString systemId;
    25         readonly attribute [TreatReturnedNullStringAs=Null] DOMString notationName;
     23        readonly attribute [ConvertNullStringTo=Null] DOMString publicId;
     24        readonly attribute [ConvertNullStringTo=Null] DOMString systemId;
     25        readonly attribute [ConvertNullStringTo=Null] DOMString notationName;
    2626    };
    2727
  • trunk/Source/WebCore/dom/Event.idl

    r107182 r107204  
    6464        void               stopPropagation();
    6565        void               preventDefault();
    66         [ObjCLegacyUnnamedParameters] void initEvent(in [Optional=TreatAsUndefined] DOMString eventTypeArg,
    67                                       in [Optional=TreatAsUndefined] boolean canBubbleArg,
    68                                       in [Optional=TreatAsUndefined] boolean cancelableArg);
     66        [ObjCLegacyUnnamedParameters] void initEvent(in [Optional=CallWithDefaultValue] DOMString eventTypeArg,
     67                                      in [Optional=CallWithDefaultValue] boolean canBubbleArg,
     68                                      in [Optional=CallWithDefaultValue] boolean cancelableArg);
    6969
    7070        // DOM Level 3 Additions.
  • trunk/Source/WebCore/dom/HashChangeEvent.idl

    r107182 r107204  
    2424        ConstructorTemplate=Event
    2525    ] HashChangeEvent : Event {
    26         void initHashChangeEvent(in [Optional=TreatAsUndefined] DOMString type,
    27                                  in [Optional=TreatAsUndefined] boolean canBubble,
    28                                  in [Optional=TreatAsUndefined] boolean cancelable,
    29                                  in [Optional=TreatAsUndefined] DOMString oldURL,
    30                                  in [Optional=TreatAsUndefined] DOMString newURL);
     26        void initHashChangeEvent(in [Optional=CallWithDefaultValue] DOMString type,
     27                                 in [Optional=CallWithDefaultValue] boolean canBubble,
     28                                 in [Optional=CallWithDefaultValue] boolean cancelable,
     29                                 in [Optional=CallWithDefaultValue] DOMString oldURL,
     30                                 in [Optional=CallWithDefaultValue] DOMString newURL);
    3131        readonly attribute [InitializedByEventConstructor] DOMString oldURL;
    3232        readonly attribute [InitializedByEventConstructor] DOMString newURL;
  • trunk/Source/WebCore/dom/KeyboardEvent.idl

    r107182 r107204  
    4141
    4242#if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
    43         boolean getModifierState(in [Optional=TreatAsUndefined] DOMString keyIdentifierArg);
     43        boolean getModifierState(in [Optional=CallWithDefaultValue] DOMString keyIdentifierArg);
    4444#endif
    4545
    4646        // FIXME: this does not match the version in the DOM spec.
    47         void initKeyboardEvent(in [Optional=TreatAsUndefined] DOMString type,
    48                                in [Optional=TreatAsUndefined] boolean canBubble,
    49                                in [Optional=TreatAsUndefined] boolean cancelable,
    50                                in [Optional=TreatAsUndefined] DOMWindow view,
    51                                in [Optional=TreatAsUndefined] DOMString keyIdentifier,
    52                                in [Optional=TreatAsUndefined] unsigned long keyLocation,
    53                                in [Optional=TreatAsUndefined] boolean ctrlKey,
    54                                in [Optional=TreatAsUndefined] boolean altKey,
    55                                in [Optional=TreatAsUndefined] boolean shiftKey,
    56                                in [Optional=TreatAsUndefined] boolean metaKey,
    57                                in [Optional=TreatAsUndefined] boolean altGraphKey);
     47        void initKeyboardEvent(in [Optional=CallWithDefaultValue] DOMString type,
     48                               in [Optional=CallWithDefaultValue] boolean canBubble,
     49                               in [Optional=CallWithDefaultValue] boolean cancelable,
     50                               in [Optional=CallWithDefaultValue] DOMWindow view,
     51                               in [Optional=CallWithDefaultValue] DOMString keyIdentifier,
     52                               in [Optional=CallWithDefaultValue] unsigned long keyLocation,
     53                               in [Optional=CallWithDefaultValue] boolean ctrlKey,
     54                               in [Optional=CallWithDefaultValue] boolean altKey,
     55                               in [Optional=CallWithDefaultValue] boolean shiftKey,
     56                               in [Optional=CallWithDefaultValue] boolean metaKey,
     57                               in [Optional=CallWithDefaultValue] boolean altGraphKey);
    5858
    5959        // WebKit Extensions
     
    6262        readonly attribute long             charCode;
    6363       
    64         void initKeyboardEvent(in [Optional=TreatAsUndefined] DOMString type,
    65                                in [Optional=TreatAsUndefined] boolean canBubble,
    66                                in [Optional=TreatAsUndefined] boolean cancelable,
    67                                in [Optional=TreatAsUndefined] DOMWindow view,
    68                                in [Optional=TreatAsUndefined] DOMString keyIdentifier,
    69                                in [Optional=TreatAsUndefined] unsigned long keyLocation,
    70                                in [Optional=TreatAsUndefined] boolean ctrlKey,
    71                                in [Optional=TreatAsUndefined] boolean altKey,
    72                                in [Optional=TreatAsUndefined] boolean shiftKey,
    73                                in [Optional=TreatAsUndefined] boolean metaKey);
     64        void initKeyboardEvent(in [Optional=CallWithDefaultValue] DOMString type,
     65                               in [Optional=CallWithDefaultValue] boolean canBubble,
     66                               in [Optional=CallWithDefaultValue] boolean cancelable,
     67                               in [Optional=CallWithDefaultValue] DOMWindow view,
     68                               in [Optional=CallWithDefaultValue] DOMString keyIdentifier,
     69                               in [Optional=CallWithDefaultValue] unsigned long keyLocation,
     70                               in [Optional=CallWithDefaultValue] boolean ctrlKey,
     71                               in [Optional=CallWithDefaultValue] boolean altKey,
     72                               in [Optional=CallWithDefaultValue] boolean shiftKey,
     73                               in [Optional=CallWithDefaultValue] boolean metaKey);
    7474#endif
    7575
  • trunk/Source/WebCore/dom/MessageEvent.idl

    r107182 r107204  
    3939        readonly attribute [InitializedByEventConstructor, CustomGetter] Array ports;
    4040
    41         [Custom] void initMessageEvent(in [Optional=TreatAsUndefined] DOMString typeArg,
    42                                        in [Optional=TreatAsUndefined] boolean canBubbleArg,
    43                                        in [Optional=TreatAsUndefined] boolean cancelableArg,
    44                                        in [Optional=TreatAsUndefined] DOMObject dataArg,
    45                                        in [Optional=TreatAsUndefined] DOMString originArg,
    46                                        in [Optional=TreatAsUndefined] DOMString lastEventIdArg,
    47                                        in [Optional=TreatAsUndefined] DOMWindow sourceArg,
    48                                        in [Optional=TreatAsUndefined] Array messagePorts);
     41        [Custom] void initMessageEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,
     42                                       in [Optional=CallWithDefaultValue] boolean canBubbleArg,
     43                                       in [Optional=CallWithDefaultValue] boolean cancelableArg,
     44                                       in [Optional=CallWithDefaultValue] DOMObject dataArg,
     45                                       in [Optional=CallWithDefaultValue] DOMString originArg,
     46                                       in [Optional=CallWithDefaultValue] DOMString lastEventIdArg,
     47                                       in [Optional=CallWithDefaultValue] DOMWindow sourceArg,
     48                                       in [Optional=CallWithDefaultValue] Array messagePorts);
    4949
    50         [Custom] void webkitInitMessageEvent(in [Optional=TreatAsUndefined] DOMString typeArg,
    51                                              in [Optional=TreatAsUndefined] boolean canBubbleArg,
    52                                              in [Optional=TreatAsUndefined] boolean cancelableArg,
    53                                              in [Optional=TreatAsUndefined] DOMObject dataArg,
    54                                              in [Optional=TreatAsUndefined] DOMString originArg,
    55                                              in [Optional=TreatAsUndefined] DOMString lastEventIdArg,
    56                                              in [Optional=TreatAsUndefined] DOMWindow sourceArg,
    57                                              in [Optional=TreatAsUndefined] Array transferables);
     50        [Custom] void webkitInitMessageEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,
     51                                             in [Optional=CallWithDefaultValue] boolean canBubbleArg,
     52                                             in [Optional=CallWithDefaultValue] boolean cancelableArg,
     53                                             in [Optional=CallWithDefaultValue] DOMObject dataArg,
     54                                             in [Optional=CallWithDefaultValue] DOMString originArg,
     55                                             in [Optional=CallWithDefaultValue] DOMString lastEventIdArg,
     56                                             in [Optional=CallWithDefaultValue] DOMWindow sourceArg,
     57                                             in [Optional=CallWithDefaultValue] Array transferables);
    5858#else
    5959        // Code generator for ObjC bindings does not support custom bindings, thus there is no good way to
     
    6464        readonly attribute MessagePort messagePort;
    6565
    66         void initMessageEvent(in [Optional=TreatAsUndefined] DOMString typeArg,
    67                               in [Optional=TreatAsUndefined] boolean canBubbleArg,
    68                               in [Optional=TreatAsUndefined] boolean cancelableArg,
    69                               in [Optional=TreatAsUndefined] SerializedScriptValue dataArg,
    70                               in [Optional=TreatAsUndefined] DOMString originArg,
    71                               in [Optional=TreatAsUndefined] DOMString lastEventIdArg,
    72                               in [Optional=TreatAsUndefined] DOMWindow sourceArg,
    73                               in [Optional=TreatAsUndefined] MessagePort messagePort);
     66        void initMessageEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,
     67                              in [Optional=CallWithDefaultValue] boolean canBubbleArg,
     68                              in [Optional=CallWithDefaultValue] boolean cancelableArg,
     69                              in [Optional=CallWithDefaultValue] SerializedScriptValue dataArg,
     70                              in [Optional=CallWithDefaultValue] DOMString originArg,
     71                              in [Optional=CallWithDefaultValue] DOMString lastEventIdArg,
     72                              in [Optional=CallWithDefaultValue] DOMWindow sourceArg,
     73                              in [Optional=CallWithDefaultValue] MessagePort messagePort);
    7474#endif
    7575
  • trunk/Source/WebCore/dom/MouseEvent.idl

    r107182 r107204  
    3535        readonly attribute EventTarget      relatedTarget;
    3636       
    37         [ObjCLegacyUnnamedParameters] void initMouseEvent(in [Optional=TreatAsUndefined] DOMString type,
    38                                            in [Optional=TreatAsUndefined] boolean canBubble,
    39                                            in [Optional=TreatAsUndefined] boolean cancelable,
    40                                            in [Optional=TreatAsUndefined] DOMWindow view,
    41                                            in [Optional=TreatAsUndefined] long detail,
    42                                            in [Optional=TreatAsUndefined] long screenX,
    43                                            in [Optional=TreatAsUndefined] long screenY,
    44                                            in [Optional=TreatAsUndefined] long clientX,
    45                                            in [Optional=TreatAsUndefined] long clientY,
    46                                            in [Optional=TreatAsUndefined] boolean ctrlKey,
    47                                            in [Optional=TreatAsUndefined] boolean altKey,
    48                                            in [Optional=TreatAsUndefined] boolean shiftKey,
    49                                            in [Optional=TreatAsUndefined] boolean metaKey,
    50                                            in [Optional=TreatAsUndefined] unsigned short button,
    51                                            in [Optional=TreatAsUndefined] EventTarget relatedTarget);
     37        [ObjCLegacyUnnamedParameters] void initMouseEvent(in [Optional=CallWithDefaultValue] DOMString type,
     38                                           in [Optional=CallWithDefaultValue] boolean canBubble,
     39                                           in [Optional=CallWithDefaultValue] boolean cancelable,
     40                                           in [Optional=CallWithDefaultValue] DOMWindow view,
     41                                           in [Optional=CallWithDefaultValue] long detail,
     42                                           in [Optional=CallWithDefaultValue] long screenX,
     43                                           in [Optional=CallWithDefaultValue] long screenY,
     44                                           in [Optional=CallWithDefaultValue] long clientX,
     45                                           in [Optional=CallWithDefaultValue] long clientY,
     46                                           in [Optional=CallWithDefaultValue] boolean ctrlKey,
     47                                           in [Optional=CallWithDefaultValue] boolean altKey,
     48                                           in [Optional=CallWithDefaultValue] boolean shiftKey,
     49                                           in [Optional=CallWithDefaultValue] boolean metaKey,
     50                                           in [Optional=CallWithDefaultValue] unsigned short button,
     51                                           in [Optional=CallWithDefaultValue] EventTarget relatedTarget);
    5252
    5353        // extensions
  • trunk/Source/WebCore/dom/MutationEvent.idl

    r107182 r107204  
    3434        readonly attribute unsigned short attrChange;
    3535
    36         [ObjCLegacyUnnamedParameters] void initMutationEvent(in [Optional=TreatAsUndefined] DOMString type,
    37                                               in [Optional=TreatAsUndefined] boolean canBubble,
    38                                               in [Optional=TreatAsUndefined] boolean cancelable,
    39                                               in [Optional=TreatAsUndefined] Node relatedNode,
    40                                               in [Optional=TreatAsUndefined] DOMString prevValue,
    41                                               in [Optional=TreatAsUndefined] DOMString newValue,
    42                                               in [Optional=TreatAsUndefined] DOMString attrName,
    43                                               in [Optional=TreatAsUndefined] unsigned short attrChange);
     36        [ObjCLegacyUnnamedParameters] void initMutationEvent(in [Optional=CallWithDefaultValue] DOMString type,
     37                                              in [Optional=CallWithDefaultValue] boolean canBubble,
     38                                              in [Optional=CallWithDefaultValue] boolean cancelable,
     39                                              in [Optional=CallWithDefaultValue] Node relatedNode,
     40                                              in [Optional=CallWithDefaultValue] DOMString prevValue,
     41                                              in [Optional=CallWithDefaultValue] DOMString newValue,
     42                                              in [Optional=CallWithDefaultValue] DOMString attrName,
     43                                              in [Optional=CallWithDefaultValue] unsigned short attrChange);
    4444
    4545    };
  • trunk/Source/WebCore/dom/MutationRecord.idl

    r107189 r107204  
    4242
    4343        readonly attribute DOMString attributeName;
    44         readonly attribute [TreatReturnedNullStringAs=Null] DOMString attributeNamespace;
     44        readonly attribute [ConvertNullStringTo=Null] DOMString attributeNamespace;
    4545
    46         readonly attribute [TreatReturnedNullStringAs=Null] DOMString oldValue;
     46        readonly attribute [ConvertNullStringTo=Null] DOMString oldValue;
    4747    };
    4848}
  • trunk/Source/WebCore/dom/NamedNodeMap.idl

    r107182 r107204  
    2828    ] NamedNodeMap {
    2929
    30         Node getNamedItem(in [Optional=TreatAsUndefined] DOMString name);
     30        Node getNamedItem(in [Optional=CallWithDefaultValue] DOMString name);
    3131
    32         Node setNamedItem(in [Optional=TreatAsUndefined] Node node)
     32        Node setNamedItem(in [Optional=CallWithDefaultValue] Node node)
    3333            raises(DOMException);
    3434
    35         Node removeNamedItem(in [Optional=TreatAsUndefined] DOMString name)
     35        Node removeNamedItem(in [Optional=CallWithDefaultValue] DOMString name)
    3636            raises(DOMException);
    3737
    38         Node item(in [Optional=TreatAsUndefined] unsigned long index);
     38        Node item(in [Optional=CallWithDefaultValue] unsigned long index);
    3939       
    4040        readonly attribute unsigned long length;
     
    4343        // Introduced in DOM Level 2:
    4444
    45         [ObjCLegacyUnnamedParameters] Node getNamedItemNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    46                                            in [Optional=TreatAsUndefined] DOMString localName)
     45        [ObjCLegacyUnnamedParameters] Node getNamedItemNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     46                                           in [Optional=CallWithDefaultValue] DOMString localName)
    4747            // FIXME: the implementation does take an exceptioncode parameter.
    4848            /*raises(DOMException)*/;
    4949
    50         Node setNamedItemNS(in [Optional=TreatAsUndefined] Node node)
     50        Node setNamedItemNS(in [Optional=CallWithDefaultValue] Node node)
    5151            raises(DOMException);
    5252
    53         [ObjCLegacyUnnamedParameters] Node removeNamedItemNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    54                                               in [Optional=TreatAsUndefined] DOMString localName)
     53        [ObjCLegacyUnnamedParameters] Node removeNamedItemNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     54                                              in [Optional=CallWithDefaultValue] DOMString localName)
    5555            raises(DOMException);
    5656
  • trunk/Source/WebCore/dom/Node.idl

    r107189 r107204  
    5252        const unsigned short      NOTATION_NODE                  = 12;
    5353
    54         readonly attribute [TreatReturnedNullStringAs=Null] DOMString        nodeName;
     54        readonly attribute [ConvertNullStringTo=Null] DOMString        nodeName;
    5555
    5656                 // FIXME: the spec says this can also raise on retrieval.
    57                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString        nodeValue
     57                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString        nodeValue
    5858                     setter raises(DOMException);
    5959
     
    8080
    8181        boolean            hasChildNodes();
    82         Node               cloneNode(in [Optional=TreatAsUndefined] boolean deep);
     82        Node               cloneNode(in [Optional=CallWithDefaultValue] boolean deep);
    8383        void               normalize();
    8484
    8585        // Introduced in DOM Level 2:
    8686
    87         [ObjCLegacyUnnamedParameters] boolean isSupported(in [Optional=TreatAsUndefined] DOMString feature,
    88                                            in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString version);
     87        [ObjCLegacyUnnamedParameters] boolean isSupported(in [Optional=CallWithDefaultValue] DOMString feature,
     88                                           in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString version);
    8989
    90         readonly attribute [TreatReturnedNullStringAs=Null] DOMString        namespaceURI;
    91                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString        prefix
     90        readonly attribute [ConvertNullStringTo=Null] DOMString        namespaceURI;
     91                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString        prefix
    9292                     setter raises(DOMException);
    93         readonly attribute [TreatReturnedNullStringAs=Null] DOMString        localName;
     93        readonly attribute [ConvertNullStringTo=Null] DOMString        localName;
    9494
    9595        boolean            hasAttributes();
     
    9797        // Introduced in DOM Level 3:
    9898
    99         readonly attribute [TreatReturnedNullStringAs=Null] DOMString       baseURI;
     99        readonly attribute [ConvertNullStringTo=Null] DOMString       baseURI;
    100100
    101101                 // FIXME: the spec says this can also raise on retrieval.
    102                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString       textContent
     102                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString       textContent
    103103                     setter raises(DOMException);
    104104
    105         boolean            isSameNode(in [Optional=TreatAsUndefined] Node other);
    106         boolean            isEqualNode(in [Optional=TreatAsUndefined] Node other);
    107         [TreatReturnedNullStringAs=Null] DOMString          lookupPrefix(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI);
    108         boolean            isDefaultNamespace(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI);
    109         [TreatReturnedNullStringAs=Null] DOMString          lookupNamespaceURI(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString prefix);
     105        boolean            isSameNode(in [Optional=CallWithDefaultValue] Node other);
     106        boolean            isEqualNode(in [Optional=CallWithDefaultValue] Node other);
     107        [ConvertNullStringTo=Null] DOMString          lookupPrefix(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI);
     108        boolean            isDefaultNamespace(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI);
     109        [ConvertNullStringTo=Null] DOMString          lookupNamespaceURI(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString prefix);
    110110
    111111        // DocumentPosition
     
    117117        const unsigned short      DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
    118118
    119         unsigned short     compareDocumentPosition(in [Optional=TreatAsUndefined] Node other);
     119        unsigned short     compareDocumentPosition(in [Optional=CallWithDefaultValue] Node other);
    120120
    121121        // Introduced in DOM4
    122         boolean contains(in [Optional=TreatAsUndefined] Node other);
     122        boolean contains(in [Optional=CallWithDefaultValue] Node other);
    123123
    124124#if 0
  • trunk/Source/WebCore/dom/NodeFilter.idl

    r107182 r107204  
    4848        const unsigned long       SHOW_NOTATION                  = 0x00000800;
    4949
    50         [CallWith=ScriptState] short acceptNode(in [Optional=TreatAsUndefined] Node n);
     50        [CallWith=ScriptState] short acceptNode(in [Optional=CallWithDefaultValue] Node n);
    5151
    5252    };
  • trunk/Source/WebCore/dom/NodeList.idl

    r107182 r107204  
    2727    ] NodeList {
    2828
    29         Node item(in [IsIndex,Optional=TreatAsUndefined] unsigned long index);
     29        Node item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
    3030
    3131        readonly attribute unsigned long length;
  • trunk/Source/WebCore/dom/Notation.idl

    r107189 r107204  
    2121
    2222    interface Notation : Node {
    23         readonly attribute [TreatReturnedNullStringAs=Null] DOMString publicId;
    24         readonly attribute [TreatReturnedNullStringAs=Null] DOMString systemId;
     23        readonly attribute [ConvertNullStringTo=Null] DOMString publicId;
     24        readonly attribute [ConvertNullStringTo=Null] DOMString systemId;
    2525    };
    2626
  • trunk/Source/WebCore/dom/OverflowEvent.idl

    r107182 r107204  
    3838
    3939#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
    40         void initOverflowEvent(in [Optional=TreatAsUndefined] unsigned short orient,
    41                                in [Optional=TreatAsUndefined] boolean horizontalOverflow,
    42                                in [Optional=TreatAsUndefined] boolean verticalOverflow);
     40        void initOverflowEvent(in [Optional=CallWithDefaultValue] unsigned short orient,
     41                               in [Optional=CallWithDefaultValue] boolean horizontalOverflow,
     42                               in [Optional=CallWithDefaultValue] boolean verticalOverflow);
    4343#endif
    4444    };
  • trunk/Source/WebCore/dom/ProcessingInstruction.idl

    r107189 r107204  
    2525        // DOM Level 1
    2626
    27         readonly attribute [TreatReturnedNullStringAs=Null] DOMString target;
    28                  attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString data
     27        readonly attribute [ConvertNullStringTo=Null] DOMString target;
     28                 attribute [ConvertNullStringTo=Null, TreatNullAs=NullString] DOMString data
    2929                     setter raises(DOMException);
    3030
  • trunk/Source/WebCore/dom/Range.idl

    r107182 r107204  
    3737            getter raises(DOMException);
    3838
    39         [ObjCLegacyUnnamedParameters] void setStart(in [Optional=TreatAsUndefined] Node refNode,
    40                                      in [Optional=TreatAsUndefined] long offset)
     39        [ObjCLegacyUnnamedParameters] void setStart(in [Optional=CallWithDefaultValue] Node refNode,
     40                                     in [Optional=CallWithDefaultValue] long offset)
    4141            raises(RangeException, DOMException);
    42         [ObjCLegacyUnnamedParameters] void setEnd(in [Optional=TreatAsUndefined] Node refNode,
    43                                    in [Optional=TreatAsUndefined] long offset)
     42        [ObjCLegacyUnnamedParameters] void setEnd(in [Optional=CallWithDefaultValue] Node refNode,
     43                                   in [Optional=CallWithDefaultValue] long offset)
    4444            raises(RangeException, DOMException);
    45         void setStartBefore(in [Optional=TreatAsUndefined] Node refNode)
     45        void setStartBefore(in [Optional=CallWithDefaultValue] Node refNode)
    4646            raises(RangeException, DOMException);
    47         void setStartAfter(in [Optional=TreatAsUndefined] Node refNode)
     47        void setStartAfter(in [Optional=CallWithDefaultValue] Node refNode)
    4848            raises(RangeException, DOMException);
    49         void setEndBefore(in [Optional=TreatAsUndefined] Node refNode)
     49        void setEndBefore(in [Optional=CallWithDefaultValue] Node refNode)
    5050            raises(RangeException, DOMException);
    51         void setEndAfter(in [Optional=TreatAsUndefined] Node refNode)
     51        void setEndAfter(in [Optional=CallWithDefaultValue] Node refNode)
    5252            raises(RangeException, DOMException);
    53         void collapse(in [Optional=TreatAsUndefined] boolean toStart)
     53        void collapse(in [Optional=CallWithDefaultValue] boolean toStart)
    5454            raises(DOMException);
    55         void selectNode(in [Optional=TreatAsUndefined] Node refNode)
     55        void selectNode(in [Optional=CallWithDefaultValue] Node refNode)
    5656            raises(RangeException, DOMException);
    57         void selectNodeContents(in [Optional=TreatAsUndefined] Node refNode)
     57        void selectNodeContents(in [Optional=CallWithDefaultValue] Node refNode)
    5858            raises(RangeException, DOMException);
    5959
     
    6464        const unsigned short END_TO_START   = 3;
    6565
    66         [ObjCLegacyUnnamedParameters] short compareBoundaryPoints(in [Optional=TreatAsUndefined] CompareHow how,
    67                                                    in [Optional=TreatAsUndefined] Range sourceRange)
     66        [ObjCLegacyUnnamedParameters] short compareBoundaryPoints(in [Optional=CallWithDefaultValue] CompareHow how,
     67                                                   in [Optional=CallWithDefaultValue] Range sourceRange)
    6868            raises(DOMException);
    6969
     
    7474        DocumentFragment cloneContents()
    7575            raises(DOMException);
    76         void insertNode(in [Optional=TreatAsUndefined] Node newNode)
     76        void insertNode(in [Optional=CallWithDefaultValue] Node newNode)
    7777            raises(DOMException, RangeException);
    78         void surroundContents(in [Optional=TreatAsUndefined] Node newParent)
     78        void surroundContents(in [Optional=CallWithDefaultValue] Node newParent)
    7979            raises(DOMException, RangeException);
    8080        Range cloneRange()
     
    9595        // extensions
    9696
    97         DocumentFragment createContextualFragment(in [Optional=TreatAsUndefined] DOMString html)
     97        DocumentFragment createContextualFragment(in [Optional=CallWithDefaultValue] DOMString html)
    9898            raises(DOMException);
    9999
    100100        // WebKit extensions
    101101
    102         boolean intersectsNode(in [Optional=TreatAsUndefined] Node refNode)
     102        boolean intersectsNode(in [Optional=CallWithDefaultValue] Node refNode)
    103103            raises(RangeException, DOMException);
    104104
    105         short compareNode(in [Optional=TreatAsUndefined] Node refNode)
     105        short compareNode(in [Optional=CallWithDefaultValue] Node refNode)
    106106            raises(RangeException, DOMException);
    107107
     
    112112        const unsigned short NODE_INSIDE           = 3;
    113113
    114         short comparePoint(in [Optional=TreatAsUndefined] Node refNode,
    115                            in [Optional=TreatAsUndefined] long offset)
     114        short comparePoint(in [Optional=CallWithDefaultValue] Node refNode,
     115                           in [Optional=CallWithDefaultValue] long offset)
    116116            raises(RangeException, DOMException);
    117117
    118         boolean isPointInRange(in [Optional=TreatAsUndefined] Node refNode,
    119                                in [Optional=TreatAsUndefined] long offset)
     118        boolean isPointInRange(in [Optional=CallWithDefaultValue] Node refNode,
     119                               in [Optional=CallWithDefaultValue] long offset)
    120120            raises(RangeException, DOMException);
    121121
    122         void expand(in [Optional=TreatAsUndefined] DOMString unit)
     122        void expand(in [Optional=CallWithDefaultValue] DOMString unit)
    123123            raises(RangeException, DOMException);
    124124
  • trunk/Source/WebCore/dom/ShadowRoot.idl

    r107182 r107204  
    3434    ] ShadowRoot : DocumentFragment {
    3535        readonly attribute Element host;
    36         Element getElementById(in [Optional=TreatAsUndefined] DOMString elementId);
    37         NodeList getElementsByClassName(in [Optional=TreatAsUndefined] DOMString className);
    38         NodeList getElementsByTagName(in [Optional=TreatAsUndefined] DOMString tagName);
    39         NodeList getElementsByTagNameNS(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString namespaceURI,
    40                                         in [Optional=TreatAsUndefined] DOMString localName);
     36        Element getElementById(in [Optional=CallWithDefaultValue] DOMString elementId);
     37        NodeList getElementsByClassName(in [Optional=CallWithDefaultValue] DOMString className);
     38        NodeList getElementsByTagName(in [Optional=CallWithDefaultValue] DOMString tagName);
     39        NodeList getElementsByTagNameNS(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString namespaceURI,
     40                                        in [Optional=CallWithDefaultValue] DOMString localName);
    4141    };
    4242
  • trunk/Source/WebCore/dom/Text.idl

    r107182 r107204  
    2424        // DOM Level 1
    2525
    26         Text splitText(in [IsIndex,Optional=TreatAsUndefined] unsigned long offset)
     26        Text splitText(in [IsIndex,Optional=CallWithDefaultValue] unsigned long offset)
    2727            raises (DOMException);
    2828
    2929        // Introduced in DOM Level 3:
    3030        readonly attribute DOMString       wholeText;
    31         Text               replaceWholeText(in [Optional=TreatAsUndefined] DOMString content)
     31        Text               replaceWholeText(in [Optional=CallWithDefaultValue] DOMString content)
    3232                                            raises(DOMException);
    3333    };
  • trunk/Source/WebCore/dom/TextEvent.idl

    r107182 r107204  
    3131        readonly attribute DOMString data;
    3232
    33         void initTextEvent(in [Optional=TreatAsUndefined] DOMString typeArg,
    34                            in [Optional=TreatAsUndefined] boolean canBubbleArg,
    35                            in [Optional=TreatAsUndefined] boolean cancelableArg,
    36                            in [Optional=TreatAsUndefined] DOMWindow viewArg,
    37                            in [Optional=TreatAsUndefined] DOMString dataArg);
     33        void initTextEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,
     34                           in [Optional=CallWithDefaultValue] boolean canBubbleArg,
     35                           in [Optional=CallWithDefaultValue] boolean cancelableArg,
     36                           in [Optional=CallWithDefaultValue] DOMWindow viewArg,
     37                           in [Optional=CallWithDefaultValue] DOMString dataArg);
    3838
    3939    };
  • trunk/Source/WebCore/dom/TouchEvent.idl

    r107182 r107204  
    3737        readonly attribute boolean metaKey;
    3838
    39         void initTouchEvent(in [Optional=TreatAsUndefined] TouchList touches,
    40                             in [Optional=TreatAsUndefined] TouchList targetTouches,
    41                             in [Optional=TreatAsUndefined] TouchList changedTouches,
    42                             in [Optional=TreatAsUndefined] DOMString type,
    43                             in [Optional=TreatAsUndefined] DOMWindow view,
    44                             in [Optional=TreatAsUndefined] long screenX,
    45                             in [Optional=TreatAsUndefined] long screenY,
    46                             in [Optional=TreatAsUndefined] long clientX,
    47                             in [Optional=TreatAsUndefined] long clientY,
    48                             in [Optional=TreatAsUndefined] boolean ctrlKey,
    49                             in [Optional=TreatAsUndefined] boolean altKey,
    50                             in [Optional=TreatAsUndefined] boolean shiftKey,
    51                             in [Optional=TreatAsUndefined] boolean metaKey);
     39        void initTouchEvent(in [Optional=CallWithDefaultValue] TouchList touches,
     40                            in [Optional=CallWithDefaultValue] TouchList targetTouches,
     41                            in [Optional=CallWithDefaultValue] TouchList changedTouches,
     42                            in [Optional=CallWithDefaultValue] DOMString type,
     43                            in [Optional=CallWithDefaultValue] DOMWindow view,
     44                            in [Optional=CallWithDefaultValue] long screenX,
     45                            in [Optional=CallWithDefaultValue] long screenY,
     46                            in [Optional=CallWithDefaultValue] long clientX,
     47                            in [Optional=CallWithDefaultValue] long clientY,
     48                            in [Optional=CallWithDefaultValue] boolean ctrlKey,
     49                            in [Optional=CallWithDefaultValue] boolean altKey,
     50                            in [Optional=CallWithDefaultValue] boolean shiftKey,
     51                            in [Optional=CallWithDefaultValue] boolean metaKey);
    5252    };
    5353}
  • trunk/Source/WebCore/dom/UIEvent.idl

    r107182 r107204  
    2525        readonly attribute long                 detail;
    2626       
    27         [ObjCLegacyUnnamedParameters] void initUIEvent(in [Optional=TreatAsUndefined] DOMString type,
    28                                         in [Optional=TreatAsUndefined] boolean canBubble,
    29                                         in [Optional=TreatAsUndefined] boolean cancelable,
    30                                         in [Optional=TreatAsUndefined] DOMWindow view,
    31                                         in [Optional=TreatAsUndefined] long detail);
     27        [ObjCLegacyUnnamedParameters] void initUIEvent(in [Optional=CallWithDefaultValue] DOMString type,
     28                                        in [Optional=CallWithDefaultValue] boolean canBubble,
     29                                        in [Optional=CallWithDefaultValue] boolean cancelable,
     30                                        in [Optional=CallWithDefaultValue] DOMWindow view,
     31                                        in [Optional=CallWithDefaultValue] long detail);
    3232
    3333        // extensions
  • trunk/Source/WebCore/dom/WheelEvent.idl

    r107182 r107204  
    4747
    4848#if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
    49         void initWheelEvent(in [Optional=TreatAsUndefined] long wheelDeltaX,
    50                             in [Optional=TreatAsUndefined] long wheelDeltaY,
    51                             in [Optional=TreatAsUndefined] DOMWindow view,
    52                             in [Optional=TreatAsUndefined] long screenX,
    53                             in [Optional=TreatAsUndefined] long screenY,
    54                             in [Optional=TreatAsUndefined] long clientX,
    55                             in [Optional=TreatAsUndefined] long clientY,
    56                             in [Optional=TreatAsUndefined] boolean ctrlKey,
    57                             in [Optional=TreatAsUndefined] boolean altKey,
    58                             in [Optional=TreatAsUndefined] boolean shiftKey,
    59                             in [Optional=TreatAsUndefined] boolean metaKey);
     49        void initWheelEvent(in [Optional=CallWithDefaultValue] long wheelDeltaX,
     50                            in [Optional=CallWithDefaultValue] long wheelDeltaY,
     51                            in [Optional=CallWithDefaultValue] DOMWindow view,
     52                            in [Optional=CallWithDefaultValue] long screenX,
     53                            in [Optional=CallWithDefaultValue] long screenY,
     54                            in [Optional=CallWithDefaultValue] long clientX,
     55                            in [Optional=CallWithDefaultValue] long clientY,
     56                            in [Optional=CallWithDefaultValue] boolean ctrlKey,
     57                            in [Optional=CallWithDefaultValue] boolean altKey,
     58                            in [Optional=CallWithDefaultValue] boolean shiftKey,
     59                            in [Optional=CallWithDefaultValue] boolean metaKey);
    6060#endif /* !defined(LANGUAGE_JAVASCRIPT) */
    6161
    6262#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
    63         void initWebKitWheelEvent(in [Optional=TreatAsUndefined] long wheelDeltaX,
    64                                   in [Optional=TreatAsUndefined] long wheelDeltaY,
    65                                   in [Optional=TreatAsUndefined] DOMWindow view,
    66                                   in [Optional=TreatAsUndefined] long screenX,
    67                                   in [Optional=TreatAsUndefined] long screenY,
    68                                   in [Optional=TreatAsUndefined] long clientX,
    69                                   in [Optional=TreatAsUndefined] long clientY,
    70                                   in [Optional=TreatAsUndefined] boolean ctrlKey,
    71                                   in [Optional=TreatAsUndefined] boolean altKey,
    72                                   in [Optional=TreatAsUndefined] boolean shiftKey,
    73                                   in [Optional=TreatAsUndefined] boolean metaKey);
     63        void initWebKitWheelEvent(in [Optional=CallWithDefaultValue] long wheelDeltaX,
     64                                  in [Optional=CallWithDefaultValue] long wheelDeltaY,
     65                                  in [Optional=CallWithDefaultValue] DOMWindow view,
     66                                  in [Optional=CallWithDefaultValue] long screenX,
     67                                  in [Optional=CallWithDefaultValue] long screenY,
     68                                  in [Optional=CallWithDefaultValue] long clientX,
     69                                  in [Optional=CallWithDefaultValue] long clientY,
     70                                  in [Optional=CallWithDefaultValue] boolean ctrlKey,
     71                                  in [Optional=CallWithDefaultValue] boolean altKey,
     72                                  in [Optional=CallWithDefaultValue] boolean shiftKey,
     73                                  in [Optional=CallWithDefaultValue] boolean metaKey);
    7474#endif /* defined(LANGUAGE_JAVASCRIPT) */
    7575    };
  • trunk/Source/WebCore/html/DOMFormData.idl

    r107182 r107204  
    3838        // void append(DOMString name, DOMString value);
    3939        // void append(DOMString name, Blob value, optional DOMString filename);
    40         [Custom] void append(in [Optional=TreatAsUndefined] DOMString name,
    41                              in [Optional=TreatAsUndefined] DOMString value,
    42                              in [Optional=TreatAsUndefined] DOMString filename);
     40        [Custom] void append(in [Optional=CallWithDefaultValue] DOMString name,
     41                             in [Optional=CallWithDefaultValue] DOMString value,
     42                             in [Optional=CallWithDefaultValue] DOMString filename);
    4343    };
    4444
  • trunk/Source/WebCore/html/DOMTokenList.idl

    r107189 r107204  
    3030    ] DOMTokenList {
    3131        readonly attribute unsigned long length;
    32         [TreatReturnedNullStringAs=Null] DOMString item(in unsigned long index);
     32        [ConvertNullStringTo=Null] DOMString item(in unsigned long index);
    3333        boolean contains(in DOMString token) raises(DOMException);
    3434        void add(in DOMString token) raises(DOMException);
  • trunk/Source/WebCore/html/DOMURL.idl

    r107189 r107204  
    3434    ] DOMURL {
    3535#if defined(ENABLE_MEDIA_STREAM) && ENABLE_MEDIA_STREAM
    36         static [CallWith=ScriptExecutionContext,TreatReturnedNullStringAs=Undefined] DOMString createObjectURL(in MediaStream stream);
     36        static [CallWith=ScriptExecutionContext,ConvertNullStringTo=Undefined] DOMString createObjectURL(in MediaStream stream);
    3737#endif
    38         static [CallWith=ScriptExecutionContext,TreatReturnedNullStringAs=Undefined] DOMString createObjectURL(in Blob blob);
     38        static [CallWith=ScriptExecutionContext,ConvertNullStringTo=Undefined] DOMString createObjectURL(in Blob blob);
    3939        static [CallWith=ScriptExecutionContext] void revokeObjectURL(in DOMString url);
    4040    };
  • trunk/Source/WebCore/html/HTMLAllCollection.idl

    r107182 r107204  
    3434    ] HTMLAllCollection {
    3535        readonly attribute unsigned long length;
    36         [Custom] Node item(in [Optional=TreatAsUndefined] unsigned long index);
     36        [Custom] Node item(in [Optional=CallWithDefaultValue] unsigned long index);
    3737        [Custom] Node namedItem(in DOMString name);
    3838
  • trunk/Source/WebCore/html/HTMLAudioElement.idl

    r107182 r107204  
    2828        ActiveDOMObject,
    2929        Conditional=VIDEO,
    30         NamedConstructor=Audio(in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] DOMString src)
     30        NamedConstructor=Audio(in [Optional=CallWithNullValue] DOMString src)
    3131    ] HTMLAudioElement : HTMLMediaElement {
    3232    };
  • trunk/Source/WebCore/html/HTMLCanvasElement.idl

    r107182 r107204  
    3434        attribute long height;
    3535
    36         [Custom] DOMString toDataURL(in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=TreatAsUndefined] DOMString type)
     36        [Custom] DOMString toDataURL(in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString type)
    3737            raises(DOMException);
    3838
     
    4040#if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
    4141        // The custom binding is needed to handle context creation attributes.
    42         [Custom] DOMObject getContext(in [Optional=TreatAsUndefined] DOMString contextId);
     42        [Custom] DOMObject getContext(in [Optional=CallWithDefaultValue] DOMString contextId);
    4343#endif
    4444#endif
  • trunk/Source/WebCore/html/HTMLCollection.idl

    r107182 r107204  
    2929    ] HTMLCollection {
    3030        readonly attribute unsigned long length;
    31         Node item(in [Optional=TreatAsUndefined] unsigned long index);
    32         [Custom] Node namedItem(in [Optional=TreatAsUndefined] DOMString name);
     31        Node item(in [Optional=CallWithDefaultValue] unsigned long index);
     32        [Custom] Node namedItem(in [Optional=CallWithDefaultValue] DOMString name);
    3333
    3434#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
    35         NodeList tags(in [Optional=TreatAsUndefined] DOMString name);
     35        NodeList tags(in [Optional=CallWithDefaultValue] DOMString name);
    3636#endif
    3737    };
  • trunk/Source/WebCore/html/HTMLDocument.idl

    r107182 r107204  
    2626        [JSCustom, V8Custom] void open();
    2727        void close();
    28         [Custom] void write(in [Optional=TreatAsUndefined] DOMString text);
    29         [Custom] void writeln(in [Optional=TreatAsUndefined] DOMString text);
     28        [Custom] void write(in [Optional=CallWithDefaultValue] DOMString text);
     29        [Custom] void writeln(in [Optional=CallWithDefaultValue] DOMString text);
    3030
    3131        readonly attribute HTMLCollection embeds;
  • trunk/Source/WebCore/html/HTMLElement.idl

    r107182 r107204  
    5050                     setter raises(DOMException);
    5151
    52         Element insertAdjacentElement(in [Optional=TreatAsUndefined] DOMString where,
    53                                       in [Optional=TreatAsUndefined] Element element)
     52        Element insertAdjacentElement(in [Optional=CallWithDefaultValue] DOMString where,
     53                                      in [Optional=CallWithDefaultValue] Element element)
    5454            raises(DOMException);
    55         void insertAdjacentHTML(in [Optional=TreatAsUndefined] DOMString where,
    56                                 in [Optional=TreatAsUndefined] DOMString html)
     55        void insertAdjacentHTML(in [Optional=CallWithDefaultValue] DOMString where,
     56                                in [Optional=CallWithDefaultValue] DOMString html)
    5757            raises(DOMException);
    58         void insertAdjacentText(in [Optional=TreatAsUndefined] DOMString where,
    59                                 in [Optional=TreatAsUndefined] DOMString text)
     58        void insertAdjacentText(in [Optional=CallWithDefaultValue] DOMString where,
     59                                in [Optional=CallWithDefaultValue] DOMString text)
    6060            raises(DOMException);
    6161
  • trunk/Source/WebCore/html/HTMLInputElement.idl

    r107182 r107204  
    9191        [Custom] void setSelectionRange(in long start, in long end);
    9292#else
    93         [Custom] void setSelectionRange(in [Optional=TreatAsUndefined] long start,
    94                                         in [Optional=TreatAsUndefined] long end,
     93        [Custom] void setSelectionRange(in [Optional=CallWithDefaultValue] long start,
     94                                        in [Optional=CallWithDefaultValue] long end,
    9595                                        in [Optional] DOMString direction);
    9696#endif
  • trunk/Source/WebCore/html/HTMLMediaElement.idl

    r107189 r107204  
    4747    void load()
    4848        raises (DOMException);
    49     DOMString canPlayType(in [Optional=TreatAsUndefined] DOMString type);
     49    DOMString canPlayType(in [Optional=CallWithDefaultValue] DOMString type);
    5050
    5151    // ready state
     
    118118#endif
    119119
    120     attribute [Reflect, TreatNullAs=NullString, TreatReturnedNullStringAsNull] DOMString mediaGroup;
     120    attribute [Reflect, TreatNullAs=NullString, ConvertNullStringToNull] DOMString mediaGroup;
    121121    attribute [CustomSetter] MediaController controller;
    122122};
  • trunk/Source/WebCore/html/HTMLOptionElement.idl

    r107182 r107204  
    2323    interface [
    2424        JSGenerateToNativeObject,
    25         NamedConstructor=Option(in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] DOMString data, in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] DOMString value, in [Optional=TreatAsUndefined] boolean defaultSelected, in [Optional=TreatAsUndefined] boolean selected),
     25        NamedConstructor=Option(in [Optional=CallWithNullValue] DOMString data, in [Optional=CallWithNullValue] DOMString value, in [Optional=CallWithDefaultValue] boolean defaultSelected, in [Optional=CallWithDefaultValue] boolean selected),
    2626        ConstructorRaisesException
    2727    ] HTMLOptionElement : HTMLElement {
  • trunk/Source/WebCore/html/HTMLOptionsCollection.idl

    r107182 r107204  
    2929                        setter raises (DOMException);
    3030
    31         [Custom] void add(in [Optional=TreatAsUndefined] HTMLOptionElement option,
     31        [Custom] void add(in [Optional=CallWithDefaultValue] HTMLOptionElement option,
    3232                          in [Optional] unsigned long index)
    3333             raises (DOMException);
    34         [Custom] void remove(in [Optional=TreatAsUndefined] unsigned long index);
     34        [Custom] void remove(in [Optional=CallWithDefaultValue] unsigned long index);
    3535
    3636#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
  • trunk/Source/WebCore/html/HTMLSelectElement.idl

    r107182 r107204  
    5353        attribute long size;
    5454       
    55         [ObjCLegacyUnnamedParameters] void add(in [Optional=TreatAsUndefined] HTMLElement element,
    56                                 in [Optional=TreatAsUndefined] HTMLElement before) raises(DOMException);
     55        [ObjCLegacyUnnamedParameters] void add(in [Optional=CallWithDefaultValue] HTMLElement element,
     56                                in [Optional=CallWithDefaultValue] HTMLElement before) raises(DOMException);
    5757
    5858#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
     
    6666        // These methods are not in DOM Level 2 IDL, but are mentioned in the standard:
    6767        // "The contained options can be directly accessed through the select element as a collection."
    68         Node item(in [IsIndex,Optional=TreatAsUndefined] unsigned long index);
    69         Node namedItem(in [Optional=TreatAsUndefined] DOMString name);
     68        Node item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index);
     69        Node namedItem(in [Optional=CallWithDefaultValue] DOMString name);
    7070        readonly attribute NodeList labels;
    7171    };
  • trunk/Source/WebCore/html/HTMLTableElement.idl

    r107182 r107204  
    4747        void deleteCaption();
    4848
    49         HTMLElement insertRow(in [Optional=TreatAsUndefined] long index) raises(DOMException);
    50         void deleteRow(in [Optional=TreatAsUndefined] long index) raises(DOMException);
     49        HTMLElement insertRow(in [Optional=CallWithDefaultValue] long index) raises(DOMException);
     50        void deleteRow(in [Optional=CallWithDefaultValue] long index) raises(DOMException);
    5151    };
    5252
  • trunk/Source/WebCore/html/HTMLTableRowElement.idl

    r107182 r107204  
    3030        attribute [Reflect=charoff] DOMString chOff;
    3131        attribute [Reflect] DOMString vAlign;
    32         HTMLElement insertCell(in [Optional=TreatAsUndefined] long index) raises(DOMException);
    33         void deleteCell(in [Optional=TreatAsUndefined] long index) raises(DOMException);
     32        HTMLElement insertCell(in [Optional=CallWithDefaultValue] long index) raises(DOMException);
     33        void deleteCell(in [Optional=CallWithDefaultValue] long index) raises(DOMException);
    3434    };
    3535
  • trunk/Source/WebCore/html/HTMLTableSectionElement.idl

    r107182 r107204  
    2929        attribute [Reflect] DOMString vAlign;
    3030        readonly attribute HTMLCollection rows;
    31         HTMLElement insertRow(in [Optional=TreatAsUndefined] long index) raises(DOMException);
    32         void deleteRow(in [Optional=TreatAsUndefined] long index) raises(DOMException);
     31        HTMLElement insertRow(in [Optional=CallWithDefaultValue] long index) raises(DOMException);
     32        void deleteRow(in [Optional=CallWithDefaultValue] long index) raises(DOMException);
    3333    };
    3434
  • trunk/Source/WebCore/html/HTMLTextAreaElement.idl

    r107182 r107204  
    5555        void setSelectionRange(in long start, in long end);
    5656#else
    57         void setSelectionRange(in [Optional=TreatAsUndefined] long start,
    58                                in [Optional=TreatAsUndefined] long end,
     57        void setSelectionRange(in [Optional=CallWithDefaultValue] long start,
     58                               in [Optional=CallWithDefaultValue] long end,
    5959                               in [Optional] DOMString direction);
    6060#endif
  • trunk/Source/WebCore/html/TextTrackCue.idl

    r107182 r107204  
    3030        V8EnabledAtRuntime=webkitVideoTrack,
    3131        JSGenerateToNativeObject,
    32         Constructor(in DOMString id, in double startTime, in double endTime, in DOMString text, in [Optional=TreatAsUndefined] DOMString settings, in [Optional=TreatAsUndefined] boolean pauseOnExit),
     32        Constructor(in DOMString id, in double startTime, in double endTime, in DOMString text, in [Optional=CallWithDefaultValue] DOMString settings, in [Optional=CallWithDefaultValue] boolean pauseOnExit),
    3333        CallWith=ScriptExecutionContext,
    3434        EventTarget,
  • trunk/Source/WebCore/html/canvas/CanvasGradient.idl

    r107182 r107204  
    2828    interface CanvasGradient {
    2929
    30         void addColorStop(in [Optional=TreatAsUndefined] float offset,
    31                           in [Optional=TreatAsUndefined] DOMString color)
     30        void addColorStop(in [Optional=CallWithDefaultValue] float offset,
     31                          in [Optional=CallWithDefaultValue] DOMString color)
    3232            raises (DOMException);
    3333
  • trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl

    r107182 r107204  
    3131        void restore();
    3232
    33         void scale(in [Optional=TreatAsUndefined] float sx,
    34                    in [Optional=TreatAsUndefined] float sy);
    35         void rotate(in [Optional=TreatAsUndefined] float angle);
    36         void translate(in [Optional=TreatAsUndefined] float tx,
    37                        in [Optional=TreatAsUndefined] float ty);
    38         void transform(in [Optional=TreatAsUndefined] float m11,
    39                        in [Optional=TreatAsUndefined] float m12,
    40                        in [Optional=TreatAsUndefined] float m21,
    41                        in [Optional=TreatAsUndefined] float m22,
    42                        in [Optional=TreatAsUndefined] float dx,
    43                        in [Optional=TreatAsUndefined] float dy);
    44         void setTransform(in [Optional=TreatAsUndefined] float m11,
    45                           in [Optional=TreatAsUndefined] float m12,
    46                           in [Optional=TreatAsUndefined] float m21,
    47                           in [Optional=TreatAsUndefined] float m22,
    48                           in [Optional=TreatAsUndefined] float dx,
    49                           in [Optional=TreatAsUndefined] float dy);
     33        void scale(in [Optional=CallWithDefaultValue] float sx,
     34                   in [Optional=CallWithDefaultValue] float sy);
     35        void rotate(in [Optional=CallWithDefaultValue] float angle);
     36        void translate(in [Optional=CallWithDefaultValue] float tx,
     37                       in [Optional=CallWithDefaultValue] float ty);
     38        void transform(in [Optional=CallWithDefaultValue] float m11,
     39                       in [Optional=CallWithDefaultValue] float m12,
     40                       in [Optional=CallWithDefaultValue] float m21,
     41                       in [Optional=CallWithDefaultValue] float m22,
     42                       in [Optional=CallWithDefaultValue] float dx,
     43                       in [Optional=CallWithDefaultValue] float dy);
     44        void setTransform(in [Optional=CallWithDefaultValue] float m11,
     45                          in [Optional=CallWithDefaultValue] float m12,
     46                          in [Optional=CallWithDefaultValue] float m21,
     47                          in [Optional=CallWithDefaultValue] float m22,
     48                          in [Optional=CallWithDefaultValue] float dx,
     49                          in [Optional=CallWithDefaultValue] float dy);
    5050
    5151        attribute float globalAlpha;
    5252        attribute [TreatNullAs=NullString] DOMString globalCompositeOperation;
    5353
    54         CanvasGradient createLinearGradient(in [Optional=TreatAsUndefined] float x0,
    55                                             in [Optional=TreatAsUndefined] float y0,
    56                                             in [Optional=TreatAsUndefined] float x1,
    57                                             in [Optional=TreatAsUndefined] float y1)
    58             raises (DOMException);
    59         CanvasGradient createRadialGradient(in [Optional=TreatAsUndefined] float x0,
    60                                             in [Optional=TreatAsUndefined] float y0,
    61                                             in [Optional=TreatAsUndefined] float r0,
    62                                             in [Optional=TreatAsUndefined] float x1,
    63                                             in [Optional=TreatAsUndefined] float y1,
    64                                             in [Optional=TreatAsUndefined] float r1)
     54        CanvasGradient createLinearGradient(in [Optional=CallWithDefaultValue] float x0,
     55                                            in [Optional=CallWithDefaultValue] float y0,
     56                                            in [Optional=CallWithDefaultValue] float x1,
     57                                            in [Optional=CallWithDefaultValue] float y1)
     58            raises (DOMException);
     59        CanvasGradient createRadialGradient(in [Optional=CallWithDefaultValue] float x0,
     60                                            in [Optional=CallWithDefaultValue] float y0,
     61                                            in [Optional=CallWithDefaultValue] float r0,
     62                                            in [Optional=CallWithDefaultValue] float x1,
     63                                            in [Optional=CallWithDefaultValue] float y1,
     64                                            in [Optional=CallWithDefaultValue] float r1)
    6565            raises (DOMException);
    6666
     
    8181#endif
    8282
    83         void clearRect(in [Optional=TreatAsUndefined] float x,
    84                        in [Optional=TreatAsUndefined] float y,
    85                        in [Optional=TreatAsUndefined] float width,
    86                        in [Optional=TreatAsUndefined] float height);
    87         void fillRect(in [Optional=TreatAsUndefined] float x,
    88                       in [Optional=TreatAsUndefined] float y,
    89                       in [Optional=TreatAsUndefined] float width,
    90                       in [Optional=TreatAsUndefined] float height);
     83        void clearRect(in [Optional=CallWithDefaultValue] float x,
     84                       in [Optional=CallWithDefaultValue] float y,
     85                       in [Optional=CallWithDefaultValue] float width,
     86                       in [Optional=CallWithDefaultValue] float height);
     87        void fillRect(in [Optional=CallWithDefaultValue] float x,
     88                      in [Optional=CallWithDefaultValue] float y,
     89                      in [Optional=CallWithDefaultValue] float width,
     90                      in [Optional=CallWithDefaultValue] float height);
    9191
    9292        void beginPath();
    9393        void closePath();
    94         void moveTo(in [Optional=TreatAsUndefined] float x,
    95                     in [Optional=TreatAsUndefined] float y);
    96         void lineTo(in [Optional=TreatAsUndefined] float x,
    97                     in [Optional=TreatAsUndefined] float y);
    98         void quadraticCurveTo(in [Optional=TreatAsUndefined] float cpx,
    99                               in [Optional=TreatAsUndefined] float cpy,
    100                               in [Optional=TreatAsUndefined] float x,
    101                               in [Optional=TreatAsUndefined] float y);
    102         void bezierCurveTo(in [Optional=TreatAsUndefined] float cp1x,
    103                            in [Optional=TreatAsUndefined] float cp1y,
    104                            in [Optional=TreatAsUndefined] float cp2x,
    105                            in [Optional=TreatAsUndefined] float cp2y,
    106                            in [Optional=TreatAsUndefined] float x,
    107                            in [Optional=TreatAsUndefined] float y);
    108         void arcTo(in [Optional=TreatAsUndefined] float x1,
    109                    in [Optional=TreatAsUndefined] float y1,
    110                    in [Optional=TreatAsUndefined] float x2,
    111                    in [Optional=TreatAsUndefined] float y2,
    112                    in [Optional=TreatAsUndefined] float radius)
    113             raises (DOMException);
    114         void rect(in [Optional=TreatAsUndefined] float x,
    115                   in [Optional=TreatAsUndefined] float y,
    116                   in [Optional=TreatAsUndefined] float width,
    117                   in [Optional=TreatAsUndefined] float height);
    118         void arc(in [Optional=TreatAsUndefined] float x,
    119                  in [Optional=TreatAsUndefined] float y,
    120                  in [Optional=TreatAsUndefined] float radius,
    121                  in [Optional=TreatAsUndefined] float startAngle,
    122                  in [Optional=TreatAsUndefined] float endAngle,
    123                  in [Optional=TreatAsUndefined] boolean anticlockwise)
     94        void moveTo(in [Optional=CallWithDefaultValue] float x,
     95                    in [Optional=CallWithDefaultValue] float y);
     96        void lineTo(in [Optional=CallWithDefaultValue] float x,
     97                    in [Optional=CallWithDefaultValue] float y);
     98        void quadraticCurveTo(in [Optional=CallWithDefaultValue] float cpx,
     99                              in [Optional=CallWithDefaultValue] float cpy,
     100                              in [Optional=CallWithDefaultValue] float x,
     101                              in [Optional=CallWithDefaultValue] float y);
     102        void bezierCurveTo(in [Optional=CallWithDefaultValue] float cp1x,
     103                           in [Optional=CallWithDefaultValue] float cp1y,
     104                           in [Optional=CallWithDefaultValue] float cp2x,
     105                           in [Optional=CallWithDefaultValue] float cp2y,
     106                           in [Optional=CallWithDefaultValue] float x,
     107                           in [Optional=CallWithDefaultValue] float y);
     108        void arcTo(in [Optional=CallWithDefaultValue] float x1,
     109                   in [Optional=CallWithDefaultValue] float y1,
     110                   in [Optional=CallWithDefaultValue] float x2,
     111                   in [Optional=CallWithDefaultValue] float y2,
     112                   in [Optional=CallWithDefaultValue] float radius)
     113            raises (DOMException);
     114        void rect(in [Optional=CallWithDefaultValue] float x,
     115                  in [Optional=CallWithDefaultValue] float y,
     116                  in [Optional=CallWithDefaultValue] float width,
     117                  in [Optional=CallWithDefaultValue] float height);
     118        void arc(in [Optional=CallWithDefaultValue] float x,
     119                 in [Optional=CallWithDefaultValue] float y,
     120                 in [Optional=CallWithDefaultValue] float radius,
     121                 in [Optional=CallWithDefaultValue] float startAngle,
     122                 in [Optional=CallWithDefaultValue] float endAngle,
     123                 in [Optional=CallWithDefaultValue] boolean anticlockwise)
    124124            raises (DOMException);
    125125        void fill();
    126126        void stroke();
    127127        void clip();
    128         boolean isPointInPath(in [Optional=TreatAsUndefined] float x,
    129                               in [Optional=TreatAsUndefined] float y);
     128        boolean isPointInPath(in [Optional=CallWithDefaultValue] float x,
     129                              in [Optional=CallWithDefaultValue] float y);
    130130
    131131        // text
     
    134134        attribute DOMString textBaseline;
    135135
    136         TextMetrics measureText(in [Optional=TreatAsUndefined] DOMString text);
     136        TextMetrics measureText(in [Optional=CallWithDefaultValue] DOMString text);
    137137
    138138        // other
    139139
    140         void setAlpha(in [Optional=TreatAsUndefined] float alpha);
    141         void setCompositeOperation(in [Optional=TreatAsUndefined] DOMString compositeOperation);
     140        void setAlpha(in [Optional=CallWithDefaultValue] float alpha);
     141        void setCompositeOperation(in [Optional=CallWithDefaultValue] DOMString compositeOperation);
    142142
    143143#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
    144         void setLineWidth(in [Optional=TreatAsUndefined] float width);
    145         void setLineCap(in [Optional=TreatAsUndefined] DOMString cap);
    146         void setLineJoin(in [Optional=TreatAsUndefined] DOMString join);
    147         void setMiterLimit(in [Optional=TreatAsUndefined] float limit);
     144        void setLineWidth(in [Optional=CallWithDefaultValue] float width);
     145        void setLineCap(in [Optional=CallWithDefaultValue] DOMString cap);
     146        void setLineJoin(in [Optional=CallWithDefaultValue] DOMString join);
     147        void setMiterLimit(in [Optional=CallWithDefaultValue] float limit);
    148148#endif
    149149
     
    163163        void setFillColor(in float c, in float m, in float y, in float k, in float a);
    164164
    165         void strokeRect(in [Optional=TreatAsUndefined] float x,
    166                         in [Optional=TreatAsUndefined] float y,
    167                         in [Optional=TreatAsUndefined] float width,
    168                         in [Optional=TreatAsUndefined] float height,
     165        void strokeRect(in [Optional=CallWithDefaultValue] float x,
     166                        in [Optional=CallWithDefaultValue] float y,
     167                        in [Optional=CallWithDefaultValue] float width,
     168                        in [Optional=CallWithDefaultValue] float height,
    169169                        in [Optional] float lineWidth);
    170170
     
    218218
    219219        // pixel manipulation
    220         ImageData getImageData(in [Optional=TreatAsUndefined] float sx, in [Optional=TreatAsUndefined] float sy,
    221                                in [Optional=TreatAsUndefined] float sw, in [Optional=TreatAsUndefined] float sh)
     220        ImageData getImageData(in [Optional=CallWithDefaultValue] float sx, in [Optional=CallWithDefaultValue] float sy,
     221                               in [Optional=CallWithDefaultValue] float sw, in [Optional=CallWithDefaultValue] float sh)
    222222            raises(DOMException);
    223223    };
  • trunk/Source/WebCore/html/canvas/Float32Array.idl

    r107182 r107204  
    3838
    3939        readonly attribute unsigned long length;
    40         Float32Array subarray(in [Optional=TreatAsUndefined] long start,
     40        Float32Array subarray(in [Optional=CallWithDefaultValue] long start,
    4141                              in [Optional] long end);
    4242
  • trunk/Source/WebCore/html/canvas/Float64Array.idl

    r107182 r107204  
    3838
    3939        readonly attribute unsigned long length;
    40         Float64Array subarray(in [Optional=TreatAsUndefined] long start,
     40        Float64Array subarray(in [Optional=CallWithDefaultValue] long start,
    4141                              in [Optional] long end);
    4242
  • trunk/Source/WebCore/html/canvas/Int16Array.idl

    r107182 r107204  
    3737
    3838        readonly attribute unsigned long length;
    39         Int16Array subarray(in [Optional=TreatAsUndefined] long start,
     39        Int16Array subarray(in [Optional=CallWithDefaultValue] long start,
    4040                            in [Optional] long end);
    4141
  • trunk/Source/WebCore/html/canvas/Int32Array.idl

    r107182 r107204  
    3838
    3939        readonly attribute unsigned long length;
    40         Int32Array subarray(in [Optional=TreatAsUndefined] long start,
     40        Int32Array subarray(in [Optional=CallWithDefaultValue] long start,
    4141                            in [Optional] long end);
    4242
  • trunk/Source/WebCore/html/canvas/Int8Array.idl

    r107182 r107204  
    3838
    3939        readonly attribute unsigned long length;
    40         Int8Array subarray(in [Optional=TreatAsUndefined] long start,
     40        Int8Array subarray(in [Optional=CallWithDefaultValue] long start,
    4141                           in [Optional] long end);
    4242
  • trunk/Source/WebCore/html/canvas/OESVertexArrayObject.idl

    r107182 r107204  
    3434       
    3535        [StrictTypeChecking] WebGLVertexArrayObjectOES createVertexArrayOES();
    36         [StrictTypeChecking] void         deleteVertexArrayOES(in [Optional=TreatAsUndefined] WebGLVertexArrayObjectOES arrayObject);
    37         [StrictTypeChecking] boolean      isVertexArrayOES(in [Optional=TreatAsUndefined] WebGLVertexArrayObjectOES arrayObject);
    38         [StrictTypeChecking] void         bindVertexArrayOES(in [Optional=TreatAsUndefined] WebGLVertexArrayObjectOES arrayObject) raises(DOMException);
     36        [StrictTypeChecking] void         deleteVertexArrayOES(in [Optional=CallWithDefaultValue] WebGLVertexArrayObjectOES arrayObject);
     37        [StrictTypeChecking] boolean      isVertexArrayOES(in [Optional=CallWithDefaultValue] WebGLVertexArrayObjectOES arrayObject);
     38        [StrictTypeChecking] void         bindVertexArrayOES(in [Optional=CallWithDefaultValue] WebGLVertexArrayObjectOES arrayObject) raises(DOMException);
    3939    };
    4040}
  • trunk/Source/WebCore/html/canvas/Uint16Array.idl

    r107182 r107204  
    3838
    3939        readonly attribute unsigned long length;
    40         Uint16Array subarray(in [Optional=TreatAsUndefined] long start, in [Optional] long end);
     40        Uint16Array subarray(in [Optional=CallWithDefaultValue] long start, in [Optional] long end);
    4141
    4242        // void set(in Uint16Array array, [Optional] in unsigned long offset);
  • trunk/Source/WebCore/html/canvas/Uint32Array.idl

    r107182 r107204  
    3838
    3939        readonly attribute unsigned long length;
    40         Uint32Array subarray(in [Optional=TreatAsUndefined] long start, in [Optional] long end);
     40        Uint32Array subarray(in [Optional=CallWithDefaultValue] long start, in [Optional] long end);
    4141
    4242        // void set(in Uint32Array array, [Optional] in unsigned long offset);
  • trunk/Source/WebCore/html/canvas/Uint8Array.idl

    r107182 r107204  
    3838
    3939        readonly attribute unsigned long length;
    40         Uint8Array subarray(in [Optional=TreatAsUndefined] long start, in [Optional] long end);
     40        Uint8Array subarray(in [Optional=CallWithDefaultValue] long start, in [Optional] long end);
    4141
    4242        // void set(in Uint8Array array, [Optional] in unsigned long offset);
  • trunk/Source/WebCore/html/canvas/Uint8ClampedArray.idl

    r107182 r107204  
    3838
    3939        readonly attribute unsigned long length;
    40         Uint8ClampedArray subarray(in [Optional=TreatAsUndefined] long start, in [Optional] long end);
     40        Uint8ClampedArray subarray(in [Optional=CallWithDefaultValue] long start, in [Optional] long end);
    4141
    4242        // FIXME: Missing other setters!
  • trunk/Source/WebCore/html/canvas/WebGLDebugShaders.idl

    r107189 r107204  
    3030        OmitConstructor
    3131    ] WebGLDebugShaders {
    32         [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getTranslatedShaderSource(in WebGLShader shader) raises(DOMException);
     32        [StrictTypeChecking, ConvertNullStringTo=Null] DOMString getTranslatedShaderSource(in WebGLShader shader) raises(DOMException);
    3333    };
    3434}
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContext.idl

    r107189 r107204  
    543543        // any getProgramParameter(in WebGLProgram program, in unsigned long pname) raises(DOMException);
    544544        [StrictTypeChecking, Custom] void getProgramParameter();
    545         [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString getProgramInfoLog(in WebGLProgram program) raises(DOMException);
     545        [StrictTypeChecking, ConvertNullStringTo=Null] DOMString getProgramInfoLog(in WebGLProgram program) raises(DOMException);
    546546        // any getRenderbufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
    547547        [StrictTypeChecking, Custom] void getRenderbufferParameter();
     
    549549        [StrictTypeChecking, Custom] void getShaderParameter() raises(DOMException);
    550550
    551         [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString    getShaderInfoLog(in WebGLShader shader) raises(DOMException);
     551        [StrictTypeChecking, ConvertNullStringTo=Null] DOMString    getShaderInfoLog(in WebGLShader shader) raises(DOMException);
    552552
    553553        // TBD
    554554        // void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision);
    555555
    556         [StrictTypeChecking, TreatReturnedNullStringAs=Null] DOMString    getShaderSource(in WebGLShader shader) raises(DOMException);
     556        [StrictTypeChecking, ConvertNullStringTo=Null] DOMString    getShaderSource(in WebGLShader shader) raises(DOMException);
    557557
    558558        // DOMString[] getSupportedExtensions()
  • trunk/Source/WebCore/page/Console.idl

    r107182 r107204  
    5252#endif
    5353
    54         void time(in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=TreatAsUndefined] DOMString title);
     54        void time(in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString title);
    5555        [CustomArgumentHandling] void timeEnd(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString title);
    5656        [CustomArgumentHandling] void timeStamp();
  • trunk/Source/WebCore/page/DOMSelection.idl

    r107182 r107204  
    4444        readonly attribute long rangeCount;
    4545
    46         void collapse(in [Optional=TreatAsUndefined] Node node,
    47                       in [Optional=TreatAsUndefined] long index)
     46        void collapse(in [Optional=CallWithDefaultValue] Node node,
     47                      in [Optional=CallWithDefaultValue] long index)
    4848            raises(DOMException);
    4949        void collapseToEnd()
     
    5353
    5454        void deleteFromDocument();
    55         boolean containsNode(in [Optional=TreatAsUndefined] Node node,
    56                              in [Optional=TreatAsUndefined] boolean allowPartial);
    57         void selectAllChildren(in [Optional=TreatAsUndefined] Node node)
     55        boolean containsNode(in [Optional=CallWithDefaultValue] Node node,
     56                             in [Optional=CallWithDefaultValue] boolean allowPartial);
     57        void selectAllChildren(in [Optional=CallWithDefaultValue] Node node)
    5858            raises(DOMException);
    5959
    60         void extend(in [Optional=TreatAsUndefined] Node node,
    61                     in [Optional=TreatAsUndefined] long offset)
     60        void extend(in [Optional=CallWithDefaultValue] Node node,
     61                    in [Optional=CallWithDefaultValue] long offset)
    6262            raises(DOMException);
    6363
    64         Range getRangeAt(in [Optional=TreatAsUndefined] long index)
     64        Range getRangeAt(in [Optional=CallWithDefaultValue] long index)
    6565            raises(DOMException);
    6666        void removeAllRanges();
    67         void addRange(in [Optional=TreatAsUndefined] Range range);
     67        void addRange(in [Optional=CallWithDefaultValue] Range range);
    6868
    6969#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
     
    8181        readonly attribute DOMString type;
    8282
    83         void modify(in [Optional=TreatAsUndefined] DOMString alter,
    84                     in [Optional=TreatAsUndefined] DOMString direction,
    85                     in [Optional=TreatAsUndefined] DOMString granularity);
    86         void setBaseAndExtent(in [Optional=TreatAsUndefined] Node baseNode,
    87                               in [Optional=TreatAsUndefined] long baseOffset,
    88                               in [Optional=TreatAsUndefined] Node extentNode,
    89                               in [Optional=TreatAsUndefined] long extentOffset)
     83        void modify(in [Optional=CallWithDefaultValue] DOMString alter,
     84                    in [Optional=CallWithDefaultValue] DOMString direction,
     85                    in [Optional=CallWithDefaultValue] DOMString granularity);
     86        void setBaseAndExtent(in [Optional=CallWithDefaultValue] Node baseNode,
     87                              in [Optional=CallWithDefaultValue] long baseOffset,
     88                              in [Optional=CallWithDefaultValue] Node extentNode,
     89                              in [Optional=CallWithDefaultValue] long extentOffset)
    9090            raises(DOMException);
    91         void setPosition(in [Optional=TreatAsUndefined] Node node,
    92                          in [Optional=TreatAsUndefined] long offset)
     91        void setPosition(in [Optional=CallWithDefaultValue] Node node,
     92                         in [Optional=CallWithDefaultValue] long offset)
    9393            raises(DOMException);
    9494
  • trunk/Source/WebCore/page/DOMWindow.idl

    r107189 r107204  
    7878                                           in [Optional] DOMString featureArgs);
    7979
    80         void alert(in [Optional=TreatAsUndefined] DOMString message);
    81         boolean confirm(in [Optional=TreatAsUndefined] DOMString message);
    82         [TreatReturnedNullStringAs=Null] DOMString prompt(in [Optional=TreatAsUndefined] DOMString message,
    83                                                     in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=TreatAsUndefined] DOMString defaultValue);
    84 
    85         boolean find(in [Optional=TreatAsUndefined] DOMString string,
    86                      in [Optional=TreatAsUndefined] boolean caseSensitive,
    87                      in [Optional=TreatAsUndefined] boolean backwards,
    88                      in [Optional=TreatAsUndefined] boolean wrap,
    89                      in [Optional=TreatAsUndefined] boolean wholeWord,
    90                      in [Optional=TreatAsUndefined] boolean searchInFrames,
    91                      in [Optional=TreatAsUndefined] boolean showDialog);
     80        void alert(in [Optional=CallWithDefaultValue] DOMString message);
     81        boolean confirm(in [Optional=CallWithDefaultValue] DOMString message);
     82        [ConvertNullStringTo=Null] DOMString prompt(in [Optional=CallWithDefaultValue] DOMString message,
     83                                                    in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString defaultValue);
     84
     85        boolean find(in [Optional=CallWithDefaultValue] DOMString string,
     86                     in [Optional=CallWithDefaultValue] boolean caseSensitive,
     87                     in [Optional=CallWithDefaultValue] boolean backwards,
     88                     in [Optional=CallWithDefaultValue] boolean wrap,
     89                     in [Optional=CallWithDefaultValue] boolean wholeWord,
     90                     in [Optional=CallWithDefaultValue] boolean searchInFrames,
     91                     in [Optional=CallWithDefaultValue] boolean showDialog);
    9292
    9393        attribute [Replaceable] boolean offscreenBuffering;
     
    106106        readonly attribute long pageYOffset;
    107107
    108         void scrollBy(in [Optional=TreatAsUndefined] long x, in [Optional=TreatAsUndefined] long y);
    109         void scrollTo(in [Optional=TreatAsUndefined] long x, in [Optional=TreatAsUndefined] long y);
    110         void scroll(in [Optional=TreatAsUndefined] long x, in [Optional=TreatAsUndefined] long y);
    111         void moveBy(in [Optional=TreatAsUndefined] float x, in [Optional=TreatAsUndefined] float y); // FIXME: this should take longs not floats.
    112         void moveTo(in [Optional=TreatAsUndefined] float x, in [Optional=TreatAsUndefined] float y); // FIXME: this should take longs not floats.
    113         void resizeBy(in [Optional=TreatAsUndefined] float x, in [Optional=TreatAsUndefined] float y); // FIXME: this should take longs not floats.
    114         void resizeTo(in [Optional=TreatAsUndefined] float width, in [Optional=TreatAsUndefined] float height); // FIXME: this should take longs not floats.
     108        void scrollBy(in [Optional=CallWithDefaultValue] long x, in [Optional=CallWithDefaultValue] long y);
     109        void scrollTo(in [Optional=CallWithDefaultValue] long x, in [Optional=CallWithDefaultValue] long y);
     110        void scroll(in [Optional=CallWithDefaultValue] long x, in [Optional=CallWithDefaultValue] long y);
     111        void moveBy(in [Optional=CallWithDefaultValue] float x, in [Optional=CallWithDefaultValue] float y); // FIXME: this should take longs not floats.
     112        void moveTo(in [Optional=CallWithDefaultValue] float x, in [Optional=CallWithDefaultValue] float y); // FIXME: this should take longs not floats.
     113        void resizeBy(in [Optional=CallWithDefaultValue] float x, in [Optional=CallWithDefaultValue] float y); // FIXME: this should take longs not floats.
     114        void resizeTo(in [Optional=CallWithDefaultValue] float width, in [Optional=CallWithDefaultValue] float height); // FIXME: this should take longs not floats.
    115115
    116116        readonly attribute [DoNotCheckDomainSecurity] boolean closed;
     
    146146
    147147        // DOM Level 2 Style Interface
    148         CSSStyleDeclaration getComputedStyle(in [Optional=TreatAsUndefined] Element element,
    149                                              in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=TreatAsUndefined] DOMString pseudoElement);
     148        CSSStyleDeclaration getComputedStyle(in [Optional=CallWithDefaultValue] Element element,
     149                                             in [TreatNullAs=NullString, TreatUndefinedAs=NullString,Optional=CallWithDefaultValue] DOMString pseudoElement);
    150150
    151151        // WebKit extensions
    152152#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
    153         CSSRuleList getMatchedCSSRules(in [Optional=TreatAsUndefined] Element element,
    154                                        in [Optional=TreatAsUndefined] DOMString pseudoElement);
     153        CSSRuleList getMatchedCSSRules(in [Optional=CallWithDefaultValue] Element element,
     154                                       in [Optional=CallWithDefaultValue] DOMString pseudoElement);
    155155#endif
    156156
    157157        attribute [Replaceable] double devicePixelRatio;
    158158       
    159         WebKitPoint webkitConvertPointFromPageToNode(in [Optional=TreatAsUndefined] Node node,
    160                                                      in [Optional=TreatAsUndefined] WebKitPoint p);
    161         WebKitPoint webkitConvertPointFromNodeToPage(in [Optional=TreatAsUndefined] Node node,
    162                                                      in [Optional=TreatAsUndefined] WebKitPoint p);
     159        WebKitPoint webkitConvertPointFromPageToNode(in [Optional=CallWithDefaultValue] Node node,
     160                                                     in [Optional=CallWithDefaultValue] WebKitPoint p);
     161        WebKitPoint webkitConvertPointFromNodeToPage(in [Optional=CallWithDefaultValue] Node node,
     162                                                     in [Optional=CallWithDefaultValue] WebKitPoint p);
    163163
    164164        readonly attribute [V8EnabledAtRuntime] DOMApplicationCache applicationCache;
     
    210210
    211211        // Timers
    212         [Custom] long setTimeout(in [Optional=TreatAsUndefined] TimeoutHandler handler,
    213                                  in [Optional=TreatAsUndefined] long timeout);
     212        [Custom] long setTimeout(in [Optional=CallWithDefaultValue] TimeoutHandler handler,
     213                                 in [Optional=CallWithDefaultValue] long timeout);
    214214        // [Custom] long setTimeout(in TimeoutHandler handler, in long timeout, arguments...);
    215215        // [Custom] long setTimeout(in DOMString code, in long timeout);
    216         void clearTimeout(in [Optional=TreatAsUndefined] long handle);
     216        void clearTimeout(in [Optional=CallWithDefaultValue] long handle);
    217217        [Custom] long setInterval(in TimeoutHandler handler, in long timeout);
    218218        // [Custom] long setInterval(in TimeoutHandler handler, in long timeout, arguments...);
    219219        // [Custom] long setInterval(in DOMString code, in long timeout);
    220         void clearInterval(in [Optional=TreatAsUndefined] long handle);
     220        void clearInterval(in [Optional=CallWithDefaultValue] long handle);
    221221
    222222#if defined(ENABLE_REQUEST_ANIMATION_FRAME)
    223223        // WebKit animation extensions, being standardized in the WebPerf WG
    224         long webkitRequestAnimationFrame(in [Callback] RequestAnimationFrameCallback callback, in [Optional=TreatAsUndefined] Element element);
     224        long webkitRequestAnimationFrame(in [Callback] RequestAnimationFrameCallback callback, in [Optional=CallWithDefaultValue] Element element);
    225225        void webkitCancelAnimationFrame(in long id);
    226226        void webkitCancelRequestAnimationFrame(in long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove this when removing vendor prefix.
     
    228228
    229229        // Base64
    230         DOMString atob(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString string)
     230        DOMString atob(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString string)
    231231            raises(DOMException);
    232         DOMString btoa(in [TreatNullAs=NullString,Optional=TreatAsUndefined] DOMString string)
     232        DOMString btoa(in [TreatNullAs=NullString,Optional=CallWithDefaultValue] DOMString string)
    233233            raises(DOMException);
    234234
  • trunk/Source/WebCore/page/History.idl

    r107182 r107204  
    4242        [DoNotCheckDomainSecurity, CallWith=ScriptExecutionContext] void back();
    4343        [DoNotCheckDomainSecurity, CallWith=ScriptExecutionContext] void forward();
    44         [DoNotCheckDomainSecurity, CallWith=ScriptExecutionContext] void go(in [Optional=TreatAsUndefined] long distance);
     44        [DoNotCheckDomainSecurity, CallWith=ScriptExecutionContext] void go(in [Optional=CallWithDefaultValue] long distance);
    4545       
    4646        [Custom, V8EnabledAtRuntime] void pushState(in any data, in DOMString title, in [Optional] DOMString url)
  • trunk/Source/WebCore/page/Location.idl

    r107182 r107204  
    4747#endif
    4848
    49         [Custom, V8OnInstance] void assign(in [Optional=TreatAsUndefined] DOMString url);
    50         [Custom, V8OnInstance] void replace(in [Optional=TreatAsUndefined] DOMString url);
     49        [Custom, V8OnInstance] void assign(in [Optional=CallWithDefaultValue] DOMString url);
     50        [Custom, V8OnInstance] void replace(in [Optional=CallWithDefaultValue] DOMString url);
    5151        [Custom, V8OnInstance] void reload();
    5252
  • trunk/Source/WebCore/plugins/DOMMimeTypeArray.idl

    r107182 r107204  
    2727    ] DOMMimeTypeArray {
    2828        readonly attribute unsigned long length;
    29         DOMMimeType item(in [Optional=TreatAsUndefined] unsigned long index);
    30         DOMMimeType namedItem(in [Optional=TreatAsUndefined] DOMString name);
     29        DOMMimeType item(in [Optional=CallWithDefaultValue] unsigned long index);
     30        DOMMimeType namedItem(in [Optional=CallWithDefaultValue] DOMString name);
    3131    };
    3232
  • trunk/Source/WebCore/plugins/DOMPlugin.idl

    r107182 r107204  
    2929        readonly attribute DOMString description;
    3030        readonly attribute unsigned long length;
    31         DOMMimeType item(in [Optional=TreatAsUndefined] unsigned long index);
    32         DOMMimeType namedItem(in [Optional=TreatAsUndefined] DOMString name);
     31        DOMMimeType item(in [Optional=CallWithDefaultValue] unsigned long index);
     32        DOMMimeType namedItem(in [Optional=CallWithDefaultValue] DOMString name);
    3333    };
    3434
  • trunk/Source/WebCore/plugins/DOMPluginArray.idl

    r107182 r107204  
    2727    ] DOMPluginArray {
    2828        readonly attribute unsigned long length;
    29         DOMPlugin item(in [Optional=TreatAsUndefined] unsigned long index);
    30         DOMPlugin namedItem(in [Optional=TreatAsUndefined] DOMString name);
    31         void refresh(in [Optional=TreatAsUndefined] boolean reload);
     29        DOMPlugin item(in [Optional=CallWithDefaultValue] unsigned long index);
     30        DOMPlugin namedItem(in [Optional=CallWithDefaultValue] DOMString name);
     31        void refresh(in [Optional=CallWithDefaultValue] boolean reload);
    3232    };
    3333
  • trunk/Source/WebCore/storage/IDBDatabase.idl

    r107182 r107204  
    4646        [CallWith=ScriptExecutionContext] IDBVersionChangeRequest setVersion(in DOMString version)
    4747            raises (IDBDatabaseException);
    48         [CallWith=ScriptExecutionContext] IDBTransaction transaction(in DOMStringList storeNames, in [Optional=TreatAsUndefined] unsigned short mode)
     48        [CallWith=ScriptExecutionContext] IDBTransaction transaction(in DOMStringList storeNames, in [Optional=CallWithDefaultValue] unsigned short mode)
    4949            raises (IDBDatabaseException);
    50         [CallWith=ScriptExecutionContext] IDBTransaction transaction(in DOMString[] storeNames, in [Optional=TreatAsUndefined] unsigned short mode)
     50        [CallWith=ScriptExecutionContext] IDBTransaction transaction(in DOMString[] storeNames, in [Optional=CallWithDefaultValue] unsigned short mode)
    5151            raises (IDBDatabaseException);
    52         [CallWith=ScriptExecutionContext] IDBTransaction transaction(in DOMString storeName, in [Optional=TreatAsUndefined] unsigned short mode)
     52        [CallWith=ScriptExecutionContext] IDBTransaction transaction(in DOMString storeName, in [Optional=CallWithDefaultValue] unsigned short mode)
    5353            raises (IDBDatabaseException);
    5454        void close();
  • trunk/Source/WebCore/storage/IDBObjectStore.idl

    r107189 r107204  
    2929        Conditional=INDEXED_DATABASE
    3030    ] IDBObjectStore {
    31         readonly attribute [TreatReturnedNullStringAs=Null] DOMString name;
    32         readonly attribute [TreatReturnedNullStringAs=Null] DOMString keyPath;
     31        readonly attribute [ConvertNullStringTo=Null] DOMString name;
     32        readonly attribute [ConvertNullStringTo=Null] DOMString keyPath;
    3333        readonly attribute DOMStringList indexNames;
    3434        readonly attribute IDBTransaction transaction;
  • trunk/Source/WebCore/storage/IDBRequest.idl

    r107189 r107204  
    3939        readonly attribute unsigned short errorCode
    4040            getter raises (IDBDatabaseException);
    41         readonly attribute [TreatReturnedNullStringAs=Undefined] DOMString webkitErrorMessage
     41        readonly attribute [ConvertNullStringTo=Undefined] DOMString webkitErrorMessage
    4242            getter raises (IDBDatabaseException);
    4343        readonly attribute IDBAny source;
  • trunk/Source/WebCore/storage/Storage.idl

    r107189 r107204  
    3434    ] Storage {
    3535        readonly attribute [NotEnumerable] unsigned long length;
    36         [NotEnumerable, TreatReturnedNullStringAs=Null] DOMString key(in unsigned long index);
    37         [NotEnumerable, TreatReturnedNullStringAs=Null] DOMString getItem(in DOMString key);
     36        [NotEnumerable, ConvertNullStringTo=Null] DOMString key(in unsigned long index);
     37        [NotEnumerable, ConvertNullStringTo=Null] DOMString getItem(in DOMString key);
    3838        [NotEnumerable] void setItem(in DOMString key, in DOMString data)
    3939            raises(DOMException);
  • trunk/Source/WebCore/storage/StorageEvent.idl

    r107189 r107204  
    3030    ] StorageEvent : Event {
    3131        readonly attribute [InitializedByEventConstructor] DOMString key;
    32         readonly attribute [InitializedByEventConstructor, TreatReturnedNullStringAs=Null] DOMString oldValue;
    33         readonly attribute [InitializedByEventConstructor, TreatReturnedNullStringAs=Null] DOMString newValue;
     32        readonly attribute [InitializedByEventConstructor, ConvertNullStringTo=Null] DOMString oldValue;
     33        readonly attribute [InitializedByEventConstructor, ConvertNullStringTo=Null] DOMString newValue;
    3434        readonly attribute [InitializedByEventConstructor] DOMString url;
    3535        readonly attribute [InitializedByEventConstructor] Storage storageArea;
    3636
    37         void initStorageEvent(in [Optional=TreatAsUndefined] DOMString typeArg,
    38                               in [Optional=TreatAsUndefined] boolean canBubbleArg,
    39                               in [Optional=TreatAsUndefined] boolean cancelableArg,
    40                               in [Optional=TreatAsUndefined] DOMString keyArg,
    41                               in [Optional=TreatAsUndefined,TreatNullAs=NullString] DOMString oldValueArg,
    42                               in [Optional=TreatAsUndefined,TreatNullAs=NullString] DOMString newValueArg,
    43                               in [Optional=TreatAsUndefined] DOMString urlArg,
    44                               in [Optional=TreatAsUndefined] Storage storageAreaArg);
     37        void initStorageEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,
     38                              in [Optional=CallWithDefaultValue] boolean canBubbleArg,
     39                              in [Optional=CallWithDefaultValue] boolean cancelableArg,
     40                              in [Optional=CallWithDefaultValue] DOMString keyArg,
     41                              in [Optional=CallWithDefaultValue,TreatNullAs=NullString] DOMString oldValueArg,
     42                              in [Optional=CallWithDefaultValue,TreatNullAs=NullString] DOMString newValueArg,
     43                              in [Optional=CallWithDefaultValue] DOMString urlArg,
     44                              in [Optional=CallWithDefaultValue] Storage storageAreaArg);
    4545
    4646        // Needed once we support init<blank>EventNS
  • trunk/Source/WebCore/svg/ElementTimeControl.idl

    r107182 r107204  
    3333    ] ElementTimeControl {
    3434        void beginElement();
    35         void beginElementAt(in [Optional=TreatAsUndefined] float offset);
     35        void beginElementAt(in [Optional=CallWithDefaultValue] float offset);
    3636        void endElement();
    37         void endElementAt(in [Optional=TreatAsUndefined] float offset);
     37        void endElementAt(in [Optional=CallWithDefaultValue] float offset);
    3838    };
    3939
  • trunk/Source/WebCore/svg/SVGDocument.idl

    r107182 r107204  
    2828
    2929        // Overwrite the one in events::DocumentEvent
    30         Event createEvent(in [Optional=TreatAsUndefined] DOMString eventType)
     30        Event createEvent(in [Optional=CallWithDefaultValue] DOMString eventType)
    3131            raises(DOMException);
    3232    };
  • trunk/Source/WebCore/svg/SVGElementInstanceList.idl

    r107182 r107204  
    3030        readonly attribute unsigned long length;
    3131
    32         SVGElementInstance item(in [Optional=TreatAsUndefined] unsigned long index);
     32        SVGElementInstance item(in [Optional=CallWithDefaultValue] unsigned long index);
    3333    };
    3434}
  • trunk/Source/WebCore/svg/SVGFEDropShadowElement.idl

    r107182 r107204  
    3030        readonly attribute SVGAnimatedNumber stdDeviationY;
    3131
    32         void setStdDeviation(in [Optional=TreatAsUndefined] float stdDeviationX,
    33                              in [Optional=TreatAsUndefined] float stdDeviationY);
     32        void setStdDeviation(in [Optional=CallWithDefaultValue] float stdDeviationX,
     33                             in [Optional=CallWithDefaultValue] float stdDeviationY);
    3434    };
    3535
  • trunk/Source/WebCore/svg/SVGFEGaussianBlurElement.idl

    r107182 r107204  
    3434        readonly attribute SVGAnimatedNumber stdDeviationY;
    3535
    36         void setStdDeviation(in [Optional=TreatAsUndefined] float stdDeviationX,
    37                              in [Optional=TreatAsUndefined] float stdDeviationY);
     36        void setStdDeviation(in [Optional=CallWithDefaultValue] float stdDeviationX,
     37                             in [Optional=CallWithDefaultValue] float stdDeviationY);
    3838    };
    3939
  • trunk/Source/WebCore/svg/SVGFEMorphologyElement.idl

    r107182 r107204  
    4141        readonly attribute SVGAnimatedNumber      radiusY;
    4242
    43         void setRadius(in [Optional=TreatAsUndefined] float radiusX,
    44                        in [Optional=TreatAsUndefined] float radiusY);
     43        void setRadius(in [Optional=CallWithDefaultValue] float radiusX,
     44                       in [Optional=CallWithDefaultValue] float radiusY);
    4545    };
    4646
  • trunk/Source/WebCore/svg/SVGFilterElement.idl

    r107182 r107204  
    4444        readonly attribute SVGAnimatedInteger     filterResY;
    4545
    46         void setFilterRes(in [Optional=TreatAsUndefined] unsigned long filterResX,
    47                           in [Optional=TreatAsUndefined] unsigned long filterResY);
     46        void setFilterRes(in [Optional=CallWithDefaultValue] unsigned long filterResX,
     47                          in [Optional=CallWithDefaultValue] unsigned long filterResY);
    4848    };
    4949
  • trunk/Source/WebCore/svg/SVGLocatable.idl

    r107182 r107204  
    3838        SVGMatrix getCTM();
    3939        SVGMatrix getScreenCTM();
    40         SVGMatrix getTransformToElement(in [Optional=TreatAsUndefined] SVGElement element)
     40        SVGMatrix getTransformToElement(in [Optional=CallWithDefaultValue] SVGElement element)
    4141            raises(SVGException);
    4242    };
  • trunk/Source/WebCore/svg/SVGMarkerElement.idl

    r107182 r107204  
    5252
    5353        void setOrientToAuto();
    54         void setOrientToAngle(in [Optional=TreatAsUndefined] SVGAngle angle);
     54        void setOrientToAngle(in [Optional=CallWithDefaultValue] SVGAngle angle);
    5555    };
    5656
  • trunk/Source/WebCore/svg/SVGPathElement.idl

    r107182 r107204  
    3838
    3939        float getTotalLength();
    40         SVGPoint getPointAtLength(in [Optional=TreatAsUndefined] float distance);
    41         unsigned long getPathSegAtLength(in [Optional=TreatAsUndefined] float distance);
     40        SVGPoint getPointAtLength(in [Optional=CallWithDefaultValue] float distance);
     41        unsigned long getPathSegAtLength(in [Optional=CallWithDefaultValue] float distance);
    4242
    4343        SVGPathSegClosePath createSVGPathSegClosePath();
    4444
    45         SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(in [Optional=TreatAsUndefined] float x,
    46                                                       in [Optional=TreatAsUndefined] float y);
    47         SVGPathSegMovetoRel createSVGPathSegMovetoRel(in [Optional=TreatAsUndefined] float x,
    48                                                       in [Optional=TreatAsUndefined] float y);
     45        SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(in [Optional=CallWithDefaultValue] float x,
     46                                                      in [Optional=CallWithDefaultValue] float y);
     47        SVGPathSegMovetoRel createSVGPathSegMovetoRel(in [Optional=CallWithDefaultValue] float x,
     48                                                      in [Optional=CallWithDefaultValue] float y);
    4949
    50         SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(in [Optional=TreatAsUndefined] float x,
    51                                                       in [Optional=TreatAsUndefined] float y);
    52         SVGPathSegLinetoRel createSVGPathSegLinetoRel(in [Optional=TreatAsUndefined] float x,
    53                                                       in [Optional=TreatAsUndefined] float y);
     50        SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(in [Optional=CallWithDefaultValue] float x,
     51                                                      in [Optional=CallWithDefaultValue] float y);
     52        SVGPathSegLinetoRel createSVGPathSegLinetoRel(in [Optional=CallWithDefaultValue] float x,
     53                                                      in [Optional=CallWithDefaultValue] float y);
    5454
    55         SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(in [Optional=TreatAsUndefined] float x,
    56                                                                   in [Optional=TreatAsUndefined] float y,
    57                                                                   in [Optional=TreatAsUndefined] float x1,
    58                                                                   in [Optional=TreatAsUndefined] float y1,
    59                                                                   in [Optional=TreatAsUndefined] float x2,
    60                                                                   in [Optional=TreatAsUndefined] float y2);
    61         SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(in [Optional=TreatAsUndefined] float x,
    62                                                                   in [Optional=TreatAsUndefined] float y,
    63                                                                   in [Optional=TreatAsUndefined] float x1,
    64                                                                   in [Optional=TreatAsUndefined] float y1,
    65                                                                   in [Optional=TreatAsUndefined] float x2,
    66                                                                   in [Optional=TreatAsUndefined] float y2);
     55        SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(in [Optional=CallWithDefaultValue] float x,
     56                                                                  in [Optional=CallWithDefaultValue] float y,
     57                                                                  in [Optional=CallWithDefaultValue] float x1,
     58                                                                  in [Optional=CallWithDefaultValue] float y1,
     59                                                                  in [Optional=CallWithDefaultValue] float x2,
     60                                                                  in [Optional=CallWithDefaultValue] float y2);
     61        SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(in [Optional=CallWithDefaultValue] float x,
     62                                                                  in [Optional=CallWithDefaultValue] float y,
     63                                                                  in [Optional=CallWithDefaultValue] float x1,
     64                                                                  in [Optional=CallWithDefaultValue] float y1,
     65                                                                  in [Optional=CallWithDefaultValue] float x2,
     66                                                                  in [Optional=CallWithDefaultValue] float y2);
    6767
    68         SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(in [Optional=TreatAsUndefined] float x,
    69                                                                           in [Optional=TreatAsUndefined] float y,
    70                                                                           in [Optional=TreatAsUndefined] float x1,
    71                                                                           in [Optional=TreatAsUndefined] float y1);
    72         SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(in [Optional=TreatAsUndefined] float x,
    73                                                                           in [Optional=TreatAsUndefined] float y,
    74                                                                           in [Optional=TreatAsUndefined] float x1,
    75                                                                           in [Optional=TreatAsUndefined] float y1);
     68        SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(in [Optional=CallWithDefaultValue] float x,
     69                                                                          in [Optional=CallWithDefaultValue] float y,
     70                                                                          in [Optional=CallWithDefaultValue] float x1,
     71                                                                          in [Optional=CallWithDefaultValue] float y1);
     72        SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(in [Optional=CallWithDefaultValue] float x,
     73                                                                          in [Optional=CallWithDefaultValue] float y,
     74                                                                          in [Optional=CallWithDefaultValue] float x1,
     75                                                                          in [Optional=CallWithDefaultValue] float y1);
    7676
    77         SVGPathSegArcAbs createSVGPathSegArcAbs(in [Optional=TreatAsUndefined] float x,
    78                                                 in [Optional=TreatAsUndefined] float y,
    79                                                 in [Optional=TreatAsUndefined] float r1,
    80                                                 in [Optional=TreatAsUndefined] float r2,
    81                                                 in [Optional=TreatAsUndefined] float angle,
    82                                                 in [Optional=TreatAsUndefined] boolean largeArcFlag,
    83                                                 in [Optional=TreatAsUndefined] boolean sweepFlag);
    84         SVGPathSegArcRel createSVGPathSegArcRel(in [Optional=TreatAsUndefined] float x,
    85                                                 in [Optional=TreatAsUndefined] float y,
    86                                                 in [Optional=TreatAsUndefined] float r1,
    87                                                 in [Optional=TreatAsUndefined] float r2,
    88                                                 in [Optional=TreatAsUndefined] float angle,
    89                                                 in [Optional=TreatAsUndefined] boolean largeArcFlag,
    90                                                 in [Optional=TreatAsUndefined] boolean sweepFlag);
     77        SVGPathSegArcAbs createSVGPathSegArcAbs(in [Optional=CallWithDefaultValue] float x,
     78                                                in [Optional=CallWithDefaultValue] float y,
     79                                                in [Optional=CallWithDefaultValue] float r1,
     80                                                in [Optional=CallWithDefaultValue] float r2,
     81                                                in [Optional=CallWithDefaultValue] float angle,
     82                                                in [Optional=CallWithDefaultValue] boolean largeArcFlag,
     83                                                in [Optional=CallWithDefaultValue] boolean sweepFlag);
     84        SVGPathSegArcRel createSVGPathSegArcRel(in [Optional=CallWithDefaultValue] float x,
     85                                                in [Optional=CallWithDefaultValue] float y,
     86                                                in [Optional=CallWithDefaultValue] float r1,
     87                                                in [Optional=CallWithDefaultValue] float r2,
     88                                                in [Optional=CallWithDefaultValue] float angle,
     89                                                in [Optional=CallWithDefaultValue] boolean largeArcFlag,
     90                                                in [Optional=CallWithDefaultValue] boolean sweepFlag);
    9191
    92         SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(in [Optional=TreatAsUndefined] float x);
    93         SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(in [Optional=TreatAsUndefined] float x);
     92        SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(in [Optional=CallWithDefaultValue] float x);
     93        SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(in [Optional=CallWithDefaultValue] float x);
    9494
    95         SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(in [Optional=TreatAsUndefined] float y);
    96         SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(in [Optional=TreatAsUndefined] float y);
     95        SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(in [Optional=CallWithDefaultValue] float y);
     96        SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(in [Optional=CallWithDefaultValue] float y);
    9797
    98         SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(in [Optional=TreatAsUndefined] float x,
    99                                                                               in [Optional=TreatAsUndefined] float y,
    100                                                                               in [Optional=TreatAsUndefined] float x2,
    101                                                                               in [Optional=TreatAsUndefined] float y2);
    102         SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(in [Optional=TreatAsUndefined] float x,
    103                                                                               in [Optional=TreatAsUndefined] float y,
    104                                                                               in [Optional=TreatAsUndefined] float x2,
    105                                                                               in [Optional=TreatAsUndefined] float y2);
     98        SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(in [Optional=CallWithDefaultValue] float x,
     99                                                                              in [Optional=CallWithDefaultValue] float y,
     100                                                                              in [Optional=CallWithDefaultValue] float x2,
     101                                                                              in [Optional=CallWithDefaultValue] float y2);
     102        SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(in [Optional=CallWithDefaultValue] float x,
     103                                                                              in [Optional=CallWithDefaultValue] float y,
     104                                                                              in [Optional=CallWithDefaultValue] float x2,
     105                                                                              in [Optional=CallWithDefaultValue] float y2);
    106106
    107         SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(in [Optional=TreatAsUndefined] float x,
    108                                                                                       in [Optional=TreatAsUndefined] float y);
    109         SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(in [Optional=TreatAsUndefined] float x,
    110                                                                                       in [Optional=TreatAsUndefined] float y);
     107        SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(in [Optional=CallWithDefaultValue] float x,
     108                                                                                      in [Optional=CallWithDefaultValue] float y);
     109        SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(in [Optional=CallWithDefaultValue] float x,
     110                                                                                      in [Optional=CallWithDefaultValue] float y);
    111111
    112112        readonly attribute SVGPathSegList pathSegList;
  • trunk/Source/WebCore/svg/SVGSVGElement.idl

    r107182 r107204  
    5656        readonly attribute SVGPoint currentTranslate;
    5757
    58         unsigned long suspendRedraw(in [Optional=TreatAsUndefined] unsigned long maxWaitMilliseconds);
    59         void unsuspendRedraw(in [Optional=TreatAsUndefined] unsigned long suspendHandleId);
     58        unsigned long suspendRedraw(in [Optional=CallWithDefaultValue] unsigned long maxWaitMilliseconds);
     59        void unsuspendRedraw(in [Optional=CallWithDefaultValue] unsigned long suspendHandleId);
    6060        void unsuspendRedrawAll();
    6161        void forceRedraw();
     
    6464        boolean animationsPaused();
    6565        float getCurrentTime();
    66         void setCurrentTime(in [Optional=TreatAsUndefined] float seconds);
    67         NodeList getIntersectionList(in [Optional=TreatAsUndefined] SVGRect rect,
    68                                      in [Optional=TreatAsUndefined] SVGElement referenceElement);
    69         NodeList getEnclosureList(in [Optional=TreatAsUndefined] SVGRect rect,
    70                                   in [Optional=TreatAsUndefined] SVGElement referenceElement);
    71         boolean checkIntersection(in [Optional=TreatAsUndefined] SVGElement element,
    72                                   in [Optional=TreatAsUndefined] SVGRect rect);
    73         boolean checkEnclosure(in [Optional=TreatAsUndefined] SVGElement element,
    74                                in [Optional=TreatAsUndefined] SVGRect rect);
     66        void setCurrentTime(in [Optional=CallWithDefaultValue] float seconds);
     67        NodeList getIntersectionList(in [Optional=CallWithDefaultValue] SVGRect rect,
     68                                     in [Optional=CallWithDefaultValue] SVGElement referenceElement);
     69        NodeList getEnclosureList(in [Optional=CallWithDefaultValue] SVGRect rect,
     70                                  in [Optional=CallWithDefaultValue] SVGElement referenceElement);
     71        boolean checkIntersection(in [Optional=CallWithDefaultValue] SVGElement element,
     72                                  in [Optional=CallWithDefaultValue] SVGRect rect);
     73        boolean checkEnclosure(in [Optional=CallWithDefaultValue] SVGElement element,
     74                               in [Optional=CallWithDefaultValue] SVGRect rect);
    7575        void deselectAll();
    7676
     
    8282        SVGRect createSVGRect();
    8383        SVGTransform createSVGTransform();
    84         SVGTransform createSVGTransformFromMatrix(in [Optional=TreatAsUndefined] SVGMatrix matrix);
    85         Element getElementById(in [Optional=TreatAsUndefined] DOMString elementId);
     84        SVGTransform createSVGTransformFromMatrix(in [Optional=CallWithDefaultValue] SVGMatrix matrix);
     85        Element getElementById(in [Optional=CallWithDefaultValue] DOMString elementId);
    8686    };
    8787
  • trunk/Source/WebCore/svg/SVGStylable.idl

    r107182 r107204  
    3636        readonly attribute CSSStyleDeclaration style;
    3737
    38         CSSValue getPresentationAttribute(in [Optional=TreatAsUndefined] DOMString name);
     38        CSSValue getPresentationAttribute(in [Optional=CallWithDefaultValue] DOMString name);
    3939    };
    4040
  • trunk/Source/WebCore/svg/SVGTests.idl

    r107182 r107204  
    3636        readonly attribute SVGStringList systemLanguage;
    3737
    38         boolean hasExtension(in [Optional=TreatAsUndefined] DOMString extension);
     38        boolean hasExtension(in [Optional=CallWithDefaultValue] DOMString extension);
    3939    };
    4040
  • trunk/Source/WebCore/svg/SVGTextContentElement.idl

    r107182 r107204  
    4343        long getNumberOfChars();
    4444        float getComputedTextLength();
    45         float getSubStringLength(in [Optional=TreatAsUndefined,IsIndex] unsigned long offset,
    46                                  in [Optional=TreatAsUndefined,IsIndex] unsigned long length)
     45        float getSubStringLength(in [Optional=CallWithDefaultValue,IsIndex] unsigned long offset,
     46                                 in [Optional=CallWithDefaultValue,IsIndex] unsigned long length)
    4747            raises(DOMException);
    48         SVGPoint getStartPositionOfChar(in [Optional=TreatAsUndefined,IsIndex] unsigned long offset)
     48        SVGPoint getStartPositionOfChar(in [Optional=CallWithDefaultValue,IsIndex] unsigned long offset)
    4949            raises(DOMException);
    50         SVGPoint getEndPositionOfChar(in [Optional=TreatAsUndefined,IsIndex] unsigned long offset)
     50        SVGPoint getEndPositionOfChar(in [Optional=CallWithDefaultValue,IsIndex] unsigned long offset)
    5151            raises(DOMException);
    52         SVGRect getExtentOfChar(in [Optional=TreatAsUndefined,IsIndex] unsigned long offset)
     52        SVGRect getExtentOfChar(in [Optional=CallWithDefaultValue,IsIndex] unsigned long offset)
    5353            raises(DOMException);
    54         float getRotationOfChar(in [Optional=TreatAsUndefined,IsIndex] unsigned long offset)
     54        float getRotationOfChar(in [Optional=CallWithDefaultValue,IsIndex] unsigned long offset)
    5555            raises(DOMException);
    56         long getCharNumAtPosition(in [Optional=TreatAsUndefined] SVGPoint point);
    57         void selectSubString(in [Optional=TreatAsUndefined,IsIndex] unsigned long offset,
    58                              in [Optional=TreatAsUndefined,IsIndex] unsigned long length)
     56        long getCharNumAtPosition(in [Optional=CallWithDefaultValue] SVGPoint point);
     57        void selectSubString(in [Optional=CallWithDefaultValue,IsIndex] unsigned long offset,
     58                             in [Optional=CallWithDefaultValue,IsIndex] unsigned long length)
    5959            raises(DOMException);
    6060    };
  • trunk/Source/WebCore/webaudio/AudioNode.idl

    r107182 r107204  
    3131        readonly attribute unsigned long numberOfOutputs;
    3232
    33         void connect(in AudioNode destination, in [Optional=TreatAsUndefined] unsigned long output, in [Optional=TreatAsUndefined] unsigned long input)
     33        void connect(in AudioNode destination, in [Optional=CallWithDefaultValue] unsigned long output, in [Optional=CallWithDefaultValue] unsigned long input)
    3434            raises(DOMException);
    3535
    36         void disconnect(in [Optional=TreatAsUndefined] unsigned long output)
     36        void disconnect(in [Optional=CallWithDefaultValue] unsigned long output)
    3737            raises(DOMException);
    3838    };
  • trunk/Source/WebCore/websockets/WebSocket.idl

    r107189 r107204  
    5858        attribute EventListener onclose;
    5959
    60         readonly attribute [TreatReturnedNullStringAs=Undefined] DOMString protocol;
    61         readonly attribute [TreatReturnedNullStringAs=Undefined] DOMString extensions;
     60        readonly attribute [ConvertNullStringTo=Undefined] DOMString protocol;
     61        readonly attribute [ConvertNullStringTo=Undefined] DOMString extensions;
    6262
    63         attribute [TreatReturnedNullStringAs=Undefined] DOMString binaryType
     63        attribute [ConvertNullStringTo=Undefined] DOMString binaryType
    6464            setter raises(DOMException);
    6565
  • trunk/Source/WebCore/workers/SharedWorker.idl

    r107182 r107204  
    3737        JSCustomConstructor,
    3838        ConstructorParameters=2,
    39         Constructor(in DOMString scriptURL, in [Optional=TreatAsUndefined, TreatUndefinedAs=NullString] DOMString name),
     39        Constructor(in DOMString scriptURL, in [Optional=CallWithNullValue] DOMString name),
    4040        CallWith=ScriptExecutionContext,
    4141        ConstructorRaisesException,
  • trunk/Source/WebCore/workers/WorkerContext.idl

    r107182 r107204  
    6060        [Custom] long setTimeout(in TimeoutHandler handler, in long timeout);
    6161        // [Custom] long setTimeout(in DOMString code, in long timeout);
    62         void clearTimeout(in [Optional=TreatAsUndefined] long handle);
     62        void clearTimeout(in [Optional=CallWithDefaultValue] long handle);
    6363        [Custom] long setInterval(in TimeoutHandler handler, in long timeout);
    6464        // [Custom] long setInterval(in DOMString code, in long timeout);
    65         void clearInterval(in [Optional=TreatAsUndefined] long handle);
     65        void clearInterval(in [Optional=CallWithDefaultValue] long handle);
    6666
    6767
  • trunk/Source/WebCore/xml/DOMParser.idl

    r107182 r107204  
    2222        Constructor
    2323    ] DOMParser {
    24         Document parseFromString(in [Optional=TreatAsUndefined] DOMString str,
    25                                  in [Optional=TreatAsUndefined] DOMString contentType);
     24        Document parseFromString(in [Optional=CallWithDefaultValue] DOMString str,
     25                                 in [Optional=CallWithDefaultValue] DOMString contentType);
    2626    };
    2727}
  • trunk/Source/WebCore/xml/XMLHttpRequest.idl

    r107189 r107204  
    9090
    9191        // response
    92         [TreatReturnedNullStringAs=Undefined] DOMString getAllResponseHeaders()
     92        [ConvertNullStringTo=Undefined] DOMString getAllResponseHeaders()
    9393            raises(DOMException);
    94         [TreatReturnedNullStringAs=Null] DOMString getResponseHeader(in DOMString header)
     94        [ConvertNullStringTo=Null] DOMString getResponseHeader(in DOMString header)
    9595            raises(DOMException);
    96         readonly attribute [CustomGetter] DOMString responseText // The custom getter implements TreatReturnedNullStringAs=Null
     96        readonly attribute [CustomGetter] DOMString responseText // The custom getter implements ConvertNullStringTo=Null
    9797            getter raises(DOMException);
    9898        readonly attribute Document responseXML
  • trunk/Source/WebCore/xml/XMLSerializer.idl

    r107182 r107204  
    2424        Constructor
    2525    ] XMLSerializer {
    26         DOMString serializeToString(in [Optional=TreatAsUndefined] Node node)
     26        DOMString serializeToString(in [Optional=CallWithDefaultValue] Node node)
    2727            raises(DOMException);
    2828    };
  • trunk/Source/WebCore/xml/XPathEvaluator.idl

    r107182 r107204  
    2222        Constructor
    2323    ] XPathEvaluator {
    24         XPathExpression createExpression(in [Optional=TreatAsUndefined] DOMString expression,
    25                                          in [Optional=TreatAsUndefined] XPathNSResolver resolver)
     24        XPathExpression createExpression(in [Optional=CallWithDefaultValue] DOMString expression,
     25                                         in [Optional=CallWithDefaultValue] XPathNSResolver resolver)
    2626            raises(DOMException);
    2727
    28         XPathNSResolver createNSResolver(in [Optional=TreatAsUndefined] Node nodeResolver);
     28        XPathNSResolver createNSResolver(in [Optional=CallWithDefaultValue] Node nodeResolver);
    2929
    30         XPathResult evaluate(in [Optional=TreatAsUndefined] DOMString expression,
    31                              in [Optional=TreatAsUndefined] Node contextNode,
    32                              in [Optional=TreatAsUndefined] XPathNSResolver resolver,
    33                              in [Optional=TreatAsUndefined] unsigned short type,
    34                              in [Optional=TreatAsUndefined] XPathResult inResult)
     30        XPathResult evaluate(in [Optional=CallWithDefaultValue] DOMString expression,
     31                             in [Optional=CallWithDefaultValue] Node contextNode,
     32                             in [Optional=CallWithDefaultValue] XPathNSResolver resolver,
     33                             in [Optional=CallWithDefaultValue] unsigned short type,
     34                             in [Optional=CallWithDefaultValue] XPathResult inResult)
    3535            raises(DOMException);
    3636    };
  • trunk/Source/WebCore/xml/XPathExpression.idl

    r107182 r107204  
    2222
    2323    interface XPathExpression {
    24         [ObjCLegacyUnnamedParameters] XPathResult evaluate(in [Optional=TreatAsUndefined] Node contextNode,
    25                                             in [Optional=TreatAsUndefined] unsigned short type,
    26                                             in [Optional=TreatAsUndefined] XPathResult inResult)
     24        [ObjCLegacyUnnamedParameters] XPathResult evaluate(in [Optional=CallWithDefaultValue] Node contextNode,
     25                                            in [Optional=CallWithDefaultValue] unsigned short type,
     26                                            in [Optional=CallWithDefaultValue] XPathResult inResult)
    2727            raises(DOMException);
    2828    };
  • trunk/Source/WebCore/xml/XPathNSResolver.idl

    r107189 r107204  
    2525        OmitConstructor
    2626    ] XPathNSResolver {
    27         [TreatReturnedNullStringAs=Null] DOMString lookupNamespaceURI(in [Optional=TreatAsUndefined] DOMString prefix);
     27        [ConvertNullStringTo=Null] DOMString lookupNamespaceURI(in [Optional=CallWithDefaultValue] DOMString prefix);
    2828    };
    2929
  • trunk/Source/WebCore/xml/XPathResult.idl

    r107182 r107204  
    5353        Node iterateNext()
    5454            raises (DOMException);
    55         Node snapshotItem(in [Optional=TreatAsUndefined] unsigned long index)
     55        Node snapshotItem(in [Optional=CallWithDefaultValue] unsigned long index)
    5656            raises (DOMException);
    5757    };
  • trunk/Source/WebCore/xml/XSLTProcessor.idl

    r107189 r107204  
    4343
    4444        [Custom] void setParameter(in DOMString namespaceURI, in DOMString localName, in DOMString value);
    45         [Custom, TreatReturnedNullStringAs=Undefined] DOMString getParameter(in DOMString namespaceURI, in DOMString localName);
     45        [Custom, ConvertNullStringTo=Undefined] DOMString getParameter(in DOMString namespaceURI, in DOMString localName);
    4646        [Custom] void removeParameter(in DOMString namespaceURI, in DOMString localName);
    4747        void clearParameters();
Note: See TracChangeset for help on using the changeset viewer.