Enhance IDL compiler so it supports unrestricted float and double
authorcabanier@adobe.com <cabanier@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 May 2014 18:31:30 +0000 (18:31 +0000)
committercabanier@adobe.com <cabanier@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 May 2014 18:31:30 +0000 (18:31 +0000)
commit3642b4cc89f5ae2bf794cb67f0fcb740c738c297
tree180e3fbe02c2cdb6e0150d66a1770d153f12e948
parent4600abba53c7c63f1529185f1d2554224a755988
Enhance IDL compiler so it supports unrestricted float and double
https://bugs.webkit.org/show_bug.cgi?id=132460

Reviewed by Dirk Schulze.

Source/WebCore:
Updated IDL compiler so it supports unrestricted types.
Also updated the IDL files so they use unrestricted float and
double.

Tests:
* canvas/philip/tests/2d.gradient.linear.nonfinite.html:
* canvas/philip/tests/2d.gradient.object.invalidoffset.html:
* canvas/philip/tests/2d.gradient.radial.nonfinite.html:
* canvas/philip/tests/2d.imageData.get.nonfinite.html:
* canvas/philip/tests/2d.imageData.put.nonfinite.html:
* canvas/philip/tests/2d.missingargs.html:
* fast/canvas/canvas-getImageData-invalid-expected.txt:
* fast/canvas/canvas-putImageData-expected.txt:
* fast/canvas/canvas-putImageData.js:

* Modules/battery/BatteryManager.idl:
* Modules/gamepad/Gamepad.idl:
* Modules/geolocation/Coordinates.idl:
* Modules/mediasource/MediaSource.idl:
* Modules/mediasource/SourceBuffer.idl:
* Modules/mediasource/VideoPlaybackQuality.idl:
* Modules/mediastream/MediaSourceStates.idl:
* Modules/proximity/DeviceProximityEvent.idl:
* Modules/speech/SpeechGrammar.idl:
* Modules/speech/SpeechGrammarList.idl:
* Modules/speech/SpeechRecognitionAlternative.idl:
* Modules/speech/SpeechSynthesisEvent.idl:
* Modules/speech/SpeechSynthesisUtterance.idl:
* Modules/webaudio/AnalyserNode.idl:
* Modules/webaudio/AudioBuffer.idl:
* Modules/webaudio/AudioBufferSourceNode.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioListener.idl:
* Modules/webaudio/AudioParam.idl:
* Modules/webaudio/AudioProcessingEvent.idl:
* Modules/webaudio/OfflineAudioContext.idl:
* Modules/webaudio/OscillatorNode.idl:
* Modules/webaudio/PannerNode.idl:
* bindings/scripts/CodeGenerator.pm:
* bindings/scripts/CodeGeneratorGObject.pm:
(GetGValueTypeName):
(GetGlibTypeName):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
(GenerateParametersCheck):
(JSValueToNative):
* bindings/scripts/CodeGeneratorObjC.pm:
(GetObjCType):
(GenerateHeader):
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/TestTypedefs.idl:
* css/CSSPrimitiveValue.idl:
* css/WebKitCSSMatrix.idl:
* dom/ClientRect.idl:
* dom/DeviceMotionEvent.idl:
* dom/DeviceOrientationEvent.idl:
* dom/Document.idl:
* dom/RequestAnimationFrameCallback.idl:
* dom/Touch.idl:
* dom/TransitionEvent.idl:
* dom/WebKitAnimationEvent.idl:
* dom/WebKitTransitionEvent.idl:
* dom/WheelEvent.idl:
* html/HTMLInputElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLMeterElement.idl:
* html/HTMLProgressElement.idl:
* html/MediaController.idl:
* html/TextMetrics.idl:
* html/TimeRanges.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* html/canvas/WebGLRenderingContext.idl:
* html/track/DataCue.idl:
* html/track/TextTrackCue.idl:
* html/track/VTTCue.idl:
* html/track/VTTRegion.idl:
* inspector/InspectorFrontendHost.idl:
* inspector/ScriptProfile.idl:
* inspector/ScriptProfileNode.idl:
* page/DOMWindow.idl:
* page/Performance.idl:
* page/PerformanceEntry.idl:
* page/PerformanceResourceTiming.idl:
* page/SpeechInputResult.idl:
* page/WebKitPoint.idl:
* svg/SVGAngle.idl:
* svg/SVGAnimatedNumber.idl:
* svg/SVGAnimationElement.idl:
* svg/SVGFEDropShadowElement.idl:
* svg/SVGFEGaussianBlurElement.idl:
* svg/SVGFEMorphologyElement.idl:
* svg/SVGGlyphRefElement.idl:
* svg/SVGLength.idl:
* svg/SVGMatrix.idl:
* svg/SVGNumber.idl:
* svg/SVGPathElement.idl:
* svg/SVGPathSegArcAbs.idl:
* svg/SVGPathSegArcRel.idl:
* svg/SVGPathSegCurvetoCubicAbs.idl:
* svg/SVGPathSegCurvetoCubicRel.idl:
* svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
* svg/SVGPathSegCurvetoCubicSmoothRel.idl:
* svg/SVGPathSegCurvetoQuadraticAbs.idl:
* svg/SVGPathSegCurvetoQuadraticRel.idl:
* svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
* svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
* svg/SVGPathSegLinetoAbs.idl:
* svg/SVGPathSegLinetoHorizontalAbs.idl:
* svg/SVGPathSegLinetoHorizontalRel.idl:
* svg/SVGPathSegLinetoRel.idl:
* svg/SVGPathSegLinetoVerticalAbs.idl:
* svg/SVGPathSegLinetoVerticalRel.idl:
* svg/SVGPathSegMovetoAbs.idl:
* svg/SVGPathSegMovetoRel.idl:
* svg/SVGPoint.idl:
* svg/SVGRect.idl:
* svg/SVGSVGElement.idl:
* svg/SVGTextContentElement.idl:
* svg/SVGTransform.idl:
* svg/SVGZoomEvent.idl:
* testing/InternalSettings.idl:
* testing/Internals.idl:
* xml/XPathResult.idl:

