1. 08 Feb, 2012 1 commit
  2. 07 Feb, 2012 2 commits
    • haraken@chromium.org's avatar
      Add "JS" prefix to JSC-specific IDLs · efee39f4
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77846
      
      Reviewed by Darin Adler.
      
      In bug 77693, we have added "JS" prefix to several JSC specific IDLs.
      This patch adds "JS" prefix to the remaining JSC specific IDLs.
      Specifically, this patch renames IDLs as follows:
      
      [CustomDefineOwnProperty] => [JSCustomDefineOwnProperty]
      [CustomPrototypeDefineOwnProperty] => [JSCustomPrototypeDefineOwnProperty]
      [GenerateNativeConverter] => [JSGenerateToNativeObject]  (Note: For naming consistency
      with [JSGenerateToJS] and [JSCustomToNativeObject])
      [DelegatingGetOwnPropertySlot] => [JSCustomGetOwnPropertySlotDelegate]  (Note: Should be prefixed "JS",
      should be prefixed with "Custom", and for naming consistency with [CustomGetOwnPropertySlot])
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateGetOwnPropertySlotBody):
      (GenerateGetOwnPropertyDescriptorBody):
      (GenerateHeader):
      (GenerateImplementation):
      * bindings/scripts/test/TestTypedArray.idl:
      * dom/Attr.idl:
      * dom/DataTransferItemList.idl:
      * dom/Document.idl:
      * dom/DocumentType.idl:
      * dom/Element.idl:
      * dom/Node.idl:
      * fileapi/DirectoryEntry.idl:
      * fileapi/DirectoryEntrySync.idl:
      * fileapi/File.idl:
      * fileapi/FileEntry.idl:
      * fileapi/FileEntrySync.idl:
      * fileapi/WebKitBlobBuilder.idl:
      * html/DOMFormData.idl:
      * html/DOMURL.idl:
      * html/HTMLAppletElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLElement.idl:
      * html/HTMLEmbedElement.idl:
      * html/HTMLImageElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLObjectElement.idl:
      * html/HTMLOptionElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLTableCaptionElement.idl:
      * html/HTMLTableSectionElement.idl:
      * html/HTMLVideoElement.idl:
      * html/TextTrackCue.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * mediastream/LocalMediaStream.idl:
      * page/DOMWindow.idl:
      * page/History.idl:
      * page/Location.idl:
      * storage/StorageInfo.idl:
      * svg/SVGElement.idl:
      * svg/SVGElementInstance.idl:
      * workers/DedicatedWorkerContext.idl:
      * workers/SharedWorker.idl:
      * workers/SharedWorkerContext.idl:
      * workers/Worker.idl:
      * workers/WorkerContext.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      efee39f4
    • haraken@chromium.org's avatar
      Rename [HasOverridingNameGetter] attribute to [CustomNamedGetter] attribute · 6423d9fe
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78076
      
      Reviewed by Adam Barth.
      
      This patch renames the [HasOverridingNameGetter] attribute to the
      [CustomNamedGetter] attribute, for naming consistency with [CustomNamedSetter].
      
      Test: bindings/scripts/test/TestCustomNamedGetter.idl
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateGetOwnPropertySlotBody):
      (GenerateGetOwnPropertyDescriptorBody):
      (GenerateHeader):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateHeaderNamedAndIndexedPropertyAccessors):
      (GenerateImplementationNamedPropertyGetter):
      
      * html/HTMLDocument.idl:
      * html/HTMLFormElement.idl:
      * html/HTMLFrameSetElement.idl:
      
      * bindings/scripts/test/TestCustomNamedGetter.idl: Renamed from Source/WebCore/bindings/scripts/test/TestOverridingNameGetter.idl.
      
      * bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.cpp: Updated run-bindings-tests results.
      (WebDOMTestCustomNamedGetter::WebDOMTestCustomNamedGetterPrivate::WebDOMTestCustomNamedGetterPrivate):
      (WebDOMTestCustomNamedGetter::WebDOMTestCustomNamedGetterPrivate):
      (WebDOMTestCustomNamedGetter::WebDOMTestCustomNamedGetter):
      (WebDOMTestCustomNamedGetter::operator=):
      (WebDOMTestCustomNamedGetter::impl):
      (WebDOMTestCustomNamedGetter::~WebDOMTestCustomNamedGetter):
      (WebDOMTestCustomNamedGetter::anotherFunction):
      (toWebCore):
      (toWebKit):
      * bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.h: Ditto.
      (WebCore):
      (WebDOMTestCustomNamedGetter):
      * bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetter.cpp: Ditto.
      (WebKit):
      (WebKit::kit):
      (webkit_dom_test_custom_named_getter_another_function):
      (WebKit::core):
      (webkit_dom_test_custom_named_getter_finalize):
      (webkit_dom_test_custom_named_getter_set_property):
      (webkit_dom_test_custom_named_getter_get_property):
      (webkit_dom_test_custom_named_getter_constructed):
      (webkit_dom_test_custom_named_getter_class_init):
      (webkit_dom_test_custom_named_getter_init):
      (WebKit::wrapTestCustomNamedGetter):
      * bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetter.h: Ditto.
      (_WebKitDOMTestCustomNamedGetter):
      (_WebKitDOMTestCustomNamedGetterClass):
      * bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetterPrivate.h: Ditto.
      (WebKit):
      * bindings/scripts/test/GObject/WebKitDOMTestOverridingNameGetter.h: Ditto.
      * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp: Ditto.
      (WebCore):
      (WebCore::JSTestCustomNamedGetterConstructor::JSTestCustomNamedGetterConstructor):
      (WebCore::JSTestCustomNamedGetterConstructor::finishCreation):
      (WebCore::JSTestCustomNamedGetterConstructor::getOwnPropertySlot):
      (WebCore::JSTestCustomNamedGetterConstructor::getOwnPropertyDescriptor):
      (WebCore::JSTestCustomNamedGetterPrototype::self):
      (WebCore::JSTestCustomNamedGetterPrototype::getOwnPropertySlot):
      (WebCore::JSTestCustomNamedGetterPrototype::getOwnPropertyDescriptor):
      (WebCore::JSTestCustomNamedGetter::JSTestCustomNamedGetter):
      (WebCore::JSTestCustomNamedGetter::finishCreation):
      (WebCore::JSTestCustomNamedGetter::createPrototype):
      (WebCore::JSTestCustomNamedGetter::destroy):
      (WebCore::JSTestCustomNamedGetter::getOwnPropertySlot):
      (WebCore::JSTestCustomNamedGetter::getOwnPropertyDescriptor):
      (WebCore::jsTestCustomNamedGetterConstructor):
      (WebCore::JSTestCustomNamedGetter::getConstructor):
      (WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction):
      (WebCore::isObservable):
      (WebCore::JSTestCustomNamedGetterOwner::isReachableFromOpaqueRoots):
      (WebCore::JSTestCustomNamedGetterOwner::finalize):
      (WebCore::toJS):
      (WebCore::toTestCustomNamedGetter):
      * bindings/scripts/test/JS/JSTestCustomNamedGetter.h: Ditto.
      (WebCore):
      (JSTestCustomNamedGetter):
      (WebCore::JSTestCustomNamedGetter::create):
      (WebCore::JSTestCustomNamedGetter::createStructure):
      (WebCore::JSTestCustomNamedGetter::impl):
      (WebCore::JSTestCustomNamedGetter::releaseImpl):
      (WebCore::JSTestCustomNamedGetter::releaseImplIfNotNull):
      (JSTestCustomNamedGetterOwner):
      (WebCore::wrapperOwner):
      (WebCore::wrapperContext):
      (JSTestCustomNamedGetterPrototype):
      (WebCore::JSTestCustomNamedGetterPrototype::create):
      (WebCore::JSTestCustomNamedGetterPrototype::createStructure):
      (WebCore::JSTestCustomNamedGetterPrototype::JSTestCustomNamedGetterPrototype):
      (JSTestCustomNamedGetterConstructor):
      (WebCore::JSTestCustomNamedGetterConstructor::create):
      (WebCore::JSTestCustomNamedGetterConstructor::createStructure):
      * bindings/scripts/test/JS/JSTestOverridingNameGetter.cpp:
      * bindings/scripts/test/ObjC/DOMTestCustomNamedGetter.h: Ditto.
      * bindings/scripts/test/ObjC/DOMTestCustomNamedGetter.mm: Ditto.
      (-[DOMTestCustomNamedGetter dealloc]):
      (-[DOMTestCustomNamedGetter finalize]):
      (-[DOMTestCustomNamedGetter anotherFunction:]):
      (core):
      (kit):
      * bindings/scripts/test/ObjC/DOMTestCustomNamedGetterInternal.h: Ditto.
      (WebCore):
      * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp: Ditto.
      (WebCore):
      (TestCustomNamedGetterInternal):
      (WebCore::TestCustomNamedGetterInternal::V8_USE):
      (WebCore::TestCustomNamedGetterInternal::anotherFunctionCallback):
      (WebCore::ConfigureV8TestCustomNamedGetterTemplate):
      (WebCore::V8TestCustomNamedGetter::GetRawTemplate):
      (WebCore::V8TestCustomNamedGetter::GetTemplate):
      (WebCore::V8TestCustomNamedGetter::HasInstance):
      (WebCore::V8TestCustomNamedGetter::wrapSlow):
      (WebCore::V8TestCustomNamedGetter::derefObject):
      * bindings/scripts/test/V8/V8TestCustomNamedGetter.h: Ditto.
      (WebCore):
      (V8TestCustomNamedGetter):
      (WebCore::V8TestCustomNamedGetter::toNative):
      (WebCore::V8TestCustomNamedGetter::existingWrapper):
      (WebCore::V8TestCustomNamedGetter::wrap):
      (WebCore::toV8):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6423d9fe
  3. 06 Feb, 2012 6 commits
    • haraken@chromium.org's avatar
      Rename [DontCheckEnums], [ReturnsNew], [DoNotCheckDomainSecurityOnGet], · c51b24cf
      haraken@chromium.org authored
      [DoNotCheckDomainSecurityOnSet] and [ImplementationFunction] IDLs
      https://bugs.webkit.org/show_bug.cgi?id=77852
      
      Reviewed by Adam Barth.
      
      This patch renames [DontCheckEnums], [ReturnsNew], [DoNotCheckDomainSecurityOnGet],
      [DoNotCheckDomainSecurityOnSet] and [ImplementationFunction] IDLs for clarification.
      
      [DontCheckEnums] => [DoNotCheckConstants]  (This IDL inserts assertions to check if a
      constant value is equal to the expected constant value)
      [ReturnsNew] => [ReturnNewObject] (For clarification)
      [DoNotCheckDomainSecurityOnGet] => [DoNotCheckDomainSecurityOnGetter] (For naming consistency
      with other [*Getter] IDLs)
      [DoNotCheckDomainSecurityOnSet] => [DoNotCheckDomainSecurityOnSetter] (For naming consistency
      with other [*Setter] IDLs)
      [ImplementationFunction=] => [ImplementedAs=] (For clarification. This IDL specifies a method
      name in implementation)
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGenerator.pm:
      (ShouldCheckEnums):
      (GenerateCompileTimeCheckForEnumsIfNeeded):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      (GenerateImplementation):
      (NativeToJSValue):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateSingleBatchedAttribute):
      (GenerateFunctionCallString):
      (NativeToJSValue):
      
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/TestTypedArray.idl:
      
      * bindings/scripts/test/JS/JSTestInterface.cpp:
      (WebCore):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore):
      * bindings/scripts/test/V8/V8TestInterface.cpp:
      (WebCore):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore):
      
      * css/WebKitCSSFilterValue.idl:
      * css/WebKitCSSTransformValue.idl:
      * dom/DOMCoreException.idl:
      * dom/Document.idl:
      * dom/EventException.idl:
      * dom/RangeException.idl:
      * fileapi/FileException.idl:
      * fileapi/OperationNotAllowedException.idl:
      * html/HTMLFormElement.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/OESStandardDerivatives.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * html/canvas/WebGLCompressedTextures.idl:
      * html/canvas/WebGLDebugRendererInfo.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * inspector/JavaScriptCallFrame.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/Console.idl:
      * page/DOMWindow.idl:
      * page/Location.idl:
      * storage/IDBCursor.idl:
      * storage/IDBDatabaseException.idl:
      * storage/IDBObjectStore.idl:
      * storage/SQLException.idl:
      * svg/SVGComponentTransferFunctionElement.idl:
      * svg/SVGException.idl:
      * svg/SVGFEBlendElement.idl:
      * svg/SVGFEColorMatrixElement.idl:
      * svg/SVGFECompositeElement.idl:
      * svg/SVGFEConvolveMatrixElement.idl:
      * svg/SVGFEDisplacementMapElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFETurbulenceElement.idl:
      * svg/SVGGradientElement.idl:
      * xml/XMLHttpRequestException.idl:
      * xml/XPathException.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c51b24cf
    • haraken@chromium.org's avatar
      Unreviewed, rolling out r106883. · 768a22ba
      haraken@chromium.org authored
      http://trac.webkit.org/changeset/106883
      https://bugs.webkit.org/show_bug.cgi?id=77852
      
      build failure around Chromium V8 bindings
      
      * bindings/scripts/CodeGenerator.pm:
      (ShouldCheckEnums):
      (GenerateCompileTimeCheckForEnumsIfNeeded):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      (GenerateImplementation):
      (NativeToJSValue):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateSingleBatchedAttribute):
      (GenerateFunctionCallString):
      (NativeToJSValue):
      * bindings/scripts/test/JS/JSTestInterface.cpp:
      (WebCore):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore):
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/TestTypedArray.idl:
      * bindings/scripts/test/V8/V8TestInterface.cpp:
      (WebCore):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore):
      * css/WebKitCSSFilterValue.idl:
      * css/WebKitCSSTransformValue.idl:
      * dom/DOMCoreException.idl:
      * dom/Document.idl:
      * dom/EventException.idl:
      * dom/RangeException.idl:
      * fileapi/FileException.idl:
      * fileapi/OperationNotAllowedException.idl:
      * html/HTMLFormElement.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/OESStandardDerivatives.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * html/canvas/WebGLCompressedTextures.idl:
      * html/canvas/WebGLDebugRendererInfo.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * inspector/JavaScriptCallFrame.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/Console.idl:
      * page/DOMWindow.idl:
      * page/Location.idl:
      * storage/IDBCursor.idl:
      * storage/IDBDatabaseException.idl:
      * storage/IDBObjectStore.idl:
      * storage/SQLException.idl:
      * svg/SVGComponentTransferFunctionElement.idl:
      * svg/SVGException.idl:
      * svg/SVGFEBlendElement.idl:
      * svg/SVGFEColorMatrixElement.idl:
      * svg/SVGFECompositeElement.idl:
      * svg/SVGFEConvolveMatrixElement.idl:
      * svg/SVGFEDisplacementMapElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFETurbulenceElement.idl:
      * svg/SVGGradientElement.idl:
      * xml/XMLHttpRequestException.idl:
      * xml/XPathException.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      768a22ba
    • haraken@chromium.org's avatar
      Rename [DontCheckEnums], [ReturnsNew], [DoNotCheckDomainSecurityOnGet], · 3d1bedd8
      haraken@chromium.org authored
      [DoNotCheckDomainSecurityOnSet] and [ImplementationFunction] IDLs
      https://bugs.webkit.org/show_bug.cgi?id=77852
      
      Reviewed by Adam Barth.
      
      This patch renames [DontCheckEnums], [ReturnsNew], [DoNotCheckDomainSecurityOnGet],
      [DoNotCheckDomainSecurityOnSet] and [ImplementationFunction] IDLs for clarification.
      
      [DontCheckEnums] => [DoNotCheckConstants]  (This IDL inserts assertions to check if a
      constant value is equal to the expected constant value)
      [ReturnsNew] => [ReturnNewObject] (For clarification)
      [DoNotCheckDomainSecurityOnGet] => [DoNotCheckDomainSecurityOnGetter] (For naming consistency
      with other [*Getter] IDLs)
      [DoNotCheckDomainSecurityOnSet] => [DoNotCheckDomainSecurityOnSetter] (For naming consistency
      with other [*Setter] IDLs)
      [ImplementationFunction=] => [ImplementedAs=] (For clarification. This IDL specifies a method
      name in implementation)
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGenerator.pm:
      (ShouldCheckEnums):
      (GenerateCompileTimeCheckForEnumsIfNeeded):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      (GenerateImplementation):
      (NativeToJSValue):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateSingleBatchedAttribute):
      (GenerateFunctionCallString):
      (NativeToJSValue):
      
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/TestTypedArray.idl:
      
      * bindings/scripts/test/JS/JSTestInterface.cpp: Updated run-bindings-tests results.
      (WebCore):
      * bindings/scripts/test/JS/JSTestObj.cpp: Ditto.
      (WebCore):
      * bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
      (WebCore):
      * bindings/scripts/test/V8/V8TestObj.cpp: Ditto.
      (WebCore):
      
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/TestTypedArray.idl:
      * css/WebKitCSSFilterValue.idl:
      * css/WebKitCSSTransformValue.idl:
      * dom/DOMCoreException.idl:
      * dom/Document.idl:
      * dom/EventException.idl:
      * dom/RangeException.idl:
      * fileapi/FileException.idl:
      * fileapi/OperationNotAllowedException.idl:
      * html/HTMLFormElement.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/OESStandardDerivatives.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * html/canvas/WebGLCompressedTextures.idl:
      * html/canvas/WebGLDebugRendererInfo.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * inspector/JavaScriptCallFrame.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/Console.idl:
      * page/DOMWindow.idl:
      * page/Location.idl:
      * storage/IDBCursor.idl:
      * storage/IDBDatabaseException.idl:
      * storage/IDBObjectStore.idl:
      * storage/SQLException.idl:
      * svg/SVGComponentTransferFunctionElement.idl:
      * svg/SVGException.idl:
      * svg/SVGFEBlendElement.idl:
      * svg/SVGFEColorMatrixElement.idl:
      * svg/SVGFECompositeElement.idl:
      * svg/SVGFEConvolveMatrixElement.idl:
      * svg/SVGFEDisplacementMapElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFETurbulenceElement.idl:
      * svg/SVGGradientElement.idl:
      * xml/XMLHttpRequestException.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d1bedd8
    • haraken@chromium.org's avatar
      Rename [HasIndexGetter], [HasNameGetter] and [HasCustomIndexSetter] IDLs · 6d052a1e
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77848
      
      Reviewed by Adam Barth.
      
      For naming consistency with [CustomGetter] and [CustomSetter],
      this patch renames the following IDLs:
      
      [HasIndexGetter] => [IndexedGetter]  (Remove "Has". This IDL is for "indexed" properties
      in the Web IDL: http://dev.w3.org/2006/webapi/WebIDL/#idl-indexed-properties)
      [HasCustomIndexSetter] => [CustomIndexedSetter]  (Ditto.)
      [HasNameGetter] => [NamedGetter] (Remove "Has". This IDL is for "named" properties
      in the Web IDL: http://dev.w3.org/2006/webapi/WebIDL/#idl-named-properties)
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateGetOwnPropertySlotBody):
      (GenerateGetOwnPropertyDescriptorBody):
      (GenerateHeader):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateHeaderNamedAndIndexedPropertyAccessors):
      (GenerateImplementationIndexer):
      (GenerateImplementationNamedPropertyGetter):
      
      * bindings/scripts/test/TestEventTarget.idl: No change in run-bindings-tests results.
      * bindings/scripts/test/TestTypedArray.idl: Ditto.
      
      * Modules/gamepad/GamepadList.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSValueList.idl:
      * css/MediaList.idl:
      * css/StyleSheetList.idl:
      * css/WebKitCSSFilterValue.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * css/WebKitCSSTransformValue.idl:
      * dom/ClientRectList.idl:
      * dom/DOMStringList.idl:
      * dom/DOMStringMap.idl:
      * dom/DataTransferItemList.idl:
      * dom/NamedNodeMap.idl:
      * dom/NodeList.idl:
      * dom/TouchList.idl:
      * fileapi/EntryArray.idl:
      * fileapi/EntryArraySync.idl:
      * fileapi/FileList.idl:
      * html/DOMSettableTokenList.idl:
      * html/DOMTokenList.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLCollection.idl:
      * html/HTMLFormElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLPropertiesCollection.idl:
      * html/HTMLSelectElement.idl:
      * html/TextTrackCueList.idl:
      * html/canvas/CanvasPixelArray.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * html/track/TextTrackList.idl:
      * mediastream/MediaStreamList.idl:
      * mediastream/MediaStreamTrackList.idl:
      * page/SpeechInputResultList.idl:
      * page/WebKitAnimationList.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPlugin.idl:
      * plugins/DOMPluginArray.idl:
      * storage/Storage.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106798 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d052a1e
    • barraclough@apple.com's avatar
      Remove JSObject defineGetter/defineSetter lookupGetter/lookupSetter · 81aa89f0
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=77451
      
      Reviewed by Sam Weinig.
      
      These can now all be implemented in terms of defineOwnProperty & getPropertyDescriptor.
      Also remove initializeGetterSetterProperty, since this is equivalent to putDirectAccessor.
      
      Source/JavaScriptCore: 
      
      * JavaScriptCore.exp:
      * debugger/DebuggerActivation.cpp:
      (JSC::DebuggerActivation::defineOwnProperty):
      * debugger/DebuggerActivation.h:
      (DebuggerActivation):
      * runtime/ClassInfo.h:
      (MethodTable):
      (JSC):
      * runtime/JSBoundFunction.cpp:
      (JSC::JSBoundFunction::finishCreation):
      * runtime/JSCell.cpp:
      (JSC):
      * runtime/JSCell.h:
      (JSCell):
      * runtime/JSFunction.cpp:
      (JSC::JSFunction::getOwnPropertySlot):
      (JSC::JSFunction::getOwnPropertyDescriptor):
      * runtime/JSGlobalObject.cpp:
      (JSC::JSGlobalObject::defineOwnProperty):
      (JSC):
      * runtime/JSGlobalObject.h:
      (JSGlobalObject):
      * runtime/JSObject.cpp:
      (JSC):
      * runtime/JSObject.h:
      (JSObject):
      * runtime/ObjectPrototype.cpp:
      (JSC::objectProtoFuncDefineGetter):
      (JSC::objectProtoFuncDefineSetter):
      (JSC::objectProtoFuncLookupGetter):
      (JSC::objectProtoFuncLookupSetter):
      
      Source/WebCore: 
      
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore):
      (WebCore::JSDOMWindow::defineOwnProperty):
      * bindings/js/JSDOMWindowShell.cpp:
      (WebCore):
      * bindings/js/JSDOMWindowShell.h:
      (JSDOMWindowShell):
      * bindings/js/JSLocationCustom.cpp:
      (WebCore::JSLocation::defineOwnProperty):
      (WebCore::JSLocationPrototype::defineOwnProperty):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      * page/DOMWindow.idl:
      * page/Location.idl:
      
      Source/WebKit/qt: 
      
      * Api/qwebframe.cpp:
      (QWebFramePrivate::addQtSenderToGlobalObject):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81aa89f0
    • haraken@chromium.org's avatar
      Rename [TreatNullAs=EmptyString] to [TreatNullAs=NullString], · e45cb179
      haraken@chromium.org authored
      [TreatUndefinedAs=EmptyString] to [TreatUndefinedAs=NullString]
      https://bugs.webkit.org/show_bug.cgi?id=77611
      
      Reviewed by Adam Barth.
      
      While the Web IDL spec requires [TreatNullAs=EmptyString] and [TreatUndefinedAs=EmptyString],
      the current WebKit treats them as (not an empty string but) a null string.
      To avoid confusion, this patch renames [TreatNullAs=EmptyString] to [TreatNullAs=NullString],
      and [TreatUndefinedAs=EmptyString] to [TreatUndefinedAs=NullString].
      (Eventually we should fix WebKit so that it uses an empty string and then
      rename them to [TreatNullAs=EmptyString] and [TreatUndefinedAs=EmptyString].)
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm: Added FIXME.
      (JSValueToNative):
      * bindings/scripts/CodeGeneratorV8.pm: Ditto.
      (GetNativeTypeFromSignature):
      
      * bindings/scripts/test/TestObj.idl:
      * css/CSSCharsetRule.idl:
      * css/CSSPageRule.idl:
      * css/CSSRule.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleRule.idl:
      * css/CSSValue.idl:
      * css/MediaList.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * dom/Attr.idl:
      * dom/CharacterData.idl:
      * dom/DOMImplementation.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/ProcessingInstruction.idl:
      * dom/ShadowRoot.idl:
      * fileapi/Blob.idl:
      * fileapi/DirectoryEntry.idl:
      * fileapi/DirectoryEntrySync.idl:
      * fileapi/Entry.idl:
      * fileapi/EntrySync.idl:
      * fileapi/WebKitBlobBuilder.idl:
      * html/HTMLAnchorElement.idl:
      * html/HTMLButtonElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLFieldSetElement.idl:
      * html/HTMLFormElement.idl:
      * html/HTMLFrameElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLKeygenElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLObjectElement.idl:
      * html/HTMLOutputElement.idl:
      * html/HTMLScriptElement.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/HTMLTitleElement.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * page/Console.idl:
      * page/DOMWindow.idl:
      * storage/StorageEvent.idl:
      * svg/SVGAngle.idl:
      * svg/SVGElement.idl:
      * svg/SVGLength.idl:
      * svg/SVGScriptElement.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e45cb179
  4. 05 Feb, 2012 1 commit
    • haraken@chromium.org's avatar
      Rename [JSCCustom*] IDL to [JSCustom*] IDL · 34e76a66
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77844
      
      Reviewed by Adam Barth.
      
      Most existing JSC-specific IDLs have "JS" prefix. We can rename [JSCCustom] to
      [JSCustom], [JSCCustomGetter] to [JSCustomGetter], and [JSCCustomSetter] to
      [JSCustomSetter].
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      (GenerateImplementation):
      * css/CSSStyleDeclaration.idl:
      * html/HTMLDocument.idl:
      * html/canvas/DataView.idl:
      * page/DOMWindow.idl:
      * page/MemoryInfo.idl:
      * webaudio/ConvolverNode.idl:
      * webaudio/DOMWindowWebAudio.idl:
      * webaudio/WaveShaperNode.idl:
      * websockets/DOMWindowWebSocket.idl:
      * workers/WorkerContext.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34e76a66
  5. 04 Feb, 2012 1 commit
    • haraken@chromium.org's avatar
      Add the "JS" prefix to JSC specific IDL attributes · 72b14d6f
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77693
      
      Reviewed by Darin Adler.
      
      Some JSC specific IDLs do not have "JS" prefix, e.g. [CustomIsReachable].
      It might be OK since JSC is the main JavaScript engine in WebKit, but
      distinguishing IDLs widely used in WebKit and IDLs used in JSC only would help
      people understand the role of IDLs.
      
      This patch renames the following JSC specific IDLs:
      
          CustomFinalize => JSCustomFinalize
          CustomIsReachable => JSCustomIsReachable
          CustomMarkFunction => JSCustomMarkFunction
          CustomToJS => JSCustomToJS
          CustomNativeConverter => JSCustomToNativeObject (Note: For naming consistency with [JSCustomToJS])
          GenerateIsReachable => JSGenerateIsReachable
          GenerateToJS => JSGenerateToJS
          NoStaticTables => JSNoStaticTables
          WindowEventListener => JSWindowEventListener
          InlineGetOwnPropertySlot => JSInlineGetOwnPropertySlot
          DelegatingPrototypePutFunction => JSCustomPrototypePutDelegate
      
      No tests. No changes in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateGetOwnPropertySlotBody):
      (GenerateGetOwnPropertyDescriptorBody):
      (GenerateHeader):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (HasCustomToV8Implementation):
      
      * bindings/scripts/test/TestTypedArray.idl: No change in run-bindings-tests results.
      
      * css/CSSRule.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSValue.idl:
      * css/MediaList.idl:
      * css/MediaQueryListListener.idl:
      * css/StyleMedia.idl:
      * css/StyleSheet.idl:
      * css/StyleSheetList.idl:
      * dom/Attr.idl:
      * dom/DOMCoreException.idl:
      * dom/DOMImplementation.idl:
      * dom/DOMStringMap.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/ErrorEvent.idl:
      * dom/Event.idl:
      * dom/EventException.idl:
      * dom/EventListener.idl:
      * dom/MessageChannel.idl:
      * dom/MessageEvent.idl:
      * dom/MessagePort.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeFilter.idl:
      * dom/NodeIterator.idl:
      * dom/NodeList.idl:
      * dom/TreeWalker.idl:
      * dom/WebKitNamedFlow.idl:
      * fileapi/Blob.idl:
      * fileapi/DOMFileSystem.idl:
      * fileapi/DOMFileSystemSync.idl:
      * fileapi/DirectoryEntry.idl:
      * fileapi/DirectoryEntrySync.idl:
      * fileapi/DirectoryReader.idl:
      * fileapi/DirectoryReaderSync.idl:
      * fileapi/Entry.idl:
      * fileapi/EntryArray.idl:
      * fileapi/EntryArraySync.idl:
      * fileapi/EntrySync.idl:
      * fileapi/File.idl:
      * fileapi/FileEntry.idl:
      * fileapi/FileEntrySync.idl:
      * fileapi/FileError.idl:
      * fileapi/FileException.idl:
      * fileapi/FileList.idl:
      * fileapi/FileReader.idl:
      * fileapi/FileReaderSync.idl:
      * fileapi/FileWriter.idl:
      * fileapi/Metadata.idl:
      * fileapi/OperationNotAllowedException.idl:
      * fileapi/WebKitBlobBuilder.idl:
      * html/DOMFormData.idl:
      * html/DOMSettableTokenList.idl:
      * html/DOMTokenList.idl:
      * html/DOMURL.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLBodyElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLFrameSetElement.idl:
      * html/ImageData.idl:
      * html/MediaController.idl:
      * html/TextTrack.idl:
      * html/TextTrackCue.idl:
      * html/VoidCallback.idl:
      * html/canvas/ArrayBuffer.idl:
      * html/canvas/ArrayBufferView.idl:
      * html/canvas/CanvasRenderingContext.idl:
      * html/canvas/DataView.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/OESStandardDerivatives.idl:
      * html/canvas/OESTextureFloat.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * html/canvas/WebGLCompressedTextures.idl:
      * html/canvas/WebGLDebugRendererInfo.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLLoseContext.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * html/track/TextTrackList.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * mediastream/LocalMediaStream.idl:
      * page/BarInfo.idl:
      * page/Console.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/EventSource.idl:
      * page/Geolocation.idl:
      * page/History.idl:
      * page/Location.idl:
      * page/Navigator.idl:
      * page/Screen.idl:
      * page/WorkerNavigator.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPluginArray.idl:
      * storage/Database.idl:
      * storage/DatabaseSync.idl:
      * storage/IDBAny.idl:
      * storage/IDBKey.idl:
      * storage/SQLError.idl:
      * storage/SQLException.idl:
      * storage/SQLResultSet.idl:
      * storage/SQLResultSetRowList.idl:
      * storage/SQLTransaction.idl:
      * storage/SQLTransactionSync.idl:
      * storage/Storage.idl:
      * svg/SVGElementInstance.idl:
      * svg/SVGPathSeg.idl:
      * webaudio/AudioBufferCallback.idl:
      * webaudio/AudioBufferSourceNode.idl:
      * webaudio/AudioContext.idl:
      * webaudio/AudioDestinationNode.idl:
      * webaudio/AudioGain.idl:
      * webaudio/AudioGainNode.idl:
      * webaudio/AudioPannerNode.idl:
      * webaudio/AudioProcessingEvent.idl:
      * webaudio/BiquadFilterNode.idl:
      * webaudio/ConvolverNode.idl:
      * webaudio/DelayNode.idl:
      * webaudio/DynamicsCompressorNode.idl:
      * webaudio/HighPass2FilterNode.idl:
      * webaudio/JavaScriptAudioNode.idl:
      * webaudio/LowPass2FilterNode.idl:
      * webaudio/MediaElementAudioSourceNode.idl:
      * webaudio/OfflineAudioCompletionEvent.idl:
      * webaudio/RealtimeAnalyserNode.idl:
      * webaudio/WaveShaperNode.idl:
      * websockets/CloseEvent.idl:
      * websockets/WebSocket.idl:
      * workers/AbstractWorker.idl:
      * workers/DedicatedWorkerContext.idl:
      * workers/SharedWorker.idl:
      * workers/SharedWorkerContext.idl:
      * workers/Worker.idl:
      * workers/WorkerContext.idl:
      * workers/WorkerLocation.idl:
      * xml/XMLHttpRequest.idl:
      * xml/XMLHttpRequestException.idl:
      * xml/XMLHttpRequestProgressEvent.idl:
      * xml/XMLHttpRequestUpload.idl:
      * xml/XPathResult.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72b14d6f
  6. 03 Feb, 2012 4 commits
    • antti@apple.com's avatar
      Rename CSSMutableStyleDeclaration.h/.cpp to StylePropertySet.h/.cpp · f660180b
      antti@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=77779
      
      Reviewed by Darin Adler.
      
      Source/WebCore: 
      
      Match the new class name.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      * bindings/js/JSDOMBinding.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (NativeToJSValue):
      * bindings/scripts/CodeGeneratorObjC.pm:
      (AddIncludesForType):
      * css/CSSAllInOne.cpp:
      * css/CSSComputedStyleDeclaration.cpp:
      * css/CSSFontFaceRule.cpp:
      * css/CSSFontFaceRule.h:
      * css/CSSFontSelector.cpp:
      * css/CSSMutableStyleDeclaration.cpp: Removed.
      * css/CSSMutableStyleDeclaration.h: Removed.
      * css/CSSPageRule.cpp:
      * css/CSSParser.cpp:
      * css/CSSStyleRule.cpp:
      * css/CSSStyleRule.h:
      * css/StylePropertySet.cpp: Copied from Source/WebCore/css/CSSMutableStyleDeclaration.cpp.
      * css/StylePropertySet.h: Copied from Source/WebCore/css/CSSMutableStyleDeclaration.h.
      * css/WebKitCSSKeyframeRule.cpp:
      * css/WebKitCSSKeyframeRule.h:
      * css/WebKitCSSKeyframesRule.cpp:
      * css/WebKitCSSMatrix.cpp:
      * dom/CSSMappedAttributeDeclaration.h:
      * dom/ElementAttributeData.h:
      * dom/StyledElement.cpp:
      * dom/StyledElement.h:
      * editing/ApplyStyleCommand.cpp:
      * editing/DeleteButtonController.cpp:
      * editing/EditingStyle.cpp:
      * editing/Editor.cpp:
      * editing/EditorCommand.cpp:
      * editing/RemoveCSSPropertyCommand.cpp:
      * editing/ReplaceSelectionCommand.cpp:
      * editing/markup.cpp:
      * html/canvas/CanvasRenderingContext2D.cpp:
      * html/shadow/MeterShadowElement.cpp:
      * inspector/InspectorCSSAgent.cpp:
      * inspector/InspectorDOMAgent.cpp:
      * page/DragController.cpp:
      * page/Frame.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderTreeAsText.cpp:
      * svg/SVGFontFaceElement.h:
      (WebCore):
      
      Source/WebKit/mac: 
      
      * WebView/WebHTMLView.mm:
      
      Source/WebKit/qt: 
      
      * Api/qwebelement.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f660180b
    • haraken@chromium.org's avatar
      Rename [DontEnum] IDL to [NotEnumerable] IDL · 16f249f7
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77710
      
      Reviewed by Adam Barth.
      
      [DontEnum] is a negation of [[Enumerable]] in the ECMAScript spec
      (8.6.1 of http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf).
      This patch renames [DontEnum] to [NotEnumerable].
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateAttributesHashTable):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateSingleBatchedAttribute):
      (GenerateImplementation):
      
      * css/WebKitCSSMatrix.idl:
      * dom/DOMCoreException.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/EventException.idl:
      * dom/RangeException.idl:
      * fileapi/FileException.idl:
      * fileapi/OperationNotAllowedException.idl:
      * html/DOMTokenList.idl:
      * html/HTMLAnchorElement.idl:
      * html/HTMLBodyElement.idl:
      * html/HTMLFrameSetElement.idl:
      * html/HTMLInputElement.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/Location.idl:
      * storage/IDBDatabaseException.idl:
      * storage/Storage.idl:
      * svg/SVGElementInstance.idl:
      * svg/SVGException.idl:
      * workers/WorkerLocation.idl:
      * xml/XMLHttpRequestException.idl:
      * xml/XPathException.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106645 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      16f249f7
    • haraken@chromium.org's avatar
      Rename [InitializedByConstructor] IDL to [InitializedByEventConstructor] IDL · 849d0ffc
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77711
      
      Reviewed by Adam Barth.
      
      [InitializedByConstructor] can be used only when [ConstructorTemplate=Event]
      is specified on the interface. This patch renames [InitializedByConstructor] to
      [InitializedByEventConstructor] for clarification.
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateConstructorDefinition):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateEventConstructorCallback):
      
      * bindings/scripts/test/TestEventConstructor.idl:
      * bindings/scripts/test/V8/V8TestEventConstructor.cpp: Updated the run-bindings-tests results.
      (WebCore):
      
      * dom/BeforeLoadEvent.idl:
      * dom/CustomEvent.idl:
      * dom/ErrorEvent.idl:
      * dom/Event.idl:
      * dom/HashChangeEvent.idl:
      * dom/MessageEvent.idl:
      * dom/OverflowEvent.idl:
      * dom/PageTransitionEvent.idl:
      * dom/PopStateEvent.idl:
      * dom/ProgressEvent.idl:
      * dom/WebKitAnimationEvent.idl:
      * dom/WebKitTransitionEvent.idl:
      * html/canvas/WebGLContextEvent.idl:
      * html/track/TrackEvent.idl:
      * storage/StorageEvent.idl:
      * websockets/CloseEvent.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      849d0ffc
    • haraken@chromium.org's avatar
      Remove [LegacyParent] from CodeGeneratorGObject.pm, and rename it to [JSLegacyParent] · ef73ea8b
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77706
      
      Reviewed by Adam Barth.
      
      This patch removes dead code about [LegacyParent] from CodeGeneratorGObject.pm,
      and renames [LegacyParent] to [JSLegacyParent].
      
      No tests. No changes in behavior.
      
      * bindings/scripts/CodeGeneratorGObject.pm:
      (Generate):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GetParentClassName):
      (GenerateHeader):
      (GenerateImplementation):
      * page/DOMWindow.idl:
      * workers/WorkerContext.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef73ea8b
  7. 02 Feb, 2012 4 commits
    • abarth@webkit.org's avatar
      Rename checkNodeSecurity and allowsAccessFromFrame to have sensible names · 0609530b
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75796
      
      Reviewed by Eric Seidel.
      
      As requested by Darin Adler, this patch renames these functions be
      clear that we're asking whether the access should be allowed rather
      than explicitly allowing the access.
      
      * bindings/generic/BindingSecurity.h:
      (BindingSecurity):
      (WebCore::::shouldAllowAccessToNode):
      (WebCore::::allowSettingFrameSrcToJavascriptUrl):
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::shouldAllowAccessToNode):
      (WebCore::shouldAllowAccessToFrame):
      * bindings/js/JSDOMBinding.h:
      (WebCore):
      * bindings/js/JSHTMLFrameElementCustom.cpp:
      (WebCore::allowSettingJavascriptURL):
      * bindings/js/JSHistoryCustom.cpp:
      (WebCore::JSHistory::getOwnPropertySlotDelegate):
      (WebCore::JSHistory::getOwnPropertyDescriptorDelegate):
      (WebCore::JSHistory::putDelegate):
      (WebCore::JSHistory::deleteProperty):
      (WebCore::JSHistory::getOwnPropertyNames):
      * bindings/js/JSLocationCustom.cpp:
      (WebCore::JSLocation::getOwnPropertySlotDelegate):
      (WebCore::JSLocation::getOwnPropertyDescriptorDelegate):
      (WebCore::JSLocation::putDelegate):
      (WebCore::JSLocation::deleteProperty):
      (WebCore::JSLocation::getOwnPropertyNames):
      (WebCore::JSLocation::toStringFunction):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::canAccessFromCurrentOrigin):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateGetOwnPropertyDescriptorBody):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateNormalAttrGetter):
      (GenerateFunctionCallback):
      * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
      (WebCore::JSTestActiveDOMObject::getOwnPropertyDescriptor):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore::jsTestObjContentDocument):
      (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::contentDocumentAttrGetter):
      (WebCore::TestObjInternal::getSVGDocumentCallback):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0609530b
    • haraken@chromium.org's avatar
      Rename [ConvertUndefinedOrNullToNullString] to · f633d096
      haraken@chromium.org authored
      [TreatNullAs=EmptyString, TreatUndefinedAs=EmptyString]
      https://bugs.webkit.org/show_bug.cgi?id=77611
      
      Reviewed by Adam Barth.
      
      This patch renames [ConvertUndefinedOrNullToNullString] to
      [TreatNullAs=EmptyString, TreatUndefinedAs=EmptyString], according to the spec
      (http://dev.w3.org/2006/webapi/WebIDL/#TreatNullAs,
      http://dev.w3.org/2006/webapi/WebIDL/#TreatUndefinedAs).
      
      No tests. No changes in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (JSValueToNative):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GetNativeTypeFromSignature):
      * dom/DOMImplementation.idl:
      * dom/Document.idl:
      * fileapi/Blob.idl:
      * fileapi/DirectoryEntry.idl:
      * fileapi/DirectoryEntrySync.idl:
      * fileapi/Entry.idl:
      * fileapi/EntrySync.idl:
      * fileapi/WebKitBlobBuilder.idl:
      * html/HTMLButtonElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLFieldSetElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLKeygenElement.idl:
      * html/HTMLObjectElement.idl:
      * html/HTMLOutputElement.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLTextAreaElement.idl:
      * page/Console.idl:
      * page/DOMWindow.idl:
      
      * bindings/scripts/test/TestObj.idl: No changes in run-bindings-tests results.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106575 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f633d096
    • haraken@chromium.org's avatar
      Rename [CheckFrameSecurity] and [SVGCheckSecurity] to [CheckAccessToNode] · e623d012
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77601
      
      Reviewed by Adam Barth.
      
      [CheckFrameSecurity] and [SVGCheckSecurity] have the same meaning; i.e. generate code
      to check allowAccessToNode() for a given attribute or method. This patch renames them
      to [CheckAccessToNode].
      
      No tests. No changes in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateNormalAttrGetter):
      (GenerateFunctionCallback):
      * html/HTMLEmbedElement.idl:
      * html/HTMLFrameElement.idl:
      * html/HTMLIFrameElement.idl:
      * html/HTMLObjectElement.idl:
      
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/V8/V8TestObj.cpp: Updated the test results.
      (WebCore):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e623d012
    • haraken@chromium.org's avatar
      Rename [ConvertNullToNullString] to [TreatNullAs=EmptyString] · 46968959
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77602
      
      Reviewed by Adam Barth.
      
      This patch renames [ConvertNullToNullString] to [TreatNullAs=EmptyString],
      according to the spec (http://dev.w3.org/2006/webapi/WebIDL/#TreatNullAs).
      
      No tests. No changes in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (JSValueToNative):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GetNativeTypeFromSignature):
      
      * css/CSSCharsetRule.idl:
      * css/CSSPageRule.idl:
      * css/CSSRule.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleRule.idl:
      * css/CSSValue.idl:
      * css/MediaList.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * dom/Attr.idl:
      * dom/CharacterData.idl:
      * dom/DOMImplementation.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/ProcessingInstruction.idl:
      * dom/ShadowRoot.idl:
      * html/HTMLAnchorElement.idl:
      * html/HTMLButtonElement.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLFormElement.idl:
      * html/HTMLFrameElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLOutputElement.idl:
      * html/HTMLScriptElement.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/HTMLTitleElement.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * page/DOMWindow.idl:
      * storage/StorageEvent.idl:
      * svg/SVGAngle.idl:
      * svg/SVGElement.idl:
      * svg/SVGLength.idl:
      * svg/SVGScriptElement.idl:
      
      * bindings/scripts/test/TestObj.idl: No change in the run-bindings-tests results.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      46968959
  8. 01 Feb, 2012 2 commits
    • haraken@chromium.org's avatar
      Remove [DelegatingPrototypeGetOwnPropertySlot], [HasCustomIndexGetter], · 80d4632d
      haraken@chromium.org authored
      [HasIndexSetter], [JSConstructorTemplate] and [NonEmpty] from code generators
      https://bugs.webkit.org/show_bug.cgi?id=77585
      
      Reviewed by Adam Barth.
      
      This patch removes [DelegatingPrototypeGetOwnPropertySlot], [HasCustomIndexGetter],
      [HasIndexSetter], [JSConstructorTemplate] and [NonEmpty] from code generators,
      since they are not used by no IDL files.
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGenerator.pm:
      (GetterExpression):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateGetOwnPropertySlotBody):
      (GenerateGetOwnPropertyDescriptorBody):
      (GenerateHeader):
      (GenerateImplementation):
      (IsConstructable):
      (IsConstructorTemplate):
      
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Updated the run-bindings-tests results.
      * bindings/scripts/test/CPP/WebDOMTestObj.h: Ditto.
      * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Ditto.
      (webkit_dom_test_obj_set_property):
      (webkit_dom_test_obj_get_property):
      (webkit_dom_test_obj_class_init):
      * bindings/scripts/test/GObject/WebKitDOMTestObj.h: Ditto.
      * bindings/scripts/test/JS/JSTestObj.cpp: Ditto.
      (WebCore):
      * bindings/scripts/test/JS/JSTestObj.h: Ditto.
      (WebCore):
      * bindings/scripts/test/ObjC/DOMTestObj.h: Ditto.
      * bindings/scripts/test/ObjC/DOMTestObj.mm: Ditto.
      * bindings/scripts/test/V8/V8TestObj.cpp: Ditto.
      (WebCore):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      80d4632d
    • haraken@chromium.org's avatar
      Remove [ObjCPrefix], [V8ConstructorTemplate], [allowAccessToNode], · f66ce37f
      haraken@chromium.org authored
      [v8implname] and [v8referenceattr] from code generators
      https://bugs.webkit.org/show_bug.cgi?id=77588
      
      Reviewed by Adam Barth.
      
      This patch removes [ObjCPrefix], [V8ConstructorTemplate], [allowAccessToNode],
      [v8implname] and [v8referenceattr] from code generators, since they are not used
      by any IDL files.
      
      No tests. No changes in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorObjC.pm:
      (GenerateHeader):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (IsConstructable):
      (IsConstructorTemplate):
      (GenerateNormalAttrGetter):
      (GenerateFunctionCallString):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106522 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f66ce37f
  9. 26 Jan, 2012 1 commit
  10. 24 Jan, 2012 5 commits
    • haraken@chromium.org's avatar
      Invalidate r105697, r105766, r105809 and r105805 · b2ce0673
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76970
      
      Reviewed by Adam Barth.
      
      I've been trying to stop rebuilding .h/.cpp files generated by
      unchanged IDLs (bug 76836), but the approach was wrong.
      This patch invalidates patches committed in r105697, r105766,
      r105809 and r105805.
      
      In r105697, r105766, r105809 and r105805, I modified CodeGenerator*.pm
      so that they overwrite .h/.cpp files only when the bytes differ.
      By this fix, we were able to stop rebuilding .h/.cpp files that are not
      changed. However, the fix has made generate-bindings.pl run for almost
      all IDLs every time. The reason is as follows:
      
      (0) Assume that there are A.idl, B.idl and C.idl.
      
      (1) Modify A.idl.
      (2) First build.
      (3) supplemental_dependency.tmp is updated.
      (4) generate-bindings.pl runs for A.idl, B.idl and C.idl.
      (5) A.h and A.cpp are updated. B.h, B.cpp, C.h and C.cpp are not updated.
      
      (6) Second build.
      (7) Since B.h, B.cpp, C.h and C.cpp are older than supplemental_dependency.tmp, generate-bindings.pl runs for B.idl and C.idl.
      (8) B.h, B.cpp, C.h and C.cpp are not updated.
      
      (9) Third build.
      (10) Since B.h, B.cpp, C.h and C.cpp are older than supplemental_dependency.tmp, generate-bindings.pl runs for B.idl and C.idl.
      (11) B.h, B.cpp, C.h and C.cpp are not updated.
      ...
      
      We should fix the bug somehow, but how to fix it is not obvious.
      For the time being, this patch invalidates r105697, r105766, r105809
      and r105805.
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGenerator.pm:
      (UpdateFile):
      * bindings/scripts/CodeGeneratorCPP.pm:
      (WriteData):
      * bindings/scripts/CodeGeneratorJS.pm:
      (WriteData):
      * bindings/scripts/CodeGeneratorObjC.pm:
      (WriteData):
      * bindings/scripts/CodeGeneratorV8.pm:
      (WriteData):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2ce0673
    • haraken@chromium.org's avatar
      CodeGeneratorJS.pm should overwrite the output .h/.cpp · f08c680e
      haraken@chromium.org authored
      only if the bytes differ
      https://bugs.webkit.org/show_bug.cgi?id=76922
      
      Reviewed by Darin Adler.
      
      This is one of steps to stop rebuilding .h/.cpp files
      generated by unchanged IDLs (bug 76836).
      This patch makes a change on CodeGeneratorJS.pm so that
      it overwrites the output .h/.cpp only if the bytes differ.
      
      No tests. No change in behavior.
      I manually confirmed that when I add a new attribute to Element.idl,
      the time-stamps of unrelated JS*.h and JS*.cpp do not change.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (WriteData): Used UpdateFileIfChanged().
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f08c680e
    • haraken@chromium.org's avatar
      [Refactoring] Remove finish() from all CodeGenerator*.pm · 5a462d23
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76918
      
      Reviewed by Darin Adler.
      
      Now finish() is empty in all CodeGenerator*.pm. This patch removes them.
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGenerator.pm:
      (ProcessDocument):
      * bindings/scripts/CodeGeneratorCPP.pm:
      * bindings/scripts/CodeGeneratorGObject.pm:
      * bindings/scripts/CodeGeneratorJS.pm:
      * bindings/scripts/CodeGeneratorObjC.pm:
      * bindings/scripts/CodeGeneratorV8.pm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a462d23
    • ossy@webkit.org's avatar
      [Refactoring] Make finish() of CodeGeneratorJS.pm empty · 687482f1
      ossy@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76846
      
      Reviewed by Tor Arne Vestbø.
      
      * bindings/scripts/CodeGeneratorJS.pm: Warning fix after r105683.
      (WriteData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      687482f1
    • ggaren@apple.com's avatar
      JSValue::toString() should return a JSString* instead of a UString · 64be5e90
      ggaren@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=76861
      
      ../JavaScriptCore: 
      
      Reviewed by Gavin Barraclough.
              
      This makes the common case -- toString() on a string -- faster and
      inline-able. (Not a measureable speedup, but we can now remove a bunch
      of duplicate hand-rolled code for this optimization.)
              
      This also clarifies the boundary between "C++ strings" and "JS strings".
              
      In all cases other than true, false, null, undefined, and multi-digit
      numbers, the JS runtime was just retrieving a UString from a JSString,
      so returning a JSString* is strictly better. In the other cases, we can
      optimize to avoid creating a new JSString if we care to, but it doesn't
      seem to be a big deal.
      
      * JavaScriptCore.exp: Export!
              
      * jsc.cpp:
      (functionPrint):
      (functionDebug):
      (functionRun):
      (functionLoad):
      (functionCheckSyntax):
      (runWithScripts):
      (runInteractive):
      * API/JSValueRef.cpp:
      (JSValueToStringCopy):
      * bytecode/CodeBlock.cpp:
      (JSC::valueToSourceString): Call value() after calling toString(), to
      convert from "JS string" (JSString*) to "C++ string" (UString), since
      toString() no longer returns a "C++ string".
      
      * dfg/DFGOperations.cpp:
      (JSC::DFG::operationValueAddNotNumber):
      * jit/JITStubs.cpp:
      (op_add): Updated for removal of toPrimitiveString():
      all '+' operands can use toString(), except for object operands, which
      need to take a slow path to call toPrimitive().
      
      * runtime/ArrayPrototype.cpp:
      (JSC::arrayProtoFuncToString):
      (JSC::arrayProtoFuncToLocaleString):
      (JSC::arrayProtoFuncJoin):
      (JSC::arrayProtoFuncPush):
      * runtime/CommonSlowPaths.h:
      (JSC::CommonSlowPaths::opIn):
      * runtime/DateConstructor.cpp:
      (JSC::dateParse):
      * runtime/DatePrototype.cpp:
      (JSC::formatLocaleDate): Call value() after calling toString(), as above.
      
      * runtime/ErrorInstance.h:
      (JSC::ErrorInstance::create): Simplified down to one canonical create()
      function, to make string handling easier.
      
      * runtime/ErrorPrototype.cpp:
      (JSC::errorProtoFuncToString):
      * runtime/ExceptionHelpers.cpp:
      (JSC::createInvalidParamError):
      (JSC::createNotAConstructorError):
      (JSC::createNotAFunctionError):
      (JSC::createNotAnObjectError):
      * runtime/FunctionConstructor.cpp:
      (JSC::constructFunctionSkippingEvalEnabledCheck):
      * runtime/FunctionPrototype.cpp:
      (JSC::functionProtoFuncBind):
      * runtime/JSArray.cpp:
      (JSC::JSArray::sort): Call value() after calling toString(), as above.
      
      * runtime/JSCell.cpp:
      * runtime/JSCell.h: Removed JSCell::toString() because JSValue does this
      job now. Doing it in JSCell is slower (requires extra type checking), and
      creates the misimpression that language-defined toString() behavior is
      an implementation detail of JSCell.
              
      * runtime/JSGlobalObjectFunctions.cpp:
      (JSC::encode):
      (JSC::decode):
      (JSC::globalFuncEval):
      (JSC::globalFuncParseInt):
      (JSC::globalFuncParseFloat):
      (JSC::globalFuncEscape):
      (JSC::globalFuncUnescape): Call value() after calling toString(), as above.
      
      * runtime/JSONObject.cpp:
      (JSC::unwrapBoxedPrimitive):
      (JSC::Stringifier::Stringifier):
      (JSC::JSONProtoFuncParse): Removed some manual optimization that toString()
      takes care of.
      
      * runtime/JSObject.cpp:
      (JSC::JSObject::toString):
      * runtime/JSObject.h: Updated to return JSString*.
      
      * runtime/JSString.cpp:
      * runtime/JSString.h:
      (JSC::JSValue::toString): Removed, since I removed JSCell::toString().
      
      * runtime/JSValue.cpp:
      (JSC::JSValue::toStringSlowCase): Removed toPrimitiveString(), and re-
      spawned toStringSlowCase() from its zombie corpse, since toPrimitiveString()
      basically did what we want all the time. (Note that the toPrimitive()
      preference changes from NoPreference to PreferString, because that's
      how ToString is defined in the language. op_add does not want this behavior.)
      
      * runtime/NumberPrototype.cpp:
      (JSC::numberProtoFuncToString):
      (JSC::numberProtoFuncToLocaleString): A little simpler, now that toString()
      returns a JSString*.
      
      * runtime/ObjectConstructor.cpp:
      (JSC::objectConstructorGetOwnPropertyDescriptor):
      (JSC::objectConstructorDefineProperty):
      * runtime/ObjectPrototype.cpp:
      (JSC::objectProtoFuncHasOwnProperty):
      (JSC::objectProtoFuncDefineGetter):
      (JSC::objectProtoFuncDefineSetter):
      (JSC::objectProtoFuncLookupGetter):
      (JSC::objectProtoFuncLookupSetter):
      (JSC::objectProtoFuncPropertyIsEnumerable): More calls to value(), as above.
      
      * runtime/Operations.cpp:
      (JSC::jsAddSlowCase): Need to check for object before taking the toString()
      fast path becuase adding an object to a string requires calling toPrimitive()
      on the object, not toString(). (They differ in their preferred conversion
      type.)
      
      * runtime/Operations.h:
      (JSC::jsString):
      (JSC::jsStringFromArguments): This code gets simpler, now that toString()
      does the right thing.
      
      (JSC::jsAdd): Now checks for object, just like jsAddSlowCase().
      
      * runtime/RegExpConstructor.cpp:
      (JSC::setRegExpConstructorInput):
      (JSC::constructRegExp):
      * runtime/RegExpObject.cpp:
      (JSC::RegExpObject::match):
      * runtime/RegExpPrototype.cpp:
      (JSC::regExpProtoFuncCompile):
      (JSC::regExpProtoFuncToString): More calls to value(), as above.
      
      * runtime/StringConstructor.cpp:
      (JSC::constructWithStringConstructor):
      (JSC::callStringConstructor): This code gets simpler, now that toString()
      does the right thing.
      
      * runtime/StringPrototype.cpp:
      (JSC::replaceUsingRegExpSearch):
      (JSC::replaceUsingStringSearch):
      (JSC::stringProtoFuncReplace):
      (JSC::stringProtoFuncCharAt):
      (JSC::stringProtoFuncCharCodeAt):
      (JSC::stringProtoFuncConcat):
      (JSC::stringProtoFuncIndexOf):
      (JSC::stringProtoFuncLastIndexOf):
      (JSC::stringProtoFuncMatch):
      (JSC::stringProtoFuncSearch):
      (JSC::stringProtoFuncSlice):
      (JSC::stringProtoFuncSplit):
      (JSC::stringProtoFuncSubstr):
      (JSC::stringProtoFuncSubstring):
      (JSC::stringProtoFuncToLowerCase):
      (JSC::stringProtoFuncToUpperCase):
      (JSC::stringProtoFuncLocaleCompare):
      (JSC::stringProtoFuncBig):
      (JSC::stringProtoFuncSmall):
      (JSC::stringProtoFuncBlink):
      (JSC::stringProtoFuncBold):
      (JSC::stringProtoFuncFixed):
      (JSC::stringProtoFuncItalics):
      (JSC::stringProtoFuncStrike):
      (JSC::stringProtoFuncSub):
      (JSC::stringProtoFuncSup):
      (JSC::stringProtoFuncFontcolor):
      (JSC::stringProtoFuncFontsize):
      (JSC::stringProtoFuncAnchor):
      (JSC::stringProtoFuncLink):
      (JSC::trimString): Some of this code gets simpler, now that toString()
      does the right thing. More calls to value(), as above.
      
      ../JavaScriptGlue: 
      
      Reviewed by Gavin Barraclough.
      
      * JSUtils.cpp:
      (KJSValueToCFTypeInternal):
      
      ../WebCore: 
      
      Reviewed by Gavin Barraclough.
      
      Mechanical changes to call value() after calling toString(), to
      convert from "JS string" (JSString*) to "C++ string" (UString), since
      toString() no longer returns a "C++ string".
      
      * bindings/js/IDBBindingUtilities.cpp:
      (WebCore::createIDBKeyFromValue):
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      (WebCore::JSCSSStyleDeclaration::getPropertyCSSValue):
      * bindings/js/JSClipboardCustom.cpp:
      (WebCore::JSClipboard::clearData):
      (WebCore::JSClipboard::getData):
      * bindings/js/JSCustomXPathNSResolver.cpp:
      (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::valueToStringWithNullCheck):
      (WebCore::valueToStringWithUndefinedOrNullCheck):
      (WebCore::reportException):
      * bindings/js/JSDOMFormDataCustom.cpp:
      (WebCore::JSDOMFormData::append):
      * bindings/js/JSDOMStringMapCustom.cpp:
      (WebCore::JSDOMStringMap::putDelegate):
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore::JSDOMWindow::setLocation):
      (WebCore::JSDOMWindow::open):
      (WebCore::JSDOMWindow::addEventListener):
      (WebCore::JSDOMWindow::removeEventListener):
      * bindings/js/JSDeviceMotionEventCustom.cpp:
      (WebCore::JSDeviceMotionEvent::initDeviceMotionEvent):
      * bindings/js/JSDeviceOrientationEventCustom.cpp:
      (WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent):
      * bindings/js/JSDictionary.cpp:
      (WebCore::JSDictionary::convertValue):
      * bindings/js/JSDocumentCustom.cpp:
      (WebCore::JSDocument::setLocation):
      * bindings/js/JSEventListener.cpp:
      (WebCore::JSEventListener::handleEvent):
      * bindings/js/JSHTMLAllCollectionCustom.cpp:
      (WebCore::callHTMLAllCollection):
      (WebCore::JSHTMLAllCollection::item):
      (WebCore::JSHTMLAllCollection::namedItem):
      * bindings/js/JSHTMLCanvasElementCustom.cpp:
      (WebCore::JSHTMLCanvasElement::getContext):
      * bindings/js/JSHTMLCollectionCustom.cpp:
      (WebCore::JSHTMLCollection::item):
      (WebCore::JSHTMLCollection::namedItem):
      * bindings/js/JSHTMLDocumentCustom.cpp:
      (WebCore::documentWrite):
      * bindings/js/JSHTMLInputElementCustom.cpp:
      (WebCore::JSHTMLInputElement::setSelectionDirection):
      (WebCore::JSHTMLInputElement::setSelectionRange):
      * bindings/js/JSInspectorFrontendHostCustom.cpp:
      (WebCore::JSInspectorFrontendHost::showContextMenu):
      * bindings/js/JSJavaScriptCallFrameCustom.cpp:
      (WebCore::JSJavaScriptCallFrame::evaluate):
      * bindings/js/JSLocationCustom.cpp:
      (WebCore::JSLocation::setHref):
      (WebCore::JSLocation::setProtocol):
      (WebCore::JSLocation::setHost):
      (WebCore::JSLocation::setHostname):
      (WebCore::JSLocation::setPort):
      (WebCore::JSLocation::setPathname):
      (WebCore::JSLocation::setSearch):
      (WebCore::JSLocation::setHash):
      (WebCore::JSLocation::replace):
      (WebCore::JSLocation::assign):
      * bindings/js/JSMessageEventCustom.cpp:
      (WebCore::handleInitMessageEvent):
      * bindings/js/JSSQLTransactionCustom.cpp:
      (WebCore::JSSQLTransaction::executeSql):
      * bindings/js/JSSQLTransactionSyncCustom.cpp:
      (WebCore::JSSQLTransactionSync::executeSql):
      * bindings/js/JSSharedWorkerCustom.cpp:
      (WebCore::JSSharedWorkerConstructor::constructJSSharedWorker):
      * bindings/js/JSStorageCustom.cpp:
      (WebCore::JSStorage::putDelegate):
      * bindings/js/JSWebGLRenderingContextCustom.cpp:
      (WebCore::JSWebGLRenderingContext::getExtension):
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocketConstructor::constructJSWebSocket):
      (WebCore::JSWebSocket::send):
      (WebCore::JSWebSocket::close):
      * bindings/js/JSWorkerContextCustom.cpp:
      (WebCore::JSWorkerContext::importScripts):
      * bindings/js/JSWorkerCustom.cpp:
      (WebCore::JSWorkerConstructor::constructJSWorker):
      * bindings/js/JSXMLHttpRequestCustom.cpp:
      (WebCore::JSXMLHttpRequest::open):
      (WebCore::JSXMLHttpRequest::send):
      * bindings/js/JSXSLTProcessorCustom.cpp:
      (WebCore::JSXSLTProcessor::setParameter):
      (WebCore::JSXSLTProcessor::getParameter):
      (WebCore::JSXSLTProcessor::removeParameter):
      * bindings/js/ScheduledAction.cpp:
      (WebCore::ScheduledAction::create):
      * bindings/js/ScriptEventListener.cpp:
      (WebCore::eventListenerHandlerBody):
      * bindings/js/ScriptValue.cpp:
      (WebCore::ScriptValue::toString):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateEventListenerCall):
      (JSValueToNative):
      (GenerateConstructorDefinition):
      * bridge/c/c_utility.cpp:
      (JSC::Bindings::convertValueToNPVariant):
      * bridge/jni/jni_jsobject.mm:
      (JavaJSObject::convertValueToJObject):
      * bridge/jni/jsc/JNIUtilityPrivate.cpp:
      (JSC::Bindings::convertArrayInstanceToJavaArray):
      (JSC::Bindings::convertValueToJValue):
      * bridge/jni/jsc/JavaFieldJSC.cpp:
      (JavaField::dispatchValueFromInstance):
      (JavaField::valueFromInstance):
      (JavaField::dispatchSetValueToInstance):
      (JavaField::setValueToInstance):
      * bridge/jni/jsc/JavaInstanceJSC.cpp:
      (JavaInstance::invokeMethod):
      * testing/js/JSInternalsCustom.cpp:
      (WebCore::JSInternals::setUserPreferredLanguages):
      
      ../WebKit/mac: 
      
      Reviewed by Gavin Barraclough.
      
      Mechanical changes to call value() after calling toString(), to
      convert from "JS string" (JSString*) to "C++ string" (UString), since
      toString() no longer returns a "C++ string".
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::addValueToArray):
      * WebView/WebFrame.mm:
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
      
      ../WebKit2: 
      
      Reviewed by Gavin Barraclough.
      
      Mechanical changes to call value() after calling toString(), to
      convert from "JS string" (JSString*) to "C++ string" (UString), since
      toString() no longer returns a "C++ string".
      
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      (WebKit::NPRuntimeObjectMap::convertJSValueToNPVariant):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64be5e90
  11. 23 Jan, 2012 1 commit
    • haraken@chromium.org's avatar
      [Refactoring] Make finish() of CodeGeneratorJS.pm empty · 60c08ab4
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76846
      
      Reviewed by Adam Barth.
      
      This is one of steps to stop rebuilding .h/.cpp files generated
      by unchanged IDLs (bug 76836).
      
      As a refactoring, we are planning to remove finish() from all
      CodeGenerators. In this bug, we make finish() of CodeGeneratorJS.pm
      empty.
      
      No new tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (finish): Made it empty. We will remove finish() after
      making finish() of all CodeGenerators empty.
      (GenerateInterface): Modified to call WriteData().
      (WriteData): Simple code refactoring.
      Removed if(defined $IMPL).
      Removed if(defined $HEADER).
      Removed if(defined $DEPS).
      $IMPL -> IMPL.
      $HEADER -> HEADER.
      $DEPS -> DEPS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60c08ab4
  12. 18 Jan, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Add [CallWith] support for attributes in JSC/V8 idl code generators. · 7bfd285b
      commit-queue@webkit.org authored
      Part of https://bugs.webkit.org/show_bug.cgi?id=76035
      
      Patch by Pablo Flouret <pablof@motorola.com> on 2012-01-18
      Reviewed by Adam Barth.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateImplementation):
      (GenerateAttributeCallWith):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateNormalAttrGetter):
      (GenerateNormalAttrSetter):
      (GenerateAttributeCallWith):
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
      (WebDOMTestObj::withScriptStateAttribute):
      (WebDOMTestObj::setWithScriptStateAttribute):
      (WebDOMTestObj::withScriptExecutionContextAttribute):
      (WebDOMTestObj::setWithScriptExecutionContextAttribute):
      (WebDOMTestObj::withScriptStateAttributeRaises):
      (WebDOMTestObj::setWithScriptStateAttributeRaises):
      (WebDOMTestObj::withScriptExecutionContextAttributeRaises):
      (WebDOMTestObj::setWithScriptExecutionContextAttributeRaises):
      * bindings/scripts/test/CPP/WebDOMTestObj.h:
      * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
      (webkit_dom_test_obj_get_with_script_state_attribute):
      (webkit_dom_test_obj_set_with_script_state_attribute):
      (webkit_dom_test_obj_get_with_script_execution_context_attribute):
      (webkit_dom_test_obj_set_with_script_execution_context_attribute):
      (webkit_dom_test_obj_get_with_script_state_attribute_raises):
      (webkit_dom_test_obj_set_with_script_state_attribute_raises):
      (webkit_dom_test_obj_get_with_script_execution_context_attribute_raises):
      (webkit_dom_test_obj_set_with_script_execution_context_attribute_raises):
      (webkit_dom_test_obj_set_property):
      (webkit_dom_test_obj_get_property):
      (webkit_dom_test_obj_class_init):
      * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore::jsTestObjWithScriptStateAttribute):
      (WebCore::jsTestObjWithScriptExecutionContextAttribute):
      (WebCore::jsTestObjWithScriptStateAttributeRaises):
      (WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
      (WebCore::setJSTestObjWithScriptStateAttribute):
      (WebCore::setJSTestObjWithScriptExecutionContextAttribute):
      (WebCore::setJSTestObjWithScriptStateAttributeRaises):
      (WebCore::setJSTestObjWithScriptExecutionContextAttributeRaises):
      * bindings/scripts/test/JS/JSTestObj.h:
      * bindings/scripts/test/ObjC/DOMTestObj.h:
      * bindings/scripts/test/ObjC/DOMTestObj.mm:
      (-[DOMTestObj withScriptStateAttribute]):
      (-[DOMTestObj setWithScriptStateAttribute:]):
      (-[DOMTestObj withScriptExecutionContextAttribute]):
      (-[DOMTestObj setWithScriptExecutionContextAttribute:]):
      (-[DOMTestObj withScriptStateAttributeRaises]):
      (-[DOMTestObj setWithScriptStateAttributeRaises:]):
      (-[DOMTestObj withScriptExecutionContextAttributeRaises]):
      (-[DOMTestObj setWithScriptExecutionContextAttributeRaises:]):
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::withScriptStateAttributeAttrGetter):
      (WebCore::TestObjInternal::withScriptStateAttributeAttrSetter):
      (WebCore::TestObjInternal::withScriptExecutionContextAttributeAttrGetter):
      (WebCore::TestObjInternal::withScriptExecutionContextAttributeAttrSetter):
      (WebCore::TestObjInternal::withScriptStateAttributeRaisesAttrGetter):
      (WebCore::TestObjInternal::withScriptStateAttributeRaisesAttrSetter):
      (WebCore::TestObjInternal::withScriptExecutionContextAttributeRaisesAttrGetter):
      (WebCore::TestObjInternal::withScriptExecutionContextAttributeRaisesAttrSetter):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7bfd285b
  13. 17 Jan, 2012 1 commit
    • caio.oliveira@openbossa.org's avatar
      Uint8ClampedArray support · 992fc376
      caio.oliveira@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=74455
      
      Reviewed by Filip Pizlo.
      
      Source/JavaScriptCore:
      
      * GNUmakefile.list.am:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * bytecode/PredictedType.cpp:
      (JSC::predictionToString):
      (JSC::predictionFromClassInfo):
      * bytecode/PredictedType.h:
      (JSC::isUint8ClampedArrayPrediction):
      (JSC::isActionableMutableArrayPrediction):
      * dfg/DFGAbstractState.cpp:
      (JSC::DFG::AbstractState::initialize):
      (JSC::DFG::AbstractState::execute):
      * dfg/DFGNode.h:
      (JSC::DFG::Node::shouldSpeculateUint8ClampedArray):
      * dfg/DFGPropagator.cpp:
      (JSC::DFG::Propagator::propagateNodePredictions):
      (JSC::DFG::Propagator::fixupNode):
      (JSC::DFG::Propagator::performNodeCSE):
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::checkArgumentTypes):
      (JSC::DFG::clampDoubleToByte):
      (JSC::DFG::compileClampIntegerToByte):
      (JSC::DFG::SpeculativeJIT::compilePutByValForByteArray):
      (JSC::DFG::SpeculativeJIT::compilePutByValForIntTypedArray):
      (JSC::DFG::SpeculativeJIT::compileGetIndexedPropertyStorage):
      * dfg/DFGSpeculativeJIT.h:
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * runtime/JSCell.h:
      * runtime/JSGlobalData.h:
      * wtf/Forward.h:
      * wtf/Uint8Array.h:
      * wtf/Uint8ClampedArray.h: Added.
      (WTF::Uint8ClampedArray::set):
      (WTF::Uint8ClampedArray::create):
      (WTF::Uint8ClampedArray::Uint8ClampedArray):
      (WTF::Uint8ClampedArray::subarray):
      
      Source/WebCore:
      
      Test: fast/js/dfg-uint8clampedarray.html
      
      * CMakeLists.txt:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * DerivedSources.pri:
      * ForwardingHeaders/wtf/Uint8ClampedArray.h: Added.
      * GNUmakefile.list.am:
      * Target.pri:
      * UseJSC.cmake:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSBindingsAllInOne.cpp:
      * bindings/js/JSDOMWindowCustom.cpp:
      * bindings/js/JSUint8ClampedArrayCustom.cpp: Added.
      (WebCore::JSUint8ClampedArray::indexSetter):
      (WebCore::toJS):
      (WebCore::JSUint8ClampedArray::set):
      (WebCore::JSUint8ClampedArrayConstructor::constructJSUint8ClampedArray):
      * bindings/scripts/CodeGeneratorJS.pm:
      (IsTypedArrayType):
      (GenerateHeader):
      * html/canvas/Uint8ClampedArray.idl: Added.
      * page/DOMWindow.idl:
      
      Source/WTF:
      
      * WTF.pro:
      
      LayoutTests:
      
      * fast/canvas/webgl/array-unit-tests-expected.txt:
      * fast/canvas/webgl/array-unit-tests.html:
      * fast/dom/Window/script-tests/window-property-descriptors.js:
      * fast/dom/Window/window-properties.html:
      * fast/dom/script-tests/constructed-objects-prototypes.js:
      (constructorPropertiesOnWindow):
      * fast/dom/script-tests/prototype-inheritance-2.js:
      (constructorNamesForWindow):
      * fast/js/dfg-uint8clampedarray-expected.txt: Added.
      * fast/js/dfg-uint8clampedarray.html: Added.
      * fast/js/script-tests/dfg-uint8clampedarray.js: Added.
      (getter1):
      (setter1):
      (getter2):
      (setter2):
      (getter3):
      (setter3):
      (getter4):
      (setter4):
      (getters.getter1.a):
      (.a):
      (setters.setter1.a):
      (safeGetter):
      (safeSetter):
      * fast/js/script-tests/global-constructors.js:
      * platform/chromium/fast/canvas/webgl/array-unit-tests-expected.txt: Copied from LayoutTests/fast/canvas/webgl/array-unit-tests-expected.txt.
      * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      992fc376
  14. 11 Jan, 2012 1 commit
    • haraken@chromium.org's avatar
      [JSC] Remove redundant arguments from [Supplemental] custom methods · f1cc1e17
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76127
      
      Reviewed by Adam Barth.
      
      Since in JSC a callback of custom methods is non-static, we do not need
      to pass a pointer of an implementation object.
      
      Before (JSTestInterface.cpp):
          JSValue jsTestInterfaceSupplementalStr3(ExecState* exec, JSValue slotBase, ...)
          {
              JSTestInterface* castedThis = static_cast<JSTestInterface*>(asObject(slotBase));
              TestInterface* impl = static_cast<TestInterface*>(castedThis->impl());
              return castedThis->supplementalStr3(impl, exec);
          }
      
      After (JSTestInterface.cpp):
          JSValue jsTestInterfaceSupplementalStr3(ExecState* exec, JSValue slotBase, ...)
          {
              JSTestInterface* castedThis = static_cast<JSTestInterface*>(asObject(slotBase));
               return castedThis->supplementalStr3(exec);  // JSTestInterface knows 'impl'.
          }
      
      Tests: bindings/scripts/test/TestInterface.idl
             http/tests/websocket/tests/*
             webaudio/*
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader): Previously when we specify [CustomGetter, CustomSetter], the header for
      the custom setter was not generated. This patch fixes the bug.
      (GenerateImplementation):
      
      * bindings/js/JSDOMWindowWebAudioCustom.cpp: Removed redundant DOMWindow* from webkitAudioContext().
      (WebCore::JSDOMWindow::webkitAudioContext):
      * bindings/js/JSDOMWindowWebSocketCustom.cpp: Removed redundant DOMWindow* from webSocket().
      (WebCore::JSDOMWindow::webSocket):
      
      * bindings/scripts/test/JS/JSTestInterface.cpp: Updated the test result.
      (WebCore::jsTestInterfaceSupplementalStr3):
      (WebCore::setJSTestInterfaceSupplementalStr3):
      * bindings/scripts/test/JS/JSTestInterface.h: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1cc1e17
  15. 10 Jan, 2012 1 commit
    • haraken@chromium.org's avatar
      Support the [Supplemental] IDL on methods · 81795bdc
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75944
      
      Reviewed by Adam Barth.
      
      The spec for the [Supplemental] IDL:
      http://dev.w3.org/2006/webapi/WebIDL/#dfn-supplemental-interface
      
      Currently the [Supplemental] IDL is supported on attributes but not supported
      on methods. This patch makes a change to support it.
      
      Specifically, assume the following IDL:
      
          interface [Supplemental=X] Y {
              void func();
          }
      
      Then the code generator generates the following V8X.cpp.
      
          void funcCallback(Arguments& args) {
              X* imp = V8X::toNative(args.Holder());
              Y::func(imp);
          }
      
      Similar code is also generated for JS, ObjC, GObject and CPP bindings.
      
      Test: bindings/scripts/test/TestSupplemental.idl
      
      * bindings/scripts/CodeGeneratorCPP.pm: Modified as described above.
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorGObject.pm: Ditto.
      (GenerateFunction):
      * bindings/scripts/CodeGeneratorJS.pm: Ditto.
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorObjC.pm: Ditto.
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm: Ditto.
      (GenerateFunctionCallString):
      * bindings/scripts/generate-bindings.pl: Ditto.
      
      * bindings/scripts/test/TestSupplemental.idl: Added test cases for [Supplemental] methods.
      
      * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Updated the test result.
      (WebDOMTestInterface::supplementalMethod1):
      (WebDOMTestInterface::supplementalMethod2):
      * bindings/scripts/test/CPP/WebDOMTestInterface.h: Ditto.
      * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: Ditto.
      (webkit_dom_test_interface_supplemental_method1):
      (webkit_dom_test_interface_supplemental_method2):
      * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: Ditto.
      * bindings/scripts/test/JS/JSTestInterface.cpp: Ditto.
      (WebCore::JSTestInterfacePrototype::getOwnPropertySlot):
      (WebCore::JSTestInterfacePrototype::getOwnPropertyDescriptor):
      (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod1):
      (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
      * bindings/scripts/test/JS/JSTestInterface.h: Ditto.
      * bindings/scripts/test/ObjC/DOMTestInterface.h: Ditto.
      * bindings/scripts/test/ObjC/DOMTestInterface.mm: Ditto.
      (-[DOMTestInterface supplementalMethod1]):
      (-[DOMTestInterface supplementalMethod2:objArg:]):
      * bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
      (WebCore::TestInterfaceInternal::supplementalMethod1Callback):
      (WebCore::TestInterfaceInternal::supplementalMethod2Callback):
      (WebCore::ConfigureV8TestInterfaceTemplate):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81795bdc
  16. 09 Jan, 2012 1 commit
  17. 08 Jan, 2012 3 commits
    • abarth@webkit.org's avatar
      Rename checkNodeSecurity and allowsAccessFromFrame to have sensible names · d263e254
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75796
      
      Reviewed by Sam Weinig.
      
      This patch contains only renames and FIXME comments.  No behavior change.
      
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::allowAccessToNode):
      (WebCore::allowAccessToFrame):
      * bindings/js/JSDOMBinding.h:
      * bindings/js/JSHTMLFrameElementCustom.cpp:
      (WebCore::allowSettingJavascriptURL):
      * bindings/js/JSHistoryCustom.cpp:
      (WebCore::JSHistory::getOwnPropertySlotDelegate):
      (WebCore::JSHistory::getOwnPropertyDescriptorDelegate):
      (WebCore::JSHistory::putDelegate):
      (WebCore::JSHistory::deleteProperty):
      (WebCore::JSHistory::getOwnPropertyNames):
      * bindings/js/JSLocationCustom.cpp:
      (WebCore::JSLocation::getOwnPropertySlotDelegate):
      (WebCore::JSLocation::getOwnPropertyDescriptorDelegate):
      (WebCore::JSLocation::putDelegate):
      (WebCore::JSLocation::deleteProperty):
      (WebCore::JSLocation::getOwnPropertyNames):
      (WebCore::JSLocation::toStringFunction):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::canAccessFromCurrentOrigin):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateGetOwnPropertyDescriptorBody):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateNormalAttrGetter):
      (GenerateFunctionCallback):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104412 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d263e254
    • abarth@webkit.org's avatar
      Remove deprecated toDynamicFrame and unused [CallWith=DynamicFrame] · ee0cb080
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75795
      
      Reviewed by Eric Seidel.
      
      We've succeeded in removing all the callers fo this function, including
      all the uses of CallWith=DynamicFrame in IDL files.
      
      * bindings/js/JSDOMBinding.cpp:
      * bindings/js/JSDOMBinding.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateFunctionCallString):
      * 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/JSTestObj.cpp:
      * bindings/scripts/test/JS/JSTestObj.h:
      * bindings/scripts/test/ObjC/DOMTestObj.h:
      * bindings/scripts/test/ObjC/DOMTestObj.mm:
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/V8/V8TestObj.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104411 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee0cb080
    • abarth@webkit.org's avatar
      NeedsUserGestureCheck IDL attribute is no longer used · 27ccfc72
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75794
      
      Reviewed by Eric Seidel.
      
      This IDL attribute is no longer used because we use static state to
      keep track of the user gesture state.  We can delete the code that
      supports it.
      
      * bindings/scripts/CodeGeneratorCPP.pm:
      * bindings/scripts/CodeGeneratorGObject.pm:
      * bindings/scripts/CodeGeneratorJS.pm:
      * bindings/scripts/CodeGeneratorV8.pm:
      * bindings/scripts/test/TestObj.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      27ccfc72
  18. 03 Jan, 2012 1 commit
  19. 02 Jan, 2012 2 commits
  20. 25 Dec, 2011 1 commit
    • haraken@chromium.org's avatar
      REGRESSION(r102987): Fix the filename prefix of the generated empty .h · 518b2339
      haraken@chromium.org authored
      and .cpp files for [Supplemental] IDLs
      https://bugs.webkit.org/show_bug.cgi?id=75082
      
      Reviewed by Darin Adler.
      
      In bug 74481, we changed generate-bindings.pl so that it generates empty .h
      and .cpp files for the [Supplemental] IDLs. However, the filename prefixes of
      those .h and .cpp files are wrong. This patch fixes the prefixes as follows:
      
          generator=JS  => JS*.h, JS*.cpp
          generator=V8  => V8*.h, V8*.cpp
          generator=ObjC  => DOM*.h, DOM*.cpp
          generator=GObject  => WebKitDOM*.h, WebKitDOM*.cpp
          generator=CPP  => WebDOM*.h, WebDOM*.cpp
      
      No new tests. No change in behavior.
      I confirmed that the names of generated .h and .cpp files are correct.
      
      * bindings/scripts/CodeGenerator.pm:
      (FileNamePrefix): Returns the prefix of file names.
      * bindings/scripts/CodeGeneratorCPP.pm:
      (GenerateInterface): Uses CodeGenerator::FileNamePrefix.
      * bindings/scripts/CodeGeneratorGObject.pm:
      (GenerateInterface): Ditto.
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateInterface): Ditto.
      * bindings/scripts/CodeGeneratorObjC.pm:
      (GenerateInterface): Ditto.
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateInterface): Ditto.
      * bindings/scripts/generate-bindings.pl:
      (generateEmptyHeaderAndCpp): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      518b2339