Fix for https://bugs.webkit.org/show_bug.cgi?id=40581
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Jun 2010 19:46:13 +0000 (19:46 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Jun 2010 19:46:13 +0000 (19:46 +0000)
commit89519e3b3d11664ec57fe3dd01a8d772872bbde3
treeabd58547636ecbf281bf3c14d871c524ba119ba6
parentc65df73ae7eb5d375bd7664ee46f3094a8454bea
Fix for https://bugs.webkit.org/show_bug.cgi?id=40581
Auto-generate most of the JS constructors

Reviewed by Alexey Proskuryakov.

WebCore:

- Auto-generates all the JS constructors that don't have custom
  names (eg, Not Image(), Audio() or Option())
- Fixes two typos.
    (new XSLTConstructor()).toString() [object XSLTProcessorConsructor] -> [object XSLTProcessorConstructor])
    (new EventSource()).toString() [object EventSourceContructor] -> [object EventSourceConstructor])

* Android.jscbindings.mk:
* CMakeLists.txt:
* GNUmakefile.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSArrayBufferConstructor.cpp: Removed.
* bindings/js/JSArrayBufferConstructor.h: Removed.
* bindings/js/JSArrayBufferCustom.cpp: Copied from WebCore/bindings/js/JSArrayBufferConstructor.cpp.
(WebCore::JSArrayBufferConstructor::constructJSArrayBuffer):
* bindings/js/JSArrayBufferViewHelper.h:
(WebCore::constructArrayBufferView):
* bindings/js/JSBindingsAllInOne.cpp:
* bindings/js/JSDOMWindowCustom.cpp:
* bindings/js/JSEventSourceConstructor.cpp: Removed.
* bindings/js/JSEventSourceConstructor.h: Removed.
* bindings/js/JSEventSourceCustom.cpp: Copied from WebCore/bindings/js/JSEventSourceConstructor.cpp.
(WebCore::JSEventSourceConstructor::constructJSEventSource):
* bindings/js/JSFloat32ArrayConstructor.cpp: Removed.
* bindings/js/JSFloat32ArrayConstructor.h: Removed.
* bindings/js/JSFloat32ArrayCustom.cpp:
(WebCore::JSFloat32ArrayConstructor::constructJSFloat32Array):
* bindings/js/JSInt16ArrayConstructor.cpp: Removed.
* bindings/js/JSInt16ArrayConstructor.h: Removed.
* bindings/js/JSInt16ArrayCustom.cpp:
(WebCore::JSInt16ArrayConstructor::constructJSInt16Array):
* bindings/js/JSInt32ArrayConstructor.cpp: Removed.
* bindings/js/JSInt32ArrayConstructor.h: Removed.
* bindings/js/JSInt32ArrayCustom.cpp:
(WebCore::JSInt32ArrayConstructor::constructJSInt32Array):
* bindings/js/JSInt8ArrayConstructor.cpp: Removed.
* bindings/js/JSInt8ArrayConstructor.h: Removed.
* bindings/js/JSInt8ArrayCustom.cpp:
(WebCore::JSInt8ArrayConstructor::constructJSInt8Array):
* bindings/js/JSMessageChannelConstructor.cpp: Removed.
* bindings/js/JSMessageChannelConstructor.h: Removed.
* bindings/js/JSMessageChannelCustom.cpp:
(WebCore::JSMessageChannelConstructor::constructJSMessageChannel):
* bindings/js/JSSharedWorkerConstructor.cpp: Removed.
* bindings/js/JSSharedWorkerConstructor.h: Removed.
* bindings/js/JSSharedWorkerCustom.cpp:
(WebCore::JSSharedWorkerConstructor::constructJSSharedWorker):
* bindings/js/JSUint16ArrayConstructor.cpp: Removed.
* bindings/js/JSUint16ArrayConstructor.h: Removed.
* bindings/js/JSUint16ArrayCustom.cpp:
(WebCore::JSUint16ArrayConstructor::constructJSUint16Array):
* bindings/js/JSUint32ArrayConstructor.cpp: Removed.
* bindings/js/JSUint32ArrayConstructor.h: Removed.
* bindings/js/JSUint32ArrayCustom.cpp:
(WebCore::JSUint32ArrayConstructor::constructJSUint32Array):
* bindings/js/JSUint8ArrayConstructor.cpp: Removed.
* bindings/js/JSUint8ArrayConstructor.h: Removed.
* bindings/js/JSUint8ArrayCustom.cpp:
(WebCore::JSUint8ArrayConstructor::constructJSUint8Array):
* bindings/js/JSWebKitCSSMatrixConstructor.cpp: Removed.
* bindings/js/JSWebKitCSSMatrixConstructor.h: Removed.
* bindings/js/JSWebKitCSSMatrixCustom.cpp: Copied from WebCore/bindings/js/JSWebKitCSSMatrixConstructor.cpp.
(WebCore::JSWebKitCSSMatrixConstructor::constructJSWebKitCSSMatrix):
* bindings/js/JSWebKitPointConstructor.cpp: Removed.
* bindings/js/JSWebKitPointConstructor.h: Removed.
* bindings/js/JSWebKitPointCustom.cpp: Copied from WebCore/bindings/js/JSWebKitPointConstructor.cpp.
(WebCore::JSWebKitPointConstructor::constructJSWebKitPoint):
* bindings/js/JSWebSocketConstructor.cpp: Removed.
* bindings/js/JSWebSocketConstructor.h: Removed.
* bindings/js/JSWebSocketCustom.cpp:
(WebCore::JSWebSocketConstructor::constructJSWebSocket):
* bindings/js/JSWorkerConstructor.cpp: Removed.
* bindings/js/JSWorkerConstructor.h: Removed.
* bindings/js/JSWorkerContextCustom.cpp:
* bindings/js/JSWorkerCustom.cpp:
(WebCore::JSWorkerConstructor::constructJSWorker):
* bindings/js/JSXSLTProcessorConstructor.cpp: Removed.
* bindings/js/JSXSLTProcessorConstructor.h: Removed.
* bindings/js/JSXSLTProcessorCustom.cpp:
(WebCore::JSXSLTProcessorConstructor::constructJSXSLTProcessor):
* bindings/scripts/CodeGeneratorJS.pm:
* css/WebKitCSSMatrix.idl:
* dom/MessageChannel.idl:
* html/canvas/ArrayBuffer.idl:
* html/canvas/Float32Array.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:
* page/EventSource.idl:
* page/WebKitPoint.idl:
* websockets/WebSocket.idl:
* workers/SharedWorker.idl:
* workers/Worker.idl:
* xml/XSLTProcessor.idl:

