1. 14 Oct, 2013 2 commits
    • ap@apple.com's avatar
      Add an empty window.crypto.webkitSubtle · be84a7a3
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122778
      
      Reviewed by Mark Hahnenberg.
      
      Source/WebCore:
      
      Tests: security/crypto-subtle-gc-2.html
             security/crypto-subtle-gc-3.html
             security/crypto-subtle-gc.html
      
      * DerivedSources.make: Process SubtleCrypto.idl.
      
      * crypto: Added.
      * WebCore.xcodeproj/project.pbxproj:
      * CMakeLists.txt:
      * DerivedSources.make:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      
      * bindings/js/JSSubtleCryptoCustom.cpp: Added. Empty for now, but we'll certainly
      need custom bindings code here.
      
      * crypto/SubtleCrypto.cpp: Added.
      (WebCore::SubtleCrypto::SubtleCrypto):
      (WebCore::SubtleCrypto::document):
      * crypto/SubtleCrypto.h: Added.
      * crypto/SubtleCrypto.idl: Added.
      * page/Crypto.cpp:
      (WebCore::Crypto::subtle):
      * page/Crypto.h:
      * page/Crypto.idl:
      
      LayoutTests:
      
      * TestExpectations: The feature isn't enabled anywhere yet, so skipping the new tests.
      
      * security/crypto-subtle-gc-2-expected.txt: Added.
      * security/crypto-subtle-gc-2.html: Added.
      * security/crypto-subtle-gc-3-expected.txt: Added.
      * security/crypto-subtle-gc-3.html: Added.
      * security/crypto-subtle-gc-expected.txt: Added.
      * security/crypto-subtle-gc.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be84a7a3
    • ap@apple.com's avatar
      window.crypto doesn't preserve custom properties · bdb7a794
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122770
      
      Reviewed by Mark Hahnenberg.
      
      Source/WebCore: 
      
      Test: security/crypto-gc.html
      
      Generate isReachableFromOpaqueRoots that makes Crypto live as long as the document
      lives (because that's when it's observable through window object).
      
      * page/Crypto.cpp:
      (WebCore::Crypto::Crypto):
      (WebCore::Crypto::~Crypto):
      (WebCore::Crypto::document):
      * page/Crypto.h:
      (WebCore::Crypto::create):
      Made Crypto a ContextDestructionObserver, so that it can report its document to bindings.
      Removed ScriptWrappable, because it seems to have served no purpose in this class.
      
      * page/Crypto.idl: Added GenerateIsReachable. Removed ImplementationLacksVTable,
      because the class now has a vtable, and can be checked for bindings integrity.
      
      * page/DOMWindow.cpp: (WebCore::DOMWindow::crypto): Pass a document when creating
      crypto.
      
      LayoutTests: 
      
      * security/crypto-gc-expected.txt: Added.
      * security/crypto-gc.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157417 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bdb7a794
  2. 05 Aug, 2013 1 commit
    • oliver@apple.com's avatar
      Move TypedArray implementation into JSC · df606084
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=119489
      
      Reviewed by Filip Pizlo.
      
      Source/JavaScriptCore:
      
      Move TypedArray implementation into JSC in advance of re-implementation
      
      * GNUmakefile.list.am:
      * JSCTypedArrayStubs.h:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * runtime/ArrayBuffer.cpp: Renamed from Source/WTF/wtf/ArrayBuffer.cpp.
      (JSC::ArrayBuffer::transfer):
      (JSC::ArrayBuffer::addView):
      (JSC::ArrayBuffer::removeView):
      * runtime/ArrayBuffer.h: Renamed from Source/WTF/wtf/ArrayBuffer.h.
      (JSC::ArrayBufferContents::ArrayBufferContents):
      (JSC::ArrayBufferContents::data):
      (JSC::ArrayBufferContents::sizeInBytes):
      (JSC::ArrayBufferContents::transfer):
      (JSC::ArrayBufferContents::copyTo):
      (JSC::ArrayBuffer::isNeutered):
      (JSC::ArrayBuffer::~ArrayBuffer):
      (JSC::ArrayBuffer::clampValue):
      (JSC::ArrayBuffer::create):
      (JSC::ArrayBuffer::createUninitialized):
      (JSC::ArrayBuffer::ArrayBuffer):
      (JSC::ArrayBuffer::data):
      (JSC::ArrayBuffer::byteLength):
      (JSC::ArrayBuffer::slice):
      (JSC::ArrayBuffer::sliceImpl):
      (JSC::ArrayBuffer::clampIndex):
      (JSC::ArrayBufferContents::tryAllocate):
      (JSC::ArrayBufferContents::~ArrayBufferContents):
      * runtime/ArrayBufferView.cpp: Renamed from Source/WTF/wtf/ArrayBufferView.cpp.
      (JSC::ArrayBufferView::ArrayBufferView):
      (JSC::ArrayBufferView::~ArrayBufferView):
      (JSC::ArrayBufferView::neuter):
      * runtime/ArrayBufferView.h: Renamed from Source/WTF/wtf/ArrayBufferView.h.
      (JSC::ArrayBufferView::buffer):
      (JSC::ArrayBufferView::baseAddress):
      (JSC::ArrayBufferView::byteOffset):
      (JSC::ArrayBufferView::setNeuterable):
      (JSC::ArrayBufferView::isNeuterable):
      (JSC::ArrayBufferView::verifySubRange):
      (JSC::ArrayBufferView::clampOffsetAndNumElements):
      (JSC::ArrayBufferView::setImpl):
      (JSC::ArrayBufferView::setRangeImpl):
      (JSC::ArrayBufferView::zeroRangeImpl):
      (JSC::ArrayBufferView::calculateOffsetAndLength):
      * runtime/Float32Array.h: Renamed from Source/WTF/wtf/Float32Array.h.
      (JSC::Float32Array::set):
      (JSC::Float32Array::getType):
      (JSC::Float32Array::create):
      (JSC::Float32Array::createUninitialized):
      (JSC::Float32Array::Float32Array):
      (JSC::Float32Array::subarray):
      * runtime/Float64Array.h: Renamed from Source/WTF/wtf/Float64Array.h.
      (JSC::Float64Array::set):
      (JSC::Float64Array::getType):
      (JSC::Float64Array::create):
      (JSC::Float64Array::createUninitialized):
      (JSC::Float64Array::Float64Array):
      (JSC::Float64Array::subarray):
      * runtime/Int16Array.h: Renamed from Source/WTF/wtf/Int16Array.h.
      (JSC::Int16Array::getType):
      (JSC::Int16Array::create):
      (JSC::Int16Array::createUninitialized):
      (JSC::Int16Array::Int16Array):
      (JSC::Int16Array::subarray):
      * runtime/Int32Array.h: Renamed from Source/WTF/wtf/Int32Array.h.
      (JSC::Int32Array::getType):
      (JSC::Int32Array::create):
      (JSC::Int32Array::createUninitialized):
      (JSC::Int32Array::Int32Array):
      (JSC::Int32Array::subarray):
      * runtime/Int8Array.h: Renamed from Source/WTF/wtf/Int8Array.h.
      (JSC::Int8Array::getType):
      (JSC::Int8Array::create):
      (JSC::Int8Array::createUninitialized):
      (JSC::Int8Array::Int8Array):
      (JSC::Int8Array::subarray):
      * runtime/IntegralTypedArrayBase.h: Renamed from Source/WTF/wtf/IntegralTypedArrayBase.h.
      (JSC::IntegralTypedArrayBase::set):
      (JSC::IntegralTypedArrayBase::IntegralTypedArrayBase):
      * runtime/TypedArrayBase.h: Renamed from Source/WTF/wtf/TypedArrayBase.h.
      (JSC::TypedArrayBase::data):
      (JSC::TypedArrayBase::set):
      (JSC::TypedArrayBase::setRange):
      (JSC::TypedArrayBase::zeroRange):
      (JSC::TypedArrayBase::length):
      (JSC::TypedArrayBase::byteLength):
      (JSC::TypedArrayBase::item):
      (JSC::TypedArrayBase::checkInboundData):
      (JSC::TypedArrayBase::TypedArrayBase):
      (JSC::TypedArrayBase::create):
      (JSC::TypedArrayBase::createUninitialized):
      (JSC::TypedArrayBase::subarrayImpl):
      (JSC::TypedArrayBase::neuter):
      * runtime/Uint16Array.h: Renamed from Source/WTF/wtf/Uint16Array.h.
      (JSC::Uint16Array::getType):
      (JSC::Uint16Array::create):
      (JSC::Uint16Array::createUninitialized):
      (JSC::Uint16Array::Uint16Array):
      (JSC::Uint16Array::subarray):
      * runtime/Uint32Array.h: Renamed from Source/WTF/wtf/Uint32Array.h.
      (JSC::Uint32Array::getType):
      (JSC::Uint32Array::create):
      (JSC::Uint32Array::createUninitialized):
      (JSC::Uint32Array::Uint32Array):
      (JSC::Uint32Array::subarray):
      * runtime/Uint8Array.h: Renamed from Source/WTF/wtf/Uint8Array.h.
      (JSC::Uint8Array::getType):
      (JSC::Uint8Array::create):
      (JSC::Uint8Array::createUninitialized):
      (JSC::Uint8Array::Uint8Array):
      (JSC::Uint8Array::subarray):
      * runtime/Uint8ClampedArray.h: Renamed from Source/WTF/wtf/Uint8ClampedArray.h.
      (JSC::Uint8ClampedArray::getType):
      (JSC::Uint8ClampedArray::create):
      (JSC::Uint8ClampedArray::createUninitialized):
      (JSC::Uint8ClampedArray::zeroFill):
      (JSC::Uint8ClampedArray::set):
      (JSC::Uint8ClampedArray::Uint8ClampedArray):
      (JSC::Uint8ClampedArray::subarray):
      * runtime/VM.h:
      
      Source/WebCore:
      
      Update WebCore for new location of TypedArray implementation.
      
      * ForwardingHeaders/runtime/ArrayBuffer.h: Added.
      * ForwardingHeaders/runtime/ArrayBufferView.h: Added.
      * ForwardingHeaders/runtime/Float32Array.h: Added.
      * ForwardingHeaders/runtime/Float64Array.h: Added.
      * ForwardingHeaders/runtime/Int16Array.h: Added.
      * ForwardingHeaders/runtime/Int32Array.h: Added.
      * ForwardingHeaders/runtime/Int8Array.h: Added.
      * ForwardingHeaders/runtime/IntegralTypedArrayBase.h: Added.
      * ForwardingHeaders/runtime/TypedArrayBase.h: Added.
      * ForwardingHeaders/runtime/Uint16Array.h: Added.
      * ForwardingHeaders/runtime/Uint32Array.h: Added.
      * ForwardingHeaders/runtime/Uint8Array.h: Added.
      * ForwardingHeaders/runtime/Uint8ClampedArray.h: Added.
      * Modules/webaudio/AnalyserNode.h:
      (WebCore::AnalyserNode::getFloatFrequencyData):
      (WebCore::AnalyserNode::getByteFrequencyData):
      (WebCore::AnalyserNode::getByteTimeDomainData):
      * Modules/webaudio/AsyncAudioDecoder.cpp:
      * Modules/webaudio/AsyncAudioDecoder.h:
      (WebCore::AsyncAudioDecoder::DecodingTask::audioData):
      * Modules/webaudio/AudioBuffer.h:
      * Modules/webaudio/AudioContext.cpp:
      * Modules/webaudio/AudioParam.h:
      * Modules/webaudio/AudioParamTimeline.h:
      * Modules/webaudio/PeriodicWave.h:
      * Modules/webaudio/RealtimeAnalyser.cpp:
      * Modules/webaudio/RealtimeAnalyser.h:
      * Modules/webaudio/ScriptProcessorNode.cpp:
      * Modules/webaudio/WaveShaperProcessor.h:
      * Modules/websockets/ThreadableWebSocketChannel.h:
      * Modules/websockets/WebSocket.cpp:
      * Modules/websockets/WebSocket.h:
      * Modules/websockets/WebSocketChannel.cpp:
      * Modules/websockets/WebSocketChannel.h:
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      * WebCore.exp.in:
      * bindings/js/JSArrayBufferCustom.cpp:
      * bindings/js/JSArrayBufferViewHelper.h:
      * bindings/js/JSAudioContextCustom.cpp:
      * bindings/js/JSCryptoCustom.cpp:
      * bindings/js/JSDictionary.h:
      * bindings/js/JSFileReaderCustom.cpp:
      * bindings/js/JSWebGLRenderingContextCustom.cpp:
      * bindings/js/JSXMLHttpRequestCustom.cpp:
      * bindings/js/SerializedScriptValue.cpp:
      (WebCore::SerializedScriptValue::transferArrayBuffers):
      * bindings/js/SerializedScriptValue.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (AddIncludesForType):
      (GenerateHeader):
      (NativeToJSValue):
      * dom/MessageEvent.h:
      * fileapi/FileReader.cpp:
      * fileapi/FileReader.h:
      * fileapi/FileReaderLoader.cpp:
      * fileapi/FileReaderLoader.h:
      * fileapi/FileReaderSync.cpp:
      * fileapi/FileReaderSync.h:
      * fileapi/WebKitBlobBuilder.cpp:
      * fileapi/WebKitBlobBuilder.h:
      * html/HTMLMediaElement.cpp:
      * html/ImageData.h:
      * html/canvas/ArrayBuffer.idl:
      * html/canvas/ArrayBufferView.idl:
      * html/canvas/CanvasRenderingContext2D.cpp:
      * html/canvas/DataView.h:
      * html/canvas/Float32Array.idl:
      * html/canvas/Float64Array.idl:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.idl:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.idl:
      * html/canvas/Uint8ClampedArray.idl:
      * html/canvas/WebGLBuffer.h:
      (WebCore::WebGLBuffer::elementArrayBuffer):
      * html/canvas/WebGLGetInfo.cpp:
      * html/canvas/WebGLGetInfo.h:
      * html/canvas/WebGLRenderingContext.cpp:
      * html/canvas/WebGLRenderingContext.h:
      * inspector/InspectorMemoryAgent.cpp:
      * page/Crypto.cpp:
      * page/Crypto.h:
      * platform/graphics/GraphicsContext3D.cpp:
      * platform/graphics/ImageBuffer.h:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      * platform/graphics/cg/ImageBufferDataCG.h:
      * platform/graphics/filters/FEBlend.cpp:
      * platform/graphics/filters/FEColorMatrix.cpp:
      * platform/graphics/filters/FEComponentTransfer.cpp:
      * platform/graphics/filters/FEComposite.cpp:
      * platform/graphics/filters/FEConvolveMatrix.cpp:
      * platform/graphics/filters/FECustomFilter.cpp:
      * platform/graphics/filters/FEDisplacementMap.cpp:
      * platform/graphics/filters/FEDropShadow.cpp:
      * platform/graphics/filters/FEGaussianBlur.cpp:
      * platform/graphics/filters/FELighting.h:
      * platform/graphics/filters/FEMorphology.cpp:
      * platform/graphics/filters/FETurbulence.cpp:
      * platform/graphics/filters/FilterEffect.cpp:
      * platform/graphics/filters/FilterEffect.h:
      * platform/graphics/mac/GraphicsContext3DMac.mm:
      * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
      * testing/Internals.h:
      * xml/XMLHttpRequest.cpp:
      * xml/XMLHttpRequest.h:
      (WebCore::XMLHttpRequest::optionalResponseArrayBuffer):
      
      Source/WTF:
      
      Remove TypedArray implementation from WTF
      
      * GNUmakefile.list.am:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/Forward.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df606084
  3. 12 Nov, 2012 1 commit
  4. 15 Nov, 2011 1 commit
    • oliver@apple.com's avatar
      Start migrating typed array impl types to WTF · d05cffef
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=72336
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore:
      
      Add typed array impls to WTF forwarding header.
      
      * wtf/Forward.h:
      
      Source/WebCore:
      
      Move typed arrays from WebCore namespace to WTF, and
      start reducing dependencies on WebCore types.
      
      * bindings/js/JSArrayBufferViewHelper.h:
      (WebCore::setWebGLArrayHelper):
      * bindings/scripts/CodeGeneratorJS.pm:
      (IsTypedArrayType):
      (AddClassForwardIfNeeded):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (IsTypedArrayType):
      * bindings/scripts/test/CPP/WebDOMFloat64Array.cpp: Added.
      (WebDOMFloat64Array::WebDOMFloat64Array):
      (WebDOMFloat64Array::impl):
      (toWebCore):
      (toWebKit):
      * bindings/scripts/test/CPP/WebDOMFloat64Array.h: Added.
      (WebDOMFloat64Array::~WebDOMFloat64Array):
      * bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp: Added.
      (WebKit::kit):
      (WebKit::core):
      (webkit_dom_float64array_finalize):
      (webkit_dom_float64array_set_property):
      (webkit_dom_float64array_get_property):
      (webkit_dom_float64array_constructed):
      (webkit_dom_float64array_class_init):
      (webkit_dom_float64array_init):
      (WebKit::wrapFloat64Array):
      * bindings/scripts/test/GObject/WebKitDOMFloat64Array.h: Added.
      * bindings/scripts/test/GObject/WebKitDOMFloat64ArrayPrivate.h: Added.
      * bindings/scripts/test/JS/JSFloat64Array.cpp: Added.
      (WebCore::JSFloat64ArrayConstructor::JSFloat64ArrayConstructor):
      (WebCore::JSFloat64ArrayConstructor::finishCreation):
      (WebCore::JSFloat64ArrayConstructor::getOwnPropertySlot):
      (WebCore::JSFloat64ArrayConstructor::getOwnPropertyDescriptor):
      (WebCore::JSFloat64ArrayConstructor::getConstructData):
      (WebCore::getJSFloat64ArrayPrototypeTable):
      (WebCore::JSFloat64ArrayPrototype::self):
      (WebCore::getJSFloat64ArrayTable):
      (WebCore::JSFloat64Array::JSFloat64Array):
      (WebCore::JSFloat64Array::finishCreation):
      (WebCore::JSFloat64Array::createPrototype):
      (WebCore::JSFloat64Array::getOwnPropertySlot):
      (WebCore::JSFloat64Array::getOwnPropertyDescriptor):
      (WebCore::JSFloat64Array::getOwnPropertySlotByIndex):
      (WebCore::jsFloat64ArrayConstructor):
      (WebCore::JSFloat64Array::put):
      (WebCore::JSFloat64Array::putByIndex):
      (WebCore::JSFloat64Array::getOwnPropertyNames):
      (WebCore::JSFloat64Array::getConstructor):
      (WebCore::JSFloat64Array::getByIndex):
      (WebCore::toFloat64Array):
      (WTF::Float64Array::neuterBinding):
      * bindings/scripts/test/JS/JSFloat64Array.h: Added.
      (WebCore::JSFloat64Array::create):
      (WebCore::JSFloat64Array::createStructure):
      (WebCore::JSFloat64Array::impl):
      (WebCore::JSFloat64ArrayPrototype::create):
      (WebCore::JSFloat64ArrayPrototype::createStructure):
      (WebCore::JSFloat64ArrayPrototype::JSFloat64ArrayPrototype):
      (WebCore::JSFloat64ArrayConstructor::create):
      (WebCore::JSFloat64ArrayConstructor::createStructure):
      * bindings/scripts/test/ObjC/DOMFloat64Array.h: Copied from Source/WebCore/html/canvas/Int16Array.cpp.
      * bindings/scripts/test/ObjC/DOMFloat64Array.mm: Copied from Source/WebCore/html/canvas/Float32Array.cpp.
      (core):
      (kit):
      * bindings/scripts/test/ObjC/DOMFloat64ArrayInternal.h: Copied from Source/WebCore/html/canvas/Int16Array.cpp.
      * bindings/scripts/test/TestTypedArray.idl: Copied from Source/WebCore/html/canvas/Float64Array.cpp.
      * bindings/scripts/test/V8/V8Float64Array.cpp: Added.
      (WebCore::Float64ArrayInternal::V8_USE):
      (WebCore::ConfigureV8Float64ArrayTemplate):
      (WebCore::V8Float64Array::GetRawTemplate):
      (WebCore::V8Float64Array::GetTemplate):
      (WebCore::V8Float64Array::HasInstance):
      (WebCore::V8Float64Array::wrapSlow):
      (WTF::Float64Array::neuterBinding):
      (WebCore::V8Float64Array::derefObject):
      * bindings/scripts/test/V8/V8Float64Array.h: Added.
      (WebCore::V8Float64Array::toNative):
      (WebCore::V8Float64Array::existingWrapper):
      (WebCore::V8Float64Array::wrap):
      (WebCore::toV8):
      * fileapi/FileReader.h:
      * fileapi/FileReaderLoader.h:
      * fileapi/FileReaderSync.h:
      * fileapi/WebKitBlobBuilder.h:
      * html/HTMLMediaElement.h:
      * html/canvas/ArrayBuffer.cpp:
      * html/canvas/ArrayBuffer.h:
      * html/canvas/ArrayBufferView.cpp:
      (WTF::ArrayBufferView::setImpl):
      (WTF::ArrayBufferView::setRangeImpl):
      (WTF::ArrayBufferView::zeroRangeImpl):
      (WTF::ArrayBufferView::neuter):
      * html/canvas/ArrayBufferView.h:
      * html/canvas/Float32Array.cpp:
      * html/canvas/Float32Array.h:
      (WTF::Float32Array::set):
      * html/canvas/Float64Array.cpp:
      * html/canvas/Float64Array.h:
      (WTF::Float64Array::set):
      * html/canvas/Int16Array.cpp:
      * html/canvas/Int16Array.h:
      (WTF::Int16Array::set):
      * html/canvas/Int32Array.cpp:
      * html/canvas/Int32Array.h:
      (WTF::Int32Array::set):
      * html/canvas/Int8Array.cpp:
      * html/canvas/Int8Array.h:
      (WTF::Int8Array::set):
      * html/canvas/IntegralTypedArrayBase.h:
      * html/canvas/TypedArrayBase.h:
      (WTF::TypedArrayBase::set):
      (WTF::TypedArrayBase::setRange):
      (WTF::TypedArrayBase::zeroRange):
      * html/canvas/Uint16Array.cpp:
      * html/canvas/Uint16Array.h:
      (WTF::Uint16Array::set):
      * html/canvas/Uint32Array.cpp:
      * html/canvas/Uint32Array.h:
      (WTF::Uint32Array::set):
      * html/canvas/Uint8Array.cpp:
      * html/canvas/Uint8Array.h:
      (WTF::Uint8Array::set):
      * html/canvas/WebGLBuffer.h:
      * page/Crypto.h:
      * webaudio/AsyncAudioDecoder.h:
      * webaudio/AudioBuffer.cpp:
      (WebCore::AudioBuffer::AudioBuffer):
      (WebCore::AudioBuffer::zero):
      * webaudio/AudioContext.h:
      * webaudio/JavaScriptAudioNode.h:
      * webaudio/RealtimeAnalyser.h:
      * webaudio/RealtimeAnalyserNode.h:
      * webaudio/WaveShaperNode.h:
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.h:
      * xml/XMLHttpRequest.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d05cffef
  5. 12 Feb, 2011 1 commit
    • abarth@webkit.org's avatar
      2011-02-12 Adam Barth <abarth@webkit.org> · 383e27a1
      abarth@webkit.org authored
              Reviewed by Kenneth Russell.
      
              Enable ArrayBuffers by default
              https://bugs.webkit.org/show_bug.cgi?id=54310
      
              Export the required functions.
      
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      2011-02-12  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Kenneth Russell.
      
              Enable ArrayBuffers by default
              https://bugs.webkit.org/show_bug.cgi?id=54310
      
              As discussed on webkit-dev, ArrayBuffers are used by a bunch of
              different APIs, implemented by Firefox, and appear to be stable.
              Keeping them conditional is a large mantainance burden than it's worth.
      
              * DerivedSources.cpp:
              * WebCore.vcproj/WebCore.vcproj:
              * bindings/generic/RuntimeEnabledFeatures.h:
              (WebCore::RuntimeEnabledFeatures::setWebGLEnabled):
              * bindings/js/JSArrayBufferCustom.cpp:
              * bindings/js/JSBindingsAllInOne.cpp:
              * bindings/js/JSDOMWindowCustom.cpp:
              * bindings/js/JSDataViewCustom.cpp:
              * bindings/js/JSFloat32ArrayCustom.cpp:
              * bindings/js/JSInt16ArrayCustom.cpp:
              * bindings/js/JSInt32ArrayCustom.cpp:
              * bindings/js/JSInt8ArrayCustom.cpp:
              * bindings/js/JSUint16ArrayCustom.cpp:
              * bindings/js/JSUint32ArrayCustom.cpp:
              * bindings/js/JSUint8ArrayCustom.cpp:
              * bindings/v8/custom/V8ArrayBufferCustom.cpp:
              * bindings/v8/custom/V8ArrayBufferViewCustom.h:
              * bindings/v8/custom/V8DataViewCustom.cpp:
              * bindings/v8/custom/V8Float32ArrayCustom.cpp:
              * bindings/v8/custom/V8Int16ArrayCustom.cpp:
              * bindings/v8/custom/V8Int32ArrayCustom.cpp:
              * bindings/v8/custom/V8Int8ArrayCustom.cpp:
              * bindings/v8/custom/V8Uint16ArrayCustom.cpp:
              * bindings/v8/custom/V8Uint32ArrayCustom.cpp:
              * bindings/v8/custom/V8Uint8ArrayCustom.cpp:
              * html/canvas/ArrayBuffer.cpp:
              * html/canvas/ArrayBuffer.idl:
              * html/canvas/ArrayBufferView.cpp:
              * html/canvas/ArrayBufferView.idl:
              * html/canvas/DataView.cpp:
              * html/canvas/DataView.idl:
              * html/canvas/Float32Array.cpp:
              * html/canvas/Float32Array.idl:
              * html/canvas/Int16Array.cpp:
              * html/canvas/Int16Array.idl:
              * html/canvas/Int32Array.cpp:
              * html/canvas/Int32Array.idl:
              * html/canvas/Int8Array.cpp:
              * html/canvas/Int8Array.idl:
              * html/canvas/Uint16Array.cpp:
              * html/canvas/Uint16Array.idl:
              * html/canvas/Uint32Array.cpp:
              * html/canvas/Uint32Array.idl:
              * html/canvas/Uint8Array.cpp:
              * html/canvas/Uint8Array.idl:
              * page/Crypto.cpp:
              (WebCore::Crypto::getRandomValues):
              * page/Crypto.h:
              * page/Crypto.idl:
              * page/DOMWindow.idl:
              * workers/WorkerContext.idl:
      2011-02-12  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Kenneth Russell.
      
              Enable ArrayBuffers by default
              https://bugs.webkit.org/show_bug.cgi?id=54310
      
              Revert incorrect expectations from
              http://trac.webkit.org/changeset/78337.  These results were cased by
              ArrayBuffers not beign enabled on Windows previous to this patch.
      
              * platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
              * platform/win/fast/js/global-function-resolve-expected.txt: Removed.
              * platform/win/fast/js/var-declarations-shadowing-expected.txt: Removed.
              * platform/win/security: Removed.
              * platform/win/security/crypto-random-values-expected.txt: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78407 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      383e27a1
  6. 11 Feb, 2011 3 commits
    • abarth@webkit.org's avatar
      Fix typo · 4d78e088
      abarth@webkit.org authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4d78e088
    • abarth@webkit.org's avatar
      2011-02-11 Adam Barth <abarth@webkit.org> · aa5a9e22
      abarth@webkit.org authored
              Attempt to fix the Windows build.  Apparently we don't support
              conditional attributes on functions.  This patch makes the whole Crypto
              interface conditional on ArrayBuffer support.
      
              * page/DOMWindow.idl:
              * page/Crypto.cpp:
              * page/Crypto.h:
              * page/Crypto.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa5a9e22
    • abarth@webkit.org's avatar
      2011-02-10 Adam Barth <abarth@webkit.org> · ba712d32
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              WebKit should have a cryptographic RNG
              https://bugs.webkit.org/show_bug.cgi?id=22049
      
              Test crypto.getRandomValues API.  It's pretty hard to write a
              deterministic API for a randomized API, but this test should catch some
              regressions.
      
              * security/crypto-random-values-expected.txt: Added.
              * security/crypto-random-values.html: Added.
      2011-02-10  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              WebKit should have a cryptographic RNG
              https://bugs.webkit.org/show_bug.cgi?id=22049
      
              Teach JavaScriptCore how to export this function.
      
              * JavaScriptCore.exp:
              * JavaScriptCore.xcodeproj/project.pbxproj:
      2011-02-10  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              WebKit should have a cryptographic RNG
              https://bugs.webkit.org/show_bug.cgi?id=22049
      
              Add crypto.getRandomValues.  Yes, all these diffs are required to
              expose a single function to the DOM.
      
              Test: security/crypto-random-values.html
      
              * Android.mk:
              * CMakeLists.txt:
              * DerivedSources.cpp:
              * DerivedSources.make:
              * ForwardingHeaders/wtf/CryptographicallyRandomNumber.h: Added.
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSDOMWindowCustom.cpp:
              * bindings/v8/custom/V8DOMWindowCustom.cpp:
              * config.h:
              * page/Crypto.cpp: Added.
              (WebCore::Crypto::Crypto):
              (WebCore::Crypto::getRandomValues):
              * page/Crypto.h: Added.
              (WebCore::Crypto::create):
              * page/Crypto.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::clear):
              (WebCore::DOMWindow::crypto):
              * page/DOMWindow.h:
              (WebCore::DOMWindow::optionalCrypto):
              * page/DOMWindow.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba712d32
  7. 08 Jan, 2011 1 commit
  8. 10 Aug, 2010 1 commit
    • barraclough@apple.com's avatar
      Bug 43594 - Add string forwards to Forward.h · d218c2df
      barraclough@apple.com authored
      This allows us to remove forward declarations for these classes from
      WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
      
      Rubber stamped by Sam Weinig
      
      JavaScriptCore: 
      
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/Forward.h:
      
      WebCore: 
      
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/AXObjectCache.h:
      * accessibility/AccessibilityARIAGrid.h:
      * accessibility/AccessibilityListBoxOption.h:
      * accessibility/AccessibilityObject.h:
      * accessibility/AccessibilityRenderObject.h:
      * accessibility/AccessibilityTable.h:
      * bindings/cpp/WebDOMCString.h:
      * bindings/cpp/WebDOMString.h:
      * bindings/gobject/ConvertToUTF8String.h:
      * bindings/js/DOMWrapperWorld.h:
      * bindings/js/JSDOMBinding.h:
      * bindings/js/JSDOMWindowBase.h:
      * bindings/js/JSMessagePortCustom.h:
      * bindings/js/JavaScriptCallFrame.h:
      * bindings/js/ScriptController.h:
      * bindings/js/ScriptProfile.h:
      * bindings/js/ScriptSourceProvider.h:
      * bindings/js/ScriptString.h:
      * bindings/js/WorkerScriptController.h:
      * bindings/objc/DOMImplementationFront.h:
      * bindings/v8/ScheduledAction.h:
      * bindings/v8/ScriptController.h:
      * bindings/v8/V8DOMWindowShell.h:
      * bindings/v8/V8Proxy.h:
      * bindings/v8/V8Utilities.h:
      * bindings/v8/custom/V8CustomXPathNSResolver.h:
      * bridge/c/c_utility.h:
      * css/CSSFontSelector.h:
      * css/CSSHelper.h:
      * css/CSSOMUtils.h:
      * css/CSSPrimitiveValue.h:
      * css/MediaList.h:
      * css/StyleBase.h:
      * css/StyleSheetList.h:
      * css/WebKitCSSKeyframesRule.h:
      * dom/CheckedRadioButtons.h:
      * dom/DOMImplementation.h:
      * dom/DocumentMarker.h:
      * dom/DynamicNodeList.h:
      * dom/EventTarget.h:
      * dom/MessagePort.h:
      * dom/MessagePortChannel.h:
      * dom/NameNodeList.h:
      * dom/Node.h:
      * dom/NodeList.h:
      * dom/OptionGroupElement.h:
      * dom/ScriptExecutionContext.h:
      * dom/SelectElement.h:
      * dom/ViewportArguments.h:
      * dom/make_names.pl:
      * editing/HTMLInterchange.h:
      * editing/htmlediting.h:
      * editing/markup.h:
      * html/CollectionCache.h:
      * html/DOMFormData.h:
      * html/DataGridColumnList.h:
      * html/DateComponents.h:
      * html/FileStream.h:
      * html/FileStreamProxy.h:
      * html/FormDataList.h:
      (WebCore::FormDataList::appendData):
      * html/HTMLCollection.h:
      * html/HTMLElementStack.h:
      * html/HTMLFormattingElementList.h:
      * html/HTMLParserQuirks.h:
      * html/HTMLQuoteElement.h:
      * html/HTMLScriptRunnerHost.h:
      * html/StepRange.h:
      * html/canvas/CanvasGradient.h:
      * html/canvas/CanvasNumberArray.h:
      * html/canvas/CanvasPattern.h:
      * inspector/InjectedScript.h:
      * inspector/InspectorCSSStore.h:
      * inspector/InspectorClient.h:
      * inspector/InspectorFrontendClient.h:
      * inspector/InspectorValues.h:
      * inspector/ScriptDebugListener.h:
      * loader/CachedResourceClient.h:
      * loader/CrossOriginAccessControl.h:
      * loader/DocumentThreadableLoader.h:
      * loader/FrameLoaderClient.h:
      * loader/RedirectScheduler.h:
      * loader/SubframeLoader.h:
      * loader/appcache/DOMApplicationCache.h:
      * loader/archive/ArchiveFactory.h:
      * loader/icon/IconDatabaseClient.h:
      * notifications/NotificationPresenter.h:
      * page/Chrome.h:
      * page/ChromeClient.h:
      * page/Console.h:
      * page/ContextMenuClient.h:
      * page/DOMSelection.h:
      * page/EditorClient.h:
      * page/EventHandler.h:
      * page/FrameView.h:
      * page/GeolocationPositionCache.h:
      * page/History.h:
      * page/Location.h:
      * page/Navigator.h:
      * page/NavigatorBase.h:
      * page/PluginHalterClient.h:
      * page/PrintContext.h:
      * page/SpeechInput.h:
      * page/SpeechInputListener.h:
      * page/animation/AnimationController.h:
      * platform/CookieJar.h:
      * platform/CrossThreadCopier.h:
      * platform/DragImage.h:
      * platform/FileSystem.h:
      * platform/Language.h:
      * platform/Length.h:
      * platform/LinkHash.h:
      * platform/LocalizationStrategy.h:
      * platform/LocalizedStrings.h:
      * platform/Logging.h:
      * platform/Pasteboard.h:
      * platform/PopupMenuClient.h:
      * platform/SearchPopupMenu.h:
      * platform/Widget.h:
      * platform/cf/BinaryPropertyList.h:
      * platform/chromium/ChromiumBridge.h:
      * platform/chromium/ClipboardUtilitiesChromium.h:
      * platform/cocoa/KeyEventCocoa.h:
      * platform/graphics/Color.h:
      * platform/graphics/FontCache.h:
      * platform/graphics/FontData.h:
      * platform/graphics/FontSelector.h:
      * platform/graphics/GraphicsTypes.h:
      * platform/graphics/Icon.h:
      * platform/graphics/ImageBuffer.h:
      * platform/graphics/ImageSource.h:
      * platform/graphics/MediaPlayer.h:
      * platform/graphics/MediaPlayerPrivate.h:
      * platform/graphics/Path.h:
      * platform/graphics/StringTruncator.h:
      * platform/graphics/cairo/FontCustomPlatformData.h:
      * platform/graphics/cairo/FontPlatformData.h:
      * platform/graphics/cg/FontPlatformData.h:
      * platform/graphics/cg/ImageSourceCG.h:
      * platform/graphics/chromium/FontCustomPlatformData.h:
      * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
      * platform/graphics/chromium/FontPlatformDataLinux.h:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
      * platform/graphics/haiku/FontCustomPlatformData.h:
      * platform/graphics/mac/FontCustomPlatformData.h:
      * platform/graphics/mac/FontPlatformData.h:
      * platform/graphics/qt/FontCustomPlatformData.h:
      * platform/graphics/qt/FontPlatformData.h:
      * platform/graphics/win/FontCustomPlatformData.h:
      * platform/graphics/win/FontCustomPlatformDataCairo.h:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
      * platform/graphics/wince/FontPlatformData.h:
      * platform/graphics/wince/MediaPlayerPrivateWince.h:
      * platform/graphics/wince/MediaPlayerProxy.h:
      * platform/graphics/wx/FontCustomPlatformData.h:
      * platform/graphics/wx/FontPlatformData.h:
      * platform/mac/PasteboardHelper.h:
      * platform/network/DNS.h:
      * platform/network/FormData.h:
      * platform/network/FormDataBuilder.h:
      * platform/network/HTTPParsers.h:
      * platform/text/Hyphenation.h:
      * platform/text/LineEnding.h:
      * platform/text/TextCodec.h:
      * platform/text/TextEncoding.h:
      * platform/text/TextStream.h:
      * platform/win/BString.h:
      * platform/win/ClipboardUtilitiesWin.h:
      * platform/win/WCDataObject.h:
      * platform/win/WebCoreTextRenderer.h:
      * plugins/DOMMimeType.h:
      * plugins/DOMMimeTypeArray.h:
      * plugins/DOMPlugin.h:
      * plugins/DOMPluginArray.h:
      * rendering/CounterNode.h:
      * rendering/HitTestResult.h:
      * rendering/RenderObjectChildList.h:
      * rendering/RenderText.h:
      * rendering/RenderTreeAsText.h:
      * rendering/TextControlInnerElements.h:
      * rendering/style/ContentData.h:
      * rendering/style/RenderStyle.h:
      * storage/DatabaseAuthorizer.h:
      * storage/DatabaseTrackerClient.h:
      * storage/SQLTransaction.h:
      * storage/SQLTransactionSync.h:
      * storage/Storage.h:
      * storage/chromium/DatabaseObserver.h:
      * svg/SVGAnimatedTemplate.h:
      * svg/SVGDocumentExtensions.h:
      * svg/SVGGlyphElement.h:
      * svg/SVGHKernElement.h:
      * svg/SVGNumberList.h:
      * svg/SVGPointList.h:
      * svg/SVGPreserveAspectRatio.h:
      * svg/SVGStylable.h:
      * svg/SVGTests.h:
      * svg/SVGTransformList.h:
      * svg/SVGTransformable.h:
      * svg/SVGVKernElement.h:
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.h:
      * websockets/WebSocketHandshakeResponse.h:
      * wml/WMLErrorHandling.h:
      * wml/WMLPageState.h:
      * wml/WMLVariables.h:
      * workers/DefaultSharedWorkerRepository.h:
      * workers/SharedWorkerRepository.h:
      * workers/Worker.h:
      * workers/WorkerContextProxy.h:
      * workers/WorkerLoaderProxy.h:
      * workers/WorkerLocation.h:
      * workers/WorkerMessagingProxy.h:
      * workers/WorkerReportingProxy.h:
      * workers/WorkerThread.h:
      * xml/DOMParser.h:
      * xml/XMLHttpRequestUpload.h:
      * xml/XPathEvaluator.h:
      * xml/XPathExpression.h:
      * xml/XPathNSResolver.h:
      * xml/XPathResult.h:
      * xml/XPathUtil.h:
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/chromium: 
      
      * public/WebCString.h:
      * public/WebString.h:
      * src/DOMUtilitiesPrivate.h:
      * src/DebuggerAgentImpl.h:
      * src/DebuggerAgentManager.h:
      * src/WebDevToolsAgentImpl.h:
      * src/WebDevToolsFrontendImpl.h:
      * src/WebPageSerializerImpl.h:
      
      WebKit/efl: 
      
      * WebCoreSupport/InspectorClientEfl.h:
      
      WebKit/gtk: 
      
      * WebCoreSupport/InspectorClientGtk.h:
      
      WebKit/haiku: 
      
      * WebCoreSupport/FrameLoaderClientHaiku.h:
      * WebCoreSupport/InspectorClientHaiku.h:
      
      WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.h:
      * Plugins/WebBaseNetscapePluginView.h:
      * WebCoreSupport/WebFrameLoaderClient.h:
      * WebCoreSupport/WebIconDatabaseClient.h:
      * WebCoreSupport/WebPluginHalterClient.h:
      * WebView/WebViewInternal.h:
      
      WebKit/qt: 
      
      * WebCoreSupport/FrameLoaderClientQt.h:
      * WebCoreSupport/InspectorClientQt.h:
      
      WebKit/win: 
      
      * COMVariantSetter.h:
      * MarshallingHelpers.h:
      * WebCoreSupport/WebContextMenuClient.h:
      * WebCoreSupport/WebPluginHalterClient.h:
      * WebHistory.h:
      
      WebKit/wx: 
      
      * WebKitSupport/FrameLoaderClientWx.h:
      * WebKitSupport/InspectorClientWx.h:
      
      WebKit2: 
      
      * UIProcess/PageClient.h:
      * UIProcess/VisitedLinkProvider.h:
      * UIProcess/WebContextInjectedBundleClient.h:
      * UIProcess/WebFrameProxy.h:
      * UIProcess/WebHistoryClient.h:
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPolicyClient.h:
      * UIProcess/WebProcessProxy.h:
      * UIProcess/WebUIClient.h:
      * UIProcess/win/WebView.h:
      * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
      * WebProcess/Plugins/NPRuntimeObjectMap.h:
      * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
      * WebProcess/Plugins/PluginController.h:
      * WebProcess/WebPage/WebFrame.h:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebProcess.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d218c2df
  9. 06 Aug, 2010 2 commits
    • jberlin@webkit.org's avatar
      2010-08-06 Jessie Berlin <jberlin@apple.com> · d6cf213a
      jberlin@webkit.org authored
              Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
              Unreviewed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6cf213a
    • barraclough@apple.com's avatar
      Bug 43594 - Add string forwards to Forward.h · eead80ac
      barraclough@apple.com authored
      This allows us to remove forward declarations for these classes from
      WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
      
      Rubber stamped by Sam Weinig
      
      JavaScriptCore: 
      
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/Forward.h:
      
      WebCore: 
      
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/AXObjectCache.h:
      * accessibility/AccessibilityARIAGrid.h:
      * accessibility/AccessibilityListBoxOption.h:
      * accessibility/AccessibilityObject.h:
      * accessibility/AccessibilityRenderObject.h:
      * accessibility/AccessibilityTable.h:
      * bindings/cpp/WebDOMCString.h:
      * bindings/cpp/WebDOMString.h:
      * bindings/gobject/ConvertToUTF8String.h:
      * bindings/js/DOMWrapperWorld.h:
      * bindings/js/JSDOMBinding.h:
      * bindings/js/JSDOMWindowBase.h:
      * bindings/js/JSMessagePortCustom.h:
      * bindings/js/JavaScriptCallFrame.h:
      * bindings/js/ScriptController.h:
      * bindings/js/ScriptProfile.h:
      * bindings/js/ScriptSourceProvider.h:
      * bindings/js/ScriptString.h:
      * bindings/js/WorkerScriptController.h:
      * bindings/objc/DOMImplementationFront.h:
      * bindings/v8/ScheduledAction.h:
      * bindings/v8/ScriptController.h:
      * bindings/v8/V8DOMWindowShell.h:
      * bindings/v8/V8Proxy.h:
      * bindings/v8/V8Utilities.h:
      * bindings/v8/custom/V8CustomXPathNSResolver.h:
      * bridge/c/c_utility.h:
      * css/CSSFontSelector.h:
      * css/CSSHelper.h:
      * css/CSSOMUtils.h:
      * css/CSSPrimitiveValue.h:
      * css/MediaList.h:
      * css/StyleBase.h:
      * css/StyleSheetList.h:
      * css/WebKitCSSKeyframesRule.h:
      * dom/CheckedRadioButtons.h:
      * dom/DOMImplementation.h:
      * dom/DocumentMarker.h:
      * dom/DynamicNodeList.h:
      * dom/EventTarget.h:
      * dom/MessagePort.h:
      * dom/MessagePortChannel.h:
      * dom/NameNodeList.h:
      * dom/Node.h:
      * dom/NodeList.h:
      * dom/OptionGroupElement.h:
      * dom/ScriptExecutionContext.h:
      * dom/SelectElement.h:
      * dom/ViewportArguments.h:
      * dom/make_names.pl:
      * editing/HTMLInterchange.h:
      * editing/htmlediting.h:
      * editing/markup.h:
      * html/CollectionCache.h:
      * html/DOMFormData.h:
      * html/DataGridColumnList.h:
      * html/DateComponents.h:
      * html/FileStream.h:
      * html/FileStreamProxy.h:
      * html/FormDataList.h:
      (WebCore::FormDataList::appendData):
      * html/HTMLCollection.h:
      * html/HTMLElementStack.h:
      * html/HTMLFormattingElementList.h:
      * html/HTMLParserQuirks.h:
      * html/HTMLQuoteElement.h:
      * html/HTMLScriptRunnerHost.h:
      * html/StepRange.h:
      * html/canvas/CanvasGradient.h:
      * html/canvas/CanvasNumberArray.h:
      * html/canvas/CanvasPattern.h:
      * inspector/InjectedScript.h:
      * inspector/InspectorCSSStore.h:
      * inspector/InspectorClient.h:
      * inspector/InspectorFrontendClient.h:
      * inspector/InspectorValues.h:
      * inspector/ScriptDebugListener.h:
      * loader/CachedResourceClient.h:
      * loader/CrossOriginAccessControl.h:
      * loader/DocumentThreadableLoader.h:
      * loader/FrameLoaderClient.h:
      * loader/RedirectScheduler.h:
      * loader/SubframeLoader.h:
      * loader/appcache/DOMApplicationCache.h:
      * loader/archive/ArchiveFactory.h:
      * loader/icon/IconDatabaseClient.h:
      * notifications/NotificationPresenter.h:
      * page/Chrome.h:
      * page/ChromeClient.h:
      * page/Console.h:
      * page/ContextMenuClient.h:
      * page/DOMSelection.h:
      * page/EditorClient.h:
      * page/EventHandler.h:
      * page/FrameView.h:
      * page/GeolocationPositionCache.h:
      * page/History.h:
      * page/Location.h:
      * page/Navigator.h:
      * page/NavigatorBase.h:
      * page/PluginHalterClient.h:
      * page/PrintContext.h:
      * page/SpeechInput.h:
      * page/SpeechInputListener.h:
      * page/animation/AnimationController.h:
      * platform/CookieJar.h:
      * platform/CrossThreadCopier.h:
      * platform/DragImage.h:
      * platform/FileSystem.h:
      * platform/Language.h:
      * platform/Length.h:
      * platform/LinkHash.h:
      * platform/LocalizationStrategy.h:
      * platform/LocalizedStrings.h:
      * platform/Logging.h:
      * platform/Pasteboard.h:
      * platform/PopupMenuClient.h:
      * platform/SearchPopupMenu.h:
      * platform/Widget.h:
      * platform/cf/BinaryPropertyList.h:
      * platform/chromium/ChromiumBridge.h:
      * platform/chromium/ClipboardUtilitiesChromium.h:
      * platform/cocoa/KeyEventCocoa.h:
      * platform/graphics/Color.h:
      * platform/graphics/FontCache.h:
      * platform/graphics/FontData.h:
      * platform/graphics/FontSelector.h:
      * platform/graphics/GraphicsTypes.h:
      * platform/graphics/Icon.h:
      * platform/graphics/ImageBuffer.h:
      * platform/graphics/ImageSource.h:
      * platform/graphics/MediaPlayer.h:
      * platform/graphics/MediaPlayerPrivate.h:
      * platform/graphics/Path.h:
      * platform/graphics/StringTruncator.h:
      * platform/graphics/cairo/FontCustomPlatformData.h:
      * platform/graphics/cairo/FontPlatformData.h:
      * platform/graphics/cg/FontPlatformData.h:
      * platform/graphics/cg/ImageSourceCG.h:
      * platform/graphics/chromium/FontCustomPlatformData.h:
      * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
      * platform/graphics/chromium/FontPlatformDataLinux.h:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
      * platform/graphics/haiku/FontCustomPlatformData.h:
      * platform/graphics/mac/FontCustomPlatformData.h:
      * platform/graphics/mac/FontPlatformData.h:
      * platform/graphics/qt/FontCustomPlatformData.h:
      * platform/graphics/qt/FontPlatformData.h:
      * platform/graphics/win/FontCustomPlatformData.h:
      * platform/graphics/win/FontCustomPlatformDataCairo.h:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
      * platform/graphics/wince/FontPlatformData.h:
      * platform/graphics/wince/MediaPlayerPrivateWince.h:
      * platform/graphics/wince/MediaPlayerProxy.h:
      * platform/graphics/wx/FontCustomPlatformData.h:
      * platform/graphics/wx/FontPlatformData.h:
      * platform/mac/PasteboardHelper.h:
      * platform/network/DNS.h:
      * platform/network/FormData.h:
      * platform/network/FormDataBuilder.h:
      * platform/network/HTTPParsers.h:
      * platform/text/Hyphenation.h:
      * platform/text/LineEnding.h:
      * platform/text/TextCodec.h:
      * platform/text/TextEncoding.h:
      * platform/text/TextStream.h:
      * platform/win/BString.h:
      * platform/win/ClipboardUtilitiesWin.h:
      * platform/win/WCDataObject.h:
      * platform/win/WebCoreTextRenderer.h:
      * plugins/DOMMimeType.h:
      * plugins/DOMMimeTypeArray.h:
      * plugins/DOMPlugin.h:
      * plugins/DOMPluginArray.h:
      * rendering/CounterNode.h:
      * rendering/HitTestResult.h:
      * rendering/RenderObjectChildList.h:
      * rendering/RenderText.h:
      * rendering/RenderTreeAsText.h:
      * rendering/TextControlInnerElements.h:
      * rendering/style/ContentData.h:
      * rendering/style/RenderStyle.h:
      * storage/DatabaseAuthorizer.h:
      * storage/DatabaseTrackerClient.h:
      * storage/SQLTransaction.h:
      * storage/SQLTransactionSync.h:
      * storage/Storage.h:
      * storage/chromium/DatabaseObserver.h:
      * svg/SVGAnimatedTemplate.h:
      * svg/SVGDocumentExtensions.h:
      * svg/SVGGlyphElement.h:
      * svg/SVGHKernElement.h:
      * svg/SVGNumberList.h:
      * svg/SVGPointList.h:
      * svg/SVGPreserveAspectRatio.h:
      * svg/SVGStylable.h:
      * svg/SVGTests.h:
      * svg/SVGTransformList.h:
      * svg/SVGTransformable.h:
      * svg/SVGVKernElement.h:
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.h:
      * websockets/WebSocketHandshakeResponse.h:
      * wml/WMLErrorHandling.h:
      * wml/WMLPageState.h:
      * wml/WMLVariables.h:
      * workers/DefaultSharedWorkerRepository.h:
      * workers/SharedWorkerRepository.h:
      * workers/Worker.h:
      * workers/WorkerContextProxy.h:
      * workers/WorkerLoaderProxy.h:
      * workers/WorkerLocation.h:
      * workers/WorkerMessagingProxy.h:
      * workers/WorkerReportingProxy.h:
      * workers/WorkerThread.h:
      * xml/DOMParser.h:
      * xml/XMLHttpRequestUpload.h:
      * xml/XPathEvaluator.h:
      * xml/XPathExpression.h:
      * xml/XPathNSResolver.h:
      * xml/XPathResult.h:
      * xml/XPathUtil.h:
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/chromium: 
      
      * public/WebCString.h:
      * public/WebString.h:
      * src/DOMUtilitiesPrivate.h:
      * src/DebuggerAgentImpl.h:
      * src/DebuggerAgentManager.h:
      * src/WebDevToolsAgentImpl.h:
      * src/WebDevToolsFrontendImpl.h:
      * src/WebPageSerializerImpl.h:
      
      WebKit/efl: 
      
      * WebCoreSupport/InspectorClientEfl.h:
      
      WebKit/gtk: 
      
      * WebCoreSupport/InspectorClientGtk.h:
      
      WebKit/haiku: 
      
      * WebCoreSupport/FrameLoaderClientHaiku.h:
      * WebCoreSupport/InspectorClientHaiku.h:
      
      WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.h:
      * Plugins/WebBaseNetscapePluginView.h:
      * WebCoreSupport/WebFrameLoaderClient.h:
      * WebCoreSupport/WebIconDatabaseClient.h:
      * WebCoreSupport/WebPluginHalterClient.h:
      * WebView/WebViewInternal.h:
      
      WebKit/qt: 
      
      * WebCoreSupport/FrameLoaderClientQt.h:
      * WebCoreSupport/InspectorClientQt.h:
      
      WebKit/win: 
      
      * COMVariantSetter.h:
      * MarshallingHelpers.h:
      * WebCoreSupport/WebContextMenuClient.h:
      * WebCoreSupport/WebPluginHalterClient.h:
      * WebHistory.h:
      
      WebKit/wx: 
      
      * WebKitSupport/FrameLoaderClientWx.h:
      * WebKitSupport/InspectorClientWx.h:
      
      WebKit2: 
      
      * UIProcess/PageClient.h:
      * UIProcess/VisitedLinkProvider.h:
      * UIProcess/WebContextInjectedBundleClient.h:
      * UIProcess/WebFrameProxy.h:
      * UIProcess/WebHistoryClient.h:
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPolicyClient.h:
      * UIProcess/WebProcessProxy.h:
      * UIProcess/WebUIClient.h:
      * UIProcess/win/WebView.h:
      * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
      * WebProcess/Plugins/NPRuntimeObjectMap.h:
      * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
      * WebProcess/Plugins/PluginController.h:
      * WebProcess/WebPage/WebFrame.h:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebProcess.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eead80ac
  10. 25 Mar, 2008 1 commit
    • beidson@apple.com's avatar
      WebCore: · f36a4a19
      beidson@apple.com authored
      2008-03-25  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin
      
              <rdar://problem/4516169> - Support WebArchives on Windows
              And pave the way for many future WebArchive bug fixes and enhancements
      
              This patch accomplishes two main goals:
              1 - Consolidates much of the spread out WebKitMac archive code into one place in WebCore.  This allows for cleaner refactoring 
                  in the future as well as adding more archive formats with ease.
              2 - Hooks up WebArchive support on Windows.  Safari-style .webarchive files are nothing more than property lists readable by
                  CoreFoundation.  While there are still some outstanding issues, including an NSKeyedArchiver chunk of data for the 
                  ResourceResponse for each resource, this patch manually parses through the property list on CoreFoundation platforms and
                  gets many archives loading on Windows
      
              My goal for this first cut was zero behavior change.  As such, I went for a direct port of the WebKitMac code.  There will be
              opportunities for redesign and refactoring as followups.
      
              * WebCore.base.exp:
      
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::setupForReplaceByMIMEType): Ported from WebKitMac, WebDataSource
              (WebCore::DocumentLoader::addAllArchiveResources):
              (WebCore::DocumentLoader::addArchiveResource):
              (WebCore::DocumentLoader::archiveResourceForURL):
              (WebCore::DocumentLoader::popArchiveForSubframe):
              (WebCore::DocumentLoader::clearArchiveResources):
              * loader/DocumentLoader.h:
      
              * loader/FrameLoader.cpp: Moved WebFrameLoaderClient and WebFrame code down into their more appropriate FrameLoader home
              (WebCore::FrameLoader::FrameLoader):
              (WebCore::FrameLoader::setDefersLoading):
              (WebCore::FrameLoader::deliverArchivedResourcesAfterDelay):
              (WebCore::FrameLoader::archiveResourceDeliveryTimerFired):
              (WebCore::FrameLoader::loadURLIntoChildFrame):
              (WebCore::FrameLoader::loadArchive):
              (WebCore::FrameLoader::scheduleArchiveLoad):
              (WebCore::FrameLoader::stopAllLoaders):
              (WebCore::FrameLoader::cancelPendingArchiveLoad):
              (WebCore::FrameLoader::isArchiveLoadPending):
              (WebCore::FrameLoader::finishedLoadingDocument):
              * loader/FrameLoader.h:
      
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::load):
      
              * loader/archive/Archive.h: Generic "Archive of web resources" class that is only useful when subclassed.  
                  Contains a MainResource, subresources, and Archives for subframes
              (WebCore::Archive::mainResource):
              (WebCore::Archive::subresources):
              (WebCore::Archive::subframeArchives):
              (WebCore::Archive::setMainResource):
              (WebCore::Archive::addSubresource):
              (WebCore::Archive::addSubframeArchive):
      
              * loader/archive/ArchiveFactory.cpp: A class that will take raw archive data and the MIMEtype, and create the
                  appropriate Archive class for it.  Additionally it handles registering the known MIMEtypes for all known archive formats
              (WebCore::archiveFactoryCreate):
              (WebCore::archiveMIMETypes):
              (WebCore::ArchiveFactory::isArchiveMimeType):
              (WebCore::ArchiveFactory::create):
              (WebCore::ArchiveFactory::registerKnownArchiveMIMETypes):
              * loader/archive/ArchiveFactory.h:
      
              * loader/archive/ArchiveResource.cpp: Analog to "WebResource" in WebKitMac.  Contains the data and other important
                  attributes of an archived resource
              (WebCore::ArchiveResource::create):
              (WebCore::ArchiveResource::ArchiveResource):
              (WebCore::ArchiveResource::response):
              * loader/archive/ArchiveResource.h:
              (WebCore::ArchiveResource::data):
              (WebCore::ArchiveResource::url):
              (WebCore::ArchiveResource::mimeType):
              (WebCore::ArchiveResource::textEncoding):
              (WebCore::ArchiveResource::frameName):
              (WebCore::ArchiveResource::ignoreWhenUnarchiving):
              (WebCore::ArchiveResource::shouldIgnoreWhenUnarchiving):
      
              * loader/archive/ArchiveResourceCollection.cpp: Analog of "WebUnarchivingState" in WebKitMac.  Contains a hash of
                  all the resources for every frame in an archive, and contains the archives for each subframe needed to load a multi-frame archive
              (WebCore::ArchiveResourceCollection::ArchiveResourceCollection):
              (WebCore::ArchiveResourceCollection::addAllResources):
              (WebCore::ArchiveResourceCollection::addResource):
              (WebCore::ArchiveResourceCollection::archiveResourceForURL):
              (WebCore::ArchiveResourceCollection::popSubframeArchive):
              * loader/archive/ArchiveResourceCollection.h:
      
              * loader/archive/cf/LegacyWebArchive.cpp: Subclass of Archive specifically for Webkit's Objective-C based ".webarchive" format.
                  Mostly a collection of static methods involved in parsing and serializing a WebKit-style .webarchive.  Is mostly supported
                  for any CF platform.
              (WebCore::createPropertyListRepresentationFromResource):
              (WebCore::createPropertyListRep):
              (WebCore::createResourceResponseFromPropertyListData):
              (WebCore::createResource):
              (WebCore::LegacyWebArchive::create):
              (WebCore::LegacyWebArchive::LegacyWebArchive):
              (WebCore::LegacyWebArchive::init):
              (WebCore::LegacyWebArchive::extract):
              (WebCore::LegacyWebArchive::rawDataRepresentation):
              (WebCore::createResourceResponseFromMacArchivedData):
              (WebCore::propertyListDataFromResourceResponse):
              * loader/archive/cf/LegacyWebArchive.h:
              * loader/archive/cf/LegacyWebArchiveMac.mm:
              (WebCore::createResourceResponseFromMacArchivedData):
              (WebCore::propertyListDataFromResourceResponse):
      
              * platform/network/mac/ResourceRequest.h:
              * platform/network/mac/ResourceRequestMac.mm:
              (WebCore::ResourceRequest::applyWebArchiveHackForMail): Tweak the resource request for Mac clients when loading WebArchives
      
      WebKit:
      
      2008-03-25  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin
      
              <rdar://problem/4516169> - Support WebArchives on Windows
      
              * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac:
      
      2008-03-25  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin
      
              <rdar://problem/4516169> - Support WebArchives on Windows
              And paves the way for many future WebArchive bug fixes and enhancements
      
              This change moves most of the real workhorse code about WebArchives into WebCore.  It maintains 
              1-to-1 relationships between a few objects in WebCore and WebKit.  Such as:
               * WebArchive <-> LegacyWebArchive
               * WebResource <-> ArchiveResource
               * WebUnarchivingState <-> ArchiveResourceCollection
       
              The other biggest changes involve many FrameLoaderClient methods that existed soley for WebArchives 
              and now exist in WebCore
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::clearUnarchivingState): Emptied - to be removed in a followup patch
              (WebFrameLoaderClient::finalSetupForReplace):
              (WebFrameLoaderClient::setDefersLoading):
              (WebFrameLoaderClient::willUseArchive):
              (WebFrameLoaderClient::isArchiveLoadPending):
              (WebFrameLoaderClient::cancelPendingArchiveLoad):
              (WebFrameLoaderClient::clearArchivedResources):
              (WebFrameLoaderClient::createFrame):
      
              * WebView/WebArchive.mm:
              (+[WebArchivePrivate initialize]):
              (-[WebArchivePrivate init]):
              (-[WebArchivePrivate initWithCoreArchive:]):
              (-[WebArchivePrivate coreArchive]):
              (-[WebArchivePrivate setCoreArchive:]):
              (-[WebArchivePrivate dealloc]):
              (-[WebArchivePrivate finalize]):
              (-[WebArchive init]):
              (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
              (-[WebArchive initWithData:]):
              (-[WebArchive initWithCoder:]):
              (-[WebArchive encodeWithCoder:]):
              (-[WebArchive mainResource]):
              (-[WebArchive subresources]):
              (-[WebArchive subframeArchives]):
              (-[WebArchive data]):
              (-[WebArchive _initWithCoreLegacyWebArchive:WebCore::]):
              (-[WebArchive WebCore::]):
              * WebView/WebArchiveInternal.h: Added.
      
              * WebView/WebDataSource.mm:
              (-[WebDataSourcePrivate dealloc]):
              (-[WebDataSource _addSubframeArchives:]):
              (-[WebDataSource _documentFragmentWithArchive:]):
              (-[WebDataSource subresourceForURL:]):
              (-[WebDataSource addSubresource:]):
              * WebView/WebDataSourceInternal.h:
      
              * WebView/WebFrame.mm:
              (-[WebFrame loadArchive:]):
              * WebView/WebFrameInternal.h:
      
              * WebView/WebHTMLRepresentation.mm:
              (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
      
              * WebView/WebResource.mm:
              (+[WebResourcePrivate initialize]):
              (-[WebResourcePrivate init]):
              (-[WebResourcePrivate initWithCoreResource:]):
              (-[WebResourcePrivate dealloc]):
              (-[WebResourcePrivate finalize]):
              (-[WebResource initWithCoder:]):
              (-[WebResource encodeWithCoder:]):
              (-[WebResource data]):
              (-[WebResource URL]):
              (-[WebResource MIMEType]):
              (-[WebResource textEncodingName]):
              (-[WebResource frameName]):
              (-[WebResource _initWithCoreResource:WebCore::]):
              (-[WebResource WebCore::]):
              (-[WebResource _ignoreWhenUnarchiving]):
              (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
              (-[WebResource _fileWrapperRepresentation]):
              (-[WebResource _response]):
              (-[WebResource _stringValue]):
              * WebView/WebResourceInternal.h: Added.
              * WebView/WebResourcePrivate.h:
      
              * WebView/WebUnarchivingState.h: Removed.
              * WebView/WebUnarchivingState.m: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f36a4a19
  11. 24 Mar, 2008 1 commit
    • beidson@apple.com's avatar
      WebCore: · 38f2f236
      beidson@apple.com authored
      2008-03-24  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin's rubberstamp
      
              Land a load of empty files for upcoming work to make sure I'm not breaking any platform's build
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * loader/archive: Added.
              * loader/archive/Archive.h: Added.
              * loader/archive/ArchiveFactory.cpp: Added.
              * loader/archive/ArchiveFactory.h: Added.
              * loader/archive/ArchiveResource.cpp: Added.
              * loader/archive/ArchiveResource.h: Added.
              * loader/archive/ArchiveResourceCollection.cpp: Added.
              * loader/archive/ArchiveResourceCollection.h: Added.
              * loader/archive/cf: Added.
              * loader/archive/cf/LegacyWebArchive.cpp: Added.
              * loader/archive/cf/LegacyWebArchive.h: Added.
              * loader/archive/cf/LegacyWebArchiveMac.mm: Added.
      
      WebKit:
      
      2008-03-24  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin's rubberstamp
      
              Rename a .m to .mm
      
              * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac:
      
      2008-03-24  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin's rubberstamp
      
              Rename this file for upcoming work.
      
              * WebView/WebArchive.m: Removed.
              * WebView/WebArchive.mm: Copied from WebKit/mac/WebView/WebArchive.m.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      38f2f236
  12. 13 Mar, 2008 2 commits
  13. 12 Mar, 2008 3 commits
  14. 13 Feb, 2008 1 commit
  15. 15 Nov, 2007 1 commit
    • beidson@apple.com's avatar
      WebCore: · 705db6e6
      beidson@apple.com authored
              Reviewed by John and Sam
      
              Stubbing out everything required for a WebKit API for databases
      
              Biggest change in WebCore is that we passed around SecurityOriginData as the representation
              of a SecurityOrigin, instead of a String or a SecurityOrigin itself (which is an opaque object
              that has a different purpose besides just hanging on to the data)
      
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
      
              * platform/SecurityOrigin.cpp:
              * platform/SecurityOrigin.h:
              * platform/SecurityOriginData.h: Added.  Simple object to encapsulate the 3
                pieces of data in the SecurityOrigin tuple
              (WebCore::SecurityOriginData::SecurityOriginData):
              (WebCore::SecurityOriginData::protocol):
              (WebCore::SecurityOriginData::host):
              (WebCore::SecurityOriginData::port):
              (WebCore::SecurityOriginData::toString): Simple concatenation of the 3 components,
                colon separated
      
              * storage/Database.cpp:
              (WebCore::Database::Database): Use SecurityOriginData instead
      
              * storage/DatabaseTracker.cpp:
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::databaseNamesForOrigin):
              (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
              (WebCore::DatabaseTracker::deleteDatabase):
              * storage/DatabaseTracker.h:
      
              * storage/DatabaseTrackerClient.h: Added.  For dispatching notifications up to WebKit
              (WebCore::DatabaseTrackerClient::~DatabaseTrackerClient):
      
      WebKit:
      
              Reviewed by John
      
              Stubbing out everything required for a WebKit API for databases
      
              * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac:
      
              Reviewed by John
      
              Stubbing out everything required for a WebKit API for databases
      
              These interfaces seem to provide everything we need for UI and management at the browser level
      
              * Misc/WebDatabaseManager.h: Removed.
              * Misc/WebDatabaseManager.mm: Removed.
              * Misc/WebDatabaseManagerPrivate.h: Removed.
      
              * Misc/WebSecurityOrigin.mm: Added. Object that acts as a container for the "SecurityOrigin tuple"
                (protocol, domain, and port)
              (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
              (-[WebSecurityOriginPrivate dealloc]):
              (-[WebSecurityOrigin initWithProtocol:domain:]):
              (-[WebSecurityOrigin initWithProtocol:domain:port:]):
              (-[WebSecurityOrigin protocol]):
              (-[WebSecurityOrigin domain]):
              (-[WebSecurityOrigin port]):
              (-[WebSecurityOrigin dealloc]):
              (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:WebCore::]):
              * Misc/WebSecurityOriginInternal.h: Added.
              * Misc/WebSecurityOriginPrivate.h: Added.
      
              * Storage/WebDatabaseManager.mm: Added.
              (+[WebDatabaseManager sharedWebDatabaseManager]):
              (-[WebDatabaseManager origins]):  Get a list of all origins currently tracked
              (-[WebDatabaseManager detailsForOrigin:]): Get the current usage and current quota for the given origin
              (-[WebDatabaseManager databasesWithOrigin:]): Get all databases for a certain origin
              (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Get all details about a specific database
              (-[WebDatabaseManager setQuota:forOrigin:]): Change origin-wide quota
              (-[WebDatabaseManager deleteAllDatabases]):
              (-[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
              (-[WebDatabaseManager deleteDatabase:withOrigin:]):
              * Storage/WebDatabaseManagerPrivate.h: Added.
              * Storage/WebDatabaseManagerInternal.h: Added.
              (WebKitInitializeDatabasesIfNecessary): One-time initialization of database-related things
      
              * Storage/WebDatabaseTrackerClient.h: Added. Stubbed out client for notifications
              * Storage/WebDatabaseTrackerClient.mm: Added.
              (WebDatabaseTrackerClient::sharedWebDatabaseTrackerClient):
              (WebDatabaseTrackerClient::WebDatabaseTrackerClient):
              (WebDatabaseTrackerClient::~WebDatabaseTrackerClient):
              (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
              (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
      
              * WebView/WebView.mm:
              (-[WebView _commonInitializationWithFrameName:groupName:]): Do one-time initialization of
                Database-related things here
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      705db6e6
  16. 07 Nov, 2007 1 commit
  17. 19 Oct, 2007 1 commit
    • beidson's avatar
      JavaScriptCore: · e5def340
      beidson authored
      2007-10-19  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Sam
      
              Queue -> Deque! and small style tweaks
      
              * JavaScriptCore.vcproj/WTF/WTF.vcproj:
              * JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
              * wtf/Deque.h: Added.
              (WTF::DequeNode::DequeNode):
              (WTF::Deque::Deque):
              (WTF::Deque::~Deque):
              (WTF::Deque::size):
              (WTF::Deque::isEmpty):
              (WTF::Deque::append):
              (WTF::Deque::prepend):
              (WTF::Deque::first):
              (WTF::Deque::last):
              (WTF::Deque::removeFirst):
              (WTF::Deque::clear):
              * wtf/Queue.h: Removed.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Oliver
      
              Added a simple LinkedList based Queue to wtf
              We can make a better, more sophisticated an efficient one later, but have
              needed one for some time, now!
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * wtf/Queue.h: Added.
              (WTF::QueueNode::QueueNode):
              (WTF::Queue::Queue):
              (WTF::Queue::~Queue):
              (WTF::Queue::size):
              (WTF::Queue::isEmpty):
              (WTF::Queue::append):
              (WTF::Queue::prepend):
              (WTF::Queue::first):
              (WTF::Queue::last):
              (WTF::Queue::removeFirst):
              (WTF::Queue::clear):
      
      WebCore:
      2007-10-19  Brady Eidson  <beidson@apple.com>
              Reviewed by Anders
      
              Windows specific changes, as well as renaming Queue -> Deque
      
              * ForwardingHeaders/wtf/Deque.h: Added.
              * ForwardingHeaders/wtf/Queue.h: Removed.
              * platform/win/FileSystemWin.cpp:
              (WebCore::fileSize):
              (WebCore::fileExists):
              (WebCore::deleteFile):
              (WebCore::pathByAppendingComponent):
              (WebCore::fileSystemRepresentation):
              (WebCore::makeAllDirectories):
              (WebCore::homeDirectoryPath):
              * storage/Database.h:
              * storage/DatabaseThread.cpp:
              (WebCore::DatabaseThread::documentGoingAway):
              (WebCore::DatabaseThread::databaseGoingAway):
              (WebCore::DatabaseThread::dispatchNextTaskIdentifier):
              (WebCore::DatabaseThread::scheduleTask):
              (WebCore::DatabaseThread::scheduleImmediateTask):
              * storage/DatabaseThread.h:
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Tim and Anders
      
              Preliminary support for HTML5 local database storage (http://www.whatwg.org/specs/web-apps/current-work/)
      
              The specification is still in flux but the fundamentals are pretty solid and we can start using and testing
              this implementation even while filing bugs to track changes in the spec as it becomes more final
      
              There are some implementation details in this patch that seem unused or useless, but they remain in place
              while the spec is in flux and might go one way or another.
      
              * platform/Logging.cpp: Add StorageAPI logging channel
              * platform/Logging.h:
      
              * storage/Database.cpp: Added.
              (WebCore::Database::databaseInfoTableName):
              (WebCore::databaseVersionKey):
              (WebCore::Database::openDatabase): C++ version of the window.openDatabase() javascript API
              (WebCore::Database::Database):
              (WebCore::Database::~Database):
              (WebCore::Database::openAndVerifyVersion):
              (WebCore::retrieveTextResultFromDatabase):
              (WebCore::Database::getVersionFromDatabase):
              (WebCore::setTextValueInDatabase):
              (WebCore::Database::setVersionInDatabase):
              (WebCore::Database::databaseThreadGoingAway): May be removed in the future
              (WebCore::Database::disableAuthorizer): For internal (WebInspector) use to get around the authorizer's restrictions
              (WebCore::Database::enableAuthorizer):
              (WebCore::Database::guidForOriginAndName): Candidate for refactoring and/or moving to the database tracker.
                The GUID for each database identifier is currently for tracking the database version, but might be rescoped in the future
              (WebCore::Database::resetAuthorizer):
              (WebCore::Database::performPolicyChecks): Currently, the only post-executeSql policy check planned is the origin size usage
              (WebCore::Database::scheduleDatabaseCallback):
              (WebCore::Database::performOpenAndVerify):
              (WebCore::Database::performChangeVersion):
              (WebCore::Database::performExecuteSql):
              (WebCore::Database::performCloseTransaction):
              (WebCore::Database::performGetTableNames):
              (WebCore::Database::version): C++ version of the javascript API
              (WebCore::Database::changeVersion): Ditto
              (WebCore::Database::executeSql): Ditto
              (WebCore::Database::closeTransaction): Ditto
              (WebCore::Database::tableNames): For internal (WebInspector) use
              (WebCore::Database::deliverAllPendingCallbacks):
              (WebCore::Database::deliverPendingCallbacks):
              * storage/Database.h: Added.
              (WebCore::Database::databaseDebugName): For debug logging purposes
              * storage/Database.idl: Added.
      
              * storage/DatabaseAuthorizer.cpp: Added.
                The DatabaseAuthorizer is used to both prevent the script from doing "illegal" things in sql as well as
                tracking when effects certain sql statements might have (such as increasing the size of the database)
              (WebCore::DatabaseAuthorizer::DatabaseAuthorizer):
              (WebCore::DatabaseAuthorizer::reset):
              (WebCore::DatabaseAuthorizer::createTable):
              (WebCore::DatabaseAuthorizer::createTempTable):
              (WebCore::DatabaseAuthorizer::dropTable):
              (WebCore::DatabaseAuthorizer::dropTempTable):
              (WebCore::DatabaseAuthorizer::allowAlterTable):
              (WebCore::DatabaseAuthorizer::createIndex):
              (WebCore::DatabaseAuthorizer::createTempIndex):
              (WebCore::DatabaseAuthorizer::dropIndex):
              (WebCore::DatabaseAuthorizer::dropTempIndex):
              (WebCore::DatabaseAuthorizer::createTrigger):
              (WebCore::DatabaseAuthorizer::createTempTrigger):
              (WebCore::DatabaseAuthorizer::dropTrigger):
              (WebCore::DatabaseAuthorizer::dropTempTrigger):
              (WebCore::DatabaseAuthorizer::createVTable):
              (WebCore::DatabaseAuthorizer::dropVTable):
              (WebCore::DatabaseAuthorizer::allowDelete):
              (WebCore::DatabaseAuthorizer::allowInsert):
              (WebCore::DatabaseAuthorizer::allowUpdate):
              (WebCore::DatabaseAuthorizer::allowRead):
              (WebCore::DatabaseAuthorizer::allowAnalyze):
              (WebCore::DatabaseAuthorizer::allowPragma):
              (WebCore::DatabaseAuthorizer::allowAttach):
              (WebCore::DatabaseAuthorizer::allowDetach):
              (WebCore::DatabaseAuthorizer::allowFunction):
              (WebCore::DatabaseAuthorizer::disable):
              (WebCore::DatabaseAuthorizer::enable):
              (WebCore::DatabaseAuthorizer::denyBasedOnTableName): Don't allow access to the __WebKit meta info table as
                it should be invisible to scripts
              * storage/DatabaseAuthorizer.h: Added.
              (WebCore::DatabaseAuthorizer::lastActionWasInsert):
              (WebCore::DatabaseAuthorizer::lastActionIncreasedSize):
      
              * storage/DatabaseCallback.cpp: Added.
                Generic item to queue up for callbacks on the main thread for database activities that take place on
                a secondary thread
              (WebCore::DatabaseChangeVersionCallback::DatabaseChangeVersionCallback):
              (WebCore::DatabaseChangeVersionCallback::performCallback):
              (WebCore::DatabaseExecuteSqlCallback::DatabaseExecuteSqlCallback):
              (WebCore::DatabaseExecuteSqlCallback::performCallback):
              * storage/DatabaseCallback.h: Added.
              (WebCore::DatabaseCallback::~DatabaseCallback):
              (WebCore::DatabaseChangeVersionCallback::~DatabaseChangeVersionCallback):
              (WebCore::DatabaseExecuteSqlCallback::~DatabaseExecuteSqlCallback):
      
              * storage/DatabaseTask.h: Added.
                Generic work-item to be queued up on the background database thread
              (WebCore::DatabaseTask::isComplete):
              (WebCore::DatabaseOpenTask::exceptionCode):
              (WebCore::DatabaseOpenTask::openSuccessful):
              (WebCore::DatabaseTableNamesTask::tableNames):
              * storage/DatabaseTask.cpp: Added.
              (WebCore::DatabaseTask::DatabaseTask):
              (WebCore::DatabaseTask::~DatabaseTask):
              (WebCore::DatabaseTask::performTask):
              (WebCore::DatabaseTask::lockForSynchronousScheduling): Used when the main thread needs this task accomplished
                synchronously
              (WebCore::DatabaseTask::waitForSynchronousCompletion):
      
              (WebCore::DatabaseOpenTask::DatabaseOpenTask):
              (WebCore::DatabaseOpenTask::doPerformTask):
      
              (WebCore::DatabaseExecuteSqlTask::DatabaseExecuteSqlTask):
              (WebCore::DatabaseExecuteSqlTask::doPerformTask):
      
              (WebCore::DatabaseChangeVersionTask::DatabaseChangeVersionTask):
              (WebCore::DatabaseChangeVersionTask::doPerformTask):
      
              (WebCore::DatabaseTableNamesTask::DatabaseTableNamesTask):
              (WebCore::DatabaseTableNamesTask::doPerformTask):
      
              * storage/DatabaseThread.cpp: Added.
                The current design is that each Document will have its own DatabaseThread.  This makes scripts on each
                individual document more response at the cost of adding more threads and potentially creating concurrency
                issues when the same database is open twice from two different documents
              (WebCore::DatabaseThread::DatabaseThread):
              (WebCore::DatabaseThread::~DatabaseThread):
              (WebCore::DatabaseThread::start):
              (WebCore::DatabaseThread::documentGoingAway): Called to shut the thread down when the document is destroyed
              (WebCore::DatabaseThread::databaseGoingAway): Remove all pending tasks for this database
              (WebCore::DatabaseThread::databaseThreadStart):
              (WebCore::DatabaseThread::databaseThread):
              (WebCore::DatabaseThread::dispatchNextTaskIdentifier):
              (WebCore::DatabaseThread::scheduleTask):
              (WebCore::DatabaseThread::scheduleImmediateTask): Schedule a task that gets to "cut to the front of the line" when
                the main thread requires a task be performed synchronously
              (WebCore::DatabaseThread::wakeWorkThread):
              * storage/DatabaseThread.h: Added.
      
              * storage/DatabaseTracker.cpp: Added.
                The DatabaseTracker is the master management of all databases.  It will keep track of the filename for a given
                unique database, keep track of the total disk usage per-origin, and policys per database/origin
              (WebCore::DatabaseTracker::setDatabasePath):
              (WebCore::DatabaseTracker::databasePath):
              (WebCore::DatabaseTracker::tracker):
              (WebCore::DatabaseTracker::DatabaseTracker):
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::populateOrigins):
              (WebCore::DatabaseTracker::origins):
              (WebCore::DatabaseTracker::databaseNamesForOrigin):
              (WebCore::DatabaseTracker::addDatabase):
              (WebCore::DatabaseTracker::deleteAllDatabases):
              (WebCore::DatabaseTracker::deleteAllDatabasesForOrigin):
              * storage/DatabaseTracker.h: Added.
      
              * storage/SQLCallback.h: Added. C++ version of the javascript executeSql() callback
              (WebCore::SQLCallback::~SQLCallback):
              * storage/SQLCallback.idl: Added.
      
              * storage/SQLResultSet.cpp: Added. C++ version of the javascript SQLResultSet object
              (WebCore::SQLResultSet::SQLResultSet):
              (WebCore::SQLResultSet::insertId):
              (WebCore::SQLResultSet::rowsAffected):
              (WebCore::SQLResultSet::errorCode):
              (WebCore::SQLResultSet::error):
              (WebCore::SQLResultSet::rows):
              (WebCore::SQLResultSet::setInsertId):
              (WebCore::SQLResultSet::setRowsAffected):
              (WebCore::SQLResultSet::setErrorCode):
              (WebCore::SQLResultSet::setErrorMessage):
              * storage/SQLResultSet.h: Added.
              * storage/SQLResultSet.idl: Added.
      
              * storage/SQLResultSetRowList.cpp: Added. C++ version of the javascript SQLResultSetRowList object
              (WebCore::SQLResultSetRowList::length):
              * storage/SQLResultSetRowList.h: Added.
              (WebCore::SQLResultSetRowList::columnNames):
              (WebCore::SQLResultSetRowList::values):
              (WebCore::SQLResultSetRowList::addColumn):
              (WebCore::SQLResultSetRowList::addResult):
              * storage/SQLResultSetRowList.idl: Added.
      
              * storage/VersionChangeCallback.h: Added. C++ version of the javascript changeVersion() callback
              (WebCore::VersionChangeCallback::~VersionChangeCallback):
              * storage/VersionChangeCallback.idl: Added.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Oliver + Same
      
              Forwarding header for the new wtf/Queue.h
      
              * ForwardingHeaders/wtf/Queue.h: Added.
      
      2007-10-19  Anders Carlsson <beidson@apple.com>
      
             	Reviewed by Sam Weinig
      
             	Most of the Javascript binding support for the Storage API
      
             	* bindings/js/JSCustomSQLCallback.cpp: Added.
             	(WebCore::JSCustomSQLCallback::JSCustomSQLCallback):
             	(WebCore::JSCustomSQLCallback::handleEvent):
             	* bindings/js/JSCustomSQLCallback.h: Added.
      		Add JSCustomSQLCallback which is an SQLCallback implementation that dispatches
      		handleEvent to a JS function or a JS object with a handleEvent function.
      
             	* bindings/js/JSCustomVersionChangeCallback.cpp: Added.
             	(WebCore::JSCustomVersionChangeCallback::JSCustomVersionChangeCallback):
             	(WebCore::JSCustomVersionChangeCallback::handleEvent):
             	* bindings/js/JSCustomVersionChangeCallback.h: Added.
      		Add JSCustomSQLCallback which is an SQLCallback implementation that dispatches
      		handleEvent to a JS function or a JS object with a handleEvent function.
      
             	* bindings/js/JSDatabaseCustom.cpp: Added.
             	(WebCore::JSDatabase::executeSql):
      		Custom implementation of executeSql that takes an array of parameters.
      
             	(WebCore::JSDatabase::changeVersion):
      		Custom implementation of changeVersion.
      
             	* bindings/js/JSSQLResultSetRowListCustom.cpp: Added.
             	(WebCore::JSSQLResultSetRowList::item):
      		Custom method that returns a JS object that corresponds to a given row in the database.
      
             	* bindings/scripts/CodeGeneratorJS.pm:
      
             	* page/DOMWindow.cpp:
             	(WebCore::DOMWindow::openDatabase):
             	* page/DOMWindow.h:
             	* page/DOMWindow.idl:
      		Add openDatabase implementation.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Oliver
      
              Added tons of utility to the FileSystem abstractions, including moving
              some stuff over from IconDatabase
      
              * platform/FileSystem.h:
      
              * platform/cf/FileSystemCF.cpp: Added.
              (WebCore::fileSystemRepresentation):
      
              * platform/mac/FileSystemMac.mm:
      
              * platform/posix/FileSystemPOSIX.cpp: Added.
              (WebCore::fileExists):
              (WebCore::deleteFile):
              (WebCore::fileSize):
              (WebCore::pathByAppendingComponent):
              (WebCore::makeAllDirectories):
      
      2007-10-19  Timothy Hatcher  <timothy@apple.com>
      
              Reviewed by Adam Roben
      
              Preliminary Web Inspector support for the Storage API
              (This patch does not include the support artwork)
      
              * page/InspectorController.cpp:
              (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
              (WebCore::InspectorDatabaseResource::setScriptObject):
              (WebCore::databaseTableNames): Return the table names for a Database object.
              (WebCore::InspectorController::setWindowVisible):
              (WebCore::InspectorController::windowScriptObjectAvailable):
              (WebCore::InspectorController::populateScriptResources):
              (WebCore::InspectorController::addDatabaseScriptResource): Add the script object for the database.
              (WebCore::InspectorController::removeDatabaseScriptResource): Remove the script object for the database.
              (WebCore::InspectorController::clearDatabaseScriptResources): Remove all the database resources.
              (WebCore::InspectorController::didCommitLoad): Call clearDatabaseScriptResources().
              (WebCore::InspectorController::didOpenDatabase): Make a new InspectorDatabaseResource and add it to m_databaseResources.
              * page/InspectorController.h:
              * page/inspector/Database.js: Added.
              * page/inspector/DatabasePanel.js: Added.
              * page/inspector/ResourceCategory.js: Make resource categories assume less about the resource.
              * page/inspector/inspector.css: Add styles for the database panel.
              * page/inspector/inspector.html: Include DatabasePanel.js
              * page/inspector/inspector.js: Support for adding and removing Database resources.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Tim Hatcher
      
              Added support for Chrome prompts required by the Storage API
      
              * page/Chrome.cpp:
              (WebCore::Chrome::runDatabaseSizeLimitPrompt):
              * page/Chrome.h:
              * page/ChromeClient.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Contributions and Review by Anders
      
              Various SQLite tweaks in preparation for the storage API
      
              * loader/icon/SQLDatabase.cpp:
              (WebCore::SQLDatabase::~SQLDatabase):
              (WebCore::SQLDatabase::authorizerFunction): Static callback from sqlite for authorizer functions
              (WebCore::SQLDatabase::setAuthorizer):
              (WebCore::SQLDatabase::lock):
              (WebCore::SQLDatabase::unlock):
              * loader/icon/SQLDatabase.h:
      
              * loader/icon/SQLStatement.cpp:
              (WebCore::SQLStatement::prepare): Switch to prepare16_v2
              (WebCore::SQLStatement::bindDouble): Added
              (WebCore::SQLStatement::bindValue): Bind a wrapped SQLValue object (described later)
              (WebCore::SQLStatement::bindParameterCount): Accessor to the sqlite3 API for validating statements
              * loader/icon/SQLStatement.h:
              (WebCore::SQLStatement::isPrepared):
      
              * platform/sql/SQLAuthorizer.cpp: Added.  Fully virtual interface to implement your own SQLite authorizer
              * platform/sql/SQLAuthorizer.h: Added.
              (WebCore::SQLAuthorizer::~SQLAuthorizer):
              (WebCore::SQLAuthorizer::createTable):
              (WebCore::SQLAuthorizer::createTempTable):
              (WebCore::SQLAuthorizer::dropTable):
              (WebCore::SQLAuthorizer::dropTempTable):
              (WebCore::SQLAuthorizer::allowAlterTable):
              (WebCore::SQLAuthorizer::createIndex):
              (WebCore::SQLAuthorizer::createTempIndex):
              (WebCore::SQLAuthorizer::dropIndex):
              (WebCore::SQLAuthorizer::dropTempIndex):
              (WebCore::SQLAuthorizer::createTrigger):
              (WebCore::SQLAuthorizer::createTempTrigger):
              (WebCore::SQLAuthorizer::dropTrigger):
              (WebCore::SQLAuthorizer::dropTempTrigger):
              (WebCore::SQLAuthorizer::createView):
              (WebCore::SQLAuthorizer::createTempView):
              (WebCore::SQLAuthorizer::dropView):
              (WebCore::SQLAuthorizer::dropTempView):
              (WebCore::SQLAuthorizer::createVTable):
              (WebCore::SQLAuthorizer::dropVTable):
              (WebCore::SQLAuthorizer::allowDelete):
              (WebCore::SQLAuthorizer::allowInsert):
              (WebCore::SQLAuthorizer::allowUpdate):
              (WebCore::SQLAuthorizer::allowTransaction):
              (WebCore::SQLAuthorizer::allowSelect):
              (WebCore::SQLAuthorizer::allowRead):
              (WebCore::SQLAuthorizer::allowAttach):
              (WebCore::SQLAuthorizer::allowDetach):
              (WebCore::SQLAuthorizer::allowReindex):
              (WebCore::SQLAuthorizer::allowAnalyze):
              (WebCore::SQLAuthorizer::allowFunction):
      
              * platform/sql/SQLValue.cpp: Added.  Contains a value for a SQLite database that can be one of a few types.
                For now, just a String or a double
              (WebCore::SQLValue::SQLValue):
              (WebCore::SQLValue::string):
              (WebCore::SQLValue::number):
              * platform/sql/SQLValue.h: Added.
              (WebCore::SQLValue::):
              (WebCore::SQLValue::SQLValue):
              (WebCore::SQLValue::type):
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Maciej
      
              Changed IconDatabase over to use new FileSystem apis
      
              * loader/icon/IconDatabase.cpp:
              (WebCore::IconDatabase::open):
      
      WebKit:
      
              Reviewed by Tim Hatcher
      
              Added support for Chrome prompts required by the Storage API
              Added support API for future managing of databases from the WebKit client
              Added preference and initialization for the databases path
      
              * Misc/WebDatabaseManager.h: Added.  WebDatabaseManager is how a WebKit application can list and
                remove the current available databases
              * Misc/WebDatabaseManager.mm: Added.
              (+[WebDatabaseManager origins]):
              (+[WebDatabaseManager databasesWithOrigin:]):
              (+[WebDatabaseManager deleteAllDatabases]):
              (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
              (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]):
              (WebKitSetWebDatabasesPathIfNecessary): Setup the database path
              * Misc/WebDatabaseManagerPrivate.h: Added.
      
              * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for
                an origin exceeding its size limit
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::runDatabaseSizeLimitPrompt):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebUIDelegate.h:
      
              * WebView/WebView.mm:
              (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path
              * WebView/WebViewInternal.h:
      
      WebKitSite:
      
              Reviewed by Tim Hatcher
      
              Sample database API usage
      
              * misc/DatabaseExample.html: Added.
      
      WebKit/win:
      
              Reviewed by Anders
      
              Keep windows building with new Chrome additions
      
              * WebChromeClient.cpp:
              * WebChromeClient.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5def340
  18. 16 Jul, 2007 1 commit
    • kmccullo's avatar
      Reviewed by Sam. · c8d72539
      kmccullo authored
              - Modified files to use cross-platform code.
      
              * Drosera/DebuggerDocument.cpp: Added.
              (DebuggerDocument::breakpointEditorHTML):
              (DebuggerDocument::isPaused):
              (DebuggerDocument::pause):
              (DebuggerDocument::resume):
              (DebuggerDocument::stepInto):
              (DebuggerDocument::evaluateScript):
              (DebuggerDocument::currentFunctionStack):
              (DebuggerDocument::localScopeVariableNamesForCallFrame):
              (DebuggerDocument::valueForScopeVariableNamed):
              * Drosera/DebuggerDocument.h: Added.
              (DebuggerDocument::DebuggerDocument):
              * Drosera/config.h: Added.
              * Drosera/mac/DebuggerApplication.mm:
              (-[DebuggerApplication attach:]):
              * Drosera/mac/DebuggerDocument.h: Removed.
              * Drosera/mac/DebuggerDocument.mm: Removed.
              * Drosera/mac/DebuggerDocumentMac.h: Copied from Drosera/mac/DebuggerDocument.h.
              * Drosera/mac/DebuggerDocumentMac.mm: Copied from Drosera/mac/DebuggerDocument.mm.
              (-[DebuggerDocumentMac initWithServerName:]):
              (-[DebuggerDocumentMac dealloc]):
              (-[DebuggerDocumentMac breakpointEditorHTML]):
              (-[DebuggerDocumentMac isPaused]):
              (-[DebuggerDocumentMac pause]):
              (-[DebuggerDocumentMac resume]):
              * Drosera/mac/Drosera.xcodeproj/project.pbxproj:
              * Drosera/win/DebuggerApplication.cpp:
              * Drosera/win/DebuggerObjectCallbacks.cpp:
              (breakpointEditorHTMLCallback):
              (currentFunctionStackCallback):
              (evaluateScript_inCallFrame_Callback):
              (isPausedCallback):
              (localScopeVariableNamesForCallFrame_Callback):
              (pauseCallback):
              (resumeCallback):
              (stepIntoCallback):
              (valueForScopeVariableNamed_inCallFrame_Callback):
              (staticFunctions):
              * Drosera/win/Drosera.cpp:
              * Drosera/win/DroseraPrefix.cpp: Added.
              * Drosera/win/DroseraPrefix.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8d72539
  19. 19 Jun, 2007 1 commit
    • weinig's avatar
      WebCore: · 8b5bc0db
      weinig authored
              Reviewed by Beth.
      
              Fix build and update licenses. 
      
              * WebCore.xcodeproj/project.pbxproj:
              * page/BarInfo.cpp:
              * page/BarInfo.h:
              * page/BarInfo.idl:
              * page/Screen.cpp:
              (WebCore::Screen::height):
              (WebCore::Screen::width):
              (WebCore::Screen::colorDepth):
              (WebCore::Screen::pixelDepth):
              (WebCore::Screen::availLeft):
              (WebCore::Screen::availTop):
              (WebCore::Screen::availHeight):
              (WebCore::Screen::availWidth):
              * page/Screen.h:
              * page/Screen.idl:
      
      WebKit:
      
              Reviewed by Beth.
      
              Build fix.
      
              * WebCoreSupport/WebChromeClient.mm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b5bc0db
  20. 18 Jun, 2007 1 commit
    • weinig's avatar
      Reviewed by Geoff. · 6f399844
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14211
              Move the BarInfo object out of the JS bindings
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_window.cpp:
              (KJS::WindowPrivate::WindowPrivate):
              (KJS::Window::mark):
              (KJS::Window::getValueProperty):
              (KJS::Window::clearHelperObjectProperties):
              (KJS::Window::disconnectFrame):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * page/BarInfo.cpp: Added.
              (WebCore::BarInfo::BarInfo):
              (WebCore::BarInfo::disconnectFrame):
              (WebCore::BarInfo::visible):
              * page/BarInfo.h: Added.
              (WebCore::BarInfo::):
              * page/BarInfo.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::~DOMWindow):
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::locationbar):
              (WebCore::DOMWindow::menubar):
              (WebCore::DOMWindow::personalbar):
              (WebCore::DOMWindow::scrollbars):
              (WebCore::DOMWindow::statusbar):
              (WebCore::DOMWindow::toolbar):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f399844
  21. 12 Jun, 2007 1 commit
  22. 07 Jul, 2006 1 commit
    • darin's avatar
      Reviewed by Adele. · 22a690e4
      darin authored
              - fix some license mistakes
      
              * LICENSE-APPLE: Added more years of publication to the copyright here.
      
              * html/CanvasGradient.idl: Corrected license on this file. It had the wrong one.
              * html/CanvasPattern.idl: Ditto.
              * html/CanvasRenderingContext2D.idl: Ditto.
              * html/HTMLCanvasElement.idl: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22a690e4
  23. 21 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Geoff. · d18e72a9
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7867
                get rid of macro hacks for DOM, KDOM, KSVG, khtml, DOMString, QString
      
              * config.h: Remove the defines for DOM, KDOM, KSVG, khtml, DOMString, QString,
              and qstring().
      
              * WebCore.xcodeproj/project.pbxproj: Pass in WebCore instead of KSVG as the
              namespace for SVG names.
              * ksvg2/scripts/make_names.pl: Made a couple changes to trick the SVG names into
              recompiling, since they are in a different namespace now.
      
              * ForwardingHeaders/kjs/identifier.h: Added.
      
              * dom/PlatformWheelEvent.idl: Removed.
              * dom/WheelEvent.idl: Added. This file was renamed by accident.
      
              * bindings/js/JSDOMCore.cpp:
              * bindings/js/JSDOMEvents.cpp:
              * bindings/js/JSDOMHTML.cpp:
              * dom/Attr.idl:
              * dom/CharacterData.idl:
              * dom/DOMImplementation.idl:
              * dom/DocumentType.idl:
              * dom/Element.idl:
              * dom/Entity.idl:
              * dom/MutationEvent.idl:
              * dom/Notation.idl:
              * dom/ProcessingInstruction.idl:
              * dom/Text.idl:
              * html/CanvasGradient.idl:
              * html/CanvasPattern.idl:
              * html/CanvasRenderingContext2D.idl:
              Touched, to get CodeGeneratorJS.pm changes to take effect.
       
              * css/CSSGrammar.y:
              * css/css_valueimpl.cpp: (WebCore::propertyID):
              Changed calls to get CSS property values to use an explicit SVG:: namespace,
              to match what the script writes out.
      
              * khtml/ecma/kjs_binding.h: Added forward declaration of WebCore::String.
      
              * ksvg2/scripts/cssmakeget rid of macro hacks for DOM, KDOM, KSVG, khtml, DOMString, QString
                props: Made this compile with warnings and strict turned on.
              Really just a trick to get properties to recompile, which turned out to be unneeded.
              * ksvg2/scripts/cssmakevalues: Ditto.
      
              * ksvg2/svg/SVGAElement.cpp:
              (SVGAElement::parseMappedAttribute):
              (SVGAElement::defaultEventHandler):
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              (SVGAnimateTransformElement::parseMappedAttribute):
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::parseMappedAttribute):
              * ksvg2/svg/SVGClipPathElement.cpp:
              (SVGClipPathElement::parseMappedAttribute):
              * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
              (SVGComponentTransferFunctionElement::parseMappedAttribute):
              * ksvg2/svg/SVGExternalResourcesRequired.cpp:
              (SVGExternalResourcesRequired::parseMappedAttribute):
              * ksvg2/svg/SVGFEBlendElement.cpp:
              (SVGFEBlendElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              (SVGFEColorMatrixElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEComponentTransferElement.cpp:
              (SVGFEComponentTransferElement::parseMappedAttribute):
              * ksvg2/svg/SVGFECompositeElement.cpp:
              (SVGFECompositeElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              (SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
              (SVGFEDisplacementMapElement::stringToChannel):
              (SVGFEDisplacementMapElement::parseMappedAttribute):
              (SVGFEDisplacementMapElement::filterEffect):
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEFloodElement.cpp:
              (SVGFEFloodElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
              (SVGFEGaussianBlurElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEImageElement.cpp:
              (SVGFEImageElement::parseMappedAttribute):
              * ksvg2/svg/SVGFELightElement.cpp:
              (SVGFELightElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEMergeNodeElement.cpp:
              (SVGFEMergeNodeElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              (SVGFEOffsetElement::parseMappedAttribute):
              * ksvg2/svg/SVGFESpecularLightingElement.cpp:
              (SVGFESpecularLightingElement::parseMappedAttribute):
              * ksvg2/svg/SVGFETileElement.cpp:
              (SVGFETileElement::parseMappedAttribute):
              * ksvg2/svg/SVGFETurbulenceElement.cpp:
              (SVGFETurbulenceElement::parseMappedAttribute):
              * ksvg2/svg/SVGFilterElement.cpp:
              (SVGFilterElement::parseMappedAttribute):
              * ksvg2/svg/SVGGradientElement.cpp:
              (SVGGradientElement::parseMappedAttribute):
              * ksvg2/svg/SVGMaskElement.cpp:
              (WebCore::SVGMaskElement::parseMappedAttribute):
              * ksvg2/svg/SVGPolyElement.cpp:
              (SVGPolyElement::parseMappedAttribute):
              * ksvg2/svg/SVGStopElement.cpp:
              (SVGStopElement::parseMappedAttribute):
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::parseMappedAttribute):
              * ksvg2/svg/SVGTests.cpp:
              (WebCore::SVGTests::parseMappedAttribute):
              * ksvg2/svg/SVGTextContentElement.cpp:
              (SVGTextContentElement::parseMappedAttribute):
              * ksvg2/svg/SVGTextPositioningElement.cpp:
              (SVGTextPositioningElement::parseMappedAttribute):
              * ksvg2/svg/SVGViewElement.cpp:
              (SVGViewElement::parseMappedAttribute):
              * ksvg2/svg/SVGZoomAndPan.cpp:
              (SVGZoomAndPan::parseMappedAttribute):
              Changed code that converts an AtomicString to a String to do it in a
              more-efficient fashion that works even with all the new conversions.
      
              * page/Frame.cpp:
              (WebCore::getString): Removed unneeded .deprecatedString().
              (WebCore::Frame::begin): Removed the only use of QSTRING_NULL.
      
              * platform/AtomicString.h: Added conversion to and from KJS::Identifier
              and KJS::UString.
              * platform/AtomicString.cpp:
              (WebCore::AtomicString::add): Added overloads for Identifier and UString.
              (WebCore::AtomicString::operator Identifier): Added.
              (WebCore::AtomicString::operator UString): Added.
      
              * platform/DeprecatedString.h: Added conversion to and from KJS::Identifier
              and KJS::UString.
              * platform/DeprecatedString.cpp:
              (DeprecatedString::DeprecatedString): Added overloads for Identifier and UString.
              (DeprecatedString::operator Identifier): Added.
              (DeprecatedString::operator UString): Added.
      
              * platform/PlatformString.h: Added conversion to and from KJS::Identifier
              and KJS::UString.
              * platform/String.cpp:
              (WebCore::String::String): Added overloads for Identifier and UString.
              (WebCore::String::operator Identifier): Added.
              (WebCore::String::operator UString): Added.
      
              * platform/StringImpl.h: Added constructors that take KJS::Identifier
              and KJS::UString
              * platform/StringImpl.cpp:
              (WebCore::getWordBreakIterator): Changed a use of UChar to say ::UChar
              instead because of ambiguity with KJS::UChar.
              (WebCore::StringImpl::StringImpl): Added overloads for Identifier and String.
      
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
              (WebCore::toHTMLCanvasStyle):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (aeDescFromJSValue):
              (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              * dom/QualifiedName.cpp:
              (WebCore::QualifiedName::toString):
              * khtml/ecma/JSDOMParser.cpp:
              (KJS::DOMParserProtoFunc::callAsFunction):
              * khtml/ecma/JSXMLHttpRequest.cpp:
              (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
              * khtml/ecma/JSXSLTProcessor.cpp:
              (KJS::XSLTProcessorProtoFunc::callAsFunction):
              * khtml/ecma/kjs_binding.cpp:
              (KJS::valueToStringWithNullCheck):
              * khtml/ecma/kjs_css.cpp:
              (KJS::cssPropertyName):
              (KJS::DOMCSSStyleDeclaration::put):
              (KJS::DOMCSSStyleDeclarationProtoFunc::callAsFunction):
              (KJS::DOMStyleSheetList::nameGetter):
              (KJS::DOMStyleSheetList::getOwnPropertySlot):
              (KJS::DOMMediaList::put):
              (KJS::KJS::DOMMediaListProtoFunc::callAsFunction):
              (KJS::DOMCSSStyleSheetProtoFunc::callAsFunction):
              (KJS::DOMCSSRule::putValueProperty):
              (KJS::DOMCSSRuleFunc::callAsFunction):
              (KJS::DOMCSSValue::put):
              (KJS::DOMCSSPrimitiveValueProtoFunc::callAsFunction):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMNode::toString):
              (KJS::DOMNodeProtoFunc::callAsFunction):
              (KJS::DOMEventTargetNodeProtoFunc::callAsFunction):
              (KJS::DOMNodeList::nameGetter):
              (KJS::DOMNodeList::getOwnPropertySlot):
              (KJS::DOMDocument::putValueProperty):
              (KJS::DOMDocumentProtoFunc::callAsFunction):
              (KJS::DOMElement::attributeGetter):
              (KJS::DOMElement::getOwnPropertySlot):
              (KJS::DOMNamedNodeMap::nameGetter):
              (KJS::DOMNamedNodeMap::getOwnPropertySlot):
              (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
              (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              (KJS::DOMEvent::getValueProperty):
              (KJS::DOMEventProtoFunc::callAsFunction):
              (KJS::DOMUIEventProtoFunc::callAsFunction):
              (KJS::DOMMouseEventProtoFunc::callAsFunction):
              (KJS::DOMKeyboardEventProtoFunc::callAsFunction):
              (KJS::Clipboard::putValueProperty):
              (KJS::ClipboardProtoFunc::callAsFunction):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocFunction::callAsFunction):
              (KJS::JSHTMLDocument::namedItemGetter):
              (KJS::JSHTMLDocument::getOwnPropertySlot):
              (KJS::JSHTMLDocument::putValueProperty):
              (KJS::JSHTMLElement::framesetNameGetter):
              (KJS::JSHTMLElement::getOwnPropertySlot):
              (KJS::HTMLElementFunction::callAsFunction):
              (KJS::JSHTMLElement::putValueProperty):
              (KJS::JSHTMLCollection::callAsFunction):
              (KJS::JSHTMLCollection::getNamedItems):
              (KJS::HTMLCollectionProtoFunc::callAsFunction):
              (KJS::OptionConstructorImp::construct):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Plugins::nameGetter):
              (KJS::Plugins::getOwnPropertySlot):
              (KJS::MimeTypes::nameGetter):
              (KJS::MimeTypes::getOwnPropertySlot):
              (KJS::Plugin::nameGetter):
              (KJS::Plugin::getOwnPropertySlot):
              * khtml/ecma/kjs_proxy.cpp:
              (WebCore::KJSProxy::evaluate):
              * khtml/ecma/kjs_range.cpp:
              (KJS::DOMRangeProtoFunc::callAsFunction):
              * khtml/ecma/kjs_views.cpp:
              (KJS::DOMAbstractViewProtoFunc::callAsFunction):
              * khtml/ecma/kjs_window.cpp:
              (KJS::parseModalDialogFeatures):
              (KJS::showModalDialog):
              (KJS::Window::childFrameGetter):
              (KJS::Window::namedFrameGetter):
              (KJS::Window::namedItemGetter):
              (KJS::Window::getOwnPropertySlot):
              (KJS::Window::put):
              (KJS::WindowFunc::callAsFunction):
              (KJS::ScheduledAction::execute):
              (KJS::Window::installTimeout):
              (KJS::FrameArray::nameGetter):
              (KJS::FrameArray::getOwnPropertySlot):
              (KJS::Location::put):
              (KJS::LocationFunc::callAsFunction):
              (KJS::SelectionFunc::callAsFunction):
              Removed explicit calls to domString(), sometimes replacing with explicit calls to the
              String() constructor. Other similar changes for AtomicString and DeprecatedString use.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d18e72a9
  24. 20 Mar, 2006 2 commits
    • darin's avatar
      Reviewed by Anders. · bd62eba1
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7875
                autogenerate bindings for Range
      
              * dom/Range.idl: Added.
              * khtml/ecma/kjs_range.cpp: Removed.
              * khtml/ecma/kjs_range.h: Removed.
      
              * WebCore.vcproj/WebCore/build-generated-files.sh: Removed code to generate
              kjs_range.lut.h.
      
              * WebCore.xcodeproj/project.pbxproj: Added Range.idl source file.
              Removed kjs_range.h and kjs_range.cpp source files. Sorted the "dom" group.
              Removed rule to generate kjs_range.lut.h.
      
              * bindings/js/JSDOMCore.cpp: Added include of JSRange.cpp.
      
              * bindings/scripts/CodeGeneratorJS.pm: Added DocumentFragment, Range, CompareHow,
              and short to the types this script can handle. Added code to generate toRange
              functions and the like. Added separate code to handle exceptions for getters
              vs. setters for attributes. Changed return values for the "bad ID" case to 0
              -- there's no need to generate the extra code to return jsUndefined() in such
              cases, which should be unreachable. Changed exception handling to use setDOMException
              directly instead of DOMExceptionTranslator; DOMExceptionTranslator was a trick
              to make it easier to convert existing bindings and shouldn't be used going
              forward. Fixed names of constructors to use the JavaScript class name (the
              interface name), not the name of the C++ implementation class. Fixed generation
              of code for functions that have no parameters but do raise exceptions.
      
              * bindings/scripts/IDLParser.pm: Added parsing for separate getter and setter
              exceptions in attributes. The syntax is not real IDL, but real IDL doesn't support
              declaring exceptions on attributes at all. We'll probably want to revisit our
              syntax for this some day.
      
              * bindings/scripts/IDLStructure.pm: Removed unused exceptionName field from
              domAttribute, and replaced raisesExceptions field with getterExceptions and
              setterExceptions. Added regular expressions for parsing getter/setter syntax.
              We'll probably have to redo this whole thing parse in a better way at some
              point -- the regular expressions allow any invalid syntax in between them.
      
              * dom/Attr.idl: Change exception declaration for setting the value attribute
              to use setter-specific exception syntax.
              * dom/CharacterData.idl: Change exception declaration for setting the data
              attribute to use setter-specific exception syntax.
              * dom/ProcessingInstruction.idl: Change exception declaration for setting the
              data attribute to use setter-specific exception syntax.
      
              * khtml/ecma/kjs_dom.cpp: Include JSRange.h instead of kjs_range.h.
              * khtml/ecma/kjs_window.cpp: Include JSRange.h instead of kjs_range.h.
              (KJS::Window::getValueProperty): Use JSRange::getConstructor instead of
              getRangeConstructor.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13400 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd62eba1
    • darin's avatar
      - global rename, done by script · b9481ed5
      darin authored
              * <lots of files>: Renamed XXXImpl to XXX, and a number of other renames.
              See WebKitTools/Scripts/do-webcore-rename version 13392 for details.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9481ed5
  25. 16 Mar, 2006 2 commits
    • darin's avatar
      Oops, these files were supposed to go in. · ecc95eb8
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ecc95eb8
    • darin's avatar
      Reviewed by Hyatt. · 991c938e
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7749
                canvas should be in DOM, not implemented in the JS bindings
      
              * WebCore.xcodeproj/project.pbxproj: Added new files.
              Changed bindings-generation code to work on the new html directory
              as well as the dom one.
      
              * bindings/js/JSCanvasRenderingContext2DBase.cpp: Added.
              * bindings/js/JSCanvasRenderingContext2DBase.h: Added.
              * bindings/js/JSDOMHTML.cpp: Added.
              * html: Added.
              * html/CanvasGradient.cpp: Added.
              * html/CanvasGradient.h: Added.
              * html/CanvasGradient.idl: Added.
              * html/CanvasPattern.cpp: Added.
              * html/CanvasPattern.h: Added.
              * html/CanvasPattern.idl: Added.
              * html/CanvasRenderingContext2D.cpp: Added.
              * html/CanvasRenderingContext2D.h: Added.
              * html/CanvasRenderingContext2D.idl: Added.
              * html/CanvasStyle.cpp: Added.
              * html/CanvasStyle.h: Added.
      
              * bindings/js/JSDOMCore.cpp: Touched so that it will recompile.
              * bindings/js/JSDOMEvents.cpp: Ditto.
              * dom/Attr.idl: Ditto.
              * dom/DOMImplementation.idl: Ditto.
              * dom/DocumentType.idl: Ditto.
              * dom/MutationEvent.idl: Ditto.
              * dom/ProcessingInstruction.idl: Ditto.
              * dom/Text.idl: Ditto.
      
              * khtml/ecma/kjs_binding.h: (KJS::toJS): Added. Template so that you can call
              toJS on a PassRefPtr as well as on a raw pointer.
      
              * bindings/scripts/CodeGeneratorJS.pm: Fixed handling of a class that has only
              a legacy parent, no conventional parents. Added JSCanvasRenderingContext2DBase
              as a legacy parent, and html as a legacy module. Added CanvasRenderingContext2D,
              CanvasGradient, and CanvasPattern to the "waht to include". Added a special
              case for strings beginning with Canvas to not add an "Impl" suffix. Made the
              generated impl() function be a const member function. Made m_mimpl be private
              instead of protected. Generate a toJS function for each class. Added flaot as
              a type. Generate String, not DOMString. Made the HashTable const.
      
              * bindings/scripts/IDLParser.pm: Fix a couple small things. I had started to
              try to make a missing semicolon trigger an error, but ended up giving up on
              that for now.
      
              * khtml/html/html_canvasimpl.h:
              * khtml/html/html_canvasimpl.cpp:
              (WebCore::HTMLCanvasElementImpl::HTMLCanvasElementImpl): Set m_2DContext to 0.
              (WebCore::HTMLCanvasElementImpl::~HTMLCanvasElementImpl): Call detachCanvas
              on m_2DContext, if any.
              (WebCore::HTMLCanvasElementImpl::detach): Call reset on m_2DContext, if any.
              (WebCore::HTMLCanvasElementImpl::getContext): Added.
              (WebCore::HTMLCanvasElementImpl::size): Added.
              (WebCore::HTMLCanvasElementImpl::createPlatformImage): Added.
      
              * platform/Image.h:
              * platform/Image.cpp: (WebCore::Image::compositeOperatorFromString):
              Changed to take a String instead of a const char*.
      
              * khtml/html/html_imageimpl.h:
              * khtml/html/html_imageimpl.cpp: (WebCore::HTMLMapElementImpl::areas):
              Tweaked formatting. Changed to use PassRefPtr.
      
              * bindings/objc/DOMInternal.mm: (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * khtml/ecma/JSXMLHttpRequest.cpp: (KJS::JSXMLHttpRequest::getValueProperty):
              * khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
              * khtml/ecma/domparser.cpp: (KJS::DOMParserProtoFunc::callAsFunction):
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSStyleDeclaration::getValueProperty):
              (KJS::DOMCSSStyleDeclarationProtoFunc::callAsFunction):
              (KJS::toJS):
              (KJS::DOMStyleSheet::getValueProperty):
              (KJS::DOMStyleSheetList::indexGetter):
              (KJS::DOMStyleSheetList::nameGetter):
              (KJS::DOMStyleSheetListFunc::callAsFunction):
              (KJS::DOMCSSStyleSheet::getValueProperty):
              (KJS::DOMCSSRuleList::indexGetter):
              (KJS::DOMCSSRuleListFunc::callAsFunction):
              (KJS::DOMCSSRule::getValueProperty):
              (KJS::DOMCSSPrimitiveValueProtoFunc::callAsFunction):
              (KJS::DOMCSSValueList::indexGetter):
              (KJS::DOMCSSValueListFunc::callAsFunction):
              (KJS::DOMRect::getValueProperty):
              * khtml/ecma/kjs_css.h:
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNodeProtoFunc::callAsFunction):
              (KJS::DOMNodeList::indexGetter):
              (KJS::DOMNodeList::nameGetter):
              (KJS::DOMNodeList::callAsFunction):
              (KJS::DOMNodeListFunc::callAsFunction):
              (KJS::DOMDocument::getValueProperty):
              (KJS::DOMDocumentProtoFunc::callAsFunction):
              (KJS::DOMNamedNodeMap::indexGetter):
              (KJS::DOMNamedNodeMap::nameGetter):
              (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
              (KJS::toJS):
              (KJS::DOMNamedNodesCollection::indexGetter):
              * khtml/ecma/kjs_dom.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              (KJS::JSLazyEventListener::parseCode):
              (KJS::DOMEvent::getValueProperty):
              (KJS::toJS):
              (KJS::DOMUIEvent::getValueProperty):
              (KJS::DOMMouseEvent::getValueProperty):
              * khtml/ecma/kjs_events.h:
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocFunction::callAsFunction):
              (KJS::HTMLDocument::namedItemGetter):
              (KJS::HTMLDocument::getValueProperty):
              (KJS::HTMLDocument::put):
              (KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::classInfo):
              (KJS::HTMLElement::formIndexGetter):
              (KJS::HTMLElement::selectIndexGetter):
              (KJS::HTMLElement::implementsCall):
              (KJS::HTMLElement::callAsFunction):
              (KJS::HTMLElement::linkGetter):
              (KJS::HTMLElement::isIndexGetter):
              (KJS::HTMLElement::styleGetter):
              (KJS::HTMLElement::selectGetter):
              (KJS::HTMLElement::optionGetter):
              (KJS::HTMLElement::inputGetter):
              (KJS::HTMLElement::textAreaGetter):
              (KJS::HTMLElement::buttonGetter):
              (KJS::HTMLElement::labelGetter):
              (KJS::HTMLElement::fieldSetGetter):
              (KJS::HTMLElement::legendGetter):
              (KJS::HTMLElement::objectGetter):
              (KJS::HTMLElement::tableGetter):
              (KJS::HTMLElement::frameGetter):
              (KJS::HTMLElement::iFrameGetter):
              (KJS::HTMLElement::getValueProperty):
              (KJS::HTMLElement::toString):
              (KJS::HTMLElement::pushEventHandlerScope):
              (KJS::toJS):
              (KJS::HTMLElementFunction::callAsFunction):
              (KJS::HTMLElement::put):
              (KJS::HTMLCollection::indexGetter):
              (KJS::HTMLCollection::callAsFunction):
              (KJS::HTMLCollection::getNamedItems):
              (KJS::HTMLCollectionProtoFunc::callAsFunction):
              (KJS::HTMLSelectCollection::put):
              (KJS::OptionConstructorImp::construct):
              (KJS::ImageConstructorImp::construct):
              * khtml/ecma/kjs_html.h:
              * khtml/ecma/kjs_proxy.cpp: (WebCore::KJSProxyImpl::evaluate):
              * khtml/ecma/kjs_range.cpp:
              (KJS::DOMRange::getValueProperty):
              (KJS::DOMRangeProtoFunc::callAsFunction):
              (KJS::toJS):
              * khtml/ecma/kjs_range.h:
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::DOMNodeIterator::getValueProperty):
              (KJS::DOMNodeIteratorProtoFunc::callAsFunction):
              (KJS::toJS):
              (KJS::DOMTreeWalker::getValueProperty):
              (KJS::DOMTreeWalkerProtoFunc::callAsFunction):
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_traversal.h:
              * khtml/ecma/kjs_views.cpp:
              (KJS::DOMAbstractView::getValueProperty):
              (KJS::DOMAbstractViewProtoFunc::callAsFunction):
              (KJS::toJS):
              * khtml/ecma/kjs_views.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::Window::namedItemGetter):
              (KJS::Selection::getValueProperty):
              (KJS::SelectionFunc::callAsFunction):
              Rename uses and definitions of all the various converstions to JavaScript
              wrappers to the new common overloaded name: "toJS".
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      991c938e
  26. 06 Mar, 2006 2 commits
    • darin's avatar
      Reviewed by Maciej. · 8d1badc7
      darin authored
              - moved all the remnants of the public C++ DOM API out of khtml/dom
              - changed from "int" to "ExceptionCode" for DOM exceptions
              - removed unused CSS_HTML_RELATIVE
              - changed offsetInCharacters to be a member function of NodeImpl
              - changed DOM functions that take a NodeType to use NodeType instead of
                unsigned short for clarity (will still be unsigned short in bindings)
              - changed exception constants so they can be used directly in the
                implementation code (added in the offsets for different types of exceptions)
              - replaced the eventListenerType function with an isHTMLEventListener function
              - got rid of EventListenerEvent, which is a synonym for EventImpl*
              - eliminated handleEventImpl, whish is now the same as handleEvent
      
              - did other preparation for the "remove Impl suffix" renaming
                (tested by using a script that does the renaming)
      
              * khtml/dom/css_rule.h: Removed.
              * khtml/dom/css_stylesheet.h: Removed.
              * khtml/dom/css_value.h: Removed.
              * khtml/dom/dom2_events.cpp: Removed.
              * khtml/dom/dom2_events.h: Removed.
              * khtml/dom/dom2_range.h: Removed.
              * khtml/dom/dom2_traversal.cpp: Removed.
              * khtml/dom/dom2_traversal.h: Removed.
              * khtml/dom/dom_exception.h: Removed.
              * khtml/dom/dom_node.h: Removed.
      
              * dom/EventListener.h: Added.
              * dom/ExceptionCode.h: Added.
      
              * WebCore+SVG/kdom.h: Removed NodeType and ExceptionCodes
              * WebCore+SVG/kdomevents.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
              * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
      
              * bindings/scripts/CodeGeneratorJS.pm: Removed unneeded DOM:: prefix. Updated file
              names and exception prefix for changes in DOM exceptions.
      
              * bindings/js/JSDOMCore.cpp: Touched to cause auto-generated code to be
              recompiled. We need to get this fixed!
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
              * dom/Attr.idl:
              * dom/CharacterData.idl:
              * dom/DOMImplementation.idl:
              * dom/DocumentType.idl:
              * dom/Element.idl:
              * dom/Entity.idl:
              * dom/MutationEvent.idl:
              * dom/Notation.idl:
              * dom/ProcessingInstruction.idl:
              * dom/Text.idl:
              * dom/WheelEvent.idl:
              Touched all IDL files so that changes in CodeGeneratorJS.pm would take effect.
              Added license headers.
      
              * bindings/objc/DOM.mm: Fixed garbled license agreement. Updated includes.
              Changed from a single "using namespace WebCore" to individual using statements
              because of the imminent conflict between DOMImplementation in Objective C
              and WebCore::DOMImplementation (currently has an Impl suffix). Added a typedef
              for WebCore::DOMImplementationImpl. Changed to use ExceptionCode instead of int.
      
              * bindings/objc/DOMCSS.h: Removed DOMCSSException and the special CSS exception
              codes. This is a feature of DOM Level 1 only. In DOM Level 2 these were eliminated
              and use basic DOM exception codes instead. We might have to do something for binary
              compatibility eventually, but perhaps not.
      
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMEventsInternal.h:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMHTMLInternal.h:
              * bindings/objc/DOMViews.mm:
              * bindings/objc/DOMViewsInternal.h:
              Fixed garbled license agreements.
              Changed to use ExceptionCode instead of int and name the variable "ec".
      
              * bindings/objc/DOMInternal.h: Changed addDOMWrapperImpl to take NSObject* instead
              of id. This helps with overload resolution when addDOMWrapperImpl is renamed to be
              addDOMWrapper. Changed ALLOW_DOM_CAST to always use "class" in from of the type name
              of the WebCore class. This helps work around what seems like a bug in namespace support
              in Objective-C mode, although the bug only happens after the "remove Impl" renaming.
              * bindings/objc/DOMInternal.mm:
              (getDOMWrapperImpl): Changed to use HashMap.
              (addDOMWrapperImpl): Ditto.
              (removeDOMWrapper): Ditto.
              (raiseDOMException): Update to use new names for exception number ranges.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              * khtml/ecma/xmlserializer.cpp:
              * kwq/KWQAccObject.mm:
              Removed unneeded includes.
      
              * css/css_ruleimpl.h: Moved "rule type" into this header.
      
              * dom/CommentImpl.h:
              * dom/CommentImpl.cpp: (WebCore::CommentImpl::offsetInCharacters): Added. Returns true.
      
              * khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
              Changed this around so we don't have a local variable named docImpl.
      
              * khtml/ecma/kjs_binding.cpp: (KJS::setDOMException): Updated for new form of exception
              constants.
      
              * khtml/ecma/kjs_events.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent): Changed to no longer use EventListenerEvent.
              (KJS::JSAbstractEventListener::isHTMLEventListener): Added.
      
              * rendering/RenderTextField.h: Updated includes. Tweaked the code formatting of
              InputMutationListener. (Might be unnecessary since this class might be deleted soon.)
      
              * bridge/mac/MacFrame.mm:
              * css/css_computedstyle.cpp:
              * css/css_computedstyle.h:
              * css/css_ruleimpl.cpp:
              * css/css_stylesheetimpl.cpp:
              * css/css_stylesheetimpl.h:
              * css/css_valueimpl.cpp:
              * css/css_valueimpl.cpp:
              * css/css_valueimpl.h:
              * css/css_valueimpl.h:
              * css/cssparser.cpp:
              * css/cssstyleselector.cpp:
              * dom/CDATASectionImpl.cpp:
              * dom/CDATASectionImpl.h:
              * dom/CharacterDataImpl.cpp:
              * dom/CharacterDataImpl.h:
              * dom/ContainerNodeImpl.cpp:
              * dom/DOMImplementationImpl.cpp:
              * dom/DocumentFragmentImpl.cpp:
              * dom/DocumentFragmentImpl.h:
              * dom/DocumentImpl.cpp:
              * dom/DocumentImpl.h:
              * dom/DocumentTypeImpl.cpp:
              * dom/DocumentTypeImpl.h:
              * dom/NamedNodeMapImpl.h:
              * dom/NodeImpl.cpp:
              * dom/NodeImpl.h:
              * dom/NodeListImpl.cpp:
              * dom/TextImpl.cpp:
              * dom/TextImpl.h:
              * dom/dom2_eventsimpl.cpp:
              * dom/dom2_eventsimpl.h:
              * dom/dom2_rangeimpl.cpp:
              * dom/dom2_rangeimpl.h:
              * dom/dom2_traversalimpl.cpp:
              * dom/dom2_traversalimpl.h:
              * dom/dom_elementimpl.cpp:
              * dom/dom_elementimpl.h:
              * dom/dom_position.cpp:
              * dom/dom_xmlimpl.cpp:
              * dom/dom_xmlimpl.h:
              * dom/xml_tokenizer.cpp:
              * editing/AppendNodeCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/InsertIntoTextNodeCommand.cpp:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertNodeBeforeCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/JoinTextNodesCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/RemoveNodeAttributeCommand.cpp:
              * editing/RemoveNodeCommand.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/Selection.cpp:
              * editing/SelectionController.cpp:
              * editing/SelectionController.h:
              * editing/SetNodeAttributeCommand.cpp:
              * editing/SplitElementCommand.cpp:
              * editing/SplitTextNodeCommand.cpp:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/visible_text.cpp:
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_html.cpp:
              * khtml/ecma/kjs_range.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_traversal.h:
              * khtml/ecma/kjs_window.cpp:
              * khtml/html/HTMLElementImpl.cpp:
              * khtml/html/HTMLOptionElementImpl.cpp:
              * khtml/html/HTMLOptionElementImpl.h:
              * khtml/html/HTMLOptionsCollectionImpl.cpp:
              * khtml/html/HTMLSelectElementImpl.cpp:
              * khtml/html/HTMLTextAreaElementImpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_documentimpl.h:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/html_tableimpl.h:
              * khtml/html/htmlparser.cpp:
              * khtml/xbl/xbl_tokenizer.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              * ksvg2/svg/SVGDOMImplementationImpl.cpp:
              * ksvg2/svg/SVGDOMImplementationImpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGElementImpl.cpp:
              * ksvg2/svg/SVGLengthImpl.cpp:
              * ksvg2/svg/SVGLocatableImpl.cpp:
              * ksvg2/svg/SVGPolyElementImpl.cpp:
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              * ksvg2/svg/SVGStyleElementImpl.cpp:
              * ksvg2/svg/SVGStyleElementImpl.h:
              * ksvg2/svg/SVGUseElementImpl.cpp:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * rendering/render_object.cpp:
              * xml/xmlhttprequest.cpp:
              Changed to use ExceptionCode instead of int and name the variable "ec".
              Also updated use of exception codes and other constants to get them from
              their new locations.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d1badc7
    • ggaren's avatar
      JavaScriptCore: · 77d8fc4c
      ggaren authored
              Reviewed by Maciej.
      
              - JSC support for the fix for <rdar://problem/4467143> JavaScript 
              enumeration of HTML element properties skips DOM node properties
      
              * kjs/lookup.h: 
              (1) Added the KJS_DEFINE_PROTOTYPE_WITH_PROTOTYPE macro. The 
              class definiton macro needs to know about the prototype's prototype so 
              that the class constructor properly sets it. 
              (2) Removed the KJS_IMPLEMENT_PROTOTYPE_WITH_PARENT macro. The class
              implementation macro does not need to know about the prototype's
              prototype, since getOwnPropertySlot should only look in the current 
              object's property map, and not its prototype's.
      
      LayoutTests:
      
              Reviewed by Maciej.
      
              - Layout test for <rdar://problem/4467143> JavaScript enumeration of 
              HTML element properties skips DOM node properties
      
              * fast/dom/prototype-chain-expected.txt: Added.
              * fast/dom/prototype-chain.html: Added.
      
      WebCore:
      
              Reviewed by Maciej.
      
              - Second cut at fixing <rdar://problem/4467143> JavaScript enumeration 
              of HTML element properties skips DOM node properties
       
              The approach here is for prototypes, in their constructor methods, 
              to set their own prototypes, preserving the prototype 
              chain in cases of multiple levels of inheritance. (Previously, our
              code assumed that a prototype never had a prototype of its own,
              and always used an empty object as a prototype's prototype).
      
              * bindings/scripts/CodeGeneratorJS.pm: Use the new
              DEFINE_PROTOTYPE_WITH_PROTOTYPE macro in place of the  
              KJS_IMPLEMENT_PROTOTYPE_WITH_PARENT macro.
              * khtml/ecma/kjs_dom.cpp: Ditto.
              * khtml/ecma/kjs_dom.h: Ditto.
              * khtml/ecma/kjs_events.cpp: Ditto.
      
              Touched these files to force a rebuild:
      
              * bindings/js/JSDOMCore.cpp:
              * bindings/js/JSDOMEvents.cpp:
              * dom/Attr.idl:
              * dom/CharacterData.idl:
              * dom/DOMImplementation.idl:
              * dom/DocumentType.idl:
              * dom/Element.idl:
              * dom/Entity.idl:
              * dom/MutationEvent.idl:
              * dom/Notation.idl:
              * dom/ProcessingInstruction.idl:
              * dom/Text.idl:
              * dom/WheelEvent.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77d8fc4c
  27. 09 Feb, 2006 1 commit
    • mjs's avatar
      Rubber-stamped by Hyatt. · b1742373
      mjs authored
              
              - moved khtml/xml to dom
      
              * dom: moved from khtml/xml
              * WebCore.xcodeproj/project.pbxproj: Updated for new file locations.
              * WebCore+SVG/KDOMHeaders.h: Updated for new header locations.
              * dom/dom2_rangeimpl.cpp: ditto
              * dom/dom2_traversalimpl.cpp: ditto
              * dom/dom_textimpl.cpp: ditto
              * dom/dom_xmlimpl.cpp: ditto
              * khtml/dom/dom2_events.cpp: ditto
              * khtml/ecma/kjs_binding.cpp: ditto
              * khtml/ecma/kjs_dom.cpp: ditto
              * khtml/ecma/kjs_events.cpp: ditto
              * khtml/ecma/kjs_html.cpp: ditto
              * khtml/ecma/kjs_range.cpp: ditto
              * khtml/ecma/kjs_views.cpp: ditto
              * khtml/editing/Selection.cpp: ditto
              * khtml/editing/SelectionController.cpp: ditto
              * khtml/editing/delete_from_text_node_command.cpp: ditto
              * khtml/editing/edit_command.cpp: ditto
              * khtml/editing/insert_into_text_node_command.cpp: ditto
              * khtml/editing/insert_line_break_command.cpp: ditto
              * khtml/editing/insert_paragraph_separator_command.cpp: ditto
              * khtml/editing/insert_text_command.cpp: ditto
              * khtml/editing/join_text_nodes_command.cpp: ditto
              * khtml/editing/markup.cpp: ditto
              * khtml/editing/merge_identical_elements_command.cpp: ditto
              * khtml/editing/rebalance_whitespace_command.cpp: ditto
              * khtml/editing/remove_node_attribute_command.cpp: ditto
              * khtml/editing/set_node_attribute_command.cpp: ditto
              * khtml/editing/split_element_command.cpp: ditto
              * khtml/editing/split_text_node_command.cpp: ditto
              * khtml/editing/split_text_node_containing_element.cpp: ditto
              * khtml/editing/visible_position.cpp: ditto
              * khtml/editing/visible_position.h: ditto
              * khtml/editing/visible_text.cpp: ditto
              * khtml/editing/visible_text.h: ditto
              * khtml/editing/visible_units.cpp: ditto
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp: ditto
              * khtml/html/HTMLElementImpl.h: ditto
              * khtml/html/html_documentimpl.cpp: ditto
              * khtml/html/html_headimpl.cpp: ditto
              * khtml/xbl/xbl_binding_manager.cpp: ditto
              * khtml/xbl/xbl_tokenizer.cpp: ditto
              * khtml/xbl/xbl_tokenizer.h: ditto
              * ksvg2/svg/SVGAElementImpl.cpp: ditto
              * rendering/InlineTextBox.cpp: ditto
              * rendering/RenderContainer.cpp: ditto
              * rendering/RenderText.h: ditto
              * rendering/RenderTextField.cpp: ditto
              * rendering/render_frames.cpp: ditto
              * rendering/render_layer.cpp: ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1742373
  28. 06 Feb, 2006 1 commit
    • andersca's avatar
      2006-02-05 Anders Carlsson <andersca@mac.com> · 555a6d7b
      andersca authored
              Reviewed by Maciej.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7091
              Autogenerate even more.
      
              * JSCore.cpp:
              Add new generated files.
              
              * bindings/scripts/CodeGeneratorJS.pm:
              Add "IsIndex" extended attribute for parameters. Any parameter that is "unsigned long" 
              and has this attribute will be checked to make sure that it's not < 0. If it is, an index size error
              exception will be thrown.
              
              * khtml/ecma/kjs_dom.cpp:
              (KJS::toAttr):
              Use JSAttr::info.
              
              (KJS::getDOMNode):
              Use new constructors.
              
              * khtml/ecma/kjs_dom.h:
              Remove classes that are generated now.
              
              * khtml/xml/Attr.idl: Added.
              * khtml/xml/CharacterData.idl: Added.
              * khtml/xml/Entity.idl: Added.
              * khtml/xml/Notation.idl: Added.
              * khtml/xml/ProcessingInstruction.idl: Added.
              * khtml/xml/Text.idl: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      555a6d7b