1. 11 Nov, 2013 1 commit
    • zandobersek@gmail.com's avatar
      Remove the OperationsNotDeletable attribute from most of the WebIDL interfaces · d5961560
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124151
      
      Reviewed by Geoffrey Garen.
      
      The OperationsNotDeletable attribute currently doesn't have any effect, but will soon enforce
      non-configurability of operations on the interface that uses the attribute. Non-configurability
      of operations is the default behavior at the moment, but will be changed to follow the WebIDL
      specification which requires that the operations are configurable (i.e. -- in JSC terms -- deletable).
      IE and Firefox already exhibit this behavior in the majority of cases, while Chrome and Opera don't.
      
      The attribute remains in use on the Location interface to mimic the Unforgeable attribute which
      also makes operations of an interface non-configurable. Unforgeable attribute will be used instead
      when support for it will be added to the JSC bindings generator.
      
      * Modules/battery/BatteryManager.idl:
      * Modules/encryptedmedia/MediaKeySession.idl:
      * Modules/encryptedmedia/MediaKeys.idl:
      * Modules/gamepad/GamepadList.idl:
      * Modules/geolocation/Geolocation.idl:
      * Modules/indexeddb/IDBCursor.idl:
      * Modules/indexeddb/IDBDatabase.idl:
      * Modules/indexeddb/IDBFactory.idl:
      * Modules/indexeddb/IDBIndex.idl:
      * Modules/indexeddb/IDBKeyRange.idl:
      * Modules/indexeddb/IDBObjectStore.idl:
      * Modules/indexeddb/IDBTransaction.idl:
      * Modules/indexeddb/IDBVersionChangeEvent.idl:
      * Modules/mediacontrols/MediaControlsHost.idl:
      * Modules/mediasource/MediaSource.idl:
      * Modules/mediasource/SourceBuffer.idl:
      * Modules/mediasource/SourceBufferList.idl:
      * Modules/mediastream/MediaStream.idl:
      * Modules/mediastream/MediaStreamTrack.idl:
      * Modules/mediastream/RTCDTMFSender.idl:
      * Modules/mediastream/RTCDataChannel.idl:
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCStatsReport.idl:
      * Modules/mediastream/RTCStatsResponse.idl:
      * Modules/networkinfo/NetworkInfoConnection.idl:
      * Modules/notifications/Notification.idl:
      * Modules/notifications/NotificationCenter.idl:
      * Modules/proximity/DeviceProximityEvent.idl:
      * Modules/quota/StorageInfo.idl:
      * Modules/quota/StorageQuota.idl:
      * Modules/speech/SpeechGrammarList.idl:
      * Modules/speech/SpeechRecognition.idl:
      * Modules/speech/SpeechRecognitionResult.idl:
      * Modules/speech/SpeechRecognitionResultList.idl:
      * Modules/speech/SpeechSynthesis.idl:
      * Modules/webaudio/AnalyserNode.idl:
      * Modules/webaudio/AudioBuffer.idl:
      * Modules/webaudio/AudioBufferSourceNode.idl:
      * Modules/webaudio/AudioContext.idl:
      * Modules/webaudio/AudioListener.idl:
      * Modules/webaudio/AudioNode.idl:
      * Modules/webaudio/AudioParam.idl:
      * Modules/webaudio/BiquadFilterNode.idl:
      * Modules/webaudio/OscillatorNode.idl:
      * Modules/webaudio/PannerNode.idl:
      * Modules/webdatabase/Database.idl:
      * Modules/webdatabase/DatabaseSync.idl:
      * Modules/webdatabase/SQLResultSetRowList.idl:
      * Modules/webdatabase/SQLTransaction.idl:
      * Modules/webdatabase/SQLTransactionSync.idl:
      * Modules/websockets/WebSocket.idl:
      * crypto/CryptoKey.idl:
      * crypto/SubtleCrypto.idl:
      * css/CSSHostRule.idl:
      * css/CSSMediaRule.idl:
      * css/CSSPrimitiveValue.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSSupportsRule.idl:
      * css/CSSValueList.idl:
      * css/DOMWindowCSS.idl:
      * css/FontLoader.idl:
      * css/MediaList.idl:
      * css/MediaQueryList.idl:
      * css/MediaQueryListListener.idl:
      * css/StyleMedia.idl:
      * css/StyleSheet.idl:
      * css/StyleSheetList.idl:
      * css/WebKitCSSFilterValue.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * css/WebKitCSSMatrix.idl:
      * css/WebKitCSSTransformValue.idl:
      * dom/CharacterData.idl:
      * dom/ChildNode.idl:
      * dom/ClientRectList.idl:
      * dom/Clipboard.idl:
      * dom/CompositionEvent.idl:
      * dom/CustomEvent.idl:
      * dom/DOMCoreException.idl:
      * dom/DOMImplementation.idl:
      * dom/DOMNamedFlowCollection.idl:
      * dom/DOMStringList.idl:
      * dom/DOMStringMap.idl:
      * dom/DataTransferItem.idl:
      * dom/DataTransferItemList.idl:
      * dom/DeviceMotionEvent.idl:
      * dom/DeviceOrientationEvent.idl:
      * dom/Document.idl:
      * dom/DocumentFragment.idl:
      * dom/DocumentType.idl:
      * dom/Element.idl:
      * dom/Event.idl:
      * dom/EventException.idl:
      * dom/EventListener.idl:
      * dom/EventTarget.idl:
      * dom/HashChangeEvent.idl:
      * dom/KeyboardEvent.idl:
      * dom/MessageEvent.idl:
      * dom/MessagePort.idl:
      * dom/MouseEvent.idl:
      * dom/MutationEvent.idl:
      * dom/MutationObserver.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeFilter.idl:
      * dom/NodeIterator.idl:
      * dom/NodeList.idl:
      * dom/Range.idl:
      * dom/RangeException.idl:
      * dom/ShadowRoot.idl:
      * dom/Text.idl:
      * dom/TextEvent.idl:
      * dom/TouchEvent.idl:
      * dom/TouchList.idl:
      * dom/TreeWalker.idl:
      * dom/UIEvent.idl:
      * dom/WebKitNamedFlow.idl:
      * dom/WheelEvent.idl:
      * fileapi/Blob.idl:
      * fileapi/FileException.idl:
      * fileapi/FileList.idl:
      * fileapi/FileReader.idl:
      * fileapi/FileReaderSync.idl:
      * html/DOMFormData.idl:
      * html/DOMSettableTokenList.idl:
      * html/DOMTokenList.idl:
      * html/DOMURL.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLAnchorElement.idl:
      * html/HTMLButtonElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLEmbedElement.idl:
      * html/HTMLFieldSetElement.idl:
      * html/HTMLFormControlsCollection.idl:
      * html/HTMLFormElement.idl:
      * html/HTMLFrameElement.idl:
      * html/HTMLIFrameElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLKeygenElement.idl:
      * html/HTMLMarqueeElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLObjectElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLOutputElement.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLTableElement.idl:
      * html/HTMLTableRowElement.idl:
      * html/HTMLTableSectionElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/HTMLVideoElement.idl:
      * html/MediaController.idl:
      * html/RadioNodeList.idl:
      * html/TimeRanges.idl:
      * html/canvas/CanvasGradient.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * html/canvas/DOMPath.idl:
      * html/canvas/EXTDrawBuffers.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLLoseContext.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * html/track/AudioTrackList.idl:
      * html/track/TextTrack.idl:
      * html/track/TextTrackCue.idl:
      * html/track/TextTrackCueList.idl:
      * html/track/TextTrackList.idl:
      * html/track/TextTrackRegionList.idl:
      * html/track/VideoTrackList.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/Console.idl:
      * page/Crypto.idl:
      * page/DOMSecurityPolicy.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/EventSource.idl:
      * page/History.idl:
      * page/Navigator.idl:
      * page/Performance.idl:
      * page/PerformanceEntryList.idl:
      * page/SpeechInputResultList.idl:
      * page/WindowBase64.idl:
      * page/WindowTimers.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPlugin.idl:
      * plugins/DOMPluginArray.idl:
      * storage/Storage.idl:
      * storage/StorageEvent.idl:
      * svg/SVGAngle.idl:
      * svg/SVGAnimationElement.idl:
      * svg/SVGColor.idl:
      * svg/SVGCursorElement.idl:
      * svg/SVGDocument.idl:
      * svg/SVGElement.idl:
      * svg/SVGElementInstanceList.idl:
      * svg/SVGException.idl:
      * svg/SVGFEDropShadowElement.idl:
      * svg/SVGFEGaussianBlurElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFilterElement.idl:
      * svg/SVGGraphicsElement.idl:
      * svg/SVGLength.idl:
      * svg/SVGLengthList.idl:
      * svg/SVGMarkerElement.idl:
      * svg/SVGMaskElement.idl:
      * svg/SVGMatrix.idl:
      * svg/SVGNumberList.idl:
      * svg/SVGPaint.idl:
      * svg/SVGPathElement.idl:
      * svg/SVGPathSegList.idl:
      * svg/SVGPatternElement.idl:
      * svg/SVGPoint.idl:
      * svg/SVGPointList.idl:
      * svg/SVGSVGElement.idl:
      * svg/SVGStringList.idl:
      * svg/SVGTests.idl:
      * svg/SVGTextContentElement.idl:
      * svg/SVGTransform.idl:
      * svg/SVGTransformList.idl:
      * workers/DedicatedWorkerGlobalScope.idl:
      * workers/Worker.idl:
      * workers/WorkerGlobalScope.idl:
      * workers/WorkerLocation.idl:
      * xml/DOMParser.idl:
      * xml/XMLHttpRequest.idl:
      * xml/XMLHttpRequestException.idl:
      * xml/XMLHttpRequestUpload.idl:
      * xml/XMLSerializer.idl:
      * xml/XPathEvaluator.idl:
      * xml/XPathException.idl:
      * xml/XPathExpression.idl:
      * xml/XPathNSResolver.idl:
      * xml/XPathResult.idl:
      * xml/XSLTProcessor.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5961560
  2. 06 Oct, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [WebIDL] Annotate IDL interfaces under Source/WebCore/page/ with the... · 71163cda
      zandobersek@gmail.com authored
      [WebIDL] Annotate IDL interfaces under Source/WebCore/page/ with the OperationsNotDeletable attribute
      https://bugs.webkit.org/show_bug.cgi?id=122278
      
      Before changing the JSC bindings generator to enforce WebIDL operations to be configurable, all the
      interfaces are being annotated with the OperationsNotDeletable attribute. The attribute currently
      doesn't have any effect, but will keep the operations not configurable after the generator is modified
      to preserve the original behavior. The attribute will be removed from each interface after checking
      conformity with other browsers (in terms of configurability of operations of that interface) and the
      WebKit's existing test suites.
      
      This patch covers IDL interfaces under Source/WebCore/page/.
      
      * page/Console.idl:
      * page/Crypto.idl:
      * page/DOMSecurityPolicy.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/EventSource.idl:
      * page/History.idl:
      * page/Location.idl:
      * page/Navigator.idl:
      * page/Performance.idl:
      * page/PerformanceEntryList.idl:
      * page/SpeechInputResultList.idl:
      * page/WindowBase64.idl:
      * page/WindowTimers.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71163cda
  3. 14 Sep, 2013 3 commits
    • weinig@apple.com's avatar
      There is no need for any custom bindings for Console · 1dc3b821
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121338
      
      Reviewed by Timothy Hatcher.
      
      * GNUmakefile.list.am:
      * Target.pri:
      * UseJSC.cmake:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSBindingsAllInOne.cpp:
      Remove JSConsoleCustom.cpp from project files.
      
      * bindings/js/JSConsoleCustom.cpp:
      Removed.
      
      * page/Console.cpp:
      (WebCore::Console::profile):
      (WebCore::Console::profileEnd):
      * page/Console.h:
      Swap the order of the arguments to appease the bindings generator.
      
      * page/Console.idl:
      Add the [CallWith=ScriptState] attribute to pass the ExecState
      and [TreatNullAs=NullString, TreatUndefinedAs=NullString] to get
      the right stringification.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1dc3b821
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r155738. · ef52a901
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/155738
      https://bugs.webkit.org/show_bug.cgi?id=121342
      
      Broke many tests (Requested by ap on #webkit).
      
      * GNUmakefile.list.am:
      * Target.pri:
      * UseJSC.cmake:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSBindingsAllInOne.cpp:
      * bindings/js/JSConsoleCustom.cpp: Added.
      (WebCore::JSConsole::profile):
      (WebCore::JSConsole::profileEnd):
      * bindings/js/ScriptState.h:
      * page/Console.cpp:
      (WebCore::Console::profile):
      (WebCore::Console::profileEnd):
      * page/Console.h:
      * page/Console.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef52a901
    • weinig@apple.com's avatar
      There is no need for any custom bindings for Console · 8fb97790
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121338
      
      Reviewed by Joseph Pecoraro.
      
      * GNUmakefile.list.am:
      * Target.pri:
      * UseJSC.cmake:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSBindingsAllInOne.cpp:
      Remove JSConsoleCustom.cpp from project files.
      
      * bindings/js/JSConsoleCustom.cpp:
      Removed.
      
      * page/Console.cpp:
      (WebCore::Console::profile):
      (WebCore::Console::profileEnd):
      * page/Console.h:
      Swap the order of the arguments to appease the bindings generator.
      
      * page/Console.idl:
      Add the [CallWith=ScriptState] attribute to pass the ExecState
      and [TreatNullAs=NullString, TreatUndefinedAs=NullString] to get
      the right stringification.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8fb97790
  4. 28 Jun, 2013 1 commit
  5. 20 Jun, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Web Inspector: Use console.timeStamp instead of console.markTimeline · 06bd1042
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=117810
      
      Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-06-20
      Reviewed by Joseph Pecoraro.
      
      Source/WebCore:
      
      Webkit supports both console.timeStamp and console.markTimeline.
      And they do the exact same thing.
      This patch gets rid of console.markTimeline for Chrome/Firebug compatibility.
      
      No new functionality, no new tests.
      
      * WebCore.order:
      * page/Console.cpp:
      * page/Console.h:
      * page/Console.idl:
      
      LayoutTests:
      
      Use 'console.timeStamp' instead of 'console.markTimeline' in LayoutTests.
      And remove inspector/timeline/timeline-mark-timeline.html.
      
      * inspector/console/console-messages-stack-traces-expected.txt:
      * inspector/console/console-messages-stack-traces.html:
      * inspector/timeline/timeline-mark-timeline-expected.txt: Removed.
      * inspector/timeline/timeline-mark-timeline.html: Removed.
      * inspector/timeline/timeline-timer-fired-from-eval-call-site.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      06bd1042
  6. 05 Jun, 2013 2 commits
    • ch.dumez@sisa.samsung.com's avatar
      Merge [NoInterfaceObject] and [OmitConstructor] extended attributes · f2da3a07
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115853
      
      Reviewed by Geoffrey Garen.
      
      Remove [OmitConstructor] extended attribute as it is overlapping with
      the standard [NoInterfaceObject] Web IDL extended attribute.
      
      Having [NoInterfaceObject] extended attribute on an interface now
      implies that its constructor is omitted (i.e. not generated).
      
      No new tests, no behavior change.
      
      * Modules/geolocation/Coordinates.idl:
      * Modules/geolocation/Geolocation.idl:
      * Modules/geolocation/Geoposition.idl:
      * Modules/notifications/Notification.idl:
      * Modules/notifications/NotificationCenter.idl:
      * Modules/quota/StorageInfo.idl:
      * Modules/quota/StorageQuota.idl:
      * Modules/webdatabase/Database.idl:
      * Modules/webdatabase/DatabaseSync.idl:
      * Modules/webdatabase/SQLError.idl:
      * Modules/webdatabase/SQLResultSet.idl:
      * Modules/webdatabase/SQLResultSetRowList.idl:
      * Modules/webdatabase/SQLTransaction.idl:
      * Modules/webdatabase/SQLTransactionSync.idl:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      (GenerateAttributesHashTable):
      (GenerateImplementation):
      * bindings/scripts/IDLAttributes.txt:
      * css/CSSUnknownRule.idl:
      * css/MediaQueryListListener.idl:
      * dom/EventListener.idl:
      * dom/EventTarget.idl:
      * html/MicroDataItemValue.idl:
      * html/ValidityState.idl:
      * html/canvas/EXTDrawBuffers.idl:
      * html/canvas/EXTTextureFilterAnisotropic.idl:
      * html/canvas/OESElementIndexUint.idl:
      * html/canvas/OESStandardDerivatives.idl:
      * html/canvas/OESTextureFloat.idl:
      * html/canvas/OESTextureHalfFloat.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/WebGLCompressedTextureATC.idl:
      * html/canvas/WebGLCompressedTexturePVRTC.idl:
      * html/canvas/WebGLCompressedTextureS3TC.idl:
      * html/canvas/WebGLContextAttributes.idl:
      * html/canvas/WebGLDebugRendererInfo.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLDepthTexture.idl:
      * html/canvas/WebGLLoseContext.idl:
      * inspector/JavaScriptCallFrame.idl:
      * inspector/ScriptProfile.idl:
      * inspector/ScriptProfileNode.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/AbstractView.idl:
      * page/Console.idl:
      * page/Crypto.idl:
      * page/PerformanceEntryList.idl:
      * page/WorkerNavigator.idl:
      * page/make_settings.pl:
      (generateInternalSettingsIdlFile):
      * svg/ElementTimeControl.idl:
      * svg/SVGAnimationElement.idl:
      * svg/SVGExternalResourcesRequired.idl:
      * svg/SVGFitToViewBox.idl:
      * svg/SVGLangSpace.idl:
      * svg/SVGLocatable.idl:
      * svg/SVGTests.idl:
      * svg/SVGTransformable.idl:
      * svg/SVGURIReference.idl:
      * testing/InternalSettings.idl:
      * testing/Internals.idl:
      * testing/MallocStatistics.idl:
      * testing/MemoryInfo.idl:
      * testing/TypeConversions.idl:
      * workers/DedicatedWorkerContext.idl:
      * workers/SharedWorkerContext.idl:
      * workers/WorkerContext.idl:
      * xml/XPathNSResolver.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151207 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2da3a07
    • zandobersek@gmail.com's avatar
      Move MemoryInfo under window.internals · 43a80137
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=117197
      
      Reviewed by Ryosuke Niwa.
      
      .: 
      
      * Source/autotools/symbols.filter: Export the required symbol.
      
      PerformanceTests: 
      
      * resources/runner.js: Remove the setMemoryEnabled call, it's not required anymore as the memory
      info is now accessed through window.internals and doesn't need the setting to be enabled to work.
      
      Source/WebCore: 
      
      The MemoryInfo interface is not a subject of any specification and should not be exposed
      to the Web. It's still used by the performance tests so it is moved under the testing
      internals, accessible through window.internals.memoryInfo.
      
      The jsHeapSizeLimit attribute is removed from the MemoryInfo interface as that value was
      only usable when using the V8 bindings which are not supported anymore. A small fast/harness
      test is also provided to check that the MemoryInfo object is accessible through window.internals.
      
      Test: fast/harness/memoryinfo-object.html
      
      * CMakeLists.txt:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * Target.pri:
      * UseJSC.cmake:
      * WebCore.exp.in:
      * WebCore.order:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.vcxproj/WebCoreTestSupport.vcxproj:
      * WebCore.vcxproj/WebCoreTestSupport.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/gobject/GNUmakefile.am: Remove the GObject bindings targets for MemoryInfo.
      * bindings/js/JSBindingsAllInOne.cpp: Remove the JSMemoryInfo.h and MemoryInfo.h inclusion.
      * bindings/js/JSMemoryInfoCustom.cpp: Removed.
      * bindings/js/ScriptGCEvent.cpp: Remove the ENABLE(INSPECTOR) guards.
      (WebCore::ScriptGCEvent::getHeapSize): Remove the jsHeapSizeLimit assignment.
      * bindings/js/ScriptGCEvent.h: Remove the ENABLE(INSPECTOR) guards.
      (WebCore::HeapInfo::HeapInfo): Remove the jsHeapSizeLimit member.
      * page/Console.cpp: Remove the Console::memory method.
      * page/Console.h: Ditto.
      * page/Console.idl: Remove the window.console.memory attribute.
      * page/MemoryInfo.cpp: Removed.
      * page/Performance.cpp: Remove the Performance::memory method.
      * page/Performance.h: Ditto.
      * page/Performance.idl: Remove the window.performance.memory attribute.
      * testing/Internals.cpp:
      (WebCore::Internals::memoryInfo): Return a MemoryInfo object upon invoking.
      * testing/Internals.h: Declare the Internals::memoryInfo method.
      * testing/Internals.idl: Expose the window.internals.memoryInfo operation.
      * testing/MemoryInfo.h: Renamed from Source/WebCore/page/MemoryInfo.h.
      (WebCore::MemoryInfo::create): Return a new RefPtr-wrapped MemoryInfo object.
      (WebCore::MemoryInfo::usedJSHeapSize): Return the value of the equally-named HeapInfo member.
      (WebCore::MemoryInfo::totalJSHeapSize): Ditto.
      (WebCore::MemoryInfo::MemoryInfo): Acquire the current heap info upon construction.
      * testing/MemoryInfo.idl: Renamed from Source/WebCore/page/MemoryInfo.idl.
      The jsHeapSizeLimit attribute is removed.
      
      Tools: 
      
      * GNUmakefile.am: Add the testing/MemoryInfo.(h|idl) files and the generated targets to
      the Automake build
      * Scripts/webkitperl/filter-build-webkit_unittest/shouldIgnoreLine_unittests.pl: List the
      testing/MemoryInfo.idl file instead of page/MemoryInfo.idl.
      
      LayoutTests: 
      
      Remove window.performance.memory property listings from the baselines, the object was moved
      under window.internals. The latter is tested throug the new fast/harness test.
      
      * fast/dom/Window/window-properties-performance-expected.txt:
      * fast/harness/memoryinfo-object-expected.txt: Added.
      * fast/harness/memoryinfo-object.html: Added.
      * platform/efl/fast/dom/Window/window-properties-performance-expected.txt:
      * platform/gtk/fast/dom/Window/window-properties-performance-expected.txt:
      * platform/qt/fast/dom/Window/window-properties-performance-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43a80137
  7. 09 May, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      Add support for [NoInterfaceObject] Web IDL extended attribute · 077c4e77
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115714
      
      Reviewed by Kentaro Hara.
      
      .:
      
      Update GENERATE_BINDINGS macro to take an additional _window_constructors_file
      optional argument.
      
      * Source/cmake/WebKitMacros.cmake:
      
      Source/WebCore:
      
      *Constructor attributes on the global DOMWindow object are now automatically
      generated for each non-callback interface that is not declared with the
      [NoInterfaceObject] extended attribute. It is thus no longer needed for
      developers to manually add *Constructor attributes for their new interfaces
      unless they wish to register an "extra" constructor for their interface.
      
      This patch does not modify at all the behavior on JS side. To achieve this,
      [NoInterfaceObject] extended attribute is added to interfaces that should
      not have it according to specification (e.g. History, Location, ...).
      This can be improved later as the behavior should not change with this
      patch.
      
      No new tests, no behavior change.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Modules/battery/BatteryManager.idl:
      * Modules/encryptedmedia/MediaKeyMessageEvent.idl:
      * Modules/encryptedmedia/MediaKeyNeededEvent.idl:
      * Modules/encryptedmedia/MediaKeySession.idl:
      * Modules/encryptedmedia/MediaKeys.idl:
      * Modules/filesystem/DOMFileSystem.idl:
      * Modules/filesystem/DOMFileSystemSync.idl:
      * Modules/filesystem/DirectoryEntry.idl:
      * Modules/filesystem/DirectoryEntrySync.idl:
      * Modules/filesystem/DirectoryReader.idl:
      * Modules/filesystem/DirectoryReaderSync.idl:
      * Modules/filesystem/Entry.idl:
      * Modules/filesystem/EntryArray.idl:
      * Modules/filesystem/EntryArraySync.idl:
      * Modules/filesystem/EntrySync.idl:
      * Modules/filesystem/FileEntry.idl:
      * Modules/filesystem/FileEntrySync.idl:
      * Modules/filesystem/FileWriter.idl:
      * Modules/filesystem/FileWriterSync.idl:
      * Modules/filesystem/Metadata.idl:
      * Modules/gamepad/Gamepad.idl:
      * Modules/gamepad/GamepadList.idl:
      * Modules/geolocation/Coordinates.idl:
      * Modules/geolocation/Geolocation.idl:
      * Modules/geolocation/Geoposition.idl:
      * Modules/geolocation/PositionError.idl:
      * Modules/indexeddb/DOMWindowIndexedDatabase.idl:
      * Modules/indexeddb/IDBAny.idl:
      * Modules/mediasource/MediaSource.idl:
      * Modules/mediasource/SourceBuffer.idl:
      * Modules/mediasource/SourceBufferList.idl:
      * Modules/mediastream/DOMWindowMediaStream.idl: Removed.
      * Modules/mediastream/MediaStream.idl:
      * Modules/mediastream/MediaStreamTrack.idl:
      * Modules/mediastream/MediaStreamTrackEvent.idl:
      * Modules/mediastream/NavigatorUserMediaError.idl:
      * Modules/mediastream/RTCDTMFSender.idl:
      * Modules/mediastream/RTCDTMFToneChangeEvent.idl:
      * Modules/mediastream/RTCDataChannel.idl:
      * Modules/mediastream/RTCDataChannelEvent.idl:
      * Modules/mediastream/RTCIceCandidateEvent.idl:
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCStatsReport.idl:
      * Modules/mediastream/RTCStatsResponse.idl:
      * Modules/networkinfo/NetworkInfoConnection.idl:
      * Modules/notifications/DOMWindowNotifications.idl:
      * Modules/notifications/NotificationCenter.idl:
      * Modules/quota/StorageInfo.idl:
      * Modules/quota/StorageQuota.idl:
      * Modules/speech/DOMWindowSpeech.idl: Removed.
      * Modules/speech/DOMWindowSpeechSynthesis.idl:
      * Modules/speech/SpeechGrammar.idl:
      * Modules/speech/SpeechGrammarList.idl:
      * Modules/speech/SpeechRecognition.idl:
      * Modules/speech/SpeechRecognitionAlternative.idl:
      * Modules/speech/SpeechRecognitionError.idl:
      * Modules/speech/SpeechRecognitionEvent.idl:
      * Modules/speech/SpeechRecognitionResult.idl:
      * Modules/speech/SpeechRecognitionResultList.idl:
      * Modules/speech/SpeechSynthesis.idl:
      * Modules/speech/SpeechSynthesisVoice.idl:
      * Modules/webaudio/AnalyserNode.idl:
      * Modules/webaudio/AudioBuffer.idl:
      * Modules/webaudio/AudioBufferSourceNode.idl:
      * Modules/webaudio/AudioContext.idl:
      * Modules/webaudio/AudioDestinationNode.idl:
      * Modules/webaudio/AudioListener.idl:
      * Modules/webaudio/AudioNode.idl:
      * Modules/webaudio/AudioParam.idl:
      * Modules/webaudio/AudioSourceNode.idl:
      * Modules/webaudio/BiquadFilterNode.idl:
      * Modules/webaudio/ChannelMergerNode.idl:
      * Modules/webaudio/ChannelSplitterNode.idl:
      * Modules/webaudio/ConvolverNode.idl:
      * Modules/webaudio/DOMWindowWebAudio.idl: Removed.
      * Modules/webaudio/DelayNode.idl:
      * Modules/webaudio/DynamicsCompressorNode.idl:
      * Modules/webaudio/GainNode.idl:
      * Modules/webaudio/MediaElementAudioSourceNode.idl:
      * Modules/webaudio/MediaStreamAudioDestinationNode.idl:
      * Modules/webaudio/MediaStreamAudioSourceNode.idl:
      * Modules/webaudio/OfflineAudioContext.idl:
      * Modules/webaudio/OscillatorNode.idl:
      * Modules/webaudio/PannerNode.idl:
      * Modules/webaudio/ScriptProcessorNode.idl:
      * Modules/webaudio/WaveShaperNode.idl:
      * Modules/webaudio/WaveTable.idl:
      * Modules/webdatabase/DOMWindowWebDatabase.idl:
      * Modules/webdatabase/Database.idl:
      * Modules/webdatabase/DatabaseSync.idl:
      * Modules/webdatabase/SQLError.idl:
      * Modules/webdatabase/SQLResultSet.idl:
      * Modules/webdatabase/SQLResultSetRowList.idl:
      * Modules/webdatabase/SQLTransaction.idl:
      * Modules/webdatabase/SQLTransactionSync.idl:
      * Modules/websockets/DOMWindowWebSocket.idl: Removed.
      * Modules/websockets/WebSocket.idl:
      * PlatformBlackBerry.cmake:
      * UseJSC.cmake:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/scripts/IDLAttributes.txt:
      * bindings/scripts/IDLParser.pm:
      (parseTypedef):
      * bindings/scripts/preprocess-idls.pl:
      (GenerateConstructorAttribute):
      (getFileContents):
      (getPartialInterfaceNameFromIDL):
      (isCallbackInterfaceFromIDL):
      (trim):
      (getInterfaceExtendedAttributesFromIDL):
      * css/CSSFontFaceLoadEvent.idl:
      * css/CSSFontFaceRule.idl:
      * css/CSSSupportsRule.idl:
      * css/CSSUnknownRule.idl:
      * css/DOMWindowCSS.idl:
      * css/FontLoader.idl:
      * css/MediaQueryList.idl:
      * css/MediaQueryListListener.idl:
      * css/StyleMedia.idl:
      * dom/CustomElementConstructor.idl:
      * dom/DOMError.idl:
      * dom/DOMNamedFlowCollection.idl:
      * dom/DataTransferItem.idl:
      * dom/DataTransferItemList.idl:
      * dom/EventListener.idl:
      * dom/EventTarget.idl:
      * dom/NodeIterator.idl:
      * dom/ShadowRoot.idl:
      * dom/TreeWalker.idl:
      * dom/WebKitNamedFlow.idl:
      * fileapi/FileException.idl:
      * fileapi/FileReaderSync.idl:
      * html/HTMLAudioElement.idl:
      * html/HTMLDetailsElement.idl:
      * html/HTMLOptionElement.idl:
      * html/MediaError.idl:
      * html/MediaKeyError.idl:
      * html/MicroDataItemValue.idl:
      * html/RadioNodeList.idl:
      * html/ValidityState.idl:
      * html/canvas/CanvasRenderingContext.idl:
      * html/canvas/DOMPath.idl:
      * html/canvas/EXTDrawBuffers.idl:
      * html/canvas/EXTTextureFilterAnisotropic.idl:
      * html/canvas/OESElementIndexUint.idl:
      * html/canvas/OESStandardDerivatives.idl:
      * html/canvas/OESTextureFloat.idl:
      * html/canvas/OESTextureHalfFloat.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/WebGLCompressedTextureATC.idl:
      * html/canvas/WebGLCompressedTexturePVRTC.idl:
      * html/canvas/WebGLCompressedTextureS3TC.idl:
      * html/canvas/WebGLContextAttributes.idl:
      * html/canvas/WebGLDebugRendererInfo.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLDepthTexture.idl:
      * html/canvas/WebGLLoseContext.idl:
      * html/canvas/WebGLVertexArrayObjectOES.idl:
      * html/track/AudioTrack.idl:
      * html/track/AudioTrackList.idl:
      * html/track/TextTrackRegionList.idl:
      * html/track/VideoTrack.idl:
      * html/track/VideoTrackList.idl:
      * inspector/InjectedScriptHost.idl:
      * inspector/InspectorFrontendHost.idl:
      * inspector/JavaScriptCallFrame.idl:
      * inspector/ScriptProfile.idl:
      * inspector/ScriptProfileNode.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/AbstractView.idl:
      * page/BarInfo.idl:
      * page/Console.idl:
      * page/Crypto.idl:
      * page/DOMSecurityPolicy.idl:
      * page/DOMWindow.idl:
      * page/History.idl:
      * page/Location.idl:
      * page/MemoryInfo.idl:
      * page/Navigator.idl:
      * page/PagePopupController.idl:
      * page/Performance.idl:
      * page/PerformanceEntry.idl:
      * page/PerformanceEntryList.idl:
      * page/PerformanceMark.idl:
      * page/PerformanceMeasure.idl:
      * page/PerformanceNavigation.idl:
      * page/PerformanceResourceTiming.idl:
      * page/PerformanceTiming.idl:
      * page/Screen.idl:
      * page/SpeechInputResult.idl:
      * page/SpeechInputResultList.idl:
      * page/WorkerNavigator.idl:
      * page/make_settings.pl:
      (generateInternalSettingsIdlFile):
      * svg/ElementTimeControl.idl:
      * svg/SVGAnimationElement.idl:
      * svg/SVGExternalResourcesRequired.idl:
      * svg/SVGFilterPrimitiveStandardAttributes.idl:
      * svg/SVGFitToViewBox.idl:
      * svg/SVGLangSpace.idl:
      * svg/SVGLocatable.idl:
      * svg/SVGStyledElement.idl:
      * svg/SVGTests.idl:
      * svg/SVGTransformable.idl:
      * svg/SVGURIReference.idl:
      * testing/InternalSettings.idl:
      * testing/Internals.idl:
      * testing/MallocStatistics.idl:
      * testing/TypeConversions.idl:
      * workers/AbstractWorker.idl:
      * workers/DedicatedWorkerContext.idl:
      * workers/SharedWorker.idl:
      * workers/SharedWorkerContext.idl:
      * workers/WorkerContext.idl:
      * workers/WorkerLocation.idl:
      * xml/XPathExpression.idl:
      * xml/XPathNSResolver.idl:
      
      Tools:
      
      Update BindingsTests.generate_supplemental_dependency() to pass an
      additional windowConstructorsFile argument to preprocess-idls.pl.
      
      * Scripts/webkitpy/bindings/main.py:
      (BindingsTests.generate_supplemental_dependency):
      (BindingsTests.main):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      077c4e77
  8. 30 Apr, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      Stop using "in" keyword in IDL files · b2986f1d
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115418
      
      Reviewed by Kentaro Hara.
      
      Source/WebCore:
      
      Stop using "in" keyword in IDL files as this is no longer part of the
      Web IDL specification and it brings no additional information.
      
      For now, the IDL parser will still accept the "in" keyword for operation
      argument to not break anything. However, we should remove support for it
      later on.
      
      No new tests, no behavior change.
      
      * Modules/battery/BatteryManager.idl:
      * Modules/encryptedmedia/MediaKeySession.idl:
      * Modules/encryptedmedia/MediaKeys.idl:
      * Modules/filesystem/DOMWindowFileSystem.idl:
      * Modules/filesystem/DirectoryEntry.idl:
      * Modules/filesystem/DirectoryEntrySync.idl:
      * Modules/filesystem/DirectoryReader.idl:
      * Modules/filesystem/EntriesCallback.idl:
      * Modules/filesystem/Entry.idl:
      * Modules/filesystem/EntryArray.idl:
      * Modules/filesystem/EntryArraySync.idl:
      * Modules/filesystem/EntryCallback.idl:
      * Modules/filesystem/EntrySync.idl:
      * Modules/filesystem/ErrorCallback.idl:
      * Modules/filesystem/FileCallback.idl:
      * Modules/filesystem/FileEntry.idl:
      * Modules/filesystem/FileSystemCallback.idl:
      * Modules/filesystem/FileWriter.idl:
      * Modules/filesystem/FileWriterCallback.idl:
      * Modules/filesystem/FileWriterSync.idl:
      * Modules/filesystem/MetadataCallback.idl:
      * Modules/filesystem/WorkerContextFileSystem.idl:
      * Modules/gamepad/GamepadList.idl:
      * Modules/geolocation/Geolocation.idl:
      * Modules/geolocation/PositionCallback.idl:
      * Modules/geolocation/PositionErrorCallback.idl:
      * Modules/indexeddb/IDBCursor.idl:
      * Modules/indexeddb/IDBDatabase.idl:
      * Modules/indexeddb/IDBFactory.idl:
      * Modules/indexeddb/IDBIndex.idl:
      * Modules/indexeddb/IDBKeyRange.idl:
      * Modules/indexeddb/IDBObjectStore.idl:
      * Modules/indexeddb/IDBRequest.idl:
      * Modules/indexeddb/IDBTransaction.idl:
      * Modules/mediasource/MediaSource.idl:
      * Modules/mediasource/SourceBuffer.idl:
      * Modules/mediasource/SourceBufferList.idl:
      * Modules/mediastream/MediaStream.idl:
      * Modules/mediastream/MediaStreamTrack.idl:
      * Modules/mediastream/NavigatorMediaStream.idl:
      * Modules/mediastream/NavigatorUserMediaErrorCallback.idl:
      * Modules/mediastream/NavigatorUserMediaSuccessCallback.idl:
      * Modules/mediastream/RTCDTMFSender.idl:
      * Modules/mediastream/RTCDataChannel.idl:
      * Modules/mediastream/RTCErrorCallback.idl:
      * Modules/mediastream/RTCIceCandidate.idl:
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCSessionDescription.idl:
      * Modules/mediastream/RTCSessionDescriptionCallback.idl:
      * Modules/mediastream/RTCStatsCallback.idl:
      * Modules/mediastream/RTCStatsReport.idl:
      * Modules/mediastream/RTCStatsResponse.idl:
      * Modules/navigatorcontentutils/NavigatorContentUtils.idl:
      * Modules/networkinfo/NetworkInfoConnection.idl:
      * Modules/notifications/Notification.idl:
      * Modules/notifications/NotificationCenter.idl:
      * Modules/notifications/NotificationPermissionCallback.idl:
      * Modules/quota/StorageErrorCallback.idl:
      * Modules/quota/StorageInfo.idl:
      * Modules/quota/StorageQuota.idl:
      * Modules/quota/StorageQuotaCallback.idl:
      * Modules/quota/StorageUsageCallback.idl:
      * Modules/speech/SpeechGrammarList.idl:
      * Modules/speech/SpeechRecognition.idl:
      * Modules/speech/SpeechRecognitionResult.idl:
      * Modules/speech/SpeechRecognitionResultList.idl:
      * Modules/speech/SpeechSynthesisUtterance.idl:
      * Modules/vibration/NavigatorVibration.idl:
      * Modules/webaudio/AnalyserNode.idl:
      * Modules/webaudio/AudioBuffer.idl:
      * Modules/webaudio/AudioBufferCallback.idl:
      * Modules/webaudio/AudioBufferSourceNode.idl:
      * Modules/webaudio/AudioContext.idl:
      * Modules/webaudio/AudioListener.idl:
      * Modules/webaudio/AudioNode.idl:
      * Modules/webaudio/AudioParam.idl:
      * Modules/webaudio/BiquadFilterNode.idl:
      * Modules/webaudio/OfflineAudioContext.idl:
      * Modules/webaudio/OscillatorNode.idl:
      * Modules/webaudio/PannerNode.idl:
      * Modules/webdatabase/DOMWindowWebDatabase.idl:
      * Modules/webdatabase/Database.idl:
      * Modules/webdatabase/DatabaseCallback.idl:
      * Modules/webdatabase/DatabaseSync.idl:
      * Modules/webdatabase/SQLResultSetRowList.idl:
      * Modules/webdatabase/SQLStatementCallback.idl:
      * Modules/webdatabase/SQLStatementErrorCallback.idl:
      * Modules/webdatabase/SQLTransaction.idl:
      * Modules/webdatabase/SQLTransactionCallback.idl:
      * Modules/webdatabase/SQLTransactionErrorCallback.idl:
      * Modules/webdatabase/SQLTransactionSync.idl:
      * Modules/webdatabase/SQLTransactionSyncCallback.idl:
      * Modules/webdatabase/WorkerContextWebDatabase.idl:
      * Modules/websockets/WebSocket.idl:
      * bindings/scripts/test/TestCallback.idl:
      * bindings/scripts/test/TestCustomNamedGetter.idl:
      * bindings/scripts/test/TestDomainSecurity.idl:
      * bindings/scripts/test/TestEventTarget.idl:
      * bindings/scripts/test/TestInterface.idl:
      * bindings/scripts/test/TestMediaQueryListListener.idl:
      * bindings/scripts/test/TestNamedConstructor.idl:
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/TestOverloadedConstructors.idl:
      * bindings/scripts/test/TestSerializedScriptValueInterface.idl:
      * bindings/scripts/test/TestSupplemental.idl:
      * bindings/scripts/test/TestTypedArray.idl:
      * bindings/scripts/test/TestTypedefs.idl:
      * css/CSSHostRule.idl:
      * css/CSSMediaRule.idl:
      * css/CSSPrimitiveValue.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSSupportsRule.idl:
      * css/CSSValueList.idl:
      * css/FontLoader.idl:
      * css/MediaList.idl:
      * css/MediaQueryList.idl:
      * css/MediaQueryListListener.idl:
      * css/StyleMedia.idl:
      * css/StyleSheetList.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * css/WebKitCSSMatrix.idl:
      * dom/CharacterData.idl:
      * dom/ClientRectList.idl:
      * dom/Clipboard.idl:
      * dom/CompositionEvent.idl:
      * dom/CustomEvent.idl:
      * dom/DOMImplementation.idl:
      * dom/DOMNamedFlowCollection.idl:
      * dom/DOMStringList.idl:
      * dom/DataTransferItem.idl:
      * dom/DataTransferItemList.idl:
      * dom/DeviceMotionEvent.idl:
      * dom/DeviceOrientationEvent.idl:
      * dom/Document.idl:
      * dom/DocumentFragment.idl:
      * dom/Element.idl:
      * dom/Event.idl:
      * dom/EventListener.idl:
      * dom/EventTarget.idl:
      * dom/HashChangeEvent.idl:
      * dom/KeyboardEvent.idl:
      * dom/MessageEvent.idl:
      * dom/MessagePort.idl:
      * dom/MouseEvent.idl:
      * dom/MutationEvent.idl:
      * dom/MutationObserver.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeFilter.idl:
      * dom/NodeList.idl:
      * dom/OverflowEvent.idl:
      * dom/PropertyNodeList.idl:
      * dom/Range.idl:
      * dom/RequestAnimationFrameCallback.idl:
      * dom/ShadowRoot.idl:
      * dom/StringCallback.idl:
      * dom/Text.idl:
      * dom/TextEvent.idl:
      * dom/TouchEvent.idl:
      * dom/TouchList.idl:
      * dom/UIEvent.idl:
      * dom/WebKitNamedFlow.idl:
      * dom/WheelEvent.idl:
      * fileapi/Blob.idl:
      * fileapi/FileList.idl:
      * fileapi/FileReader.idl:
      * fileapi/FileReaderSync.idl:
      * html/DOMFormData.idl:
      * html/DOMTokenList.idl:
      * html/DOMURL.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLAudioElement.idl:
      * html/HTMLButtonElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLFieldSetElement.idl:
      * html/HTMLFormControlsCollection.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLKeygenElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLObjectElement.idl:
      * html/HTMLOptionElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLOutputElement.idl:
      * html/HTMLPropertiesCollection.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLTableElement.idl:
      * html/HTMLTableRowElement.idl:
      * html/HTMLTableSectionElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/MediaController.idl:
      * html/TimeRanges.idl:
      * html/canvas/ArrayBuffer.idl:
      * html/canvas/CanvasGradient.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * html/canvas/DOMPath.idl:
      * html/canvas/DataView.idl:
      * html/canvas/EXTDrawBuffers.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * html/track/AudioTrackList.idl:
      * html/track/TextTrack.idl:
      * html/track/TextTrackCue.idl:
      * html/track/TextTrackCueList.idl:
      * html/track/TextTrackList.idl:
      * html/track/TextTrackRegionList.idl:
      * html/track/VideoTrackList.idl:
      * inspector/InjectedScriptHost.idl:
      * inspector/InspectorFrontendHost.idl:
      * inspector/JavaScriptCallFrame.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/Console.idl:
      * page/Crypto.idl:
      * page/DOMSecurityPolicy.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/EventSource.idl:
      * page/History.idl:
      * page/Location.idl:
      * page/PagePopupController.idl:
      * page/Performance.idl:
      * page/PerformanceEntryList.idl:
      * page/SpeechInputResultList.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPlugin.idl:
      * plugins/DOMPluginArray.idl:
      * storage/Storage.idl:
      * storage/StorageEvent.idl:
      * svg/ElementTimeControl.idl:
      * svg/SVGAngle.idl:
      * svg/SVGColor.idl:
      * svg/SVGDocument.idl:
      * svg/SVGElementInstanceList.idl:
      * svg/SVGFEDropShadowElement.idl:
      * svg/SVGFEGaussianBlurElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFilterElement.idl:
      * svg/SVGLength.idl:
      * svg/SVGLengthList.idl:
      * svg/SVGLocatable.idl:
      * svg/SVGMarkerElement.idl:
      * svg/SVGMatrix.idl:
      * svg/SVGNumberList.idl:
      * svg/SVGPaint.idl:
      * svg/SVGPathElement.idl:
      * svg/SVGPathSegList.idl:
      * svg/SVGPoint.idl:
      * svg/SVGPointList.idl:
      * svg/SVGSVGElement.idl:
      * svg/SVGStringList.idl:
      * svg/SVGStyledElement.idl:
      * svg/SVGTests.idl:
      * svg/SVGTextContentElement.idl:
      * svg/SVGTransform.idl:
      * svg/SVGTransformList.idl:
      * testing/InternalSettings.idl:
      * testing/Internals.idl:
      * workers/AbstractWorker.idl:
      * workers/DedicatedWorkerContext.idl:
      * workers/SharedWorker.idl:
      * workers/Worker.idl:
      * workers/WorkerContext.idl:
      * xml/DOMParser.idl:
      * xml/XMLHttpRequest.idl:
      * xml/XMLHttpRequestUpload.idl:
      * xml/XMLSerializer.idl:
      * xml/XPathEvaluator.idl:
      * xml/XPathExpression.idl:
      * xml/XPathNSResolver.idl:
      * xml/XPathResult.idl:
      * xml/XSLTProcessor.idl:
      
      Source/WebKit/win:
      
      Remove "in" keyword from IDL files as this is no longer part of the Web
      IDL specification.
      
      * Interfaces/DOMEvents.idl:
      * Interfaces/DOMPrivate.idl:
      * Interfaces/DOMWindow.idl:
      
      Tools:
      
      Remove "in" keyword from IDL files as this is no longer part of the Web
      IDL specification.
      
      * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityTextMarker.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityTextMarkerRange.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2986f1d
  9. 17 Apr, 2013 1 commit
    • mjs@apple.com's avatar
      Replace JSC-specific IDL extended attributes with generic (JSC+V8) ones, now... · bfd58303
      mjs@apple.com authored
      Replace JSC-specific IDL extended attributes with generic (JSC+V8) ones, now that the distinction no longer matters
      https://bugs.webkit.org/show_bug.cgi?id=114712
      
      Reviewed by Dan Bernstein.
      
      No behavior change expected.
      
      * bindings/scripts/IDLAttributes.txt: Remove the JSFoo attributes
      that have bare Foo equivalents.
      * bindings/scripts/CodeGeneratorJS.pm: Remove support for JSFoo
      aliases.
      (GetGenerateIsReachable):
      (GetCustomIsReachable):
      (ShouldGenerateToJSDeclaration):
      (ShouldGenerateToJSImplementation):
      (HasCustomConstructor):
      (HasCustomGetter):
      (HasCustomSetter):
      (HasCustomMethod):
      
      Replace JSFoo attributes with equivalen Foo attributs in all files
      below:
              
      * Modules/geolocation/Geolocation.idl:
      * Modules/indexeddb/IDBDatabase.idl:
      * Modules/indexeddb/IDBObjectStore.idl:
      * Modules/webaudio/DOMWindowWebAudio.idl:
      * Modules/websockets/DOMWindowWebSocket.idl:
      * Modules/websockets/WorkerContextWebSocket.idl:
      * css/CSSRule.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSValue.idl:
      * css/MediaList.idl:
      * css/StyleMedia.idl:
      * css/StyleSheet.idl:
      * dom/MessagePort.idl:
      * dom/MutationObserver.idl:
      * dom/Node.idl:
      * fileapi/Blob.idl:
      * html/HTMLDocument.idl:
      * html/HTMLTemplateElement.idl:
      * html/canvas/ArrayBuffer.idl:
      * html/canvas/CanvasRenderingContext.idl:
      * html/canvas/DataView.idl:
      * html/canvas/EXTDrawBuffers.idl:
      * html/canvas/EXTTextureFilterAnisotropic.idl:
      * html/canvas/OESElementIndexUint.idl:
      * html/canvas/OESStandardDerivatives.idl:
      * html/canvas/OESTextureFloat.idl:
      * html/canvas/OESTextureHalfFloat.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/WebGLCompressedTextureATC.idl:
      * html/canvas/WebGLCompressedTexturePVRTC.idl:
      * html/canvas/WebGLCompressedTextureS3TC.idl:
      * html/canvas/WebGLDebugRendererInfo.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLDepthTexture.idl:
      * html/canvas/WebGLLoseContext.idl:
      * html/track/TextTrack.idl:
      * html/track/TextTrackCue.idl:
      * html/track/TextTrackList.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/BarInfo.idl:
      * page/Console.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/History.idl:
      * page/Location.idl:
      * page/MemoryInfo.idl:
      * page/Navigator.idl:
      * page/Screen.idl:
      * page/WorkerNavigator.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPluginArray.idl:
      * storage/Storage.idl:
      * workers/AbstractWorker.idl:
      * workers/SharedWorker.idl:
      * workers/Worker.idl:
      * workers/WorkerContext.idl:
      * workers/WorkerLocation.idl:
      * xml/XMLHttpRequestUpload.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bfd58303
  10. 10 Apr, 2013 1 commit
  11. 06 Apr, 2013 1 commit
    • weinig@apple.com's avatar
      Removed v8 bindings hooks from IDL files · 007c2427
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114091
      
      Patch by Geoffrey Garen <ggaren@apple.com> on 2013-04-06
      Reviewed by Anders Carlsson and Sam Weinig.
      
      Source/JavaScriptCore: 
      
      * heap/HeapStatistics.h:
      
      Source/WebCore: 
      
      * Modules/encryptedmedia/MediaKeySession.idl:
      * Modules/filesystem/DOMWindowFileSystem.idl:
      * Modules/filesystem/WorkerContextFileSystem.idl:
      * Modules/gamepad/NavigatorGamepad.idl:
      * Modules/geolocation/NavigatorGeolocation.idl:
      * Modules/indexeddb/DOMWindowIndexedDatabase.idl:
      * Modules/indexeddb/WorkerContextIndexedDatabase.idl:
      * Modules/mediastream/DOMWindowMediaStream.idl:
      * Modules/mediastream/NavigatorMediaStream.idl:
      * Modules/notifications/DOMWindowNotifications.idl:
      * Modules/notifications/NotificationCenter.idl:
      * Modules/notifications/WorkerContextNotifications.idl:
      * Modules/quota/DOMWindowQuota.idl:
      * Modules/speech/DOMWindowSpeech.idl:
      * Modules/webaudio/AudioBufferSourceNode.idl:
      * Modules/webaudio/AudioContext.idl:
      * Modules/webaudio/AudioParam.idl:
      * Modules/webaudio/DOMWindowWebAudio.idl:
      * Modules/webdatabase/DOMWindowWebDatabase.idl:
      * Modules/webdatabase/WorkerContextWebDatabase.idl:
      * Modules/websockets/DOMWindowWebSocket.idl:
      * Modules/websockets/WorkerContextWebSocket.idl:
      * bindings/js/JSDOMBinding.cpp:
      * bindings/js/ScriptController.h:
      (ScriptController):
      * bindings/scripts/test/TestNode.idl:
      * bindings/scripts/test/TestObj.idl:
      * css/CSSFontFaceLoadEvent.idl:
      * css/CSSHostRule.idl:
      * css/CSSRule.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSValue.idl:
      * css/FontLoader.idl:
      * css/StyleSheet.idl:
      * css/WebKitCSSRegionRule.idl:
      * dom/Clipboard.idl:
      * dom/CustomElementConstructor.idl:
      * dom/CustomEvent.idl:
      * dom/DOMNamedFlowCollection.idl:
      * dom/DOMStringMap.idl:
      * dom/DataTransferItemList.idl:
      * dom/Document.idl:
      * dom/DocumentFragment.idl:
      * dom/Element.idl:
      * dom/Event.idl:
      * dom/EventTarget.idl:
      * dom/MessageChannel.idl:
      * dom/MouseEvent.idl:
      * dom/MutationRecord.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeList.idl:
      * dom/RequestAnimationFrameCallback.idl:
      * dom/ShadowRoot.idl:
      * dom/Text.idl:
      * history/HistoryItem.cpp:
      (WebCore::HistoryItem::encodeBackForwardTreeNode):
      (WebCore::HistoryItem::decodeBackForwardTree):
      * html/DOMSettableTokenList.idl:
      * html/DOMTokenList.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLAppletElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLDialogElement.idl:
      * html/HTMLDivElement.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLEmbedElement.idl:
      * html/HTMLFormControlsCollection.idl:
      * html/HTMLFormElement.idl:
      * html/HTMLImageElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLObjectElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLSpanElement.idl:
      * html/HTMLStyleElement.idl:
      * html/HTMLTemplateElement.idl:
      * html/HTMLTrackElement.idl:
      * html/HTMLUnknownElement.idl:
      * html/MediaKeyError.idl:
      * html/MediaKeyEvent.idl:
      * html/MicroDataItemValue.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * html/canvas/DOMPath.idl:
      * html/shadow/HTMLContentElement.idl:
      * html/shadow/HTMLShadowElement.idl:
      * html/track/TextTrack.idl:
      * inspector/InjectedScriptHost.idl:
      * inspector/InspectorIndexedDBAgent.cpp:
      (WebCore::InspectorIndexedDBAgent::requestDatabaseNames):
      (WebCore::InspectorIndexedDBAgent::requestDatabase):
      (WebCore::InspectorIndexedDBAgent::requestData):
      (WebCore::InspectorIndexedDBAgent::clearObjectStore):
      (WebCore):
      * loader/EmptyClients.h:
      (EmptyFrameLoaderClient):
      * loader/FrameLoaderClient.h:
      (FrameLoaderClient):
      * page/Console.idl:
      * page/DOMWindow.idl:
      * page/DOMWindowPagePopup.idl:
      * page/History.idl:
      * page/Location.idl:
      * platform/graphics/skia/PatternSkia.cpp:
      (WebCore::Pattern::platformDestroy):
      (WebCore::Pattern::platformPattern):
      * testing/Internals.cpp:
      (WebCore::Internals::serializeObject):
      (WebCore::Internals::deserializeBuffer):
      
      Source/WTF: 
      
      * wtf/ArrayBuffer.h:
      (WTF):
      (WTF::ArrayBufferContents::ArrayBufferContents):
      (WTF::ArrayBufferContents::transfer):
      (ArrayBufferContents):
      (ArrayBuffer):
      (WTF::ArrayBufferContents::~ArrayBufferContents):
      * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      007c2427
  12. 18 Feb, 2013 1 commit
    • pfeldman@chromium.org's avatar
      Web Inspector: provide basic console.table implementation (no [,columns] support) · c226870f
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109453
      
      Reviewed by Vsevolod Vlasov.
      
      Source/WebCore:
      
      Test: inspector/console/console-format-table.html
      
      Using console preview infrastructure to support console.table.
      
      * English.lproj/localizedStrings.js:
      * inspector/ConsoleAPITypes.h:
      * inspector/ConsoleMessage.cpp:
      (WebCore::messageTypeValue):
      (WebCore::ConsoleMessage::addToFrontend):
      * inspector/InjectedScript.cpp:
      (WebCore::InjectedScript::wrapObject):
      (WebCore):
      (WebCore::InjectedScript::wrapTable):
      * inspector/InjectedScript.h:
      (InjectedScript):
      * inspector/InjectedScriptSource.js:
      (.):
      * inspector/Inspector.json:
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::InspectorDOMAgent::buildObjectForEventListener):
      * inspector/front-end/ConsoleMessage.js:
      (WebInspector.ConsoleMessageImpl):
      (WebInspector.ConsoleMessageImpl.prototype.willHide):
      (WebInspector.ConsoleMessageImpl.prototype._format):
      (WebInspector.ConsoleMessageImpl.prototype._appendObjectPreview):
      (WebInspector.ConsoleMessageImpl.prototype._renderPropertyPreview):
      (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsTable):
      * inspector/front-end/ConsoleModel.js:
      * inspector/front-end/ConsoleView.js:
      (WebInspector.ConsoleView.prototype._appendConsoleMessage):
      (WebInspector.ConsoleView.prototype._consoleCleared):
      (WebInspector.ConsoleView.prototype._updateMessageList):
      (WebInspector.ConsoleCommand.prototype.wasShown):
      (WebInspector.ConsoleCommand.prototype.willHide):
      (WebInspector.ConsoleGroup.prototype.addMessage):
      * inspector/front-end/DataGrid.js:
      (.sortDataGrid.comparator):
      (.sortDataGrid):
      (WebInspector.DataGrid.createSortableDataGrid):
      (WebInspector.DataGrid.prototype.renderInline):
      * inspector/front-end/DatabaseQueryView.js:
      (WebInspector.DatabaseQueryView.prototype._queryFinished):
      * inspector/front-end/dataGrid.css:
      (.data-grid.inline):
      (.data-grid.inline td.corner):
      * inspector/front-end/resourcesPanel.css:
      (.storage-view > .data-grid):
      * page/Console.cpp:
      (WebCore::Console::table):
      (WebCore):
      * page/Console.h:
      (Console):
      * page/Console.idl:
      
      LayoutTests:
      
      * inspector/console/command-line-api-expected.txt:
      * inspector/console/console-format-table-expected.txt: Added.
      * inspector/console/console-format-table.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c226870f
  13. 16 Nov, 2012 1 commit
    • mkwst@chromium.org's avatar
      Web Inspector: Move call stack generation out of bindings. · d643a8e1
      mkwst@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101331
      
      Reviewed by Yury Semikhatsky.
      
      Currently, we generate stack traces for console messages at each call
      site. Bug 100650 has the end goal of moving all stack trace generation
      inside of the Inspector in order to ensure that we never send a console
      message without a stack trace if it's possible to generate one. This
      also ensures that we never generate unused call stacks.
      
      This patch is the first step in that direction, moving stack trace
      generation out of the Console bindings, and into either Console or
      InspectorConsoleAgent.
      
      No visible change in behavior should result; this refactoring should
      continue to pass all existing inspector tests.
      
      * bindings/js/JSConsoleCustom.cpp:
      (WebCore::JSConsole::profile):
      (WebCore::JSConsole::profileEnd):
          Adjust custom JSC Console bindings to drop call stack generation.
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateCallWith):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateCallWith):
          Drop call stack generation from JSC and V8 bindings.
      * bindings/scripts/CodeGeneratorGObject.pm:
          Skip timeEnd explicitly in these bindings; it used to include
          ScriptArguments, which autoskipped it. Now it doesn't, so it needs
          to be called out on its own.
      * bindings/v8/ScriptCallStackFactory.cpp:
      (WebCore::createScriptCallStackForConsole):
      (WebCore::createScriptCallStack):
      (WebCore):
      * bindings/v8/ScriptCallStackFactory.h:
      (WebCore):
          Add 'createScriptCallStack(ScriptState*, size_t)' to V8's
          ScriptCallStackFactory in order to match JCS' implementation.
          It simply delegates to 'createScriptCallStackForConsole', which
          now also accepts a 'maxStackSize' parameter.
      * bindings/v8/custom/V8ConsoleCustom.cpp:
      (WebCore::V8Console::traceCallback):
      (WebCore::V8Console::assertCallback):
      (WebCore::V8Console::profileCallback):
      (WebCore::V8Console::profileEndCallback):
          Adjust custom V8 bindings to drop call stack generation.
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::addMessageToConsole):
          With the eventual goal of getting rid of the call stack parameter
          entirely, this patch drops it from one version of
          'addMessageToConsole' (replacing it with ScriptState*), and creates
          a new version that only accepts a call stack. We should be able to
          migrate most (all?) external call sites over to the arguments
          version in future patches.
      (WebCore):
      (WebCore::InspectorConsoleAgent::count):
          Count takes 'ScriptState*' instead of a call stack, and generates
          the stack as needed.
      * inspector/InspectorConsoleAgent.h:
      (InspectorConsoleAgent):
      * inspector/InspectorConsoleInstrumentation.h:
      (WebCore::InspectorInstrumentation::addMessageToConsole):
      (WebCore):
      (WebCore::InspectorInstrumentation::consoleCount):
      * inspector/InspectorInstrumentation.cpp:
      (WebCore):
      (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
      (WebCore::InspectorInstrumentation::consoleCountImpl):
      * inspector/InspectorInstrumentation.h:
      (InspectorInstrumentation):
          Changes the InspectorInstrumentation pipeline to match the
          InspectorConsoleAgent changes.
      * page/Console.cpp:
      (WebCore::Console::addMessage):
          We now (always) generate one frame of a stack trace in order to
          populate line numbers and caller URLs. If we need to print the whole
          trace here, we generate a full stack.
      (WebCore::Console::debug):
      (WebCore::Console::error):
      (WebCore::Console::info):
      (WebCore::Console::log):
      (WebCore::Console::warn):
      (WebCore::Console::dir):
      (WebCore::Console::dirxml):
      (WebCore::Console::clear):
      (WebCore::Console::trace):
      (WebCore::Console::assertCondition):
      (WebCore::Console::count):
      (WebCore::Console::markTimeline):
      (WebCore::Console::timeEnd):
      (WebCore::Console::timeStamp):
      (WebCore::Console::group):
      (WebCore::Console::groupCollapsed):
      (WebCore::Console::profile):
      (WebCore::Console::profileEnd):
          s/ScriptCallStack/ScriptState*/g. Also, printing the stack trace
          has been moved out of 'trace' and into 'addMessage'.
      * page/Console.h:
      (Console):
      * page/Console.idl:
          Drop the call stack, add the script state.
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::addMessageToWorkerConsole):
          Use the new, explicitly call stacked addMessageToConsole. We'll kill
          this in a future patch.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d643a8e1
  14. 12 Nov, 2012 1 commit
  15. 08 Nov, 2012 1 commit
  16. 06 Nov, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Added console.clear() method · 8e628316
      commit-queue@webkit.org authored
      Web Inspector: add console.clear()
      https://bugs.webkit.org/show_bug.cgi?id=101021
      
      Patch by Andrey Lushnikov <lushnikov@google.com> on 2012-11-06
      Reviewed by Vsevolod Vlasov.
      
      Source/WebCore:
      
      Adds native implementation of console.clear
      
      Test: inspector/console/console-clear-function.html
      
      * English.lproj/localizedStrings.js: Adds 'Console was cleared' string
      * inspector/ConsoleMessage.cpp:
      (WebCore::messageTypeValue): Adds ClearMessageType
      * inspector/Inspector.json:
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::addMessageToConsole):
      * inspector/front-end/ConsoleMessage.js:
      (WebInspector.ConsoleMessageImpl.prototype._formatMessage): Display strategy for "clear" message
      * inspector/front-end/ConsoleModel.js:
      * inspector/front-end/inspector.css:
      (.console-info): Adds style for the 'console was cleared' message
      * page/Console.cpp: backend binging for console.clear()
      (WebCore::Console::clear):
      (WebCore):
      * page/Console.h:
      (Console):
      * page/Console.idl: Adds 'clear' message to protocol
      * page/ConsoleTypes.h:
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebChromeClient.mm:
      (stringForMessageType): Added ClearMessageType case to switch
      
      LayoutTests:
      
      * inspector/console/console-clear-function-expected.txt: Added.
      * inspector/console/console-clear-function.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e628316
  17. 12 Oct, 2012 2 commits
    • commit-queue@webkit.org's avatar
      [WebKit IDL] move extended attributes to left of interface, exception... · a4d60d13
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99012
      
      Patch by Takashi Sakamoto <tasak@google.com> on 2012-10-12
      Reviewed by Kentaro Hara.
      
      According to WebIDL spec, moved all extended attributes to the left
      of interface / attribute / readonly attribute / exception.
      
      No new tests. I ran run-bindings-tests and all tests passed.
      
      * Modules/battery/BatteryManager.idl:
      * Modules/battery/NavigatorBattery.idl:
      * Modules/filesystem/DOMFileSystem.idl:
      * Modules/filesystem/DOMFileSystemSync.idl:
      * Modules/filesystem/DOMWindowFileSystem.idl:
      * Modules/filesystem/DataTransferItemFileSystem.idl:
      * Modules/filesystem/DirectoryEntry.idl:
      * Modules/filesystem/DirectoryEntrySync.idl:
      * Modules/filesystem/DirectoryReader.idl:
      * Modules/filesystem/DirectoryReaderSync.idl:
      * Modules/filesystem/EntriesCallback.idl:
      * Modules/filesystem/Entry.idl:
      * Modules/filesystem/EntryArray.idl:
      * Modules/filesystem/EntryArraySync.idl:
      * Modules/filesystem/EntryCallback.idl:
      * Modules/filesystem/EntrySync.idl:
      * Modules/filesystem/ErrorCallback.idl:
      * Modules/filesystem/FileCallback.idl:
      * Modules/filesystem/FileEntry.idl:
      * Modules/filesystem/FileEntrySync.idl:
      * Modules/filesystem/FileSystemCallback.idl:
      * Modules/filesystem/FileWriter.idl:
      * Modules/filesystem/FileWriterCallback.idl:
      * Modules/filesystem/FileWriterSync.idl:
      * Modules/filesystem/HTMLInputElementFileSystem.idl:
      * Modules/filesystem/Metadata.idl:
      * Modules/filesystem/MetadataCallback.idl:
      * Modules/filesystem/WorkerContextFileSystem.idl:
      * Modules/gamepad/Gamepad.idl:
      * Modules/gamepad/GamepadList.idl:
      * Modules/gamepad/NavigatorGamepad.idl:
      * Modules/geolocation/Geolocation.idl:
      * Modules/geolocation/Geoposition.idl:
      * Modules/geolocation/NavigatorGeolocation.idl:
      * Modules/geolocation/PositionCallback.idl:
      * Modules/geolocation/PositionError.idl:
      * Modules/geolocation/PositionErrorCallback.idl:
      * Modules/indexeddb/DOMWindowIndexedDatabase.idl:
      * Modules/indexeddb/IDBAny.idl:
      * Modules/indexeddb/IDBCursor.idl:
      * Modules/indexeddb/IDBCursorWithValue.idl:
      * Modules/indexeddb/IDBDatabase.idl:
      * Modules/indexeddb/IDBDatabaseException.idl:
      * Modules/indexeddb/IDBFactory.idl:
      * Modules/indexeddb/IDBIndex.idl:
      * Modules/indexeddb/IDBKey.idl:
      * Modules/indexeddb/IDBKeyRange.idl:
      * Modules/indexeddb/IDBObjectStore.idl:
      * Modules/indexeddb/IDBOpenDBRequest.idl:
      * Modules/indexeddb/IDBRequest.idl:
      * Modules/indexeddb/IDBTransaction.idl:
      * Modules/indexeddb/IDBUpgradeNeededEvent.idl:
      * Modules/indexeddb/IDBVersionChangeEvent.idl:
      * Modules/indexeddb/IDBVersionChangeRequest.idl:
      * Modules/indexeddb/WorkerContextIndexedDatabase.idl:
      * Modules/intents/DOMWindowIntents.idl:
      * Modules/intents/DeliveredIntent.idl:
      * Modules/intents/NavigatorIntents.idl:
      * Modules/mediasource/MediaSource.idl:
      * Modules/mediasource/SourceBuffer.idl:
      * Modules/mediasource/SourceBufferList.idl:
      * Modules/mediastream/DOMWindowMediaStream.idl:
      * Modules/mediastream/IceCallback.idl:
      * Modules/mediastream/IceCandidate.idl:
      * Modules/mediastream/LocalMediaStream.idl:
      * Modules/mediastream/MediaStream.idl:
      * Modules/mediastream/MediaStreamEvent.idl:
      * Modules/mediastream/MediaStreamList.idl:
      * Modules/mediastream/MediaStreamTrack.idl:
      * Modules/mediastream/MediaStreamTrackEvent.idl:
      * Modules/mediastream/MediaStreamTrackList.idl:
      * Modules/mediastream/NavigatorMediaStream.idl:
      * Modules/mediastream/NavigatorUserMediaError.idl:
      * Modules/mediastream/NavigatorUserMediaErrorCallback.idl:
      * Modules/mediastream/NavigatorUserMediaSuccessCallback.idl:
      * Modules/mediastream/PeerConnection00.idl:
      * Modules/mediastream/RTCErrorCallback.idl:
      * Modules/mediastream/RTCIceCandidate.idl:
      * Modules/mediastream/RTCIceCandidateEvent.idl:
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCSessionDescription.idl:
      * Modules/mediastream/RTCSessionDescriptionCallback.idl:
      * Modules/mediastream/RTCStatsCallback.idl:
      * Modules/mediastream/RTCStatsElement.idl:
      * Modules/mediastream/RTCStatsReport.idl:
      * Modules/mediastream/RTCStatsResponse.idl:
      * Modules/mediastream/SessionDescription.idl:
      * Modules/navigatorcontentutils/NavigatorContentUtils.idl:
      * Modules/networkinfo/NavigatorNetworkInfoConnection.idl:
      * Modules/networkinfo/NetworkInfoConnection.idl:
      * Modules/notifications/DOMWindowNotifications.idl:
      * Modules/notifications/Notification.idl:
      * Modules/notifications/NotificationCenter.idl:
      * Modules/notifications/NotificationPermissionCallback.idl:
      * Modules/notifications/WorkerContextNotifications.idl:
      * Modules/proximity/DeviceProximityEvent.idl:
      * Modules/quota/DOMWindowQuota.idl:
      * Modules/quota/StorageInfo.idl:
      * Modules/quota/StorageInfoErrorCallback.idl:
      * Modules/quota/StorageInfoQuotaCallback.idl:
      * Modules/quota/StorageInfoUsageCallback.idl:
      * Modules/speech/DOMWindowSpeech.idl:
      * Modules/speech/SpeechGrammar.idl:
      * Modules/speech/SpeechGrammarList.idl:
      * Modules/speech/SpeechRecognition.idl:
      * Modules/speech/SpeechRecognitionAlternative.idl:
      * Modules/speech/SpeechRecognitionError.idl:
      * Modules/speech/SpeechRecognitionEvent.idl:
      * Modules/speech/SpeechRecognitionResult.idl:
      * Modules/speech/SpeechRecognitionResultList.idl:
      * Modules/vibration/NavigatorVibration.idl:
      * Modules/webaudio/AudioBuffer.idl:
      * Modules/webaudio/AudioBufferCallback.idl:
      * Modules/webaudio/AudioBufferSourceNode.idl:
      * Modules/webaudio/AudioChannelMerger.idl:
      * Modules/webaudio/AudioChannelSplitter.idl:
      * Modules/webaudio/AudioContext.idl:
      * Modules/webaudio/AudioDestinationNode.idl:
      * Modules/webaudio/AudioGain.idl:
      * Modules/webaudio/AudioGainNode.idl:
      * Modules/webaudio/AudioListener.idl:
      * Modules/webaudio/AudioNode.idl:
      * Modules/webaudio/AudioPannerNode.idl:
      * Modules/webaudio/AudioParam.idl:
      * Modules/webaudio/AudioProcessingEvent.idl:
      * Modules/webaudio/AudioSourceNode.idl:
      * Modules/webaudio/BiquadFilterNode.idl:
      * Modules/webaudio/ConvolverNode.idl:
      * Modules/webaudio/DOMWindowWebAudio.idl:
      * Modules/webaudio/DelayNode.idl:
      * Modules/webaudio/DynamicsCompressorNode.idl:
      * Modules/webaudio/JavaScriptAudioNode.idl:
      * Modules/webaudio/MediaElementAudioSourceNode.idl:
      * Modules/webaudio/MediaStreamAudioSourceNode.idl:
      * Modules/webaudio/OfflineAudioCompletionEvent.idl:
      * Modules/webaudio/Oscillator.idl:
      * Modules/webaudio/RealtimeAnalyserNode.idl:
      * Modules/webaudio/WaveShaperNode.idl:
      * Modules/webaudio/WaveTable.idl:
      * Modules/webdatabase/DOMWindowWebDatabase.idl:
      * Modules/webdatabase/Database.idl:
      * Modules/webdatabase/DatabaseCallback.idl:
      * Modules/webdatabase/DatabaseSync.idl:
      * Modules/webdatabase/SQLError.idl:
      * Modules/webdatabase/SQLException.idl:
      * Modules/webdatabase/SQLResultSet.idl:
      * Modules/webdatabase/SQLResultSetRowList.idl:
      * Modules/webdatabase/SQLStatementCallback.idl:
      * Modules/webdatabase/SQLStatementErrorCallback.idl:
      * Modules/webdatabase/SQLTransaction.idl:
      * Modules/webdatabase/SQLTransactionCallback.idl:
      * Modules/webdatabase/SQLTransactionErrorCallback.idl:
      * Modules/webdatabase/SQLTransactionSync.idl:
      * Modules/webdatabase/SQLTransactionSyncCallback.idl:
      * Modules/webdatabase/WorkerContextWebDatabase.idl:
      * Modules/websockets/CloseEvent.idl:
      * Modules/websockets/DOMWindowWebSocket.idl:
      * Modules/websockets/WebSocket.idl:
      * Modules/websockets/WorkerContextWebSocket.idl:
      * bindings/scripts/test/TestCallback.idl:
      * bindings/scripts/test/TestCustomNamedGetter.idl:
      * bindings/scripts/test/TestDomainSecurity.idl:
      * bindings/scripts/test/TestEventConstructor.idl:
      * bindings/scripts/test/TestEventTarget.idl:
      * bindings/scripts/test/TestInterface.idl:
      * bindings/scripts/test/TestNamedConstructor.idl:
      * bindings/scripts/test/TestNode.idl:
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/TestSerializedScriptValueInterface.idl:
      * bindings/scripts/test/TestSupplemental.idl:
      * bindings/scripts/test/TestTypedArray.idl:
      * css/CSSCharsetRule.idl:
      * css/CSSImportRule.idl:
      * css/CSSPageRule.idl:
      * css/CSSRule.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleRule.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSUnknownRule.idl:
      * css/CSSValue.idl:
      * css/CSSValueList.idl:
      * css/MediaList.idl:
      * css/MediaQueryListListener.idl:
      * css/StyleMedia.idl:
      * css/StyleSheet.idl:
      * css/StyleSheetList.idl:
      * css/WebKitCSSFilterValue.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * css/WebKitCSSMatrix.idl:
      * css/WebKitCSSRegionRule.idl:
      * css/WebKitCSSTransformValue.idl:
      * dom/Attr.idl:
      * dom/BeforeLoadEvent.idl:
      * dom/CharacterData.idl:
      * dom/ClientRectList.idl:
      * dom/Clipboard.idl:
      * dom/CustomEvent.idl:
      * dom/DOMCoreException.idl:
      * dom/DOMImplementation.idl:
      * dom/DOMNamedFlowCollection.idl:
      * dom/DOMStringList.idl:
      * dom/DOMStringMap.idl:
      * dom/DataTransferItem.idl:
      * dom/DataTransferItemList.idl:
      * dom/DeviceMotionEvent.idl:
      * dom/DeviceOrientationEvent.idl:
      * dom/Document.idl:
      * dom/DocumentType.idl:
      * dom/Element.idl:
      * dom/Entity.idl:
      * dom/ErrorEvent.idl:
      * dom/Event.idl:
      * dom/EventException.idl:
      * dom/EventListener.idl:
      * dom/EventTarget.idl:
      * dom/HashChangeEvent.idl:
      * dom/MessageChannel.idl:
      * dom/MessageEvent.idl:
      * dom/MessagePort.idl:
      * dom/MouseEvent.idl:
      * dom/MutationCallback.idl:
      * dom/MutationObserver.idl:
      * dom/MutationRecord.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeFilter.idl:
      * dom/NodeIterator.idl:
      * dom/NodeList.idl:
      * dom/Notation.idl:
      * dom/OverflowEvent.idl:
      * dom/PageTransitionEvent.idl:
      * dom/PopStateEvent.idl:
      * dom/ProcessingInstruction.idl:
      * dom/ProgressEvent.idl:
      * dom/PropertyNodeList.idl:
      * dom/RangeException.idl:
      * dom/RequestAnimationFrameCallback.idl:
      * dom/ShadowRoot.idl:
      * dom/StringCallback.idl:
      * dom/Touch.idl:
      * dom/TouchEvent.idl:
      * dom/TouchList.idl:
      * dom/TreeWalker.idl:
      * dom/WebKitAnimationEvent.idl:
      * dom/WebKitNamedFlow.idl:
      * dom/WebKitTransitionEvent.idl:
      * editing/DOMTransaction.idl:
      * editing/UndoManager.idl:
      * fileapi/Blob.idl:
      * fileapi/File.idl:
      * fileapi/FileError.idl:
      * fileapi/FileException.idl:
      * fileapi/FileList.idl:
      * fileapi/FileReader.idl:
      * fileapi/FileReaderSync.idl:
      * html/DOMFormData.idl:
      * html/DOMSettableTokenList.idl:
      * html/DOMTokenList.idl:
      * html/DOMURL.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLAnchorElement.idl:
      * html/HTMLAppletElement.idl:
      * html/HTMLAreaElement.idl:
      * html/HTMLAudioElement.idl:
      * html/HTMLBRElement.idl:
      * html/HTMLBaseElement.idl:
      * html/HTMLBaseFontElement.idl:
      * html/HTMLBodyElement.idl:
      * html/HTMLButtonElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLDListElement.idl:
      * html/HTMLDataListElement.idl:
      * html/HTMLDetailsElement.idl:
      * html/HTMLDialogElement.idl:
      * html/HTMLDirectoryElement.idl:
      * html/HTMLDivElement.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLEmbedElement.idl:
      * html/HTMLFieldSetElement.idl:
      * html/HTMLFontElement.idl:
      * html/HTMLFormElement.idl:
      * html/HTMLFrameElement.idl:
      * html/HTMLFrameSetElement.idl:
      * html/HTMLHRElement.idl:
      * html/HTMLHeadElement.idl:
      * html/HTMLHeadingElement.idl:
      * html/HTMLHtmlElement.idl:
      * html/HTMLIFrameElement.idl:
      * html/HTMLImageElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLIntentElement.idl:
      * html/HTMLKeygenElement.idl:
      * html/HTMLLIElement.idl:
      * html/HTMLLabelElement.idl:
      * html/HTMLLegendElement.idl:
      * html/HTMLLinkElement.idl:
      * html/HTMLMapElement.idl:
      * html/HTMLMarqueeElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLMenuElement.idl:
      * html/HTMLMetaElement.idl:
      * html/HTMLMeterElement.idl:
      * html/HTMLModElement.idl:
      * html/HTMLOListElement.idl:
      * html/HTMLObjectElement.idl:
      * html/HTMLOptGroupElement.idl:
      * html/HTMLOptionElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLOutputElement.idl:
      * html/HTMLParagraphElement.idl:
      * html/HTMLParamElement.idl:
      * html/HTMLPreElement.idl:
      * html/HTMLProgressElement.idl:
      * html/HTMLPropertiesCollection.idl:
      * html/HTMLQuoteElement.idl:
      * html/HTMLScriptElement.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLSourceElement.idl:
      * html/HTMLStyleElement.idl:
      * html/HTMLTableCaptionElement.idl:
      * html/HTMLTableCellElement.idl:
      * html/HTMLTableColElement.idl:
      * html/HTMLTableElement.idl:
      * html/HTMLTableRowElement.idl:
      * html/HTMLTableSectionElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/HTMLTitleElement.idl:
      * html/HTMLTrackElement.idl:
      * html/HTMLUListElement.idl:
      * html/HTMLVideoElement.idl:
      * html/ImageData.idl:
      * html/MediaController.idl:
      * html/MediaError.idl:
      * html/MediaKeyError.idl:
      * html/MediaKeyEvent.idl:
      * html/MicroDataItemValue.idl:
      * html/RadioNodeList.idl:
      * html/TimeRanges.idl:
      * html/ValidityState.idl:
      * html/VoidCallback.idl:
      * html/canvas/ArrayBuffer.idl:
      * html/canvas/ArrayBufferView.idl:
      * html/canvas/CanvasRenderingContext.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * html/canvas/DataView.idl:
      * html/canvas/EXTTextureFilterAnisotropic.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/WebGLActiveInfo.idl:
      * html/canvas/WebGLBuffer.idl:
      * html/canvas/WebGLCompressedTextureS3TC.idl:
      * html/canvas/WebGLContextAttributes.idl:
      * html/canvas/WebGLContextEvent.idl:
      * html/canvas/WebGLDebugRendererInfo.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLDepthTexture.idl:
      * html/canvas/WebGLFramebuffer.idl:
      * html/canvas/WebGLLoseContext.idl:
      * html/canvas/WebGLProgram.idl:
      * html/canvas/WebGLRenderbuffer.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * html/canvas/WebGLShader.idl:
      * html/canvas/WebGLShaderPrecisionFormat.idl:
      * html/canvas/WebGLTexture.idl:
      * html/canvas/WebGLUniformLocation.idl:
      * html/canvas/WebGLVertexArrayObjectOES.idl:
      * html/shadow/HTMLContentElement.idl:
      * html/shadow/HTMLShadowElement.idl:
      * html/track/TextTrack.idl:
      * html/track/TextTrackCue.idl:
      * html/track/TextTrackCueList.idl:
      * html/track/TextTrackList.idl:
      * html/track/TrackEvent.idl:
      * inspector/InjectedScriptHost.idl:
      * inspector/InspectorFrontendHost.idl:
      * inspector/JavaScriptCallFrame.idl:
      * inspector/ScriptProfile.idl:
      * inspector/ScriptProfileNode.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/AbstractView.idl:
      * page/BarInfo.idl:
      * page/Console.idl:
      * page/Coordinates.idl:
      * page/Crypto.idl:
      * page/DOMSecurityPolicy.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/DOMWindowPagePopup.idl:
      * page/EventSource.idl:
      * page/History.idl:
      * page/Location.idl:
      * page/MemoryInfo.idl:
      * page/Navigator.idl:
      * page/PagePopupController.idl:
      * page/Performance.idl:
      * page/PerformanceEntry.idl:
      * page/PerformanceEntryList.idl:
      * page/PerformanceNavigation.idl:
      * page/PerformanceResourceTiming.idl:
      * page/PerformanceTiming.idl:
      * page/Screen.idl:
      * page/SpeechInputEvent.idl:
      * page/SpeechInputResult.idl:
      * page/SpeechInputResultList.idl:
      * page/WebKitAnimation.idl:
      * page/WebKitAnimationList.idl:
      * page/WebKitPoint.idl:
      * page/WorkerNavigator.idl:
      * plugins/DOMMimeType.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPlugin.idl:
      * plugins/DOMPluginArray.idl:
      * storage/Storage.idl:
      * storage/StorageEvent.idl:
      * svg/ElementTimeControl.idl:
      * svg/SVGAElement.idl:
      * svg/SVGAltGlyphDefElement.idl:
      * svg/SVGAltGlyphElement.idl:
      * svg/SVGAltGlyphItemElement.idl:
      * svg/SVGAngle.idl:
      * svg/SVGAnimateColorElement.idl:
      * svg/SVGAnimateElement.idl:
      * svg/SVGAnimateMotionElement.idl:
      * svg/SVGAnimateTransformElement.idl:
      * svg/SVGAnimatedAngle.idl:
      * svg/SVGAnimatedBoolean.idl:
      * svg/SVGAnimatedEnumeration.idl:
      * svg/SVGAnimatedInteger.idl:
      * svg/SVGAnimatedLength.idl:
      * svg/SVGAnimatedLengthList.idl:
      * svg/SVGAnimatedNumber.idl:
      * svg/SVGAnimatedNumberList.idl:
      * svg/SVGAnimatedPreserveAspectRatio.idl:
      * svg/SVGAnimatedRect.idl:
      * svg/SVGAnimatedString.idl:
      * svg/SVGAnimatedTransformList.idl:
      * svg/SVGAnimationElement.idl:
      * svg/SVGCircleElement.idl:
      * svg/SVGClipPathElement.idl:
      * svg/SVGColor.idl:
      * svg/SVGComponentTransferFunctionElement.idl:
      * svg/SVGCursorElement.idl:
      * svg/SVGDefsElement.idl:
      * svg/SVGDescElement.idl:
      * svg/SVGDocument.idl:
      * svg/SVGElement.idl:
      * svg/SVGElementInstance.idl:
      * svg/SVGElementInstanceList.idl:
      * svg/SVGEllipseElement.idl:
      * svg/SVGException.idl:
      * svg/SVGExternalResourcesRequired.idl:
      * svg/SVGFEBlendElement.idl:
      * svg/SVGFEColorMatrixElement.idl:
      * svg/SVGFEComponentTransferElement.idl:
      * svg/SVGFECompositeElement.idl:
      * svg/SVGFEConvolveMatrixElement.idl:
      * svg/SVGFEDiffuseLightingElement.idl:
      * svg/SVGFEDisplacementMapElement.idl:
      * svg/SVGFEDistantLightElement.idl:
      * svg/SVGFEDropShadowElement.idl:
      * svg/SVGFEFloodElement.idl:
      * svg/SVGFEFuncAElement.idl:
      * svg/SVGFEFuncBElement.idl:
      * svg/SVGFEFuncGElement.idl:
      * svg/SVGFEFuncRElement.idl:
      * svg/SVGFEGaussianBlurElement.idl:
      * svg/SVGFEImageElement.idl:
      * svg/SVGFEMergeElement.idl:
      * svg/SVGFEMergeNodeElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFEOffsetElement.idl:
      * svg/SVGFEPointLightElement.idl:
      * svg/SVGFESpecularLightingElement.idl:
      * svg/SVGFESpotLightElement.idl:
      * svg/SVGFETileElement.idl:
      * svg/SVGFETurbulenceElement.idl:
      * svg/SVGFilterElement.idl:
      * svg/SVGFilterPrimitiveStandardAttributes.idl:
      * svg/SVGFitToViewBox.idl:
      * svg/SVGFontElement.idl:
      * svg/SVGFontFaceElement.idl:
      * svg/SVGFontFaceFormatElement.idl:
      * svg/SVGFontFaceNameElement.idl:
      * svg/SVGFontFaceSrcElement.idl:
      * svg/SVGFontFaceUriElement.idl:
      * svg/SVGForeignObjectElement.idl:
      * svg/SVGGElement.idl:
      * svg/SVGGlyphElement.idl:
      * svg/SVGGlyphRefElement.idl:
      * svg/SVGGradientElement.idl:
      * svg/SVGHKernElement.idl:
      * svg/SVGImageElement.idl:
      * svg/SVGLangSpace.idl:
      * svg/SVGLength.idl:
      * svg/SVGLengthList.idl:
      * svg/SVGLineElement.idl:
      * svg/SVGLinearGradientElement.idl:
      * svg/SVGLocatable.idl:
      * svg/SVGMPathElement.idl:
      * svg/SVGMarkerElement.idl:
      * svg/SVGMaskElement.idl:
      * svg/SVGMatrix.idl:
      * svg/SVGMetadataElement.idl:
      * svg/SVGMissingGlyphElement.idl:
      * svg/SVGNumber.idl:
      * svg/SVGNumberList.idl:
      * svg/SVGPaint.idl:
      * svg/SVGPathElement.idl:
      * svg/SVGPathSeg.idl:
      * svg/SVGPathSegArcAbs.idl:
      * svg/SVGPathSegArcRel.idl:
      * svg/SVGPathSegClosePath.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/SVGPathSegList.idl:
      * svg/SVGPathSegMovetoAbs.idl:
      * svg/SVGPathSegMovetoRel.idl:
      * svg/SVGPatternElement.idl:
      * svg/SVGPoint.idl:
      * svg/SVGPointList.idl:
      * svg/SVGPolygonElement.idl:
      * svg/SVGPolylineElement.idl:
      * svg/SVGPreserveAspectRatio.idl:
      * svg/SVGRadialGradientElement.idl:
      * svg/SVGRect.idl:
      * svg/SVGRectElement.idl:
      * svg/SVGRenderingIntent.idl:
      * svg/SVGSVGElement.idl:
      * svg/SVGScriptElement.idl:
      * svg/SVGSetElement.idl:
      * svg/SVGStopElement.idl:
      * svg/SVGStringList.idl:
      * svg/SVGStylable.idl:
      * svg/SVGStyleElement.idl:
      * svg/SVGSwitchElement.idl:
      * svg/SVGSymbolElement.idl:
      * svg/SVGTRefElement.idl:
      * svg/SVGTSpanElement.idl:
      * svg/SVGTests.idl:
      * svg/SVGTextContentElement.idl:
      * svg/SVGTextElement.idl:
      * svg/SVGTextPathElement.idl:
      * svg/SVGTextPositioningElement.idl:
      * svg/SVGTitleElement.idl:
      * svg/SVGTransform.idl:
      * svg/SVGTransformList.idl:
      * svg/SVGTransformable.idl:
      * svg/SVGURIReference.idl:
      * svg/SVGUnitTypes.idl:
      * svg/SVGUseElement.idl:
      * svg/SVGVKernElement.idl:
      * svg/SVGViewElement.idl:
      * svg/SVGViewSpec.idl:
      * svg/SVGZoomAndPan.idl:
      * svg/SVGZoomEvent.idl:
      * testing/InternalSettings.idl:
      * testing/Internals.idl:
      * testing/MallocStatistics.idl:
      * workers/AbstractWorker.idl:
      * workers/DedicatedWorkerContext.idl:
      * workers/SharedWorker.idl:
      * workers/SharedWorkerContext.idl:
      * workers/Worker.idl:
      * workers/WorkerContext.idl:
      * workers/WorkerLocation.idl:
      * xml/DOMParser.idl:
      * xml/XMLHttpRequest.idl:
      * xml/XMLHttpRequestException.idl:
      * xml/XMLHttpRequestProgressEvent.idl:
      * xml/XMLHttpRequestUpload.idl:
      * xml/XMLSerializer.idl:
      * xml/XPathEvaluator.idl:
      * xml/XPathException.idl:
      * xml/XPathNSResolver.idl:
      * xml/XPathResult.idl:
      * xml/XSLTProcessor.idl:
      Moved extended attributes.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a4d60d13
    • commit-queue@webkit.org's avatar
      [WebKit IDL] remove all module from idl files. · cab10cea
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99007
      
      Patch by Takashi Sakamoto <tasak@google.com> on 2012-10-11
      Reviewed by Kentaro Hara.
      
      Since current WebIDL spec doesn't support "module", remove
      module from all idl files.
      
      No new tests. I ran run-bindings-tests and no error was reported.
      
      Source/WebCore:
      
      * Modules/battery/BatteryManager.idl:
      * Modules/battery/NavigatorBattery.idl:
      * Modules/filesystem/DOMFileSystem.idl:
      * Modules/filesystem/DOMFileSystemSync.idl:
      * Modules/filesystem/DOMWindowFileSystem.idl:
      * Modules/filesystem/DataTransferItemFileSystem.idl:
      * Modules/filesystem/DirectoryEntry.idl:
      * Modules/filesystem/DirectoryEntrySync.idl:
      * Modules/filesystem/DirectoryReader.idl:
      * Modules/filesystem/DirectoryReaderSync.idl:
      * Modules/filesystem/EntriesCallback.idl:
      * Modules/filesystem/Entry.idl:
      * Modules/filesystem/EntryArray.idl:
      * Modules/filesystem/EntryArraySync.idl:
      * Modules/filesystem/EntryCallback.idl:
      * Modules/filesystem/EntrySync.idl:
      * Modules/filesystem/ErrorCallback.idl:
      * Modules/filesystem/FileCallback.idl:
      * Modules/filesystem/FileEntry.idl:
      * Modules/filesystem/FileEntrySync.idl:
      * Modules/filesystem/FileSystemCallback.idl:
      * Modules/filesystem/FileWriter.idl:
      * Modules/filesystem/FileWriterCallback.idl:
      * Modules/filesystem/FileWriterSync.idl:
      * Modules/filesystem/HTMLInputElementFileSystem.idl:
      * Modules/filesystem/Metadata.idl:
      * Modules/filesystem/MetadataCallback.idl:
      * Modules/filesystem/WorkerContextFileSystem.idl:
      * Modules/gamepad/Gamepad.idl:
      * Modules/gamepad/GamepadList.idl:
      * Modules/gamepad/NavigatorGamepad.idl:
      * Modules/geolocation/Geolocation.idl:
      * Modules/geolocation/Geoposition.idl:
      * Modules/geolocation/NavigatorGeolocation.idl:
      * Modules/geolocation/PositionCallback.idl:
      * Modules/geolocation/PositionError.idl:
      * Modules/geolocation/PositionErrorCallback.idl:
      * Modules/indexeddb/DOMWindowIndexedDatabase.idl:
      * Modules/indexeddb/IDBAny.idl:
      * Modules/indexeddb/IDBCursor.idl:
      * Modules/indexeddb/IDBCursorWithValue.idl:
      * Modules/indexeddb/IDBDatabase.idl:
      * Modules/indexeddb/IDBDatabaseException.idl:
      * Modules/indexeddb/IDBFactory.idl:
      * Modules/indexeddb/IDBIndex.idl:
      * Modules/indexeddb/IDBKey.idl:
      * Modules/indexeddb/IDBKeyRange.idl:
      * Modules/indexeddb/IDBObjectStore.idl:
      * Modules/indexeddb/IDBOpenDBRequest.idl:
      * Modules/indexeddb/IDBRequest.idl:
      * Modules/indexeddb/IDBTransaction.idl:
      * Modules/indexeddb/IDBUpgradeNeededEvent.idl:
      * Modules/indexeddb/IDBVersionChangeEvent.idl:
      * Modules/indexeddb/IDBVersionChangeRequest.idl:
      * Modules/indexeddb/WorkerContextIndexedDatabase.idl:
      * Modules/intents/DOMWindowIntents.idl:
      * Modules/intents/DeliveredIntent.idl:
      * Modules/intents/Intent.idl:
      * Modules/intents/IntentResultCallback.idl:
      * Modules/intents/NavigatorIntents.idl:
      * Modules/mediasource/MediaSource.idl:
      * Modules/mediasource/SourceBuffer.idl:
      * Modules/mediasource/SourceBufferList.idl:
      * Modules/mediastream/DOMWindowMediaStream.idl:
      * Modules/mediastream/IceCallback.idl:
      * Modules/mediastream/IceCandidate.idl:
      * Modules/mediastream/LocalMediaStream.idl:
      * Modules/mediastream/MediaStream.idl:
      * Modules/mediastream/MediaStreamEvent.idl:
      * Modules/mediastream/MediaStreamList.idl:
      * Modules/mediastream/MediaStreamTrack.idl:
      * Modules/mediastream/MediaStreamTrackEvent.idl:
      * Modules/mediastream/MediaStreamTrackList.idl:
      * Modules/mediastream/NavigatorMediaStream.idl:
      * Modules/mediastream/NavigatorUserMediaError.idl:
      * Modules/mediastream/NavigatorUserMediaErrorCallback.idl:
      * Modules/mediastream/NavigatorUserMediaSuccessCallback.idl:
      * Modules/mediastream/PeerConnection00.idl:
      * Modules/mediastream/RTCErrorCallback.idl:
      * Modules/mediastream/RTCIceCandidate.idl:
      * Modules/mediastream/RTCIceCandidateEvent.idl:
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCSessionDescription.idl:
      * Modules/mediastream/RTCSessionDescriptionCallback.idl:
      * Modules/mediastream/RTCStatsCallback.idl:
      * Modules/mediastream/RTCStatsElement.idl:
      * Modules/mediastream/RTCStatsReport.idl:
      * Modules/mediastream/RTCStatsResponse.idl:
      * Modules/mediastream/SessionDescription.idl:
      * Modules/navigatorcontentutils/NavigatorContentUtils.idl:
      * Modules/networkinfo/NavigatorNetworkInfoConnection.idl:
      * Modules/networkinfo/NetworkInfoConnection.idl:
      * Modules/notifications/DOMWindowNotifications.idl:
      * Modules/notifications/Notification.idl:
      * Modules/notifications/NotificationCenter.idl:
      * Modules/notifications/NotificationPermissionCallback.idl:
      * Modules/notifications/WorkerContextNotifications.idl:
      * Modules/proximity/DeviceProximityEvent.idl:
      * Modules/quota/DOMWindowQuota.idl:
      * Modules/quota/StorageInfo.idl:
      * Modules/quota/StorageInfoErrorCallback.idl:
      * Modules/quota/StorageInfoQuotaCallback.idl:
      * Modules/quota/StorageInfoUsageCallback.idl:
      * Modules/speech/DOMWindowSpeech.idl:
      * Modules/speech/SpeechGrammar.idl:
      * Modules/speech/SpeechGrammarList.idl:
      * Modules/speech/SpeechRecognition.idl:
      * Modules/speech/SpeechRecognitionAlternative.idl:
      * Modules/speech/SpeechRecognitionError.idl:
      * Modules/speech/SpeechRecognitionEvent.idl:
      * Modules/speech/SpeechRecognitionResult.idl:
      * Modules/speech/SpeechRecognitionResultList.idl:
      * Modules/vibration/NavigatorVibration.idl:
      * Modules/webaudio/AudioBuffer.idl:
      * Modules/webaudio/AudioBufferCallback.idl:
      * Modules/webaudio/AudioBufferSourceNode.idl:
      * Modules/webaudio/AudioChannelMerger.idl:
      * Modules/webaudio/AudioChannelSplitter.idl:
      * Modules/webaudio/AudioContext.idl:
      * Modules/webaudio/AudioDestinationNode.idl:
      * Modules/webaudio/AudioGain.idl:
      * Modules/webaudio/AudioGainNode.idl:
      * Modules/webaudio/AudioListener.idl:
      * Modules/webaudio/AudioNode.idl:
      * Modules/webaudio/AudioPannerNode.idl:
      * Modules/webaudio/AudioParam.idl:
      * Modules/webaudio/AudioProcessingEvent.idl:
      * Modules/webaudio/AudioSourceNode.idl:
      * Modules/webaudio/BiquadFilterNode.idl:
      * Modules/webaudio/ConvolverNode.idl:
      * Modules/webaudio/DOMWindowWebAudio.idl:
      * Modules/webaudio/DelayNode.idl:
      * Modules/webaudio/DynamicsCompressorNode.idl:
      * Modules/webaudio/JavaScriptAudioNode.idl:
      * Modules/webaudio/MediaElementAudioSourceNode.idl:
      * Modules/webaudio/MediaStreamAudioSourceNode.idl:
      * Modules/webaudio/OfflineAudioCompletionEvent.idl:
      * Modules/webaudio/Oscillator.idl:
      * Modules/webaudio/RealtimeAnalyserNode.idl:
      * Modules/webaudio/WaveShaperNode.idl:
      * Modules/webaudio/WaveTable.idl:
      * Modules/webdatabase/DOMWindowWebDatabase.idl:
      * Modules/webdatabase/Database.idl:
      * Modules/webdatabase/DatabaseCallback.idl:
      * Modules/webdatabase/DatabaseSync.idl:
      * Modules/webdatabase/SQLError.idl:
      * Modules/webdatabase/SQLException.idl:
      * Modules/webdatabase/SQLResultSet.idl:
      * Modules/webdatabase/SQLResultSetRowList.idl:
      * Modules/webdatabase/SQLStatementCallback.idl:
      * Modules/webdatabase/SQLStatementErrorCallback.idl:
      * Modules/webdatabase/SQLTransaction.idl:
      * Modules/webdatabase/SQLTransactionCallback.idl:
      * Modules/webdatabase/SQLTransactionErrorCallback.idl:
      * Modules/webdatabase/SQLTransactionSync.idl:
      * Modules/webdatabase/SQLTransactionSyncCallback.idl:
      * Modules/webdatabase/WorkerContextWebDatabase.idl:
      * Modules/websockets/CloseEvent.idl:
      * Modules/websockets/DOMWindowWebSocket.idl:
      * Modules/websockets/WebSocket.idl:
      * Modules/websockets/WorkerContextWebSocket.idl:
      * bindings/scripts/test/TestCallback.idl:
      * bindings/scripts/test/TestCustomNamedGetter.idl:
      * bindings/scripts/test/TestDomainSecurity.idl:
      * bindings/scripts/test/TestEventConstructor.idl:
      * bindings/scripts/test/TestEventTarget.idl:
      * bindings/scripts/test/TestException.idl:
      * bindings/scripts/test/TestInterface.idl:
      * bindings/scripts/test/TestMediaQueryListListener.idl:
      * bindings/scripts/test/TestNamedConstructor.idl:
      * bindings/scripts/test/TestNode.idl:
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/TestSerializedScriptValueInterface.idl:
      * bindings/scripts/test/TestSupplemental.idl:
      * bindings/scripts/test/TestTypedArray.idl:
      * css/CSSCharsetRule.idl:
      * css/CSSFontFaceRule.idl:
      * css/CSSImportRule.idl:
      * css/CSSMediaRule.idl:
      * css/CSSPageRule.idl:
      * css/CSSPrimitiveValue.idl:
      * css/CSSRule.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleRule.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSUnknownRule.idl:
      * css/CSSValue.idl:
      * css/CSSValueList.idl:
      * css/Counter.idl:
      * css/MediaList.idl:
      * css/MediaQueryList.idl:
      * css/MediaQueryListListener.idl:
      * css/RGBColor.idl:
      * css/Rect.idl:
      * css/StyleMedia.idl:
      * css/StyleSheet.idl:
      * css/StyleSheetList.idl:
      * css/WebKitCSSFilterValue.idl:
      * css/WebKitCSSKeyframeRule.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * css/WebKitCSSMatrix.idl:
      * css/WebKitCSSRegionRule.idl:
      * css/WebKitCSSTransformValue.idl:
      * dom/Attr.idl:
      * dom/BeforeLoadEvent.idl:
      * dom/CDATASection.idl:
      * dom/CharacterData.idl:
      * dom/ClientRect.idl:
      * dom/ClientRectList.idl:
      * dom/Clipboard.idl:
      * dom/Comment.idl:
      * dom/CompositionEvent.idl:
      * dom/CustomEvent.idl:
      * dom/DOMCoreException.idl:
      * dom/DOMError.idl:
      * dom/DOMImplementation.idl:
      * dom/DOMNamedFlowCollection.idl:
      * dom/DOMStringList.idl:
      * dom/DOMStringMap.idl:
      * dom/DataTransferItem.idl:
      * dom/DataTransferItemList.idl:
      * dom/DeviceMotionEvent.idl:
      * dom/DeviceOrientationEvent.idl:
      * dom/Document.idl:
      * dom/DocumentFragment.idl:
      * dom/DocumentType.idl:
      * dom/Element.idl:
      * dom/Entity.idl:
      * dom/EntityReference.idl:
      * dom/ErrorEvent.idl:
      * dom/Event.idl:
      * dom/EventException.idl:
      * dom/EventListener.idl:
      * dom/EventTarget.idl:
      * dom/HashChangeEvent.idl:
      * dom/KeyboardEvent.idl:
      * dom/MessageChannel.idl:
      * dom/MessageEvent.idl:
      * dom/MessagePort.idl:
      * dom/MouseEvent.idl:
      * dom/MutationCallback.idl:
      * dom/MutationEvent.idl:
      * dom/MutationObserver.idl:
      * dom/MutationRecord.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeFilter.idl:
      * dom/NodeIterator.idl:
      * dom/NodeList.idl:
      * dom/Notation.idl:
      * dom/OverflowEvent.idl:
      * dom/PageTransitionEvent.idl:
      * dom/PopStateEvent.idl:
      * dom/ProcessingInstruction.idl:
      * dom/ProgressEvent.idl:
      * dom/PropertyNodeList.idl:
      * dom/Range.idl:
      * dom/RangeException.idl:
      * dom/RequestAnimationFrameCallback.idl:
      * dom/ShadowRoot.idl:
      * dom/StringCallback.idl:
      * dom/Text.idl:
      * dom/TextEvent.idl:
      * dom/Touch.idl:
      * dom/TouchEvent.idl:
      * dom/TouchList.idl:
      * dom/TreeWalker.idl:
      * dom/UIEvent.idl:
      * dom/WebKitAnimationEvent.idl:
      * dom/WebKitNamedFlow.idl:
      * dom/WebKitTransitionEvent.idl:
      * dom/WheelEvent.idl:
      * editing/DOMTransaction.idl:
      * editing/UndoManager.idl:
      * fileapi/Blob.idl:
      * fileapi/File.idl:
      * fileapi/FileError.idl:
      * fileapi/FileException.idl:
      * fileapi/FileList.idl:
      * fileapi/FileReader.idl:
      * fileapi/FileReaderSync.idl:
      * html/DOMFormData.idl:
      * html/DOMSettableTokenList.idl:
      * html/DOMTokenList.idl:
      * html/DOMURL.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLAnchorElement.idl:
      * html/HTMLAppletElement.idl:
      * html/HTMLAreaElement.idl:
      * html/HTMLAudioElement.idl:
      * html/HTMLBRElement.idl:
      * html/HTMLBaseElement.idl:
      * html/HTMLBaseFontElement.idl:
      * html/HTMLBodyElement.idl:
      * html/HTMLButtonElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLDListElement.idl:
      * html/HTMLDataListElement.idl:
      * html/HTMLDetailsElement.idl:
      * html/HTMLDialogElement.idl:
      * html/HTMLDirectoryElement.idl:
      * html/HTMLDivElement.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLEmbedElement.idl:
      * html/HTMLFieldSetElement.idl:
      * html/HTMLFontElement.idl:
      * html/HTMLFormElement.idl:
      * html/HTMLFrameElement.idl:
      * html/HTMLFrameSetElement.idl:
      * html/HTMLHRElement.idl:
      * html/HTMLHeadElement.idl:
      * html/HTMLHeadingElement.idl:
      * html/HTMLHtmlElement.idl:
      * html/HTMLIFrameElement.idl:
      * html/HTMLImageElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLIntentElement.idl:
      * html/HTMLKeygenElement.idl:
      * html/HTMLLIElement.idl:
      * html/HTMLLabelElement.idl:
      * html/HTMLLegendElement.idl:
      * html/HTMLLinkElement.idl:
      * html/HTMLMapElement.idl:
      * html/HTMLMarqueeElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLMenuElement.idl:
      * html/HTMLMetaElement.idl:
      * html/HTMLMeterElement.idl:
      * html/HTMLModElement.idl:
      * html/HTMLOListElement.idl:
      * html/HTMLObjectElement.idl:
      * html/HTMLOptGroupElement.idl:
      * html/HTMLOptionElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLOutputElement.idl:
      * html/HTMLParagraphElement.idl:
      * html/HTMLParamElement.idl:
      * html/HTMLPreElement.idl:
      * html/HTMLProgressElement.idl:
      * html/HTMLPropertiesCollection.idl:
      * html/HTMLQuoteElement.idl:
      * html/HTMLScriptElement.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLSourceElement.idl:
      * html/HTMLSpanElement.idl:
      * html/HTMLStyleElement.idl:
      * html/HTMLTableCaptionElement.idl:
      * html/HTMLTableCellElement.idl:
      * html/HTMLTableColElement.idl:
      * html/HTMLTableElement.idl:
      * html/HTMLTableRowElement.idl:
      * html/HTMLTableSectionElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/HTMLTitleElement.idl:
      * html/HTMLTrackElement.idl:
      * html/HTMLUListElement.idl:
      * html/HTMLUnknownElement.idl:
      * html/HTMLVideoElement.idl:
      * html/ImageData.idl:
      * html/MediaController.idl:
      * html/MediaError.idl:
      * html/MediaKeyError.idl:
      * html/MediaKeyEvent.idl:
      * html/MicroDataItemValue.idl:
      * html/RadioNodeList.idl:
      * html/TextMetrics.idl:
      * html/TimeRanges.idl:
      * html/ValidityState.idl:
      * html/VoidCallback.idl:
      * html/canvas/ArrayBuffer.idl:
      * html/canvas/ArrayBufferView.idl:
      * html/canvas/CanvasGradient.idl:
      * html/canvas/CanvasPattern.idl:
      * html/canvas/CanvasRenderingContext.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * html/canvas/DataView.idl:
      * html/canvas/EXTTextureFilterAnisotropic.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/WebGLActiveInfo.idl:
      * html/canvas/WebGLBuffer.idl:
      * html/canvas/WebGLCompressedTextureS3TC.idl:
      * html/canvas/WebGLContextAttributes.idl:
      * html/canvas/WebGLContextEvent.idl:
      * html/canvas/WebGLDebugRendererInfo.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLDepthTexture.idl:
      * html/canvas/WebGLFramebuffer.idl:
      * html/canvas/WebGLLoseContext.idl:
      * html/canvas/WebGLProgram.idl:
      * html/canvas/WebGLRenderbuffer.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * html/canvas/WebGLShader.idl:
      * html/canvas/WebGLShaderPrecisionFormat.idl:
      * html/canvas/WebGLTexture.idl:
      * html/canvas/WebGLUniformLocation.idl:
      * html/canvas/WebGLVertexArrayObjectOES.idl:
      * html/shadow/HTMLContentElement.idl:
      * html/shadow/HTMLShadowElement.idl:
      * html/track/TextTrack.idl:
      * html/track/TextTrackCue.idl:
      * html/track/TextTrackCueList.idl:
      * html/track/TextTrackList.idl:
      * html/track/TrackEvent.idl:
      * inspector/InjectedScriptHost.idl:
      * inspector/InspectorFrontendHost.idl:
      * inspector/JavaScriptCallFrame.idl:
      * inspector/ScriptProfile.idl:
      * inspector/ScriptProfileNode.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/AbstractView.idl:
      * page/BarInfo.idl:
      * page/Console.idl:
      * page/Coordinates.idl:
      * page/Crypto.idl:
      * page/DOMSecurityPolicy.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/DOMWindowPagePopup.idl:
      * page/EventSource.idl:
      * page/History.idl:
      * page/Location.idl:
      * page/MemoryInfo.idl:
      * page/Navigator.idl:
      * page/PagePopupController.idl:
      * page/Performance.idl:
      * page/PerformanceEntry.idl:
      * page/PerformanceEntryList.idl:
      * page/PerformanceNavigation.idl:
      * page/PerformanceResourceTiming.idl:
      * page/PerformanceTiming.idl:
      * page/Screen.idl:
      * page/SpeechInputEvent.idl:
      * page/SpeechInputResult.idl:
      * page/SpeechInputResultList.idl:
      * page/WebKitAnimation.idl:
      * page/WebKitAnimationList.idl:
      * page/WebKitPoint.idl:
      * page/WorkerNavigator.idl:
      * plugins/DOMMimeType.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPlugin.idl:
      * plugins/DOMPluginArray.idl:
      * storage/Storage.idl:
      * storage/StorageEvent.idl:
      * svg/ElementTimeControl.idl:
      * svg/SVGAElement.idl:
      * svg/SVGAltGlyphDefElement.idl:
      * svg/SVGAltGlyphElement.idl:
      * svg/SVGAltGlyphItemElement.idl:
      * svg/SVGAngle.idl:
      * svg/SVGAnimateColorElement.idl:
      * svg/SVGAnimateElement.idl:
      * svg/SVGAnimateMotionElement.idl:
      * svg/SVGAnimateTransformElement.idl:
      * svg/SVGAnimatedAngle.idl:
      * svg/SVGAnimatedBoolean.idl:
      * svg/SVGAnimatedEnumeration.idl:
      * svg/SVGAnimatedInteger.idl:
      * svg/SVGAnimatedLength.idl:
      * svg/SVGAnimatedLengthList.idl:
      * svg/SVGAnimatedNumber.idl:
      * svg/SVGAnimatedNumberList.idl:
      * svg/SVGAnimatedPreserveAspectRatio.idl:
      * svg/SVGAnimatedRect.idl:
      * svg/SVGAnimatedString.idl:
      * svg/SVGAnimatedTransformList.idl:
      * svg/SVGAnimationElement.idl:
      * svg/SVGCircleElement.idl:
      * svg/SVGClipPathElement.idl:
      * svg/SVGColor.idl:
      * svg/SVGComponentTransferFunctionElement.idl:
      * svg/SVGCursorElement.idl:
      * svg/SVGDefsElement.idl:
      * svg/SVGDescElement.idl:
      * svg/SVGDocument.idl:
      * svg/SVGElement.idl:
      * svg/SVGElementInstance.idl:
      * svg/SVGElementInstanceList.idl:
      * svg/SVGEllipseElement.idl:
      * svg/SVGException.idl:
      * svg/SVGExternalResourcesRequired.idl:
      * svg/SVGFEBlendElement.idl:
      * svg/SVGFEColorMatrixElement.idl:
      * svg/SVGFEComponentTransferElement.idl:
      * svg/SVGFECompositeElement.idl:
      * svg/SVGFEConvolveMatrixElement.idl:
      * svg/SVGFEDiffuseLightingElement.idl:
      * svg/SVGFEDisplacementMapElement.idl:
      * svg/SVGFEDistantLightElement.idl:
      * svg/SVGFEDropShadowElement.idl:
      * svg/SVGFEFloodElement.idl:
      * svg/SVGFEFuncAElement.idl:
      * svg/SVGFEFuncBElement.idl:
      * svg/SVGFEFuncGElement.idl:
      * svg/SVGFEFuncRElement.idl:
      * svg/SVGFEGaussianBlurElement.idl:
      * svg/SVGFEImageElement.idl:
      * svg/SVGFEMergeElement.idl:
      * svg/SVGFEMergeNodeElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFEOffsetElement.idl:
      * svg/SVGFEPointLightElement.idl:
      * svg/SVGFESpecularLightingElement.idl:
      * svg/SVGFESpotLightElement.idl:
      * svg/SVGFETileElement.idl:
      * svg/SVGFETurbulenceElement.idl:
      * svg/SVGFilterElement.idl:
      * svg/SVGFilterPrimitiveStandardAttributes.idl:
      * svg/SVGFitToViewBox.idl:
      * svg/SVGFontElement.idl:
      * svg/SVGFontFaceElement.idl:
      * svg/SVGFontFaceFormatElement.idl:
      * svg/SVGFontFaceNameElement.idl:
      * svg/SVGFontFaceSrcElement.idl:
      * svg/SVGFontFaceUriElement.idl:
      * svg/SVGForeignObjectElement.idl:
      * svg/SVGGElement.idl:
      * svg/SVGGlyphElement.idl:
      * svg/SVGGlyphRefElement.idl:
      * svg/SVGGradientElement.idl:
      * svg/SVGHKernElement.idl:
      * svg/SVGImageElement.idl:
      * svg/SVGLangSpace.idl:
      * svg/SVGLength.idl:
      * svg/SVGLengthList.idl:
      * svg/SVGLineElement.idl:
      * svg/SVGLinearGradientElement.idl:
      * svg/SVGLocatable.idl:
      * svg/SVGMPathElement.idl:
      * svg/SVGMarkerElement.idl:
      * svg/SVGMaskElement.idl:
      * svg/SVGMatrix.idl:
      * svg/SVGMetadataElement.idl:
      * svg/SVGMissingGlyphElement.idl:
      * svg/SVGNumber.idl:
      * svg/SVGNumberList.idl:
      * svg/SVGPaint.idl:
      * svg/SVGPathElement.idl:
      * svg/SVGPathSeg.idl:
      * svg/SVGPathSegArcAbs.idl:
      * svg/SVGPathSegArcRel.idl:
      * svg/SVGPathSegClosePath.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/SVGPathSegList.idl:
      * svg/SVGPathSegMovetoAbs.idl:
      * svg/SVGPathSegMovetoRel.idl:
      * svg/SVGPatternElement.idl:
      * svg/SVGPoint.idl:
      * svg/SVGPointList.idl:
      * svg/SVGPolygonElement.idl:
      * svg/SVGPolylineElement.idl:
      * svg/SVGPreserveAspectRatio.idl:
      * svg/SVGRadialGradientElement.idl:
      * svg/SVGRect.idl:
      * svg/SVGRectElement.idl:
      * svg/SVGRenderingIntent.idl:
      * svg/SVGSVGElement.idl:
      * svg/SVGScriptElement.idl:
      * svg/SVGSetElement.idl:
      * svg/SVGStopElement.idl:
      * svg/SVGStringList.idl:
      * svg/SVGStylable.idl:
      * svg/SVGStyleElement.idl:
      * svg/SVGSwitchElement.idl:
      * svg/SVGSymbolElement.idl:
      * svg/SVGTRefElement.idl:
      * svg/SVGTSpanElement.idl:
      * svg/SVGTests.idl:
      * svg/SVGTextContentElement.idl:
      * svg/SVGTextElement.idl:
      * svg/SVGTextPathElement.idl:
      * svg/SVGTextPositioningElement.idl:
      * svg/SVGTitleElement.idl:
      * svg/SVGTransform.idl:
      * svg/SVGTransformList.idl:
      * svg/SVGTransformable.idl:
      * svg/SVGURIReference.idl:
      * svg/SVGUnitTypes.idl:
      * svg/SVGUseElement.idl:
      * svg/SVGVKernElement.idl:
      * svg/SVGViewElement.idl:
      * svg/SVGViewSpec.idl:
      * svg/SVGZoomAndPan.idl:
      * svg/SVGZoomEvent.idl:
      * testing/InternalSettings.idl:
      * testing/Internals.idl:
      * testing/MallocStatistics.idl:
      * workers/AbstractWorker.idl:
      * workers/DedicatedWorkerContext.idl:
      * workers/SharedWorker.idl:
      * workers/SharedWorkerContext.idl:
      * workers/Worker.idl:
      * workers/WorkerContext.idl:
      * workers/WorkerLocation.idl:
      * xml/DOMParser.idl:
      * xml/XMLHttpRequest.idl:
      * xml/XMLHttpRequestException.idl:
      * xml/XMLHttpRequestProgressEvent.idl:
      * xml/XMLHttpRequestUpload.idl:
      * xml/XMLSerializer.idl:
      * xml/XPathEvaluator.idl:
      * xml/XPathException.idl:
      * xml/XPathExpression.idl:
      * xml/XPathNSResolver.idl:
      * xml/XPathResult.idl:
      * xml/XSLTProcessor.idl:
      Removed "module".
      
      Tools:
      
      * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityTextMarker.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityTextMarkerRange.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
      * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl:
      Removed "module".
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cab10cea
  18. 13 Jun, 2012 1 commit
    • commit-queue@webkit.org's avatar
      REGRESSION:Bindings sequence<T> in Console.idl, Internals.idl and... · 12bd64b5
      commit-queue@webkit.org authored
      REGRESSION:Bindings sequence<T> in Console.idl, Internals.idl and ScriptProfileNode.idl should be T[]
      https://bugs.webkit.org/show_bug.cgi?id=84863
      
      Patch by Vineet Chaudhary <vineet.chaudhary@motorola.com> on 2012-06-13
      Reviewed by Kentaro Hara.
      
      With reference to http://www.w3.org/TR/WebIDL/#idl-sequence
      "Sequences must not be used as the type of an attribute, constant or exception field."
      So we should use T[] instead of sequence<T>.
      
      Source/WebCore:
      
      Tests: bindings/scripts/test/TestObj.idl
             fast/harness/user-preferred-language.html
             inspector/profiler/cpu-profiler-profiling-without-inspector.html
             media/track/track-language-preference.html
      
      * bindings/scripts/CodeGenerator.pm:
      (GetSequenceType): Getter for getting sequence type.
      (GetArrayType): Getter for getting array type.
      (AssertNotSequenceType): Check sequences must not be used as the type of an attribute,
      constant or exception field.
      * bindings/scripts/CodeGeneratorCPP.pm:
      (SkipFunction): Exclude bindings code for type sequence.
      (SkipAttribute): Check for sequences must not be used as the type of an attribute,
      constant or exception field.
      (AddIncludesForType): Exclude header inclusion code for type array/sequence.
      * bindings/scripts/CodeGeneratorGObject.pm:
      (SkipAttribute): Check for sequences must not be used as the type of an attribute,
      constant or exception field.
      (SkipFunction): Exclude bindings code for type sequence.
      * bindings/scripts/CodeGeneratorJS.pm:
      (AddIncludesForType): Exclude header inclusion code for type array/sequence.
      (GenerateImplementation):  Check for sequences must not be used as the type of an attribute,
      constant or exception field.
      (GetNativeType):
      (JSValueToNative):
      (NativeToJSValue):
      * bindings/scripts/CodeGeneratorObjC.pm:
      (SkipFunction): Exclude bindings code for type sequence.
      (SkipAttribute): Exclude bindings code for type array.
      (AddForwardDeclarationsForType):
      (AddIncludesForType):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateNormalAttrGetter):
      (GetNativeType):
      (JSValueToNative):
      (CreateCustomSignature):
      (NativeToJSValue):
      * bindings/scripts/test/JS/JSTestObj.cpp: Updated code from run-bindings-tests.
      (WebCore):
      (WebCore::jsTestObjPrototypeFunctionMethodWithSequenceArg):
      * bindings/scripts/test/JS/JSTestObj.h: Updated code from run-bindings-tests.
      (WebCore):
      * bindings/scripts/test/TestObj.idl: Tests.
      * bindings/scripts/test/V8/V8TestObj.cpp:  Updated code from run-bindings-tests.
      (TestObjV8Internal):
      (WebCore::TestObjV8Internal::methodWithSequenceArgCallback):
      (WebCore):
      * inspector/ScriptProfileNode.idl: Using sequence<T> for children().
      * page/Console.idl: Using Array[T] for profiles attribute.
      * testing/Internals.idl: Using sequence<T> for userPreferredLanguages().
      
      LayoutTests:
      
      * fast/harness/user-preferred-language.html: Using getter and setter
      for userPreferredLanguages.
      * inspector/profiler/cpu-profiler-profiling-without-inspector.html:
      Use ScriptProfileNode.children as function.
      * media/track/track-language-preference-expected.txt:
      * media/track/track-language-preference.html: Using setter for
      userPreferredLanguages.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120206 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12bd64b5
  19. 20 Mar, 2012 1 commit
    • commit-queue@webkit.org's avatar
      https://bugs.webkit.org/show_bug.cgi?id=80696 · 69c1a246
      commit-queue@webkit.org authored
      Remove custom bindings for attribute type Array.
      
      Patch by Vineet Chaudhary <rgf748@motorola.com> on 2012-03-20
      Reviewed by Kentaro Hara.
      
      No new tests.
      
      * bindings/js/JSConsoleCustom.cpp: Removed custom function.
      (WebCore):
      * bindings/js/JSDOMBinding.h: Added template jsArray and toNativeArray.
      (WebCore):
      (WebCore::jsArray):
      (WebCore::toNativeArray):
      * bindings/scripts/CodeGenerator.pm: Modified codegenerators to generate appropriate code.
      (GetArrayType): Added GetArrayType to get return type of attribute interface.
      * bindings/scripts/CodeGeneratorGObject.pm: Modified codegenerators to generate appropriate code.
      (SkipAttribute):
      * bindings/scripts/CodeGeneratorJS.pm: Modified codegenerators to generate appropriate code.
      (AddIncludesForType):
      (JSValueToNative):
      (NativeToJSValue):
      * bindings/scripts/CodeGeneratorV8.pm: Modified codegenerators to generate appropriate code.
      (GenerateNormalAttrGetter):
      (GenerateNormalAttrSetter):
      (JSValueToNative):
      (NativeToJSValue):
      * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Updated results from running binding tests.
      (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::jsTestObjSequenceAttr):
      (WebCore::setJSTestObjSequenceAttr):
      (WebCore::jsTestObjPrototypeFunctionMethodReturningSequence):
      * bindings/scripts/test/V8/V8TestObj.cpp: Ditto.
      (WebCore::TestObjInternal::sequenceAttrAttrGetter):
      (WebCore::TestObjInternal::sequenceAttrAttrSetter):
      (WebCore::TestObjInternal::methodReturningSequenceCallback):
      * bindings/v8/V8Binding.h: Added template v8Array and toNativeArray.
      (WebCore):
      (WebCore::v8Array):
      (WebCore::toNativeArray):
      * bindings/v8/custom/V8ConsoleCustom.cpp: Removed custom function.
      (WebCore):
      * page/Console.idl: Replaced attribute type Array to sequence<SriptProfile> to remove
        custom bindings.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111416 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69c1a246
  20. 10 Feb, 2012 4 commits
    • haraken@chromium.org's avatar
      Replace [CustomArgumentHandling] with [CallWith=ScriptArguments|CallStack] · 98fd2b5b
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78327
      
      Reviewed by Adam Barth.
      
      This patch replaces [CustomArgumentHandling] with [CallWith=ScriptArguments|CallStack],
      and removes [CustomArgumentHandling].
      
      Test: bindings/scripts/test/TestObj.idl
      
      * bindings/scripts/CodeGeneratorJS.pm: Modified to replace
      [CustomArgumentHandling] with [CallWith=ScriptArguments|CallStack].
      (GenerateCallWith):
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorV8.pm: Ditto.
      (GenerateCallWith):
      * bindings/scripts/CodeGeneratorGObject.pm: Ditto.
      (SkipFunction):
      (GenerateFunction):
      * bindings/scripts/CodeGeneratorCPP.pm: Simply removed [CustomArgumentHandling]
      from the skipped list. By this fix, CodeGeneratorCPP.pm will generate
      meaningless code for attributes or methods which was previously marked as
      [CustomArgumentHandling], but this change will be harmless.
      (ShouldSkipType):
      
      * bindings/v8/custom/V8ConsoleCustom.cpp: Changed the argument order.
      (WebCore::V8Console::assertCallback):
      * page/Console.cpp: Ditto.
      (WebCore::Console::assertCondition):
      (WebCore::Console::timeEnd):
      * page/Console.h: Ditto.
      (Console):
      
      * bindings/scripts/test/TestObj.idl: Added test cases for [CallWith=ScriptArguments|CallStack].
      
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Updated run-bindings-tests results.
      (WebDOMTestObj::withScriptArgumentsAndCallStackAttribute):
      (WebDOMTestObj::setWithScriptArgumentsAndCallStackAttribute):
      (WebDOMTestObj::withScriptArgumentsAndCallStack):
      * bindings/scripts/test/CPP/WebDOMTestObj.h:
      * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
      (webkit_dom_test_obj_with_script_arguments_and_call_stack):
      (webkit_dom_test_obj_get_with_script_arguments_and_call_stack_attribute):
      (webkit_dom_test_obj_set_with_script_arguments_and_call_stack_attribute):
      (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):
      (WebCore::jsTestObjWithScriptArgumentsAndCallStackAttribute):
      (WebCore::setJSTestObjWithScriptArgumentsAndCallStackAttribute):
      (WebCore::jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack):
      * bindings/scripts/test/JS/JSTestObj.h:
      (WebCore):
      * bindings/scripts/test/ObjC/DOMTestObj.h:
      * bindings/scripts/test/ObjC/DOMTestObj.mm:
      (-[DOMTestObj withScriptArgumentsAndCallStackAttribute]):
      (-[DOMTestObj setWithScriptArgumentsAndCallStackAttribute:]):
      (-[DOMTestObj withScriptArgumentsAndCallStack]):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::withScriptArgumentsAndCallStackAttributeAttrGetter):
      (TestObjInternal):
      (WebCore::TestObjInternal::withScriptArgumentsAndCallStackAttributeAttrSetter):
      (WebCore::TestObjInternal::withScriptArgumentsAndCallStackCallback):
      (WebCore):
      (WebCore::ConfigureV8TestObjTemplate):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98fd2b5b
    • haraken@chromium.org's avatar
      Unreviewed, rolling out r107368. · 94c28f0f
      haraken@chromium.org authored
      http://trac.webkit.org/changeset/107368
      https://bugs.webkit.org/show_bug.cgi?id=78327
      
      break GTK build
      
      * bindings/scripts/CodeGeneratorCPP.pm:
      (ShouldSkipType):
      * bindings/scripts/CodeGeneratorGObject.pm:
      (SkipFunction):
      (GenerateFunction):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateCallWith):
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateFunctionCallback):
      (GenerateCallWith):
      (GenerateFunctionCallString):
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
      * bindings/scripts/test/CPP/WebDOMTestObj.h:
      * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
      (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):
      (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
      * bindings/scripts/test/JS/JSTestObj.h:
      (WebCore):
      * bindings/scripts/test/ObjC/DOMTestObj.h:
      * bindings/scripts/test/ObjC/DOMTestObj.mm:
      (-[DOMTestObj customArgsAndException:]):
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::customArgsAndExceptionCallback):
      (TestObjInternal):
      (WebCore):
      (WebCore::ConfigureV8TestObjTemplate):
      * bindings/v8/custom/V8ConsoleCustom.cpp:
      (WebCore::V8Console::assertCallback):
      * page/Console.cpp:
      (WebCore::Console::assertCondition):
      (WebCore::Console::timeEnd):
      * page/Console.h:
      (Console):
      * page/Console.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94c28f0f
    • haraken@chromium.org's avatar
      Replace [CustomArgumentHandling] with [CallWith=ScriptArguments|CallStack] · 88957f12
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78327
      
      Reviewed by Adam Barth.
      
      This patch replaces [CustomArgumentHandling] with [CallWith=ScriptArguments|CallStack],
      and removes [CustomArgumentHandling].
      
      Test: bindings/scripts/test/TestObj.idl
      
      * bindings/scripts/CodeGeneratorJS.pm: Modified to replace
      [CustomArgumentHandling] with [CallWith=ScriptArguments|CallStack].
      (GenerateCallWith):
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorV8.pm: Ditto.
      (GenerateCallWith):
      * bindings/scripts/CodeGeneratorCPP.pm: Simply removed [CustomArgumentHandling]
      from the skipped list. By this fix, CodeGeneratorCPP.pm will generate
      meaningless code for attributes or methods which was previously marked as
      [CustomArgumentHandling], but this change will be harmless.
      (ShouldSkipType):
      * bindings/scripts/CodeGeneratorGObject.pm: Ditto.
      (SkipFunction):
      (GenerateFunction):
      
      * bindings/v8/custom/V8ConsoleCustom.cpp: Changed the argument order.
      (WebCore::V8Console::assertCallback):
      * page/Console.cpp: Ditto.
      (WebCore::Console::assertCondition):
      (WebCore::Console::timeEnd):
      * page/Console.h: Ditto.
      (Console):
      
      * bindings/scripts/test/TestObj.idl: Added test cases for [CallWith=ScriptArguments|CallStack].
      
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Updated run-bindings-tests results.
      (WebDOMTestObj::withScriptArgumentsAndCallStackAttribute):
      (WebDOMTestObj::setWithScriptArgumentsAndCallStackAttribute):
      (WebDOMTestObj::withScriptArgumentsAndCallStack):
      * bindings/scripts/test/CPP/WebDOMTestObj.h:
      * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
      (webkit_dom_test_obj_with_script_arguments_and_call_stack):
      (webkit_dom_test_obj_get_with_script_arguments_and_call_stack_attribute):
      (webkit_dom_test_obj_set_with_script_arguments_and_call_stack_attribute):
      (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):
      (WebCore::jsTestObjWithScriptArgumentsAndCallStackAttribute):
      (WebCore::setJSTestObjWithScriptArgumentsAndCallStackAttribute):
      (WebCore::jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack):
      * bindings/scripts/test/JS/JSTestObj.h:
      (WebCore):
      * bindings/scripts/test/ObjC/DOMTestObj.h:
      * bindings/scripts/test/ObjC/DOMTestObj.mm:
      (-[DOMTestObj withScriptArgumentsAndCallStackAttribute]):
      (-[DOMTestObj setWithScriptArgumentsAndCallStackAttribute:]):
      (-[DOMTestObj withScriptArgumentsAndCallStack]):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::withScriptArgumentsAndCallStackAttributeAttrGetter):
      (TestObjInternal):
      (WebCore::TestObjInternal::withScriptArgumentsAndCallStackAttributeAttrSetter):
      (WebCore::TestObjInternal::withScriptArgumentsAndCallStackCallback):
      (WebCore):
      (WebCore::ConfigureV8TestObjTemplate):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88957f12
    • haraken@chromium.org's avatar
      Rename [Optional=CallWithDefaultValue] and [Optional=CallWithNullValue] · 18d2e414
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78200
      
      Reviewed by Adam Barth.
      
      [Optional=CallWithDefaultValue] and [Optional=CallWithNullValue] are confusing.
      
      - [Optional=CallWithDefaultValue] indicates that a missing value should be treated
      as if the JavaScript undefined is passed.
      - [Optional=CallWithNullValue] indicates that a missing value should be treated as
      the WebKit null value (i.e. JSValue() or v8::Local<v8::Value>()).
      - Actually, the difference between [Optional=CallWithDefaultValue] and
      [Optional=CallWithNullValue] will appear only when the type of the missing value
      is DOMString. In case of [Optional=CallWithDefaultValue], the missing value is
      converted to the string "undefined". On the other hand, in case of
      [Optional=CallWithNullValue], the missing value is converted to the WebKit null string.
      
      With these observations, this patch renames as follows:
      
      - Rename [Optional=CallWithDefaultValue] to [Optional=DefaultIsUndefined].
      - Rename [Optional=CallWithNullValue] to [Optional=DefaultIsNullString].
      
      Test: bindings/scripts/test/TestObj.idl
      
      * bindings/js/JSDOMBinding.h: Renamed MissingIsEmpty to DefaultIsNullString,
      renamed MissingIsUndefined to DefaultIsUndefined.
      * bindings/v8/V8Binding.h: Ditto.
      * bindings/v8/custom/V8BindingMacros.h: Ditto.
      
      * bindings/scripts/CodeGeneratorJS.pm: Modified to support the renaming.
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorV8.pm: Ditto.
      (GenerateParametersCheck):
      (RequiresCustomSignature):
      
      * bindings/scripts/test/TestObj.idl: Renamed [Optional=...] as described above.
      * bindings/scripts/test/TestInterface.idl: Ditto.
      * bindings/scripts/test/TestNamedConstructor.idl: Ditto.
      
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Updated run-bindings-tests results.
      (WebDOMTestObj::methodWithOptionalString):
      (WebDOMTestObj::methodWithOptionalStringIsUndefinedString):
      (WebDOMTestObj::methodWithOptionalStringIsNullString):
      * bindings/scripts/test/CPP/WebDOMTestObj.h:
      * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
      (webkit_dom_test_obj_method_with_optional_string):
      (webkit_dom_test_obj_method_with_optional_string_is_undefined_string):
      (webkit_dom_test_obj_method_with_optional_string_is_null_string):
      * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
      * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
      (WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore):
      (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalString):
      (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringIsUndefinedString):
      (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringIsNullString):
      * bindings/scripts/test/JS/JSTestObj.h:
      (WebCore):
      * bindings/scripts/test/ObjC/DOMTestObj.h:
      * bindings/scripts/test/ObjC/DOMTestObj.mm:
      (-[DOMTestObj methodWithOptionalString:]):
      (-[DOMTestObj methodWithOptionalStringIsUndefinedString:]):
      (-[DOMTestObj methodWithOptionalStringIsNullString:]):
      * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
      (WebCore::V8TestNamedConstructorConstructorCallback):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::methodWithOptionalStringCallback):
      (TestObjInternal):
      (WebCore::TestObjInternal::methodWithOptionalStringIsUndefinedStringCallback):
      (WebCore::TestObjInternal::methodWithOptionalStringIsNullStringCallback):
      (WebCore):
      
      * Modules/gamepad/GamepadList.idl: Renamed [Optional=...] as described above.
      * Modules/intents/Intent.idl:
      * css/CSSMediaRule.idl:
      * css/CSSPrimitiveValue.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSValueList.idl:
      * css/MediaList.idl:
      * css/MediaQueryList.idl:
      * css/MediaQueryListListener.idl:
      * css/StyleMedia.idl:
      * css/StyleSheetList.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * css/WebKitCSSMatrix.idl:
      * dom/CharacterData.idl:
      * dom/ClientRectList.idl:
      * dom/CompositionEvent.idl:
      * dom/CustomEvent.idl:
      * dom/DOMImplementation.idl:
      * dom/DOMStringList.idl:
      * dom/DataTransferItem.idl:
      * dom/DataTransferItemList.idl:
      * dom/DeviceMotionEvent.idl:
      * dom/DeviceOrientationEvent.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/Event.idl:
      * dom/HashChangeEvent.idl:
      * dom/KeyboardEvent.idl:
      * dom/MessageEvent.idl:
      * dom/MouseEvent.idl:
      * dom/MutationEvent.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeFilter.idl:
      * dom/NodeList.idl:
      * dom/OverflowEvent.idl:
      * dom/Range.idl:
      * dom/ShadowRoot.idl:
      * dom/Text.idl:
      * dom/TextEvent.idl:
      * dom/TouchEvent.idl:
      * dom/UIEvent.idl:
      * dom/WheelEvent.idl:
      * html/DOMFormData.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLAudioElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLOptionElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLTableElement.idl:
      * html/HTMLTableRowElement.idl:
      * html/HTMLTableSectionElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/TextTrackCue.idl:
      * html/canvas/CanvasGradient.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * page/Console.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/History.idl:
      * page/Location.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPlugin.idl:
      * plugins/DOMPluginArray.idl:
      * storage/IDBDatabase.idl:
      * storage/StorageEvent.idl:
      * svg/ElementTimeControl.idl:
      * svg/SVGDocument.idl:
      * svg/SVGElementInstanceList.idl:
      * svg/SVGFEDropShadowElement.idl:
      * svg/SVGFEGaussianBlurElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFilterElement.idl:
      * svg/SVGLocatable.idl:
      * svg/SVGMarkerElement.idl:
      * svg/SVGPathElement.idl:
      * svg/SVGSVGElement.idl:
      * svg/SVGStylable.idl:
      * svg/SVGTests.idl:
      * svg/SVGTextContentElement.idl:
      * webaudio/AudioNode.idl:
      * workers/SharedWorker.idl:
      * workers/WorkerContext.idl:
      * xml/DOMParser.idl:
      * xml/XMLSerializer.idl:
      * xml/XPathEvaluator.idl:
      * xml/XPathExpression.idl:
      * xml/XPathNSResolver.idl:
      * xml/XPathResult.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18d2e414
  21. 09 Feb, 2012 2 commits
    • haraken@chromium.org's avatar
      Unreviewed, rolling out r107182, r107186, r107189, r107191, · a5566bbd
      haraken@chromium.org authored
      and r107199.
      http://trac.webkit.org/changeset/107182
      http://trac.webkit.org/changeset/107186
      http://trac.webkit.org/changeset/107189
      http://trac.webkit.org/changeset/107191
      http://trac.webkit.org/changeset/107199
      https://bugs.webkit.org/show_bug.cgi?id=78200
      
      Layout tests of JSC-related port are crashing
      
      * Modules/gamepad/GamepadList.idl:
      * Modules/intents/Intent.idl:
      * bindings/js/JSDOMBinding.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateGetOwnPropertySlotBody):
      (GenerateParametersCheck):
      (NativeToJSValue):
      (GenerateConstructorDefinition):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateParametersCheck):
      (GenerateImplementationIndexer):
      (RequiresCustomSignature):
      (NativeToJSValue):
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
      * bindings/scripts/test/CPP/WebDOMTestObj.h:
      * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
      * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
      * bindings/scripts/test/JS/JSFloat64Array.cpp:
      (WebCore::jsFloat64ArrayPrototypeFunctionFoo):
      * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
      (WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunction):
      (WebCore::jsTestActiveDOMObjectPrototypeFunctionPostMessage):
      * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
      (WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction):
      * bindings/scripts/test/JS/JSTestEventTarget.cpp:
      (WebCore::jsTestEventTargetPrototypeFunctionItem):
      (WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent):
      * bindings/scripts/test/JS/JSTestInterface.cpp:
      (WebCore::JSTestInterfaceConstructor::constructJSTestInterface):
      (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
      * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
      (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
      * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
      (WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore):
      (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
      (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
      (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
      (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
      (WebCore::jsTestObjPrototypeFunctionSerializedValue):
      (WebCore::jsTestObjPrototypeFunctionIdbKey):
      (WebCore::jsTestObjPrototypeFunctionOptionsObject):
      (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
      (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
      (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
      (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
      (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
      (WebCore::jsTestObjConstructorFunctionClassMethodWithOptional):
      (WebCore::jsTestObjConstructorFunctionOverloadedMethod11):
      (WebCore::jsTestObjConstructorFunctionOverloadedMethod12):
      (WebCore::jsTestObjPrototypeFunctionConvert1):
      (WebCore::jsTestObjPrototypeFunctionConvert2):
      (WebCore::jsTestObjPrototypeFunctionConvert3):
      (WebCore::jsTestObjPrototypeFunctionConvert4):
      (WebCore::jsTestObjPrototypeFunctionConvert5):
      (WebCore::jsTestObjPrototypeFunctionStrictFunction):
      * bindings/scripts/test/JS/JSTestObj.h:
      (WebCore):
      * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
      (WebCore::JSTestSerializedScriptValueInterfaceConstructor::constructJSTestSerializedScriptValueInterface):
      * bindings/scripts/test/ObjC/DOMTestObj.h:
      * bindings/scripts/test/ObjC/DOMTestObj.mm:
      * bindings/scripts/test/TestInterface.idl:
      * bindings/scripts/test/TestNamedConstructor.idl:
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/V8/V8Float64Array.cpp:
      (WebCore::Float64ArrayInternal::fooCallback):
      * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
      (WebCore::TestActiveDOMObjectInternal::excitingFunctionCallback):
      (WebCore::TestActiveDOMObjectInternal::postMessageCallback):
      * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
      (WebCore::TestCustomNamedGetterInternal::anotherFunctionCallback):
      * bindings/scripts/test/V8/V8TestEventTarget.cpp:
      (WebCore::TestEventTargetInternal::itemCallback):
      (WebCore::TestEventTargetInternal::dispatchEventCallback):
      * bindings/scripts/test/V8/V8TestInterface.cpp:
      (WebCore::TestInterfaceInternal::supplementalMethod2Callback):
      (WebCore::V8TestInterface::constructorCallback):
      * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
      (WebCore::TestMediaQueryListListenerInternal::methodCallback):
      * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
      (WebCore::V8TestNamedConstructorConstructorCallback):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::voidMethodWithArgsCallback):
      (WebCore::TestObjInternal::intMethodWithArgsCallback):
      (WebCore::TestObjInternal::objMethodWithArgsCallback):
      (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
      (WebCore::TestObjInternal::idbKeyCallback):
      (WebCore::TestObjInternal::optionsObjectCallback):
      (WebCore::TestObjInternal::customArgsAndExceptionCallback):
      (WebCore::TestObjInternal::methodWithOptionalArgCallback):
      (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
      (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
      (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
      (WebCore::TestObjInternal::overloadedMethod1Callback):
      (WebCore::TestObjInternal::overloadedMethod2Callback):
      (WebCore::TestObjInternal::overloadedMethod3Callback):
      (WebCore::TestObjInternal::overloadedMethod4Callback):
      (WebCore::TestObjInternal::overloadedMethod6Callback):
      (WebCore::TestObjInternal::overloadedMethod7Callback):
      (WebCore::TestObjInternal::classMethodWithOptionalCallback):
      (WebCore::TestObjInternal::overloadedMethod11Callback):
      (WebCore::TestObjInternal::overloadedMethod12Callback):
      (WebCore::TestObjInternal::enabledAtRuntimeMethod1Callback):
      (WebCore::TestObjInternal::enabledAtRuntimeMethod2Callback):
      (WebCore::TestObjInternal::convert1Callback):
      (WebCore::TestObjInternal::convert2Callback):
      (WebCore::TestObjInternal::convert3Callback):
      (WebCore::TestObjInternal::convert4Callback):
      (WebCore::TestObjInternal::convert5Callback):
      (WebCore::TestObjInternal::strictFunctionCallback):
      (WebCore):
      * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
      (WebCore::V8TestSerializedScriptValueInterface::constructorCallback):
      * bindings/v8/V8Binding.h:
      * bindings/v8/custom/V8BindingMacros.h:
      * css/CSSCharsetRule.idl:
      * css/CSSImportRule.idl:
      * css/CSSMediaRule.idl:
      * css/CSSPageRule.idl:
      * css/CSSPrimitiveValue.idl:
      * css/CSSRule.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleRule.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSValue.idl:
      * css/CSSValueList.idl:
      * css/MediaList.idl:
      * css/MediaQueryList.idl:
      * css/MediaQueryListListener.idl:
      * css/StyleMedia.idl:
      * css/StyleSheet.idl:
      * css/StyleSheetList.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * css/WebKitCSSMatrix.idl:
      * dom/Attr.idl:
      * dom/CharacterData.idl:
      * dom/ClientRectList.idl:
      * dom/Clipboard.idl:
      * dom/CompositionEvent.idl:
      * dom/CustomEvent.idl:
      * dom/DOMImplementation.idl:
      * dom/DOMStringList.idl:
      * dom/DataTransferItem.idl:
      * dom/DataTransferItemList.idl:
      * dom/DeviceMotionEvent.idl:
      * dom/DeviceOrientationEvent.idl:
      * dom/Document.idl:
      * dom/DocumentType.idl:
      * dom/Element.idl:
      * dom/Entity.idl:
      * dom/Event.idl:
      * dom/HashChangeEvent.idl:
      * dom/KeyboardEvent.idl:
      * dom/MessageEvent.idl:
      * dom/MouseEvent.idl:
      * dom/MutationEvent.idl:
      * dom/MutationRecord.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeFilter.idl:
      * dom/NodeList.idl:
      * dom/Notation.idl:
      * dom/OverflowEvent.idl:
      * dom/ProcessingInstruction.idl:
      * dom/Range.idl:
      * dom/ShadowRoot.idl:
      * dom/Text.idl:
      * dom/TextEvent.idl:
      * dom/TouchEvent.idl:
      * dom/UIEvent.idl:
      * dom/WheelEvent.idl:
      * html/DOMFormData.idl:
      * html/DOMTokenList.idl:
      * html/DOMURL.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLAudioElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLOptionElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLTableElement.idl:
      * html/HTMLTableRowElement.idl:
      * html/HTMLTableSectionElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/TextTrackCue.idl:
      * html/canvas/CanvasGradient.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * page/Console.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/History.idl:
      * page/Location.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPlugin.idl:
      * plugins/DOMPluginArray.idl:
      * storage/IDBDatabase.idl:
      * storage/IDBObjectStore.idl:
      * storage/IDBRequest.idl:
      * storage/Storage.idl:
      * storage/StorageEvent.idl:
      * svg/ElementTimeControl.idl:
      * svg/SVGDocument.idl:
      * svg/SVGElementInstanceList.idl:
      * svg/SVGFEDropShadowElement.idl:
      * svg/SVGFEGaussianBlurElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFilterElement.idl:
      * svg/SVGLocatable.idl:
      * svg/SVGMarkerElement.idl:
      * svg/SVGPathElement.idl:
      * svg/SVGSVGElement.idl:
      * svg/SVGStylable.idl:
      * svg/SVGTests.idl:
      * svg/SVGTextContentElement.idl:
      * webaudio/AudioNode.idl:
      * websockets/WebSocket.idl:
      * workers/SharedWorker.idl:
      * workers/WorkerContext.idl:
      * xml/DOMParser.idl:
      * xml/XMLHttpRequest.idl:
      * xml/XMLSerializer.idl:
      * xml/XPathEvaluator.idl:
      * xml/XPathExpression.idl:
      * xml/XPathNSResolver.idl:
      * xml/XPathResult.idl:
      * xml/XSLTProcessor.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5566bbd
    • haraken@chromium.org's avatar
      Rename [Optional=CallWithDefalutValue] and [Optional=CallWithNullValue] · c76764bd
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78200
      
      Reviewed by Adam Barth.
      
      [Optional=CallWithDefalutValue] and [Optional=CallWithNullValue] are confusing.
      
      - [Optional=CallWithDefalutValue] indicates that a missing value should be treated
      as if the JavaScript undefined is passed.
      - [Optional=CallWithNullValue] indicates that a missing value should be treated as
      the WebKit null value (i.e. JSValue() or v8::Local<v8::Value>()).
      - Actually, the difference between [Optional=CallWithDefalutValue] and
      [Optional=CallWithNullValue] appears only when the type of the missing value is DOMString.
      In case of [Optional=CallWithDefalutValue], the missing value is converted to the string
      "undefined". On the other hand, in case of [Optional=CallWithNullValue], the missing
      value is converted to the WebKit null string.
      
      With these observations, this patch renames them as follows:
      
      - Rename [Optional=CallWithDefalutValue] to [Optional=TreatAsUndefined].
      - Remove [Optional=CallWithNullValue]. Instead, we use
      [Optional=TreatAsUndefined, TreatUndefinedAs=NullString].
      
      Test: bindings/scripts/test/TestInterface.idl
      
      * bindings/js/JSDOMBinding.h: Renamed MissingIsUndefined to MissingIsUndefinedValue,
      renamed MissingIsEmpty to MissingIsNullValue.
      * bindings/v8/V8Binding.h: Ditto.
      * bindings/v8/custom/V8BindingMacros.h: Ditto.
      
      * bindings/scripts/CodeGeneratorJS.pm: Modified to support the IDL attribute renaming.
      (GenerateParametersCheck):
      (GenerateConstructorDefinition):
      * bindings/scripts/CodeGeneratorV8.pm: Ditto.
      (GenerateParametersCheck):
      (RequiresCustomSignature):
      
      * Modules/gamepad/GamepadList.idl: Renamed IDL attributes as described above.
      * Modules/intents/Intent.idl:
      * css/CSSMediaRule.idl:
      * css/CSSPrimitiveValue.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSValueList.idl:
      * css/MediaList.idl:
      * css/MediaQueryList.idl:
      * css/MediaQueryListListener.idl:
      * css/StyleMedia.idl:
      * css/StyleSheetList.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * css/WebKitCSSMatrix.idl:
      * dom/CharacterData.idl:
      * dom/ClientRectList.idl:
      * dom/CompositionEvent.idl:
      * dom/CustomEvent.idl:
      * dom/DOMImplementation.idl:
      * dom/DOMStringList.idl:
      * dom/DataTransferItem.idl:
      * dom/DataTransferItemList.idl:
      * dom/DeviceMotionEvent.idl:
      * dom/DeviceOrientationEvent.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/Event.idl:
      * dom/HashChangeEvent.idl:
      * dom/KeyboardEvent.idl:
      * dom/MessageEvent.idl:
      * dom/MouseEvent.idl:
      * dom/MutationEvent.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeFilter.idl:
      * dom/NodeList.idl:
      * dom/OverflowEvent.idl:
      * dom/Range.idl:
      * dom/ShadowRoot.idl:
      * dom/Text.idl:
      * dom/TextEvent.idl:
      * dom/TouchEvent.idl:
      * dom/UIEvent.idl:
      * dom/WheelEvent.idl:
      * html/DOMFormData.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLAudioElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLOptionElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLTableElement.idl:
      * html/HTMLTableRowElement.idl:
      * html/HTMLTableSectionElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/TextTrackCue.idl:
      * html/canvas/CanvasGradient.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * page/Console.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/History.idl:
      * page/Location.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPlugin.idl:
      * plugins/DOMPluginArray.idl:
      * storage/IDBDatabase.idl:
      * storage/StorageEvent.idl:
      * svg/ElementTimeControl.idl:
      * svg/SVGDocument.idl:
      * svg/SVGElementInstanceList.idl:
      * svg/SVGFEDropShadowElement.idl:
      * svg/SVGFEGaussianBlurElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFilterElement.idl:
      * svg/SVGLocatable.idl:
      * svg/SVGMarkerElement.idl:
      * svg/SVGPathElement.idl:
      * svg/SVGSVGElement.idl:
      * svg/SVGStylable.idl:
      * svg/SVGTests.idl:
      * svg/SVGTextContentElement.idl:
      * webaudio/AudioNode.idl:
      * workers/SharedWorker.idl:
      * workers/WorkerContext.idl:
      * xml/DOMParser.idl:
      * xml/XMLSerializer.idl:
      * xml/XPathEvaluator.idl:
      * xml/XPathExpression.idl:
      * xml/XPathNSResolver.idl:
      * xml/XPathResult.idl:
      
      * bindings/scripts/test/TestInterface.idl: Added test cases for [Optional],
      [Optional=TreatAsUndefined] and [Optional=TreatAsUndefined, TreatUndefinedAs=NullString]
      * bindings/scripts/test/TestNamedConstructor.idl: Renamed IDL attributes as described above.
      * bindings/scripts/test/TestObj.idl: Ditto.
      
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Updated run-bindings-tests results.
      (WebDOMTestObj::methodWithOptionalString):
      (WebDOMTestObj::methodWithOptionalIsTreatAsUndefinedString):
      (WebDOMTestObj::methodWithOptionalIsNullStringString):
      * bindings/scripts/test/CPP/WebDOMTestObj.h: Ditto.
      * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Ditto.
      (webkit_dom_test_obj_method_with_optional_string):
      (webkit_dom_test_obj_method_with_optional_is_treat_as_undefined_string):
      (webkit_dom_test_obj_method_with_optional_is_null_string_string):
      * bindings/scripts/test/GObject/WebKitDOMTestObj.h: Ditto.
      * bindings/scripts/test/JS/JSFloat64Array.cpp: Ditto.
      (WebCore::jsFloat64ArrayPrototypeFunctionFoo):
      * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp: Ditto.
      (WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunction):
      (WebCore::jsTestActiveDOMObjectPrototypeFunctionPostMessage):
      * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp: Ditto.
      (WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction):
      * bindings/scripts/test/JS/JSTestEventTarget.cpp: Ditto.
      (WebCore::jsTestEventTargetPrototypeFunctionItem):
      (WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent):
      * bindings/scripts/test/JS/JSTestInterface.cpp: Ditto.
      (WebCore::JSTestInterfaceConstructor::constructJSTestInterface):
      (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
      * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: Ditto.
      (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
      * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: Ditto.
      (WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor):
      * bindings/scripts/test/JS/JSTestObj.cpp: Ditto.
      (WebCore):
      (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
      (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
      (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
      (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
      (WebCore::jsTestObjPrototypeFunctionSerializedValue):
      (WebCore::jsTestObjPrototypeFunctionIdbKey):
      (WebCore::jsTestObjPrototypeFunctionOptionsObject):
      (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
      (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
      (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
      (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
      (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalString):
      (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalIsTreatAsUndefinedString):
      (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalIsNullStringString):
      (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
      (WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
      (WebCore::jsTestObjConstructorFunctionClassMethodWithOptional):
      (WebCore::jsTestObjConstructorFunctionOverloadedMethod11):
      (WebCore::jsTestObjConstructorFunctionOverloadedMethod12):
      (WebCore::jsTestObjPrototypeFunctionConvert1):
      (WebCore::jsTestObjPrototypeFunctionConvert2):
      (WebCore::jsTestObjPrototypeFunctionConvert3):
      (WebCore::jsTestObjPrototypeFunctionConvert4):
      (WebCore::jsTestObjPrototypeFunctionConvert5):
      (WebCore::jsTestObjPrototypeFunctionStrictFunction):
      * bindings/scripts/test/JS/JSTestObj.h: Ditto.
      (WebCore):
      * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp: Ditto.
      (WebCore::JSTestSerializedScriptValueInterfaceConstructor::constructJSTestSerializedScriptValueInterface):
      * bindings/scripts/test/ObjC/DOMTestObj.h: Ditto.
      * bindings/scripts/test/ObjC/DOMTestObj.mm: Ditto.
      (-[DOMTestObj methodWithOptionalString:]):
      (-[DOMTestObj methodWithOptionalIsTreatAsUndefinedString:]):
      (-[DOMTestObj methodWithOptionalIsNullStringString:]):
      * bindings/scripts/test/V8/V8Float64Array.cpp: Ditto.
      (WebCore::Float64ArrayInternal::fooCallback):
      * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp: Ditto.
      (WebCore::TestActiveDOMObjectInternal::excitingFunctionCallback):
      (WebCore::TestActiveDOMObjectInternal::postMessageCallback):
      * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp: Ditto.
      (WebCore::TestCustomNamedGetterInternal::anotherFunctionCallback):
      * bindings/scripts/test/V8/V8TestEventTarget.cpp: Ditto.
      (WebCore::TestEventTargetInternal::itemCallback):
      (WebCore::TestEventTargetInternal::dispatchEventCallback):
      * bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
      (WebCore::TestInterfaceInternal::supplementalMethod2Callback):
      (WebCore::V8TestInterface::constructorCallback):
      * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp: Ditto.
      (WebCore::TestMediaQueryListListenerInternal::methodCallback):
      * bindings/scripts/test/V8/V8TestNamedConstructor.cpp: Ditto.
      (WebCore::V8TestNamedConstructorConstructorCallback):
      * bindings/scripts/test/V8/V8TestObj.cpp: Ditto.
      (WebCore::TestObjInternal::voidMethodWithArgsCallback):
      (WebCore::TestObjInternal::intMethodWithArgsCallback):
      (WebCore::TestObjInternal::objMethodWithArgsCallback):
      (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
      (WebCore::TestObjInternal::idbKeyCallback):
      (WebCore::TestObjInternal::optionsObjectCallback):
      (WebCore::TestObjInternal::customArgsAndExceptionCallback):
      (WebCore::TestObjInternal::methodWithOptionalArgCallback):
      (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
      (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
      (WebCore::TestObjInternal::methodWithOptionalStringCallback):
      (TestObjInternal):
      (WebCore::TestObjInternal::methodWithOptionalIsTreatAsUndefinedStringCallback):
      (WebCore::TestObjInternal::methodWithOptionalIsNullStringStringCallback):
      (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
      (WebCore::TestObjInternal::overloadedMethod1Callback):
      (WebCore::TestObjInternal::overloadedMethod2Callback):
      (WebCore::TestObjInternal::overloadedMethod3Callback):
      (WebCore::TestObjInternal::overloadedMethod4Callback):
      (WebCore::TestObjInternal::overloadedMethod6Callback):
      (WebCore::TestObjInternal::overloadedMethod7Callback):
      (WebCore::TestObjInternal::classMethodWithOptionalCallback):
      (WebCore::TestObjInternal::overloadedMethod11Callback):
      (WebCore::TestObjInternal::overloadedMethod12Callback):
      (WebCore::TestObjInternal::enabledAtRuntimeMethod1Callback):
      (WebCore::TestObjInternal::enabledAtRuntimeMethod2Callback):
      (WebCore::TestObjInternal::convert1Callback):
      (WebCore::TestObjInternal::convert2Callback):
      (WebCore::TestObjInternal::convert3Callback):
      (WebCore::TestObjInternal::convert4Callback):
      (WebCore::TestObjInternal::convert5Callback):
      (WebCore::TestObjInternal::strictFunctionCallback):
      (WebCore):
      * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp: Ditto.
      (WebCore::V8TestSerializedScriptValueInterface::constructorCallback):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c76764bd
  22. 07 Feb, 2012 3 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
  23. 06 Feb, 2012 1 commit
    • 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
  24. 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
  25. 02 Feb, 2012 1 commit
    • 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
  26. 03 Aug, 2011 1 commit
  27. 15 Jul, 2011 1 commit
    • commit-queue@webkit.org's avatar
      Web Inspector: Rename console.markTimeline() to console.timeStamp() for Firebug compatibility. · 058fb454
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=63317
      
      Patch by Mike West <mkwst@chromium.org> on 2011-07-15
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      Test: inspector/timeline/timeline-time-stamp.html
      
      * inspector/InspectorConsoleInstrumentation.h:
      (WebCore::InspectorInstrumentation::consoleTimeStamp):
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::consoleTimeStampImpl):
      * inspector/InspectorInstrumentation.h:
      * inspector/InspectorTimelineAgent.cpp:
      (WebCore::InspectorTimelineAgent::didTimeStamp):
      * inspector/InspectorTimelineAgent.h:
      * inspector/TimelineRecordFactory.cpp:
      (WebCore::TimelineRecordFactory::createTimeStampData):
      * inspector/TimelineRecordFactory.h:
      * inspector/front-end/TimelineAgent.js:
      * inspector/front-end/TimelineOverviewPane.js:
      (WebInspector.TimelineOverviewPane.prototype.update.markPercentagesForRecord):
      (WebInspector.TimelineOverviewPane.prototype.update):
      * inspector/front-end/TimelinePanel.js:
      (WebInspector.TimelinePanel):
      (WebInspector.TimelinePanel.prototype.get _recordStyles):
      (WebInspector.TimelinePanel.prototype._updateEventDividers):
      (WebInspector.TimelinePanel.prototype._createEventDivider):
      (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
      (WebInspector.TimelinePanel.prototype._clearPanel):
      (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
      * page/Console.cpp:
      (WebCore::Console::markTimeline):
      (WebCore::Console::timeStamp):
      * page/Console.h:
      * page/Console.idl:
      
      LayoutTests:
      
      * inspector/timeline/resources/timeline-iframe-data.html:
      * inspector/timeline/timeline-enum-stability-expected.txt:
      * inspector/timeline/timeline-event-dispatch.html:
      * inspector/timeline/timeline-mark-timeline-expected.txt:
      * inspector/timeline/timeline-mark-timeline.html:
      * inspector/timeline/timeline-script-tag-1-expected.txt:
      * inspector/timeline/timeline-test.js:
      (initialize_Timeline.InspectorTest.dumpTimelineRecord):
      * inspector/timeline/timeline-time-stamp-expected.txt: Added.
      * inspector/timeline/timeline-time-stamp.html: Copied from LayoutTests/inspector/timeline/timeline-mark-timeline.html.
      * platform/chromium/inspector/timeline/timeline-mark-timeline-expected.txt:
      * platform/chromium/inspector/timeline/timeline-time-stamp-expected.txt: Copied from LayoutTests/platform/chromium/inspector/timeline/timeline-mark-timeline-expected.txt.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      058fb454
  28. 17 Jun, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-06-17 Mark Pilgrim <pilgrim@chromium.org> · 2b74ad96
      commit-queue@webkit.org authored
              Reviewed by Adam Barth.
      
              Change IDL code generator to require all arguments by default
              https://bugs.webkit.org/show_bug.cgi?id=62750
      
              As per discussion on public-webapps, WebIDL is changing the default
              behavior to require all function arguments by default and raise an
              exception when an argument is missing. (This behavior is currently
              opt-in in WebKit's IDL system, on a function-by-function basis, with
              the "RequiresAllArguments=Raise" flag.) To order to match WebIDL as
              closely as possible, this patch adds an interface-level
              "LegacyDefaultOptionalArguments" flag and sets it on all existing IDL
              files (500+), then changes the code generator Perl scripts to behave
              the old way in the presence of the flag.
      
              No new tests required, all existing tests still pass.
      
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/scripts/test/TestCallback.idl:
              * bindings/scripts/test/TestInterface.idl:
              * bindings/scripts/test/TestMediaQueryListListener.idl:
              * bindings/scripts/test/TestObj.idl:
              * bindings/scripts/test/TestSerializedScriptValueInterface.idl:
              * css/CSSCharsetRule.idl:
              * css/CSSFontFaceRule.idl:
              * css/CSSImportRule.idl:
              * css/CSSMediaRule.idl:
              * css/CSSPageRule.idl:
              * css/CSSPrimitiveValue.idl:
              * css/CSSRule.idl:
              * css/CSSRuleList.idl:
              * css/CSSStyleDeclaration.idl:
              * css/CSSStyleRule.idl:
              * css/CSSStyleSheet.idl:
              * css/CSSUnknownRule.idl:
              * css/CSSValue.idl:
              * css/CSSValueList.idl:
              * css/Counter.idl:
              * css/MediaList.idl:
              * css/MediaQueryList.idl:
              * css/MediaQueryListListener.idl:
              * css/RGBColor.idl:
              * css/Rect.idl:
              * css/StyleMedia.idl:
              * css/StyleSheet.idl:
              * css/StyleSheetList.idl:
              * css/WebKitCSSKeyframeRule.idl:
              * css/WebKitCSSKeyframesRule.idl:
              * css/WebKitCSSMatrix.idl:
              * css/WebKitCSSTransformValue.idl:
              * dom/Attr.idl:
              * dom/BeforeLoadEvent.idl:
              * dom/BeforeProcessEvent.idl:
              * dom/CDATASection.idl:
              * dom/CharacterData.idl:
              * dom/ClientRect.idl:
              * dom/ClientRectList.idl:
              * dom/Clipboard.idl:
              * dom/Comment.idl:
              * dom/CompositionEvent.idl:
              * dom/CustomEvent.idl:
              * dom/DOMCoreException.idl:
              * dom/DOMImplementation.idl:
              * dom/DOMStringList.idl:
              * dom/DOMStringMap.idl:
              * dom/DataTransferItem.idl:
              * dom/DataTransferItems.idl:
              * dom/DeviceMotionEvent.idl:
              * dom/DeviceOrientationEvent.idl:
              * dom/Document.idl:
              * dom/DocumentFragment.idl:
              * dom/DocumentType.idl:
              * dom/Element.idl:
              * dom/Entity.idl:
              * dom/EntityReference.idl:
              * dom/ErrorEvent.idl:
              * dom/Event.idl:
              * dom/EventException.idl:
              * dom/EventListener.idl:
              * dom/EventTarget.idl:
              * dom/ExclusiveTrackList.idl:
              * dom/GeneratedStream.idl:
              * dom/HashChangeEvent.idl:
              * dom/KeyboardEvent.idl:
              * dom/MessageChannel.idl:
              * dom/MessageEvent.idl:
              * dom/MessagePort.idl:
              * dom/MouseEvent.idl:
              * dom/MultipleTrackList.idl:
              * dom/MutationEvent.idl:
              * dom/NamedNodeMap.idl:
              * dom/Node.idl:
              * dom/NodeFilter.idl:
              * dom/NodeIterator.idl:
              * dom/NodeList.idl:
              * dom/Notation.idl:
              * dom/OverflowEvent.idl:
              * dom/PageTransitionEvent.idl:
              * dom/PopStateEvent.idl:
              * dom/ProcessingInstruction.idl:
              * dom/ProgressEvent.idl:
              * dom/Range.idl:
              * dom/RangeException.idl:
              * dom/RequestAnimationFrameCallback.idl:
              * dom/Stream.idl:
              * dom/StreamEvent.idl:
              * dom/StreamList.idl:
              * dom/StringCallback.idl:
              * dom/Text.idl:
              * dom/TextEvent.idl:
              * dom/Touch.idl:
              * dom/TouchEvent.idl:
              * dom/TouchList.idl:
              * dom/TrackList.idl:
              * dom/TreeWalker.idl:
              * dom/UIEvent.idl:
              * dom/WebKitAnimationEvent.idl:
              * dom/WebKitTransitionEvent.idl:
              * dom/WheelEvent.idl:
              * fileapi/Blob.idl:
              * fileapi/DOMFileSystem.idl:
              * fileapi/DOMFileSystemSync.idl:
              * fileapi/DirectoryEntry.idl:
              * fileapi/DirectoryEntrySync.idl:
              * fileapi/DirectoryReader.idl:
              * fileapi/DirectoryReaderSync.idl:
              * fileapi/EntriesCallback.idl:
              * fileapi/Entry.idl:
              * fileapi/EntryArray.idl:
              * fileapi/EntryArraySync.idl:
              * fileapi/EntryCallback.idl:
              * fileapi/EntrySync.idl:
              * fileapi/ErrorCallback.idl:
              * fileapi/File.idl:
              * fileapi/FileCallback.idl:
              * fileapi/FileEntry.idl:
              * fileapi/FileEntrySync.idl:
              * fileapi/FileError.idl:
              * fileapi/FileException.idl:
              * fileapi/FileList.idl:
              * fileapi/FileReader.idl:
              * fileapi/FileReaderSync.idl:
              * fileapi/FileSystemCallback.idl:
              * fileapi/FileWriter.idl:
              * fileapi/FileWriterCallback.idl:
              * fileapi/FileWriterSync.idl:
              * fileapi/Metadata.idl:
              * fileapi/MetadataCallback.idl:
              * fileapi/OperationNotAllowedException.idl:
              * fileapi/WebKitBlobBuilder.idl:
              * fileapi/WebKitFlags.idl:
              * html/DOMFormData.idl:
              * html/DOMSettableTokenList.idl:
              * html/DOMTokenList.idl:
              * html/DOMURL.idl:
              * html/HTMLAllCollection.idl:
              * html/HTMLAnchorElement.idl:
              * html/HTMLAppletElement.idl:
              * html/HTMLAreaElement.idl:
              * html/HTMLAudioElement.idl:
              * html/HTMLBRElement.idl:
              * html/HTMLBaseElement.idl:
              * html/HTMLBaseFontElement.idl:
              * html/HTMLBlockquoteElement.idl:
              * html/HTMLBodyElement.idl:
              * html/HTMLButtonElement.idl:
              * html/HTMLCanvasElement.idl:
              * html/HTMLCollection.idl:
              * html/HTMLDListElement.idl:
              * html/HTMLDataListElement.idl:
              * html/HTMLDetailsElement.idl:
              * html/HTMLDirectoryElement.idl:
              * html/HTMLDivElement.idl:
              * html/HTMLDocument.idl:
              * html/HTMLElement.idl:
              * html/HTMLEmbedElement.idl:
              * html/HTMLFieldSetElement.idl:
              * html/HTMLFontElement.idl:
              * html/HTMLFormElement.idl:
              * html/HTMLFrameElement.idl:
              * html/HTMLFrameSetElement.idl:
              * html/HTMLHRElement.idl:
              * html/HTMLHeadElement.idl:
              * html/HTMLHeadingElement.idl:
              * html/HTMLHtmlElement.idl:
              * html/HTMLIFrameElement.idl:
              * html/HTMLImageElement.idl:
              * html/HTMLInputElement.idl:
              * html/HTMLIsIndexElement.idl:
              * html/HTMLKeygenElement.idl:
              * html/HTMLLIElement.idl:
              * html/HTMLLabelElement.idl:
              * html/HTMLLegendElement.idl:
              * html/HTMLLinkElement.idl:
              * html/HTMLMapElement.idl:
              * html/HTMLMarqueeElement.idl:
              * html/HTMLMediaElement.idl:
              * html/HTMLMenuElement.idl:
              * html/HTMLMetaElement.idl:
              * html/HTMLMeterElement.idl:
              * html/HTMLModElement.idl:
              * html/HTMLOListElement.idl:
              * html/HTMLObjectElement.idl:
              * html/HTMLOptGroupElement.idl:
              * html/HTMLOptionElement.idl:
              * html/HTMLOptionsCollection.idl:
              * html/HTMLOutputElement.idl:
              * html/HTMLParagraphElement.idl:
              * html/HTMLParamElement.idl:
              * html/HTMLPreElement.idl:
              * html/HTMLProgressElement.idl:
              * html/HTMLQuoteElement.idl:
              * html/HTMLScriptElement.idl:
              * html/HTMLSelectElement.idl:
              * html/HTMLSourceElement.idl:
              * html/HTMLStyleElement.idl:
              * html/HTMLTableCaptionElement.idl:
              * html/HTMLTableCellElement.idl:
              * html/HTMLTableColElement.idl:
              * html/HTMLTableElement.idl:
              * html/HTMLTableRowElement.idl:
              * html/HTMLTableSectionElement.idl:
              * html/HTMLTextAreaElement.idl:
              * html/HTMLTitleElement.idl:
              * html/HTMLTrackElement.idl:
              * html/HTMLUListElement.idl:
              * html/HTMLVideoElement.idl:
              * html/ImageData.idl:
              * html/MediaError.idl:
              * html/SpellcheckRange.idl:
              * html/SpellcheckRangeList.idl:
              * html/TextMetrics.idl:
              * html/TimeRanges.idl:
              * html/ValidityState.idl:
              * html/VoidCallback.idl:
              * html/canvas/ArrayBuffer.idl:
              * html/canvas/ArrayBufferView.idl:
              * html/canvas/CanvasGradient.idl:
              * html/canvas/CanvasPattern.idl:
              * html/canvas/CanvasPixelArray.idl:
              * html/canvas/CanvasRenderingContext.idl:
              * html/canvas/CanvasRenderingContext2D.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/WebGLActiveInfo.idl:
              * html/canvas/WebGLBuffer.idl:
              * html/canvas/WebGLContextAttributes.idl:
              * html/canvas/WebGLContextEvent.idl:
              * html/canvas/WebGLFramebuffer.idl:
              * html/canvas/WebGLProgram.idl:
              * html/canvas/WebGLRenderbuffer.idl:
              * html/canvas/WebGLRenderingContext.idl:
              * html/canvas/WebGLShader.idl:
              * html/canvas/WebGLTexture.idl:
              * html/canvas/WebGLUniformLocation.idl:
              * html/canvas/WebGLVertexArrayObjectOES.idl:
              * html/canvas/WebKitLoseContext.idl:
              * inspector/InjectedScriptHost.idl:
              * inspector/InspectorFrontendHost.idl:
              * inspector/JavaScriptCallFrame.idl:
              * inspector/ScriptProfile.idl:
              * inspector/ScriptProfileNode.idl:
              * loader/appcache/DOMApplicationCache.idl:
              * notifications/Notification.idl:
              * notifications/NotificationCenter.idl:
              * page/AbstractView.idl:
              * page/BarInfo.idl:
              * page/Console.idl:
              * page/Coordinates.idl:
              * page/Crypto.idl:
              * page/DOMSelection.idl:
              * page/DOMWindow.idl:
              * page/EventSource.idl:
              * page/Geolocation.idl:
              * page/Geoposition.idl:
              * page/History.idl:
              * page/Location.idl:
              * page/MemoryInfo.idl:
              * page/Navigator.idl:
              * page/NavigatorUserMediaError.idl:
              * page/NavigatorUserMediaErrorCallback.idl:
              * page/NavigatorUserMediaSuccessCallback.idl:
              * page/Performance.idl:
              * page/PerformanceNavigation.idl:
              * page/PerformanceTiming.idl:
              * page/PositionCallback.idl:
              * page/PositionError.idl:
              * page/PositionErrorCallback.idl:
              * page/Screen.idl:
              * page/SpeechInputEvent.idl:
              * page/SpeechInputResult.idl:
              * page/SpeechInputResultList.idl:
              * page/WebKitAnimation.idl:
              * page/WebKitAnimationList.idl:
              * page/WebKitPoint.idl:
              * page/WorkerNavigator.idl:
              * plugins/DOMMimeType.idl:
              * plugins/DOMMimeTypeArray.idl:
              * plugins/DOMPlugin.idl:
              * plugins/DOMPluginArray.idl:
              * storage/Database.idl:
              * storage/DatabaseCallback.idl:
              * storage/DatabaseSync.idl:
              * storage/IDBAny.idl:
              * storage/IDBCursor.idl:
              * storage/IDBCursorWithValue.idl:
              * storage/IDBDatabase.idl:
              * storage/IDBDatabaseError.idl:
              * storage/IDBDatabaseException.idl:
              * storage/IDBFactory.idl:
              * storage/IDBIndex.idl:
              * storage/IDBKey.idl:
              * storage/IDBKeyRange.idl:
              * storage/IDBObjectStore.idl:
              * storage/IDBRequest.idl:
              * storage/IDBTransaction.idl:
              * storage/IDBVersionChangeEvent.idl:
              * storage/IDBVersionChangeRequest.idl:
              * storage/SQLError.idl:
              * storage/SQLException.idl:
              * storage/SQLResultSet.idl:
              * storage/SQLResultSetRowList.idl:
              * storage/SQLStatementCallback.idl:
              * storage/SQLStatementErrorCallback.idl:
              * storage/SQLTransaction.idl:
              * storage/SQLTransactionCallback.idl:
              * storage/SQLTransactionErrorCallback.idl:
              * storage/SQLTransactionSync.idl:
              * storage/SQLTransactionSyncCallback.idl:
              * storage/Storage.idl:
              * storage/StorageEvent.idl:
              * storage/StorageInfo.idl:
              * storage/StorageInfoErrorCallback.idl:
              * storage/StorageInfoQuotaCallback.idl:
              * storage/StorageInfoUsageCallback.idl:
              * svg/ElementTimeControl.idl:
              * svg/SVGAElement.idl:
              * svg/SVGAltGlyphElement.idl:
              * svg/SVGAngle.idl:
              * svg/SVGAnimateColorElement.idl:
              * svg/SVGAnimateElement.idl:
              * svg/SVGAnimateMotionElement.idl:
              * svg/SVGAnimateTransformElement.idl:
              * svg/SVGAnimatedAngle.idl:
              * svg/SVGAnimatedBoolean.idl:
              * svg/SVGAnimatedEnumeration.idl:
              * svg/SVGAnimatedInteger.idl:
              * svg/SVGAnimatedLength.idl:
              * svg/SVGAnimatedLengthList.idl:
              * svg/SVGAnimatedNumber.idl:
              * svg/SVGAnimatedNumberList.idl:
              * svg/SVGAnimatedPreserveAspectRatio.idl:
              * svg/SVGAnimatedRect.idl:
              * svg/SVGAnimatedString.idl:
              * svg/SVGAnimatedTransformList.idl:
              * svg/SVGAnimationElement.idl:
              * svg/SVGCircleElement.idl:
              * svg/SVGClipPathElement.idl:
              * svg/SVGColor.idl:
              * svg/SVGComponentTransferFunctionElement.idl:
              * svg/SVGCursorElement.idl:
              * svg/SVGDefsElement.idl:
              * svg/SVGDescElement.idl:
              * svg/SVGDocument.idl:
              * svg/SVGElement.idl:
              * svg/SVGElementInstance.idl:
              * svg/SVGElementInstanceList.idl:
              * svg/SVGEllipseElement.idl:
              * svg/SVGException.idl:
              * svg/SVGExternalResourcesRequired.idl:
              * svg/SVGFEBlendElement.idl:
              * svg/SVGFEColorMatrixElement.idl:
              * svg/SVGFEComponentTransferElement.idl:
              * svg/SVGFECompositeElement.idl:
              * svg/SVGFEConvolveMatrixElement.idl:
              * svg/SVGFEDiffuseLightingElement.idl:
              * svg/SVGFEDisplacementMapElement.idl:
              * svg/SVGFEDistantLightElement.idl:
              * svg/SVGFEDropShadowElement.idl:
              * svg/SVGFEFloodElement.idl:
              * svg/SVGFEFuncAElement.idl:
              * svg/SVGFEFuncBElement.idl:
              * svg/SVGFEFuncGElement.idl:
              * svg/SVGFEFuncRElement.idl:
              * svg/SVGFEGaussianBlurElement.idl:
              * svg/SVGFEImageElement.idl:
              * svg/SVGFEMergeElement.idl:
              * svg/SVGFEMergeNodeElement.idl:
              * svg/SVGFEMorphologyElement.idl:
              * svg/SVGFEOffsetElement.idl:
              * svg/SVGFEPointLightElement.idl:
              * svg/SVGFESpecularLightingElement.idl:
              * svg/SVGFESpotLightElement.idl:
              * svg/SVGFETileElement.idl:
              * svg/SVGFETurbulenceElement.idl:
              * svg/SVGFilterElement.idl:
              * svg/SVGFilterPrimitiveStandardAttributes.idl:
              * svg/SVGFitToViewBox.idl:
              * svg/SVGFontElement.idl:
              * svg/SVGFontFaceElement.idl:
              * svg/SVGFontFaceFormatElement.idl:
              * svg/SVGFontFaceNameElement.idl:
              * svg/SVGFontFaceSrcElement.idl:
              * svg/SVGFontFaceUriElement.idl:
              * svg/SVGForeignObjectElement.idl:
              * svg/SVGGElement.idl:
              * svg/SVGGlyphElement.idl:
              * svg/SVGGradientElement.idl:
              * svg/SVGHKernElement.idl:
              * svg/SVGImageElement.idl:
              * svg/SVGLangSpace.idl:
              * svg/SVGLength.idl:
              * svg/SVGLengthList.idl:
              * svg/SVGLineElement.idl:
              * svg/SVGLinearGradientElement.idl:
              * svg/SVGLocatable.idl:
              * svg/SVGMPathElement.idl:
              * svg/SVGMarkerElement.idl:
              * svg/SVGMaskElement.idl:
              * svg/SVGMatrix.idl:
              * svg/SVGMetadataElement.idl:
              * svg/SVGMissingGlyphElement.idl:
              * svg/SVGNumber.idl:
              * svg/SVGNumberList.idl:
              * svg/SVGPaint.idl:
              * svg/SVGPathElement.idl:
              * svg/SVGPathSeg.idl:
              * svg/SVGPathSegArcAbs.idl:
              * svg/SVGPathSegArcRel.idl:
              * svg/SVGPathSegClosePath.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/SVGPathSegList.idl:
              * svg/SVGPathSegMovetoAbs.idl:
              * svg/SVGPathSegMovetoRel.idl:
              * svg/SVGPatternElement.idl:
              * svg/SVGPoint.idl:
              * svg/SVGPointList.idl:
              * svg/SVGPolygonElement.idl:
              * svg/SVGPolylineElement.idl:
              * svg/SVGPreserveAspectRatio.idl:
              * svg/SVGRadialGradientElement.idl:
              * svg/SVGRect.idl:
              * svg/SVGRectElement.idl:
              * svg/SVGRenderingIntent.idl:
              * svg/SVGSVGElement.idl:
              * svg/SVGScriptElement.idl:
              * svg/SVGSetElement.idl:
              * svg/SVGStopElement.idl:
              * svg/SVGStringList.idl:
              * svg/SVGStylable.idl:
              * svg/SVGStyleElement.idl:
              * svg/SVGSwitchElement.idl:
              * svg/SVGSymbolElement.idl:
              * svg/SVGTRefElement.idl:
              * svg/SVGTSpanElement.idl:
              * svg/SVGTests.idl:
              * svg/SVGTextContentElement.idl:
              * svg/SVGTextElement.idl:
              * svg/SVGTextPathElement.idl:
              * svg/SVGTextPositioningElement.idl:
              * svg/SVGTitleElement.idl:
              * svg/SVGTransform.idl:
              * svg/SVGTransformList.idl:
              * svg/SVGTransformable.idl:
              * svg/SVGURIReference.idl:
              * svg/SVGUnitTypes.idl:
              * svg/SVGUseElement.idl:
              * svg/SVGVKernElement.idl:
              * svg/SVGViewElement.idl:
              * svg/SVGViewSpec.idl:
              * svg/SVGZoomAndPan.idl:
              * svg/SVGZoomEvent.idl:
              * testing/Internals.idl:
              * webaudio/AudioBuffer.idl:
              * webaudio/AudioBufferSourceNode.idl:
              * webaudio/AudioChannelMerger.idl:
              * webaudio/AudioChannelSplitter.idl:
              * webaudio/AudioContext.idl:
              * webaudio/AudioDestinationNode.idl:
              * webaudio/AudioGain.idl:
              * webaudio/AudioGainNode.idl:
              * webaudio/AudioListener.idl:
              * webaudio/AudioNode.idl:
              * webaudio/AudioPannerNode.idl:
              * webaudio/AudioParam.idl:
              * webaudio/AudioProcessingEvent.idl:
              * webaudio/AudioSourceNode.idl:
              * webaudio/BiquadFilterNode.idl:
              * webaudio/ConvolverNode.idl:
              * webaudio/DelayNode.idl:
              * webaudio/DynamicsCompressorNode.idl:
              * webaudio/HighPass2FilterNode.idl:
              * webaudio/JavaScriptAudioNode.idl:
              * webaudio/LowPass2FilterNode.idl:
              * webaudio/OfflineAudioCompletionEvent.idl:
              * webaudio/RealtimeAnalyserNode.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/DOMParser.idl:
              * xml/XMLHttpRequest.idl:
              * xml/XMLHttpRequestException.idl:
              * xml/XMLHttpRequestProgressEvent.idl:
              * xml/XMLHttpRequestUpload.idl:
              * xml/XMLSerializer.idl:
              * xml/XPathEvaluator.idl:
              * xml/XPathException.idl:
              * xml/XPathExpression.idl:
              * xml/XPathNSResolver.idl:
              * xml/XPathResult.idl:
              * xml/XSLTProcessor.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b74ad96
  29. 25 Apr, 2011 1 commit
    • ggaren@apple.com's avatar
      2011-04-24 Geoffrey Garen <ggaren@apple.com> · 4e21a1e6
      ggaren@apple.com authored
              Reviewed by Sam Weinig.
      
              Removed a use of markDOMObjectWrapper: WebGL, XHR, workers; plus, more autogeneration
              https://bugs.webkit.org/show_bug.cgi?id=59307
      
              * WebCore.xcodeproj/project.pbxproj: Added Blob.idl, so it's easier to edit.
      
              * bindings/js/JSCSSRuleCustom.cpp:
              * bindings/js/JSCSSStyleDeclarationCustom.cpp:
              * bindings/js/JSCanvasRenderingContextCustom.cpp:
              * bindings/js/JSDOMApplicationCacheCustom.cpp: Autogenerate these instead
              of hand-coding them.
      
              * bindings/js/JSDOMBinding.h:
              (WebCore::root): Moved some GC helpers here from JSNodeCustom.h, because
              they're reasonably generic.
      
              * bindings/js/JSDOMImplementationCustom.cpp:
              * bindings/js/JSDOMStringMapCustom.cpp:
              * bindings/js/JSDOMTokenListCustom.cpp:
              * bindings/js/JSHTMLCollectionCustom.cpp:
              * bindings/js/JSMediaListCustom.cpp: Autogenerate these instead of
              hand-coding them.
      
              * bindings/js/JSMessageChannelCustom.cpp:
              (WebCore::JSMessageChannel::visitChildren):
              * bindings/js/JSMessagePortCustom.cpp:
              (WebCore::JSMessagePort::visitChildren): Use addOpaqueRoot instead of
              markDOMObjectWrapper. This is one of the few cases where a DOM object is
              considered a stand-alone root. It's not as efficient as the shared root
              case, but workers and message ports are very rare objects, so it's no
              big deal.
      
              * bindings/js/JSNamedNodeMapCustom.cpp: Autogenerate!
      
              * bindings/js/JSNodeCustom.h: Moved to JSDOMBinding.h.
      
              * bindings/js/JSSharedWorkerCustom.cpp:
              (WebCore::JSSharedWorker::visitChildren): Use addOpaqueRoot instead of
              markDOMObjectWrapper, as above. Once again, a stand-alone root.
      
              * bindings/js/JSStyleSheetCustom.cpp:
              * bindings/js/JSStyleSheetListCustom.cpp: Autogenerate!
      
              * bindings/js/JSWebGLRenderingContextCustom.cpp:
              (WebCore::JSWebGLRenderingContext::visitChildren): Use the opaque roots
              system for marking WebGL contexts and their associated satellite objects.
      
              * bindings/js/JSWorkerContextCustom.cpp:
              (WebCore::JSWorkerContext::visitChildren):
              * bindings/js/JSXMLHttpRequestCustom.cpp: Use addOpaqueRoot instead of
              markDOMObjectWrapper, as above. Once again, stand-alone roots.
      
              (WebCore::JSXMLHttpRequest::visitChildren):
              * bindings/js/JSXMLHttpRequestUploadCustom.cpp: No need to mark our owner
              XHR because it is not reachable from us.
      
              * bindings/scripts/CodeGeneratorJS.pm: Added autogeneration support for a
              bunch of repetitive cases of isReachableFromOpaqueRoots callbacks.
      
              * css/CSSRule.idl:
              * css/CSSStyleDeclaration.idl:
              * css/MediaList.idl:
              * css/StyleMedia.idl:
              * css/StyleSheet.idl:
              * css/StyleSheetList.idl:
              * dom/DOMImplementation.idl:
              * dom/DOMStringMap.idl:
              * dom/MessagePort.idl:
              * dom/NamedNodeMap.idl:
              * fileapi/Blob.idl:
              * html/DOMTokenList.idl: Opt in to autogeneration.
      
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::getContext): Standardized on PassOwnPtr/OwnPtr
              usage, to reduce human error and make ownership rules more obvious.
      
              * html/HTMLCollection.idl:
              * html/canvas/ArrayBuffer.idl: Opt in to autogeneration.
      
              * html/canvas/CanvasRenderingContext.cpp:
              * html/canvas/CanvasRenderingContext.h:
              (WebCore::CanvasRenderingContext::ref):
              (WebCore::CanvasRenderingContext::deref):
              * html/canvas/CanvasRenderingContext2D.h:
              (WebCore::CanvasRenderingContext2D::create):
              (WebCore::CanvasRenderingContext2D::state): Standardized on PassOwnPtr/OwnPtr
              usage, to reduce human error and make ownership rules more obvious.
              
              Inlined some functions to match our standard idiom and to make the code
              in the header document itself.
      
              * html/canvas/CanvasRenderingContext.idl: Opt in to autogeneration.
      
              * html/canvas/OESStandardDerivatives.cpp:
              (WebCore::OESStandardDerivatives::OESStandardDerivatives):
              (WebCore::OESStandardDerivatives::create):
              * html/canvas/OESStandardDerivatives.h:
              * html/canvas/OESStandardDerivatives.idl:
              * html/canvas/OESTextureFloat.cpp:
              (WebCore::OESTextureFloat::OESTextureFloat):
              (WebCore::OESTextureFloat::create):
              * html/canvas/OESTextureFloat.h:
              * html/canvas/OESTextureFloat.idl:
              * html/canvas/OESVertexArrayObject.cpp:
              (WebCore::OESVertexArrayObject::OESVertexArrayObject):
              (WebCore::OESVertexArrayObject::create):
              * html/canvas/OESVertexArrayObject.h:
              * html/canvas/OESVertexArrayObject.idl:
              * html/canvas/WebGLExtension.cpp:
              (WebCore::WebGLExtension::WebGLExtension):
              * html/canvas/WebGLExtension.h:
              (WebCore::WebGLExtension::ref):
              (WebCore::WebGLExtension::deref):
              (WebCore::WebGLExtension::context):
              * html/canvas/WebGLRenderingContext.cpp:
              (WebCore::WebGLRenderingContext::~WebGLRenderingContext):
              (WebCore::WebGLRenderingContext::getExtension):
              * html/canvas/WebGLRenderingContext.h:
              * html/canvas/WebKitLoseContext.cpp:
              (WebCore::WebKitLoseContext::WebKitLoseContext):
              (WebCore::WebKitLoseContext::create):
              (WebCore::WebKitLoseContext::loseContext):
              * html/canvas/WebKitLoseContext.h:
              * html/canvas/WebKitLoseContext.idl: Updated the ownership model for WebGL
              canavs rendering contexts to match the model for 2D canvas rendering
              contexts. This makes garbage collection a lot more straightforward, but
              it also makes the behavior of these objects more reliable. (Previously,
              satellite objects would magically stop working when the last reference
              to their owner object was dropped. Now, satellite objects keep their owner
              alive through reference counting.)
      
              * loader/appcache/DOMApplicationCache.idl:
              * page/BarInfo.idl:
              * page/Console.idl:
              * page/DOMSelection.idl:
              * page/Geolocation.idl:
              * page/History.idl:
              * page/Location.idl:
              * page/Navigator.idl:
              * page/Screen.idl:
              * page/WorkerNavigator.idl:
              * plugins/DOMMimeTypeArray.h:
              (WebCore::DOMMimeTypeArray::frame):
              * plugins/DOMMimeTypeArray.idl:
              * plugins/DOMPluginArray.h:
              (WebCore::DOMPluginArray::frame):
              * plugins/DOMPluginArray.idl:
              * storage/Storage.idl:
              * workers/WorkerLocation.idl: Opt in to autogeneration.
      
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::~XMLHttpRequest):
              * xml/XMLHttpRequest.h:
              * xml/XMLHttpRequestUpload.cpp:
              (WebCore::XMLHttpRequestUpload::scriptExecutionContext):
              * xml/XMLHttpRequestUpload.h:
              (WebCore::XMLHttpRequestUpload::create):
              (WebCore::XMLHttpRequestUpload::ref):
              (WebCore::XMLHttpRequestUpload::deref):
              (WebCore::XMLHttpRequestUpload::xmlHttpRequest):
              (WebCore::XMLHttpRequestUpload::toXMLHttpRequestUpload):
              * xml/XMLHttpRequestUpload.idl: Updated the ownership model for XHR and
              its associated upload object to match the model for canvas. This makes
              garbage collection a lot more straightforward, but it also makes the
              behavior of these objects more reliable.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e21a1e6
  30. 23 Apr, 2011 1 commit
    • ggaren@apple.com's avatar
      2011-04-22 Geoffrey Garen <ggaren@apple.com> · ff7556d7
      ggaren@apple.com authored
              
              Rolled back in r84725 and r84728 with appcache crash fixed.
      
              Reviewed by Oliver Hunt.
      
              Removed a use of markDOMObjectWrapper: DOMWindow
              https://bugs.webkit.org/show_bug.cgi?id=59260
      
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::visitChildren): No need to mark explicitly, since
              we use the opaque roots system now.
      
              * bindings/js/JSNavigatorCustom.cpp: Ditto.
      
              * bindings/scripts/CodeGeneratorJS.pm: Added autogeneration for objects
              whose opaque roots are frames.
      
              * css/StyleMedia.h:
              (WebCore::StyleMedia::frame): Added an accessor for the sake of GC.
      
              * css/StyleMedia.idl:
              * loader/appcache/DOMApplicationCache.idl:
              * page/BarInfo.idl:
              * page/Console.idl:
              * page/DOMSelection.idl:
              * page/Geolocation.idl:
              * page/History.idl:
              * page/Location.idl:
              * page/Navigator.idl:
              * page/Screen.idl:
              * storage/Storage.idl: Updated to use the opaque roots system.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff7556d7