LayoutTests:
* canvas/philip/tests/2d.gradient.linear.nonfinite.html:
* canvas/philip/tests/2d.gradient.object.invalidoffset.html:
* canvas/philip/tests/2d.gradient.radial.nonfinite.html:
* canvas/philip/tests/2d.imageData.get.nonfinite.html:
* canvas/philip/tests/2d.imageData.put.nonfinite.html:
* canvas/philip/tests/2d.missingargs-expected.txt:
* canvas/philip/tests/2d.missingargs.html:
* fast/canvas/canvas-getImageData-invalid-expected.txt:
* fast/canvas/canvas-putImageData-expected.txt:
* fast/canvas/canvas-putImageData.js:
* fast/canvas/linearGradient-infinite-values-expected.txt:
* fast/canvas/radialGradient-infinite-values-expected.txt:
* fast/canvas/script-tests/canvas-getImageData-invalid.js:
* fast/canvas/script-tests/linearGradient-infinite-values.js:
* fast/canvas/script-tests/radialGradient-infinite-values.js:
* platform/mac/canvas/philip/tests/2d.missingargs-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
119 files changed:
LayoutTests/ChangeLog
LayoutTests/canvas/philip/tests/2d.gradient.linear.nonfinite.html
LayoutTests/canvas/philip/tests/2d.gradient.object.invalidoffset.html
LayoutTests/canvas/philip/tests/2d.gradient.radial.nonfinite.html
LayoutTests/canvas/philip/tests/2d.imageData.get.nonfinite.html
LayoutTests/canvas/philip/tests/2d.imageData.put.nonfinite.html
LayoutTests/canvas/philip/tests/2d.missingargs-expected.txt
LayoutTests/canvas/philip/tests/2d.missingargs.html
LayoutTests/fast/canvas/canvas-getImageData-invalid-expected.txt
LayoutTests/fast/canvas/canvas-putImageData-expected.txt
LayoutTests/fast/canvas/canvas-putImageData.js
LayoutTests/fast/canvas/linearGradient-infinite-values-expected.txt
LayoutTests/fast/canvas/radialGradient-infinite-values-expected.txt
LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js
LayoutTests/fast/canvas/script-tests/linearGradient-infinite-values.js
LayoutTests/fast/canvas/script-tests/radialGradient-infinite-values.js
LayoutTests/platform/mac/canvas/philip/tests/2d.missingargs-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/Modules/battery/BatteryManager.idl
Source/WebCore/Modules/gamepad/Gamepad.idl
Source/WebCore/Modules/geolocation/Coordinates.idl
Source/WebCore/Modules/mediasource/MediaSource.idl
Source/WebCore/Modules/mediasource/SourceBuffer.idl
Source/WebCore/Modules/mediasource/VideoPlaybackQuality.idl
Source/WebCore/Modules/mediastream/MediaSourceStates.idl
Source/WebCore/Modules/proximity/DeviceProximityEvent.idl
Source/WebCore/Modules/speech/SpeechGrammar.idl
Source/WebCore/Modules/speech/SpeechGrammarList.idl
Source/WebCore/Modules/speech/SpeechRecognitionAlternative.idl
Source/WebCore/Modules/speech/SpeechSynthesisEvent.idl
Source/WebCore/Modules/speech/SpeechSynthesisUtterance.idl
Source/WebCore/Modules/webaudio/AnalyserNode.idl
Source/WebCore/Modules/webaudio/AudioBuffer.idl
Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl
Source/WebCore/Modules/webaudio/AudioContext.idl
Source/WebCore/Modules/webaudio/AudioListener.idl
Source/WebCore/Modules/webaudio/AudioParam.idl
Source/WebCore/Modules/webaudio/AudioProcessingEvent.idl
Source/WebCore/Modules/webaudio/OfflineAudioContext.idl
Source/WebCore/Modules/webaudio/OscillatorNode.idl
Source/WebCore/Modules/webaudio/PannerNode.idl
Source/WebCore/bindings/scripts/CodeGenerator.pm
Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm
Source/WebCore/bindings/scripts/test/TestObj.idl
Source/WebCore/bindings/scripts/test/TestTypedefs.idl
Source/WebCore/css/CSSPrimitiveValue.idl
Source/WebCore/css/WebKitCSSMatrix.idl
Source/WebCore/dom/ClientRect.idl
Source/WebCore/dom/DeviceMotionEvent.idl
Source/WebCore/dom/DeviceOrientationEvent.idl
Source/WebCore/dom/Document.idl
Source/WebCore/dom/RequestAnimationFrameCallback.idl
Source/WebCore/dom/Touch.idl
Source/WebCore/dom/TransitionEvent.idl
Source/WebCore/dom/WebKitAnimationEvent.idl
Source/WebCore/dom/WebKitTransitionEvent.idl
Source/WebCore/dom/WheelEvent.idl
Source/WebCore/html/HTMLInputElement.idl
Source/WebCore/html/HTMLMediaElement.idl
Source/WebCore/html/HTMLMeterElement.idl
Source/WebCore/html/HTMLProgressElement.idl
Source/WebCore/html/MediaController.idl
Source/WebCore/html/TextMetrics.idl
Source/WebCore/html/TimeRanges.idl
Source/WebCore/html/canvas/CanvasRenderingContext2D.idl
Source/WebCore/html/canvas/WebGLRenderingContext.idl
Source/WebCore/html/track/DataCue.idl
Source/WebCore/html/track/TextTrackCue.idl
Source/WebCore/html/track/VTTCue.idl
Source/WebCore/html/track/VTTRegion.idl
Source/WebCore/inspector/InspectorFrontendHost.idl
Source/WebCore/inspector/ScriptProfile.idl
Source/WebCore/inspector/ScriptProfileNode.idl
Source/WebCore/page/DOMWindow.idl
Source/WebCore/page/Performance.idl
Source/WebCore/page/PerformanceEntry.idl
Source/WebCore/page/PerformanceResourceTiming.idl
Source/WebCore/page/SpeechInputResult.idl
Source/WebCore/page/WebKitPoint.idl
Source/WebCore/svg/SVGAngle.idl
Source/WebCore/svg/SVGAnimatedNumber.idl
Source/WebCore/svg/SVGAnimationElement.idl
Source/WebCore/svg/SVGFEDropShadowElement.idl
Source/WebCore/svg/SVGFEGaussianBlurElement.idl
Source/WebCore/svg/SVGFEMorphologyElement.idl
Source/WebCore/svg/SVGGlyphRefElement.idl
Source/WebCore/svg/SVGLength.idl
Source/WebCore/svg/SVGMatrix.idl
Source/WebCore/svg/SVGNumber.idl
Source/WebCore/svg/SVGPathElement.idl
Source/WebCore/svg/SVGPathSegArcAbs.idl
Source/WebCore/svg/SVGPathSegArcRel.idl
Source/WebCore/svg/SVGPathSegCurvetoCubicAbs.idl
Source/WebCore/svg/SVGPathSegCurvetoCubicRel.idl
Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.idl
Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothRel.idl
Source/WebCore/svg/SVGPathSegCurvetoQuadraticAbs.idl
Source/WebCore/svg/SVGPathSegCurvetoQuadraticRel.idl
Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl
Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl
Source/WebCore/svg/SVGPathSegLinetoAbs.idl
Source/WebCore/svg/SVGPathSegLinetoHorizontalAbs.idl
Source/WebCore/svg/SVGPathSegLinetoHorizontalRel.idl
Source/WebCore/svg/SVGPathSegLinetoRel.idl
Source/WebCore/svg/SVGPathSegLinetoVerticalAbs.idl
Source/WebCore/svg/SVGPathSegLinetoVerticalRel.idl
Source/WebCore/svg/SVGPathSegMovetoAbs.idl
Source/WebCore/svg/SVGPathSegMovetoRel.idl
Source/WebCore/svg/SVGPoint.idl
Source/WebCore/svg/SVGRect.idl
Source/WebCore/svg/SVGSVGElement.idl
Source/WebCore/svg/SVGTextContentElement.idl
Source/WebCore/svg/SVGTransform.idl
Source/WebCore/svg/SVGZoomEvent.idl
Source/WebCore/testing/InternalSettings.idl
Source/WebCore/testing/Internals.idl
Source/WebCore/xml/XPathResult.idl