LayoutTests:

* fast/dom/Window/window-lookup-precedence-expected.txt:
* fast/dom/Window/window-properties-expected.txt:
* fast/dom/constructed-objects-prototypes-expected.txt:
* fast/dom/prototype-inheritance-2-expected.txt:
* fast/js/global-constructors-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61136 268f45cc-cd09-0410-ab3c-d52691b4dbfc
79 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-lookup-precedence-expected.txt
LayoutTests/fast/dom/Window/window-properties-expected.txt
LayoutTests/fast/dom/constructed-objects-prototypes-expected.txt
LayoutTests/fast/dom/prototype-inheritance-2-expected.txt
LayoutTests/fast/js/global-constructors-expected.txt
WebCore/Android.jscbindings.mk
WebCore/CMakeLists.txt
WebCore/ChangeLog
WebCore/GNUmakefile.am
WebCore/WebCore.gypi
WebCore/WebCore.pro
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/bindings/js/JSArrayBufferConstructor.h [deleted file]
WebCore/bindings/js/JSArrayBufferCustom.cpp [moved from WebCore/bindings/js/JSArrayBufferConstructor.cpp with 71% similarity]
WebCore/bindings/js/JSArrayBufferViewHelper.h
WebCore/bindings/js/JSBindingsAllInOne.cpp
WebCore/bindings/js/JSDOMWindowCustom.cpp
WebCore/bindings/js/JSEventSourceConstructor.h [deleted file]
WebCore/bindings/js/JSEventSourceCustom.cpp [moved from WebCore/bindings/js/JSEventSourceConstructor.cpp with 74% similarity]
WebCore/bindings/js/JSFloat32ArrayConstructor.cpp [deleted file]
WebCore/bindings/js/JSFloat32ArrayConstructor.h [deleted file]
WebCore/bindings/js/JSFloat32ArrayCustom.cpp
WebCore/bindings/js/JSInt16ArrayConstructor.cpp [deleted file]
WebCore/bindings/js/JSInt16ArrayConstructor.h [deleted file]
WebCore/bindings/js/JSInt16ArrayCustom.cpp
WebCore/bindings/js/JSInt32ArrayConstructor.cpp [deleted file]
WebCore/bindings/js/JSInt32ArrayConstructor.h [deleted file]
WebCore/bindings/js/JSInt32ArrayCustom.cpp
WebCore/bindings/js/JSInt8ArrayConstructor.cpp [deleted file]
WebCore/bindings/js/JSInt8ArrayConstructor.h [deleted file]
WebCore/bindings/js/JSInt8ArrayCustom.cpp
WebCore/bindings/js/JSMessageChannelConstructor.cpp [deleted file]
WebCore/bindings/js/JSMessageChannelConstructor.h [deleted file]
WebCore/bindings/js/JSMessageChannelCustom.cpp
WebCore/bindings/js/JSSharedWorkerConstructor.cpp [deleted file]
WebCore/bindings/js/JSSharedWorkerConstructor.h [deleted file]
WebCore/bindings/js/JSSharedWorkerCustom.cpp
WebCore/bindings/js/JSUint16ArrayConstructor.cpp [deleted file]
WebCore/bindings/js/JSUint16ArrayConstructor.h [deleted file]
WebCore/bindings/js/JSUint16ArrayCustom.cpp
WebCore/bindings/js/JSUint32ArrayConstructor.cpp [deleted file]
WebCore/bindings/js/JSUint32ArrayConstructor.h [deleted file]
WebCore/bindings/js/JSUint32ArrayCustom.cpp
WebCore/bindings/js/JSUint8ArrayConstructor.cpp [deleted file]
WebCore/bindings/js/JSUint8ArrayConstructor.h [deleted file]
WebCore/bindings/js/JSUint8ArrayCustom.cpp
WebCore/bindings/js/JSWebKitCSSMatrixConstructor.h [deleted file]
WebCore/bindings/js/JSWebKitCSSMatrixCustom.cpp [moved from WebCore/bindings/js/JSWebKitCSSMatrixConstructor.cpp with 69% similarity]
WebCore/bindings/js/JSWebKitPointConstructor.h [deleted file]
WebCore/bindings/js/JSWebKitPointCustom.cpp [moved from WebCore/bindings/js/JSWebKitPointConstructor.cpp with 64% similarity]
WebCore/bindings/js/JSWebSocketConstructor.cpp [deleted file]
WebCore/bindings/js/JSWebSocketConstructor.h [deleted file]
WebCore/bindings/js/JSWebSocketCustom.cpp
WebCore/bindings/js/JSWorkerConstructor.cpp [deleted file]
WebCore/bindings/js/JSWorkerConstructor.h [deleted file]
WebCore/bindings/js/JSWorkerContextCustom.cpp
WebCore/bindings/js/JSWorkerCustom.cpp
WebCore/bindings/js/JSXSLTProcessorConstructor.cpp [deleted file]
WebCore/bindings/js/JSXSLTProcessorConstructor.h [deleted file]
WebCore/bindings/js/JSXSLTProcessorCustom.cpp
WebCore/bindings/scripts/CodeGeneratorJS.pm
WebCore/css/WebKitCSSMatrix.idl
WebCore/dom/MessageChannel.idl
WebCore/html/canvas/ArrayBuffer.idl
WebCore/html/canvas/Float32Array.idl
WebCore/html/canvas/Int16Array.idl
WebCore/html/canvas/Int32Array.idl
WebCore/html/canvas/Int8Array.idl
WebCore/html/canvas/Uint16Array.idl
WebCore/html/canvas/Uint32Array.idl
WebCore/html/canvas/Uint8Array.idl
WebCore/page/EventSource.idl
WebCore/page/WebKitPoint.idl
WebCore/websockets/WebSocket.idl
WebCore/workers/SharedWorker.idl
WebCore/workers/Worker.idl
WebCore/xml/XSLTProcessor.idl