1. 15 Aug, 2013 1 commit
    • fpizlo@apple.com's avatar
      Typed arrays should be rewritten · 0e0d9312
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=119064
      
      .: 
      
      Reviewed by Oliver Hunt.
      
      Automake work courtesy of Zan Dobersek <zdobersek@igalia.com>.
      
      * Source/autotools/symbols.filter:
      
      Source/JavaScriptCore: 
      
      Reviewed by Oliver Hunt.
              
      Typed arrays were previously deficient in several major ways:
              
      - They were defined separately in WebCore and in the jsc shell. The two
        implementations were different, and the jsc shell one was basically wrong.
        The WebCore one was quite awful, also.
              
      - Typed arrays were not visible to the JIT except through some weird hooks.
        For example, the JIT could not ask "what is the Structure that this typed
        array would have if I just allocated it from this global object". Also,
        it was difficult to wire any of the typed array intrinsics, because most
        of the functionality wasn't visible anywhere in JSC.
              
      - Typed array allocation was brain-dead. Allocating a typed array involved
        two JS objects, two GC weak handles, and three malloc allocations.
              
      - Neutering. It involved keeping tabs on all native views but not the view
        wrappers, even though the native views can autoneuter just by asking the
        buffer if it was neutered anytime you touch them; while the JS view
        wrappers are the ones that you really want to reach out to.
              
      - Common case-ing. Most typed arrays have one buffer and one view, and
        usually nobody touches the buffer. Yet we created all of that stuff
        anyway, using data structures optimized for the case where you had a lot
        of views.
              
      - Semantic goofs. Typed arrays should, in the future, behave like ES
        features rather than DOM features, for example when it comes to exceptions.
        Firefox already does this and I agree with them.
              
      This patch cleanses our codebase of these sins:
              
      - Typed arrays are almost entirely defined in JSC. Only the lifecycle
        management of native references to buffers is left to WebCore.
              
      - Allocating a typed array requires either two GC allocations (a cell and a
        copied storage vector) or one GC allocation, a malloc allocation, and a
        weak handle (a cell and a malloc'd storage vector, plus a finalizer for the
        latter). The latter is only used for oversize arrays. Remember that before
        it was 7 allocations no matter what.
              
      - Typed arrays require just 4 words of overhead: Structure*, Butterfly*,
        mode/length, void* vector. Before it was a lot more than that - remember,
        there were five additional objects that did absolutely nothing for anybody.
              
      - Native views aren't tracked by the buffer, or by the wrappers. They are
        transient. In the future we'll probably switch to not even having them be
        malloc'd.
              
      - Native array buffers have an efficient way of tracking all of their JS view
        wrappers, both for neutering, and for lifecycle management. The GC
        special-cases native array buffers. This saves a bunch of grief; for example
        it means that a JS view wrapper can refer to its buffer via the butterfly,
        which would be dead by the time we went to finalize.
              
      - Typed array semantics now match Firefox, which also happens to be where the
        standards are going. The discussion on webkit-dev seemed to confirm that
        Chrome is also heading in this direction. This includes making
        Uint8ClampedArray not a subtype of Uint8Array, and getting rid of
        ArrayBufferView as a JS-visible construct.
              
      This is up to a 10x speed-up on programs that allocate a lot of typed arrays.
      It's a 1% speed-up on Octane. It also opens up a bunch of possibilities for
      further typed array optimizations in the JSC JITs, including inlining typed
      array allocation, inlining more of the accessors, reducing the cost of type
      checks, etc.
              
      An additional property of this patch is that typed arrays are mostly
      implemented using templates. This deduplicates a bunch of code, but does mean
      that we need some hacks for exporting s_info's of template classes. See
      JSGenericTypedArrayView.h and JSTypedArrays.cpp. Those hacks are fairly
      low-impact compared to code duplication.
              
      Automake work courtesy of Zan Dobersek <zdobersek@igalia.com>.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * GNUmakefile.list.am:
      * JSCTypedArrayStubs.h: Removed.
      * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * Target.pri:
      * bytecode/ByValInfo.h:
      (JSC::hasOptimizableIndexingForClassInfo):
      (JSC::jitArrayModeForClassInfo):
      (JSC::typedArrayTypeForJITArrayMode):
      * bytecode/SpeculatedType.cpp:
      (JSC::speculationFromClassInfo):
      * dfg/DFGArrayMode.cpp:
      (JSC::DFG::toTypedArrayType):
      * dfg/DFGArrayMode.h:
      (JSC::DFG::ArrayMode::typedArrayType):
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::checkArray):
      (JSC::DFG::SpeculativeJIT::compileGetByValOnIntTypedArray):
      (JSC::DFG::SpeculativeJIT::compilePutByValForIntTypedArray):
      (JSC::DFG::SpeculativeJIT::compileGetByValOnFloatTypedArray):
      (JSC::DFG::SpeculativeJIT::compilePutByValForFloatTypedArray):
      (JSC::DFG::SpeculativeJIT::compileGetIndexedPropertyStorage):
      (JSC::DFG::SpeculativeJIT::compileGetArrayLength):
      * dfg/DFGSpeculativeJIT.h:
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * heap/CopyToken.h:
      * heap/DeferGC.h:
      (JSC::DeferGCForAWhile::DeferGCForAWhile):
      (JSC::DeferGCForAWhile::~DeferGCForAWhile):
      * heap/GCIncomingRefCounted.h: Added.
      (JSC::GCIncomingRefCounted::GCIncomingRefCounted):
      (JSC::GCIncomingRefCounted::~GCIncomingRefCounted):
      (JSC::GCIncomingRefCounted::numberOfIncomingReferences):
      (JSC::GCIncomingRefCounted::incomingReferenceAt):
      (JSC::GCIncomingRefCounted::singletonFlag):
      (JSC::GCIncomingRefCounted::hasVectorOfCells):
      (JSC::GCIncomingRefCounted::hasAnyIncoming):
      (JSC::GCIncomingRefCounted::hasSingleton):
      (JSC::GCIncomingRefCounted::singleton):
      (JSC::GCIncomingRefCounted::vectorOfCells):
      * heap/GCIncomingRefCountedInlines.h: Added.
      (JSC::::addIncomingReference):
      (JSC::::filterIncomingReferences):
      * heap/GCIncomingRefCountedSet.h: Added.
      (JSC::GCIncomingRefCountedSet::size):
      * heap/GCIncomingRefCountedSetInlines.h: Added.
      (JSC::::GCIncomingRefCountedSet):
      (JSC::::~GCIncomingRefCountedSet):
      (JSC::::addReference):
      (JSC::::sweep):
      (JSC::::removeAll):
      (JSC::::removeDead):
      * heap/Heap.cpp:
      (JSC::Heap::addReference):
      (JSC::Heap::extraSize):
      (JSC::Heap::size):
      (JSC::Heap::capacity):
      (JSC::Heap::collect):
      (JSC::Heap::decrementDeferralDepth):
      (JSC::Heap::decrementDeferralDepthAndGCIfNeeded):
      * heap/Heap.h:
      * interpreter/CallFrame.h:
      (JSC::ExecState::dataViewTable):
      * jit/JIT.h:
      * jit/JITPropertyAccess.cpp:
      (JSC::JIT::privateCompileGetByVal):
      (JSC::JIT::privateCompilePutByVal):
      (JSC::JIT::emitIntTypedArrayGetByVal):
      (JSC::JIT::emitFloatTypedArrayGetByVal):
      (JSC::JIT::emitIntTypedArrayPutByVal):
      (JSC::JIT::emitFloatTypedArrayPutByVal):
      * jsc.cpp:
      (GlobalObject::finishCreation):
      * runtime/ArrayBuffer.cpp:
      (JSC::ArrayBuffer::transfer):
      * runtime/ArrayBuffer.h:
      (JSC::ArrayBuffer::createAdopted):
      (JSC::ArrayBuffer::ArrayBuffer):
      (JSC::ArrayBuffer::gcSizeEstimateInBytes):
      (JSC::ArrayBuffer::pin):
      (JSC::ArrayBuffer::unpin):
      (JSC::ArrayBufferContents::tryAllocate):
      * runtime/ArrayBufferView.cpp:
      (JSC::ArrayBufferView::ArrayBufferView):
      (JSC::ArrayBufferView::~ArrayBufferView):
      (JSC::ArrayBufferView::setNeuterable):
      * runtime/ArrayBufferView.h:
      (JSC::ArrayBufferView::isNeutered):
      (JSC::ArrayBufferView::buffer):
      (JSC::ArrayBufferView::baseAddress):
      (JSC::ArrayBufferView::byteOffset):
      (JSC::ArrayBufferView::verifySubRange):
      (JSC::ArrayBufferView::clampOffsetAndNumElements):
      (JSC::ArrayBufferView::calculateOffsetAndLength):
      * runtime/ClassInfo.h:
      * runtime/CommonIdentifiers.h:
      * runtime/DataView.cpp: Added.
      (JSC::DataView::DataView):
      (JSC::DataView::create):
      (JSC::DataView::wrap):
      * runtime/DataView.h: Added.
      (JSC::DataView::byteLength):
      (JSC::DataView::getType):
      (JSC::DataView::get):
      (JSC::DataView::set):
      * runtime/Float32Array.h:
      * runtime/Float64Array.h:
      * runtime/GenericTypedArrayView.h: Added.
      (JSC::GenericTypedArrayView::data):
      (JSC::GenericTypedArrayView::set):
      (JSC::GenericTypedArrayView::setRange):
      (JSC::GenericTypedArrayView::zeroRange):
      (JSC::GenericTypedArrayView::zeroFill):
      (JSC::GenericTypedArrayView::length):
      (JSC::GenericTypedArrayView::byteLength):
      (JSC::GenericTypedArrayView::item):
      (JSC::GenericTypedArrayView::checkInboundData):
      (JSC::GenericTypedArrayView::getType):
      * runtime/GenericTypedArrayViewInlines.h: Added.
      (JSC::::GenericTypedArrayView):
      (JSC::::create):
      (JSC::::createUninitialized):
      (JSC::::subarray):
      (JSC::::wrap):
      * runtime/IndexingHeader.h:
      (JSC::IndexingHeader::arrayBuffer):
      (JSC::IndexingHeader::setArrayBuffer):
      * runtime/Int16Array.h:
      * runtime/Int32Array.h:
      * runtime/Int8Array.h:
      * runtime/JSArrayBuffer.cpp: Added.
      (JSC::JSArrayBuffer::JSArrayBuffer):
      (JSC::JSArrayBuffer::finishCreation):
      (JSC::JSArrayBuffer::create):
      (JSC::JSArrayBuffer::createStructure):
      (JSC::JSArrayBuffer::getOwnPropertySlot):
      (JSC::JSArrayBuffer::getOwnPropertyDescriptor):
      (JSC::JSArrayBuffer::put):
      (JSC::JSArrayBuffer::defineOwnProperty):
      (JSC::JSArrayBuffer::deleteProperty):
      (JSC::JSArrayBuffer::getOwnNonIndexPropertyNames):
      * runtime/JSArrayBuffer.h: Added.
      (JSC::JSArrayBuffer::impl):
      (JSC::toArrayBuffer):
      * runtime/JSArrayBufferConstructor.cpp: Added.
      (JSC::JSArrayBufferConstructor::JSArrayBufferConstructor):
      (JSC::JSArrayBufferConstructor::finishCreation):
      (JSC::JSArrayBufferConstructor::create):
      (JSC::JSArrayBufferConstructor::createStructure):
      (JSC::constructArrayBuffer):
      (JSC::JSArrayBufferConstructor::getConstructData):
      (JSC::JSArrayBufferConstructor::getCallData):
      * runtime/JSArrayBufferConstructor.h: Added.
      * runtime/JSArrayBufferPrototype.cpp: Added.
      (JSC::arrayBufferProtoFuncSlice):
      (JSC::JSArrayBufferPrototype::JSArrayBufferPrototype):
      (JSC::JSArrayBufferPrototype::finishCreation):
      (JSC::JSArrayBufferPrototype::create):
      (JSC::JSArrayBufferPrototype::createStructure):
      * runtime/JSArrayBufferPrototype.h: Added.
      * runtime/JSArrayBufferView.cpp: Added.
      (JSC::JSArrayBufferView::ConstructionContext::ConstructionContext):
      (JSC::JSArrayBufferView::JSArrayBufferView):
      (JSC::JSArrayBufferView::finishCreation):
      (JSC::JSArrayBufferView::getOwnPropertySlot):
      (JSC::JSArrayBufferView::getOwnPropertyDescriptor):
      (JSC::JSArrayBufferView::put):
      (JSC::JSArrayBufferView::defineOwnProperty):
      (JSC::JSArrayBufferView::deleteProperty):
      (JSC::JSArrayBufferView::getOwnNonIndexPropertyNames):
      (JSC::JSArrayBufferView::finalize):
      * runtime/JSArrayBufferView.h: Added.
      (JSC::JSArrayBufferView::sizeOf):
      (JSC::JSArrayBufferView::ConstructionContext::operator!):
      (JSC::JSArrayBufferView::ConstructionContext::structure):
      (JSC::JSArrayBufferView::ConstructionContext::vector):
      (JSC::JSArrayBufferView::ConstructionContext::length):
      (JSC::JSArrayBufferView::ConstructionContext::mode):
      (JSC::JSArrayBufferView::ConstructionContext::butterfly):
      (JSC::JSArrayBufferView::mode):
      (JSC::JSArrayBufferView::vector):
      (JSC::JSArrayBufferView::length):
      (JSC::JSArrayBufferView::offsetOfVector):
      (JSC::JSArrayBufferView::offsetOfLength):
      (JSC::JSArrayBufferView::offsetOfMode):
      * runtime/JSArrayBufferViewInlines.h: Added.
      (JSC::JSArrayBufferView::slowDownAndWasteMemoryIfNecessary):
      (JSC::JSArrayBufferView::buffer):
      (JSC::JSArrayBufferView::impl):
      (JSC::JSArrayBufferView::neuter):
      (JSC::JSArrayBufferView::byteOffset):
      * runtime/JSCell.cpp:
      (JSC::JSCell::slowDownAndWasteMemory):
      (JSC::JSCell::getTypedArrayImpl):
      * runtime/JSCell.h:
      * runtime/JSDataView.cpp: Added.
      (JSC::JSDataView::JSDataView):
      (JSC::JSDataView::create):
      (JSC::JSDataView::createUninitialized):
      (JSC::JSDataView::set):
      (JSC::JSDataView::typedImpl):
      (JSC::JSDataView::getOwnPropertySlot):
      (JSC::JSDataView::getOwnPropertyDescriptor):
      (JSC::JSDataView::slowDownAndWasteMemory):
      (JSC::JSDataView::getTypedArrayImpl):
      (JSC::JSDataView::createStructure):
      * runtime/JSDataView.h: Added.
      * runtime/JSDataViewPrototype.cpp: Added.
      (JSC::JSDataViewPrototype::JSDataViewPrototype):
      (JSC::JSDataViewPrototype::create):
      (JSC::JSDataViewPrototype::createStructure):
      (JSC::JSDataViewPrototype::getOwnPropertySlot):
      (JSC::JSDataViewPrototype::getOwnPropertyDescriptor):
      (JSC::getData):
      (JSC::setData):
      (JSC::dataViewProtoFuncGetInt8):
      (JSC::dataViewProtoFuncGetInt16):
      (JSC::dataViewProtoFuncGetInt32):
      (JSC::dataViewProtoFuncGetUint8):
      (JSC::dataViewProtoFuncGetUint16):
      (JSC::dataViewProtoFuncGetUint32):
      (JSC::dataViewProtoFuncGetFloat32):
      (JSC::dataViewProtoFuncGetFloat64):
      (JSC::dataViewProtoFuncSetInt8):
      (JSC::dataViewProtoFuncSetInt16):
      (JSC::dataViewProtoFuncSetInt32):
      (JSC::dataViewProtoFuncSetUint8):
      (JSC::dataViewProtoFuncSetUint16):
      (JSC::dataViewProtoFuncSetUint32):
      (JSC::dataViewProtoFuncSetFloat32):
      (JSC::dataViewProtoFuncSetFloat64):
      * runtime/JSDataViewPrototype.h: Added.
      * runtime/JSFloat32Array.h: Added.
      * runtime/JSFloat64Array.h: Added.
      * runtime/JSGenericTypedArrayView.h: Added.
      (JSC::JSGenericTypedArrayView::byteLength):
      (JSC::JSGenericTypedArrayView::byteSize):
      (JSC::JSGenericTypedArrayView::typedVector):
      (JSC::JSGenericTypedArrayView::canGetIndexQuickly):
      (JSC::JSGenericTypedArrayView::canSetIndexQuickly):
      (JSC::JSGenericTypedArrayView::getIndexQuicklyAsNativeValue):
      (JSC::JSGenericTypedArrayView::getIndexQuicklyAsDouble):
      (JSC::JSGenericTypedArrayView::getIndexQuickly):
      (JSC::JSGenericTypedArrayView::setIndexQuicklyToNativeValue):
      (JSC::JSGenericTypedArrayView::setIndexQuicklyToDouble):
      (JSC::JSGenericTypedArrayView::setIndexQuickly):
      (JSC::JSGenericTypedArrayView::canAccessRangeQuickly):
      (JSC::JSGenericTypedArrayView::typedImpl):
      (JSC::JSGenericTypedArrayView::createStructure):
      (JSC::JSGenericTypedArrayView::info):
      (JSC::toNativeTypedView):
      * runtime/JSGenericTypedArrayViewConstructor.h: Added.
      * runtime/JSGenericTypedArrayViewConstructorInlines.h: Added.
      (JSC::::JSGenericTypedArrayViewConstructor):
      (JSC::::finishCreation):
      (JSC::::create):
      (JSC::::createStructure):
      (JSC::constructGenericTypedArrayView):
      (JSC::::getConstructData):
      (JSC::::getCallData):
      * runtime/JSGenericTypedArrayViewInlines.h: Added.
      (JSC::::JSGenericTypedArrayView):
      (JSC::::create):
      (JSC::::createUninitialized):
      (JSC::::validateRange):
      (JSC::::setWithSpecificType):
      (JSC::::set):
      (JSC::::getOwnPropertySlot):
      (JSC::::getOwnPropertyDescriptor):
      (JSC::::put):
      (JSC::::defineOwnProperty):
      (JSC::::deleteProperty):
      (JSC::::getOwnPropertySlotByIndex):
      (JSC::::putByIndex):
      (JSC::::deletePropertyByIndex):
      (JSC::::getOwnNonIndexPropertyNames):
      (JSC::::getOwnPropertyNames):
      (JSC::::visitChildren):
      (JSC::::copyBackingStore):
      (JSC::::slowDownAndWasteMemory):
      (JSC::::getTypedArrayImpl):
      * runtime/JSGenericTypedArrayViewPrototype.h: Added.
      * runtime/JSGenericTypedArrayViewPrototypeInlines.h: Added.
      (JSC::genericTypedArrayViewProtoFuncSet):
      (JSC::genericTypedArrayViewProtoFuncSubarray):
      (JSC::::JSGenericTypedArrayViewPrototype):
      (JSC::::finishCreation):
      (JSC::::create):
      (JSC::::createStructure):
      * runtime/JSGlobalObject.cpp:
      (JSC::JSGlobalObject::reset):
      (JSC::JSGlobalObject::visitChildren):
      * runtime/JSGlobalObject.h:
      (JSC::JSGlobalObject::arrayBufferPrototype):
      (JSC::JSGlobalObject::arrayBufferStructure):
      (JSC::JSGlobalObject::typedArrayStructure):
      * runtime/JSInt16Array.h: Added.
      * runtime/JSInt32Array.h: Added.
      * runtime/JSInt8Array.h: Added.
      * runtime/JSTypedArrayConstructors.cpp: Added.
      * runtime/JSTypedArrayConstructors.h: Added.
      * runtime/JSTypedArrayPrototypes.cpp: Added.
      * runtime/JSTypedArrayPrototypes.h: Added.
      * runtime/JSTypedArrays.cpp: Added.
      * runtime/JSTypedArrays.h: Added.
      * runtime/JSUint16Array.h: Added.
      * runtime/JSUint32Array.h: Added.
      * runtime/JSUint8Array.h: Added.
      * runtime/JSUint8ClampedArray.h: Added.
      * runtime/Operations.h:
      * runtime/Options.h:
      * runtime/SimpleTypedArrayController.cpp: Added.
      (JSC::SimpleTypedArrayController::SimpleTypedArrayController):
      (JSC::SimpleTypedArrayController::~SimpleTypedArrayController):
      (JSC::SimpleTypedArrayController::toJS):
      * runtime/SimpleTypedArrayController.h: Added.
      * runtime/Structure.h:
      (JSC::Structure::couldHaveIndexingHeader):
      * runtime/StructureInlines.h:
      (JSC::Structure::hasIndexingHeader):
      * runtime/TypedArrayAdaptors.h: Added.
      (JSC::IntegralTypedArrayAdaptor::toNative):
      (JSC::IntegralTypedArrayAdaptor::toJSValue):
      (JSC::IntegralTypedArrayAdaptor::toDouble):
      (JSC::FloatTypedArrayAdaptor::toNative):
      (JSC::FloatTypedArrayAdaptor::toJSValue):
      (JSC::FloatTypedArrayAdaptor::toDouble):
      (JSC::Uint8ClampedAdaptor::toNative):
      (JSC::Uint8ClampedAdaptor::toJSValue):
      (JSC::Uint8ClampedAdaptor::toDouble):
      (JSC::Uint8ClampedAdaptor::clamp):
      * runtime/TypedArrayController.cpp: Added.
      (JSC::TypedArrayController::TypedArrayController):
      (JSC::TypedArrayController::~TypedArrayController):
      * runtime/TypedArrayController.h: Added.
      * runtime/TypedArrayDescriptor.h: Removed.
      * runtime/TypedArrayInlines.h: Added.
      * runtime/TypedArrayType.cpp: Added.
      (JSC::classInfoForType):
      (WTF::printInternal):
      * runtime/TypedArrayType.h: Added.
      (JSC::toIndex):
      (JSC::isTypedView):
      (JSC::elementSize):
      (JSC::isInt):
      (JSC::isFloat):
      (JSC::isSigned):
      (JSC::isClamped):
      * runtime/TypedArrays.h: Added.
      * runtime/Uint16Array.h:
      * runtime/Uint32Array.h:
      * runtime/Uint8Array.h:
      * runtime/Uint8ClampedArray.h:
      * runtime/VM.cpp:
      (JSC::VM::VM):
      (JSC::VM::~VM):
      * runtime/VM.h:
      
      Source/WebCore: 
      
      Reviewed by Oliver Hunt.
      
      Typed arrays are now implemented in JavaScriptCore, and WebCore is merely a
      client of them. There is only one layering violation: WebCore installs a
      WebCoreTypedArrayController on VM, which makes the
      ArrayBuffer<->JSArrayBuffer relationship resemble DOM wrappers. By default,
      JSC makes the ownership go one way; the JSArrayBuffer keeps the ArrayBuffer
      alive but if ArrayBuffer is kept alive from native code then the
      JSArrayByffer may die. WebCoreTypedArrayController will keep the
      JSArrayBuffer alive if the ArrayBuffer is in the opaque root set.
              
      To make non-JSDOMWrappers behave like DOM wrappers, a bunch of code is
      changed to make most references to wrappers refer to JSObject* rather than
      JSDOMWrapper*.
              
      Array buffer views are now transient; the JS array buffer view wrappers
      don't own them or keep them alive. This required a bunch of changes to make
      bindings code use RefPtr<ArrayBufferView> to hold onto their views.
              
      Also there is a bunch of new code to make JSC-provided array buffers and
      views obey the toJS/to<ClassName> idiom for wrapping and unwrapping.
              
      Finally, the DataView API is now completely different: the JSDataView
      provides the same user-visible JS API but using its own internal magic; the
      C++ code that uses DataView now uses a rather different API that is not
      aware of usual DOM semantics, since it's in JSC and not WebCore. It's
      equally useful for all of WebCore's purposes, but some code had to change
      to adapt the new conventions.
              
      Some tests have been changed or rebased due to changes in behavior, that
      bring us into conformance with where the standards are going and allow us to
      match Firefox behavior.
      
      Automake work and some additional GTK changes courtesy of
      Zan Dobersek <zdobersek@igalia.com>.
              
      Additional Qt changes courtesy of Arunprasad Rajkumar <arurajku@cisco.com>.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * ForwardingHeaders/runtime/DataView.h: Added.
      * ForwardingHeaders/runtime/JSArrayBuffer.h: Added.
      * ForwardingHeaders/runtime/JSArrayBufferView.h: Added.
      * ForwardingHeaders/runtime/JSDataView.h: Added.
      * ForwardingHeaders/runtime/JSTypedArrays.h: Added.
      * ForwardingHeaders/runtime/TypedArrayController.h: Added.
      * ForwardingHeaders/runtime/TypedArrayInlines.h: Added.
      * ForwardingHeaders/runtime/TypedArrays.h: Added.
      * GNUmakefile.list.am:
      * Modules/webaudio/RealtimeAnalyser.h:
      * Target.pri:
      * UseJSC.cmake:
      * WebCore.exp.in:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/DOMWrapperWorld.h:
      * bindings/js/JSArrayBufferCustom.cpp: Removed.
      * bindings/js/JSArrayBufferViewHelper.h: Removed.
      * bindings/js/JSAudioContextCustom.cpp:
      * bindings/js/JSBindingsAllInOne.cpp:
      * bindings/js/JSBlobCustom.cpp:
      * bindings/js/JSCSSRuleCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSCSSValueCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSCryptoCustom.cpp:
      (WebCore::JSCrypto::getRandomValues):
      * bindings/js/JSDOMBinding.h:
      (WebCore::wrapperOwner):
      (WebCore::wrapperContext):
      (WebCore::getInlineCachedWrapper):
      (WebCore::setInlineCachedWrapper):
      (WebCore::clearInlineCachedWrapper):
      (WebCore::getCachedWrapper):
      (WebCore::cacheWrapper):
      (WebCore::uncacheWrapper):
      (WebCore::wrap):
      (WebCore::toJS):
      (WebCore::toArrayBufferView):
      (WebCore::toInt8Array):
      (WebCore::toInt16Array):
      (WebCore::toInt32Array):
      (WebCore::toUint8Array):
      (WebCore::toUint8ClampedArray):
      (WebCore::toUint16Array):
      (WebCore::toUint32Array):
      (WebCore::toFloat32Array):
      (WebCore::toFloat64Array):
      (WebCore::toDataView):
      * bindings/js/JSDataViewCustom.cpp: Removed.
      * bindings/js/JSDictionary.cpp:
      * bindings/js/JSDictionary.h:
      * bindings/js/JSDocumentCustom.cpp:
      (WebCore::JSDocument::location):
      (WebCore::toJS):
      * bindings/js/JSEventCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSFileReaderCustom.cpp:
      * bindings/js/JSHTMLCollectionCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSHTMLTemplateElementCustom.cpp:
      (WebCore::JSHTMLTemplateElement::content):
      * bindings/js/JSImageDataCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSInjectedScriptHostCustom.cpp:
      * bindings/js/JSMessageEventCustom.cpp:
      * bindings/js/JSMessagePortCustom.cpp:
      * bindings/js/JSSVGPathSegCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSStyleSheetCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSTrackCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSWebGLRenderingContextCustom.cpp:
      * bindings/js/JSXMLHttpRequestCustom.cpp:
      (WebCore::JSXMLHttpRequest::send):
      * bindings/js/SerializedScriptValue.cpp:
      (WebCore::SerializedScriptValue::transferArrayBuffers):
      * bindings/js/WebCoreJSClientData.h:
      (WebCore::initNormalWorldClientData):
      * bindings/js/WebCoreTypedArrayController.cpp: Added.
      (WebCore::WebCoreTypedArrayController::WebCoreTypedArrayController):
      (WebCore::WebCoreTypedArrayController::~WebCoreTypedArrayController):
      (WebCore::WebCoreTypedArrayController::toJS):
      (WebCore::WebCoreTypedArrayController::JSArrayBufferOwner::isReachableFromOpaqueRoots):
      (WebCore::WebCoreTypedArrayController::JSArrayBufferOwner::finalize):
      * bindings/js/WebCoreTypedArrayController.h: Added.
      (WebCore::WebCoreTypedArrayController::wrapperOwner):
      * bindings/scripts/CodeGenerator.pm:
      (ForAllParents):
      (ParseInterface):
      (SkipIncludeHeader):
      (IsTypedArrayType):
      (IsWrapperType):
      * bindings/scripts/CodeGeneratorJS.pm:
      (AddIncludesForType):
      (GenerateHeader):
      (GenerateImplementation):
      (GenerateParametersCheck):
      (GetNativeType):
      (JSValueToNative):
      (NativeToJSValue):
      (GenerateConstructorDefinition):
      (GenerateConstructorHelperMethods):
      * fileapi/WebKitBlobBuilder.cpp:
      (WebCore::BlobBuilder::append):
      * fileapi/WebKitBlobBuilder.h:
      * html/canvas/ArrayBuffer.idl: Removed.
      * html/canvas/ArrayBufferView.idl: Removed.
      * html/canvas/DataView.cpp: Removed.
      * html/canvas/DataView.h: Removed.
      * html/canvas/DataView.idl: Removed.
      * html/canvas/Float32Array.idl: Removed.
      * html/canvas/Float64Array.idl: Removed.
      * html/canvas/Int16Array.idl: Removed.
      * html/canvas/Int32Array.idl: Removed.
      * html/canvas/Int8Array.idl: Removed.
      * html/canvas/Uint16Array.idl: Removed.
      * html/canvas/Uint32Array.idl: Removed.
      * html/canvas/Uint8Array.idl: Removed.
      * html/canvas/Uint8ClampedArray.idl: Removed.
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore::WebGLRenderingContext::readPixels):
      (WebCore::WebGLRenderingContext::validateTexFuncData):
      * page/Crypto.cpp:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
      (WebCore::MediaPlayerPrivateAVFoundationObjC::extractKeyURIKeyIDAndCertificateFromInitData):
      * platform/graphics/filters/FECustomFilter.h:
      * platform/graphics/filters/FEGaussianBlur.cpp:
      * platform/graphics/filters/FilterEffect.cpp:
      * testing/MockCDM.cpp:
      
      Source/WebKit2: 
      
      Reviewed by Oliver Hunt.
              
      You don't need to include JSUint8Array anymore if you just want to
      unwrap one; JSDOMBinding gives you all of the things you need.
      
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      
      Source/WTF: 
      
      Reviewed by Oliver Hunt.
              
      - Added the notion of a reference counted object that can be marked Deferred,
        which is like a special-purpose upref.
              
      - Added a common byte flipper.
      
      Automake work courtesy of Zan Dobersek <zdobersek@igalia.com>.
      
      * GNUmakefile.list.am:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/DeferrableRefCounted.h: Added.
      (WTF::DeferrableRefCountedBase::ref):
      (WTF::DeferrableRefCountedBase::hasOneRef):
      (WTF::DeferrableRefCountedBase::refCount):
      (WTF::DeferrableRefCountedBase::isDeferred):
      (WTF::DeferrableRefCountedBase::DeferrableRefCountedBase):
      (WTF::DeferrableRefCountedBase::~DeferrableRefCountedBase):
      (WTF::DeferrableRefCountedBase::derefBase):
      (WTF::DeferrableRefCountedBase::setIsDeferredBase):
      (WTF::DeferrableRefCounted::deref):
      (WTF::DeferrableRefCounted::setIsDeferred):
      (WTF::DeferrableRefCounted::DeferrableRefCounted):
      (WTF::DeferrableRefCounted::~DeferrableRefCounted):
      * wtf/FlipBytes.h: Added.
      (WTF::needToFlipBytesIfLittleEndian):
      (WTF::flipBytes):
      (WTF::flipBytesIfLittleEndian):
      
      LayoutTests: 
      
      Reviewed by Oliver Hunt.
      
      * fast/canvas/webgl/array-set-invalid-arguments-expected.txt:
      * fast/canvas/webgl/array-set-out-of-bounds-expected.txt:
      * fast/canvas/webgl/array-unit-tests-expected.txt:
      * fast/canvas/webgl/array-unit-tests.html:
      * fast/canvas/webgl/data-view-crash-expected.txt:
      * fast/canvas/webgl/script-tests/arraybuffer-transfer-of-control.js:
      (checkView):
      * fast/dom/call-a-constructor-as-a-function-expected.txt:
      * fast/dom/call-a-constructor-as-a-function.html:
      * fast/js/constructor-length.html:
      * fast/js/global-constructors-attributes-dedicated-worker-expected.txt:
      * fast/js/global-constructors-attributes-expected.txt:
      * fast/js/global-constructors-attributes-shared-worker-expected.txt:
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-expected.txt: Added.
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-huge-long-lived-expected.txt: Added.
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-huge-long-lived.html: Added.
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-large-long-lived-expected.txt: Added.
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-large-long-lived.html: Added.
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-long-lived-buffer-expected.txt: Added.
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-long-lived-buffer.html: Added.
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-long-lived-expected.txt: Added.
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-long-lived.html: Added.
      * fast/js/regress/ArrayBuffer-Int8Array-alloc.html: Added.
      * fast/js/regress/Int32Array-Int8Array-view-alloc-expected.txt: Added.
      * fast/js/regress/Int32Array-Int8Array-view-alloc.html: Added.
      * fast/js/regress/Int32Array-alloc-expected.txt: Added.
      * fast/js/regress/Int32Array-alloc-huge-expected.txt: Added.
      * fast/js/regress/Int32Array-alloc-huge-long-lived-expected.txt: Added.
      * fast/js/regress/Int32Array-alloc-huge-long-lived.html: Added.
      * fast/js/regress/Int32Array-alloc-huge.html: Added.
      * fast/js/regress/Int32Array-alloc-large-expected.txt: Added.
      * fast/js/regress/Int32Array-alloc-large-long-lived-expected.txt: Added.
      * fast/js/regress/Int32Array-alloc-large-long-lived.html: Added.
      * fast/js/regress/Int32Array-alloc-large.html: Added.
      * fast/js/regress/Int32Array-alloc-long-lived-expected.txt: Added.
      * fast/js/regress/Int32Array-alloc-long-lived.html: Added.
      * fast/js/regress/Int32Array-alloc.html: Added.
      * fast/js/regress/script-tests/ArrayBuffer-Int8Array-alloc-huge-long-lived.js: Added.
      * fast/js/regress/script-tests/ArrayBuffer-Int8Array-alloc-large-long-lived.js: Added.
      * fast/js/regress/script-tests/ArrayBuffer-Int8Array-alloc-long-lived-buffer.js: Added.
      * fast/js/regress/script-tests/ArrayBuffer-Int8Array-alloc-long-lived.js: Added.
      * fast/js/regress/script-tests/ArrayBuffer-Int8Array-alloc.js: Added.
      * fast/js/regress/script-tests/Int32Array-Int8Array-view-alloc.js: Added.
      * fast/js/regress/script-tests/Int32Array-alloc-huge-long-lived.js: Added.
      * fast/js/regress/script-tests/Int32Array-alloc-huge.js: Added.
      * fast/js/regress/script-tests/Int32Array-alloc-large-long-lived.js: Added.
      * fast/js/regress/script-tests/Int32Array-alloc-large.js: Added.
      * fast/js/regress/script-tests/Int32Array-alloc-long-lived.js: Added.
      * fast/js/regress/script-tests/Int32Array-alloc.js: Added.
      * platform/mac/fast/js/constructor-length-expected.txt:
      * webgl/resources/webgl_test_files/conformance/typedarrays/array-unit-tests.html:
      * webgl/resources/webgl_test_files/conformance/typedarrays/data-view-test.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e0d9312
  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. 26 Jun, 2013 1 commit
    • jer.noble@apple.com's avatar
      Potential use-after-free after neutering AudioBuffer's underlying ArrayBuffer. · f2cb1e13
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=118040
      
      Reviewed by Filip Pizlo.
      
      Source/WebCore:
      
      Test: webaudio/audiobuffer-neuter.html
      
      When creating an AudioBuffer's backing ArrayBufferView objects, mark them as 'unneuterable',
      meaning the underlying data will be copied in a neuter scenario rather than transferred. This
      means the underlying assumtions of the webaudio code can continue to assume that the memory
      areas owned by the ArrayBufferView will be present until the AudioBuffer is itself destroyed.
      
      In order to not expose the 'unneuterable' behavior to JavaScript, return a fresh Float32Array
      wrapper around the ArrayBuffer object, rather than our own.
      
      * Modules/webaudio/AudioBuffer.cpp:
      (WebCore::AudioBuffer::AudioBuffer): Mark the newly created channels as not neuterable.
      (WebCore::AudioBuffer::getChannelData): Return a new Float32Array object rather than a pointer to our own.
      * Modules/webaudio/AudioBuffer.h:
      
      Source/WTF:
      
      Add support for 'unneuterable' ArrayBufferViews. Views marked as such will have their underlying
      ArrayBuffer objects copied rather than transferred to a new view.
      
      * wtf/ArrayBuffer.cpp:
      (WTF::ArrayBuffer::transfer): Check whether the associated views are neuterable, and if not
              clone the ArrayBuffer rather than transferring it.
      * wtf/ArrayBuffer.h:
      (WTF::ArrayBufferContents::copyTo): Added. Utility function.
      * wtf/ArrayBufferView.cpp:
      (WTF::ArrayBufferView::ArrayBufferView):
      (WTF::ArrayBufferView::neuter):
      * wtf/ArrayBufferView.h:
      (WTF::ArrayBufferView::setNeuterable):
      (WTF::ArrayBufferView::isNeuterable):
      
      LayoutTests:
      
      * webaudio/audiobuffer-neuter.html: Added.
      * webaudio/audiobuffer-neuter-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2cb1e13
  4. 04 Apr, 2012 1 commit
    • commit-queue@webkit.org's avatar
      [Coverity] Address some uninit constructor values. · bcc7ca5d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=82424
      
      Patch by Kausalya Madhusudhanan <kmadhusu@chromium.org> on 2012-04-04
      Reviewed by Stephen White.
      
      New tests are not required since I did not modify any code behavior. I just initialized the class member variables in the constructor.
      
      Source/WebCore:
      
      * Modules/gamepad/Gamepad.cpp:
      (WebCore::Gamepad::Gamepad):
      * accessibility/AccessibilitySpinButton.cpp:
      (WebCore::AccessibilitySpinButtonPart::AccessibilitySpinButtonPart):
      * dom/WheelEvent.cpp:
      (WebCore::WheelEvent::WheelEvent):
      * html/canvas/WebGLContextObject.h:
      (WebGLContextObject):
      * platform/PlatformTouchPoint.h:
      (WebCore::PlatformTouchPoint::PlatformTouchPoint):
      * platform/graphics/chromium/cc/CCPageScaleAnimation.cpp:
      (WebCore::CCPageScaleAnimation::CCPageScaleAnimation):
      * platform/graphics/chromium/cc/CCRenderSurface.cpp:
      (WebCore::CCRenderSurface::CCRenderSurface):
      * xml/parser/MarkupTokenBase.h:
      (WebCore::AtomicMarkupTokenBase::AtomicMarkupTokenBase):
      
      Source/WebKit/chromium:
      
      * src/DatabaseObserver.cpp:
      (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge):
      * src/LocalFileSystemChromium.cpp:
      (WebCore):
      
      Source/WTF:
      
      * wtf/ArrayBufferView.cpp:
      (WTF::ArrayBufferView::ArrayBufferView):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcc7ca5d
  5. 22 Mar, 2012 1 commit
    • eric@webkit.org's avatar
      Actually move WTF files to their new home · 7c215cc6
      eric@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=81844
      
      Source/JavaScriptCore:
      
      Unreviewed.  The details of the port-specific changes
      have been seen by contributors from those ports, but
      the whole 5MB change isn't very reviewable as-is.
      
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * JSCTypedArrayStubs.h:
      * JavaScriptCore.gypi:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * jsc.cpp:
      
      Source/WTF:
      
      Unreviewed.  The 5MB file move is not very reviewable,
      but various port representatives have OK'd changes to the
      individual build systems.
      
      * Configurations/WTF.xcconfig:
      * GNUmakefile.list.am:
      * Stub.cpp: Removed.
      * Stub.h: Removed.
      * WTF.gypi:
      * WTF.pri:
      * WTF.pro:
      * WTF.vcproj/WTF.vcproj:
      * WTF.vcproj/copy-files.cmd:
      * WTF.xcodeproj/project.pbxproj:
      * config.h:
      * wtf/ASCIICType.h: Renamed from Source/JavaScriptCore/wtf/ASCIICType.h.
      (WTF):
      (WTF::isASCII):
      (WTF::isASCIIAlpha):
      (WTF::isASCIIDigit):
      (WTF::isASCIIAlphanumeric):
      (WTF::isASCIIHexDigit):
      (WTF::isASCIILower):
      (WTF::isASCIIOctalDigit):
      (WTF::isASCIIPrintable):
      (WTF::isASCIISpace):
      (WTF::isASCIIUpper):
      (WTF::toASCIILower):
      (WTF::toASCIILowerUnchecked):
      (WTF::toASCIIUpper):
      (WTF::toASCIIHexValue):
      (WTF::lowerNibbleToASCIIHexDigit):
      (WTF::upperNibbleToASCIIHexDigit):
      (WTF::isASCIIAlphaCaselessEqual):
      * wtf/AVLTree.h: Renamed from Source/JavaScriptCore/wtf/AVLTree.h.
      (WTF):
      (AVLTreeDefaultBSet):
      (WTF::AVLTreeDefaultBSet::operator[]):
      (WTF::AVLTreeDefaultBSet::set):
      (WTF::AVLTreeDefaultBSet::reset):
      (AVLTree):
      (WTF::AVLTree::abstractor):
      (WTF::AVLTree::purge):
      (WTF::AVLTree::is_empty):
      (WTF::AVLTree::AVLTree):
      (Iterator):
      (WTF::AVLTree::Iterator::Iterator):
      (WTF::AVLTree::Iterator::start_iter):
      (WTF::AVLTree::Iterator::start_iter_least):
      (WTF::AVLTree::Iterator::start_iter_greatest):
      (WTF::AVLTree::Iterator::operator*):
      (WTF::AVLTree::Iterator::operator++):
      (WTF::AVLTree::Iterator::operator--):
      (WTF::AVLTree::Iterator::cmp_k_n):
      (WTF::AVLTree::Iterator::cmp_n_n):
      (WTF::AVLTree::Iterator::get_lt):
      (WTF::AVLTree::Iterator::get_gt):
      (WTF::AVLTree::Iterator::null):
      (WTF::AVLTree::build):
      (abs_plus_root):
      (WTF::AVLTree::get_lt):
      (WTF::AVLTree::set_lt):
      (WTF::AVLTree::get_gt):
      (WTF::AVLTree::set_gt):
      (WTF::AVLTree::get_bf):
      (WTF::AVLTree::set_bf):
      (WTF::AVLTree::cmp_k_n):
      (WTF::AVLTree::cmp_n_n):
      (WTF::AVLTree::null):
      (WTF::AVLTree::balance):
      (WTF::::insert):
      (WTF::::search):
      (WTF::::search_least):
      (WTF::::search_greatest):
      (WTF::::remove):
      (WTF::::subst):
      * wtf/Alignment.h: Renamed from Source/JavaScriptCore/wtf/Alignment.h.
      (WTF):
      (WTF::swap):
      * wtf/AlwaysInline.h: Renamed from Source/JavaScriptCore/wtf/AlwaysInline.h.
      * wtf/ArrayBuffer.cpp: Renamed from Source/JavaScriptCore/wtf/ArrayBuffer.cpp.
      (WTF):
      (WTF::ArrayBuffer::transfer):
      (WTF::ArrayBuffer::addView):
      (WTF::ArrayBuffer::removeView):
      * wtf/ArrayBuffer.h: Renamed from Source/JavaScriptCore/wtf/ArrayBuffer.h.
      (WTF):
      (ArrayBufferContents):
      (WTF::ArrayBufferContents::ArrayBufferContents):
      (WTF::ArrayBufferContents::data):
      (WTF::ArrayBufferContents::sizeInBytes):
      (WTF::ArrayBufferContents::transfer):
      (ArrayBuffer):
      (WTF::ArrayBuffer::isNeutered):
      (WTF::ArrayBuffer::~ArrayBuffer):
      (WTF::ArrayBuffer::clampValue):
      (WTF::ArrayBuffer::create):
      (WTF::ArrayBuffer::ArrayBuffer):
      (WTF::ArrayBuffer::data):
      (WTF::ArrayBuffer::byteLength):
      (WTF::ArrayBuffer::slice):
      (WTF::ArrayBuffer::sliceImpl):
      (WTF::ArrayBuffer::clampIndex):
      (WTF::ArrayBufferContents::tryAllocate):
      (WTF::ArrayBufferContents::~ArrayBufferContents):
      * wtf/ArrayBufferView.cpp: Renamed from Source/JavaScriptCore/wtf/ArrayBufferView.cpp.
      (WTF):
      (WTF::ArrayBufferView::ArrayBufferView):
      (WTF::ArrayBufferView::~ArrayBufferView):
      (WTF::ArrayBufferView::neuter):
      * wtf/ArrayBufferView.h: Renamed from Source/JavaScriptCore/wtf/ArrayBufferView.h.
      (WTF):
      (WTF::ArrayBufferView::setImpl):
      (WTF::ArrayBufferView::setRangeImpl):
      (WTF::ArrayBufferView::zeroRangeImpl):
      (WTF::ArrayBufferView::calculateOffsetAndLength):
      * wtf/Assertions.cpp: Renamed from Source/JavaScriptCore/wtf/Assertions.cpp.
      * wtf/Assertions.h: Renamed from Source/JavaScriptCore/wtf/Assertions.h.
      (assertUnused):
      (assertWithMessageUnused):
      * wtf/Atomics.h: Renamed from Source/JavaScriptCore/wtf/Atomics.h.
      (WTF):
      (WTF::atomicIncrement):
      (WTF::atomicDecrement):
      (WTF::weakCompareAndSwap):
      (WTF::weakCompareAndSwapUIntPtr):
      * wtf/BitVector.cpp: Renamed from Source/JavaScriptCore/wtf/BitVector.cpp.
      (WTF):
      (WTF::BitVector::setSlow):
      (WTF::BitVector::resize):
      (WTF::BitVector::clearAll):
      (WTF::BitVector::OutOfLineBits::create):
      (WTF::BitVector::OutOfLineBits::destroy):
      (WTF::BitVector::resizeOutOfLine):
      (WTF::BitVector::dump):
      * wtf/BitVector.h: Renamed from Source/JavaScriptCore/wtf/BitVector.h.
      (WTF):
      (BitVector):
      (WTF::BitVector::BitVector):
      (WTF::BitVector::~BitVector):
      (WTF::BitVector::operator=):
      (WTF::BitVector::size):
      (WTF::BitVector::ensureSize):
      (WTF::BitVector::quickGet):
      (WTF::BitVector::quickSet):
      (WTF::BitVector::quickClear):
      (WTF::BitVector::get):
      (WTF::BitVector::set):
      (WTF::BitVector::clear):
      (WTF::BitVector::bitsInPointer):
      (WTF::BitVector::maxInlineBits):
      (WTF::BitVector::byteCount):
      (WTF::BitVector::makeInlineBits):
      (OutOfLineBits):
      (WTF::BitVector::OutOfLineBits::numBits):
      (WTF::BitVector::OutOfLineBits::numWords):
      (WTF::BitVector::OutOfLineBits::bits):
      (WTF::BitVector::OutOfLineBits::OutOfLineBits):
      (WTF::BitVector::isInline):
      (WTF::BitVector::outOfLineBits):
      (WTF::BitVector::bits):
      * wtf/Bitmap.h: Renamed from Source/JavaScriptCore/wtf/Bitmap.h.
      (WTF):
      (Bitmap):
      (WTF::::Bitmap):
      (WTF::::get):
      (WTF::::set):
      (WTF::::testAndSet):
      (WTF::::testAndClear):
      (WTF::::concurrentTestAndSet):
      (WTF::::concurrentTestAndClear):
      (WTF::::clear):
      (WTF::::clearAll):
      (WTF::::nextPossiblyUnset):
      (WTF::::findRunOfZeros):
      (WTF::::count):
      (WTF::::isEmpty):
      (WTF::::isFull):
      * wtf/BlockStack.h: Renamed from Source/JavaScriptCore/wtf/BlockStack.h.
      (WTF):
      (BlockStack):
      (WTF::::BlockStack):
      (WTF::::~BlockStack):
      (WTF::::blocks):
      (WTF::::grow):
      (WTF::::shrink):
      * wtf/BloomFilter.h: Renamed from Source/JavaScriptCore/wtf/BloomFilter.h.
      (WTF):
      (BloomFilter):
      (WTF::BloomFilter::maximumCount):
      (WTF::BloomFilter::BloomFilter):
      (WTF::BloomFilter::mayContain):
      (WTF::BloomFilter::add):
      (WTF::BloomFilter::remove):
      (WTF::BloomFilter::firstSlot):
      (WTF::BloomFilter::secondSlot):
      (WTF::::add):
      (WTF::::remove):
      (WTF::::clear):
      (WTF::::likelyEmpty):
      (WTF::::isClear):
      * wtf/BoundsCheckedPointer.h: Renamed from Source/JavaScriptCore/wtf/BoundsCheckedPointer.h.
      (WTF):
      (BoundsCheckedPointer):
      (WTF::BoundsCheckedPointer::BoundsCheckedPointer):
      (WTF::BoundsCheckedPointer::operator=):
      (WTF::BoundsCheckedPointer::operator+=):
      (WTF::BoundsCheckedPointer::operator-=):
      (WTF::BoundsCheckedPointer::operator+):
      (WTF::BoundsCheckedPointer::operator-):
      (WTF::BoundsCheckedPointer::operator++):
      (WTF::BoundsCheckedPointer::operator--):
      (WTF::BoundsCheckedPointer::operator<):
      (WTF::BoundsCheckedPointer::operator<=):
      (WTF::BoundsCheckedPointer::operator>):
      (WTF::BoundsCheckedPointer::operator>=):
      (WTF::BoundsCheckedPointer::operator==):
      (WTF::BoundsCheckedPointer::operator!=):
      (WTF::BoundsCheckedPointer::operator!):
      (WTF::BoundsCheckedPointer::get):
      (WTF::BoundsCheckedPointer::operator*):
      (WTF::BoundsCheckedPointer::operator[]):
      (WTF::BoundsCheckedPointer::strcat):
      (WTF::BoundsCheckedPointer::validate):
      * wtf/BumpPointerAllocator.h: Renamed from Source/JavaScriptCore/wtf/BumpPointerAllocator.h.
      (WTF):
      (BumpPointerPool):
      (WTF::BumpPointerPool::ensureCapacity):
      (WTF::BumpPointerPool::alloc):
      (WTF::BumpPointerPool::dealloc):
      (WTF::BumpPointerPool::operator new):
      (WTF::BumpPointerPool::BumpPointerPool):
      (WTF::BumpPointerPool::create):
      (WTF::BumpPointerPool::shrink):
      (WTF::BumpPointerPool::destroy):
      (WTF::BumpPointerPool::ensureCapacityCrossPool):
      (WTF::BumpPointerPool::deallocCrossPool):
      (BumpPointerAllocator):
      (WTF::BumpPointerAllocator::BumpPointerAllocator):
      (WTF::BumpPointerAllocator::~BumpPointerAllocator):
      (WTF::BumpPointerAllocator::startAllocator):
      (WTF::BumpPointerAllocator::stopAllocator):
      * wtf/ByteArray.cpp: Renamed from Source/JavaScriptCore/wtf/ByteArray.cpp.
      (WTF):
      (WTF::ByteArray::create):
      * wtf/ByteArray.h: Renamed from Source/JavaScriptCore/wtf/ByteArray.h.
      (ByteArray):
      (WTF::ByteArray::length):
      (WTF::ByteArray::set):
      (WTF::ByteArray::get):
      (WTF::ByteArray::data):
      (WTF::ByteArray::clear):
      (WTF::ByteArray::deref):
      (WTF::ByteArray::offsetOfSize):
      (WTF::ByteArray::offsetOfData):
      (WTF::ByteArray::ByteArray):
      * wtf/CMakeLists.txt: Renamed from Source/JavaScriptCore/wtf/CMakeLists.txt.
      * wtf/CONTRIBUTORS.pthreads-win32: Renamed from Source/JavaScriptCore/wtf/CONTRIBUTORS.pthreads-win32.
      * wtf/CheckedArithmetic.h: Renamed from Source/JavaScriptCore/wtf/CheckedArithmetic.h.
      (WTF):
      (CrashOnOverflow):
      (WTF::CrashOnOverflow::overflowed):
      (WTF::CrashOnOverflow::clearOverflow):
      (WTF::CrashOnOverflow::hasOverflowed):
      (RecordOverflow):
      (WTF::RecordOverflow::RecordOverflow):
      (WTF::RecordOverflow::overflowed):
      (WTF::RecordOverflow::clearOverflow):
      (WTF::RecordOverflow::hasOverflowed):
      (WTF::isInBounds):
      (RemoveChecked):
      (WTF::safeAdd):
      (WTF::safeSub):
      (WTF::safeMultiply):
      (WTF::safeEquals):
      (WTF::workAroundClangBug):
      (Checked):
      (WTF::Checked::Checked):
      (WTF::Checked::operator=):
      (WTF::Checked::operator++):
      (WTF::Checked::operator--):
      (WTF::Checked::operator!):
      (WTF::Checked::operator UnspecifiedBoolType*):
      (WTF::Checked::unsafeGet):
      (WTF::Checked::operator+=):
      (WTF::Checked::operator-=):
      (WTF::Checked::operator*=):
      (WTF::Checked::operator==):
      (WTF::Checked::operator!=):
      (WTF::operator+):
      (WTF::operator-):
      (WTF::operator*):
      * wtf/CheckedBoolean.h: Renamed from Source/JavaScriptCore/wtf/CheckedBoolean.h.
      (CheckedBoolean):
      (CheckedBoolean::CheckedBoolean):
      (CheckedBoolean::~CheckedBoolean):
      (CheckedBoolean::operator bool):
      * wtf/Compiler.h: Renamed from Source/JavaScriptCore/wtf/Compiler.h.
      * wtf/Complex.h: Renamed from Source/JavaScriptCore/wtf/Complex.h.
      (WTF):
      (WTF::complexFromMagnitudePhase):
      * wtf/CryptographicallyRandomNumber.cpp: Renamed from Source/JavaScriptCore/wtf/CryptographicallyRandomNumber.cpp.
      (WTF::cryptographicallyRandomNumber):
      (WTF):
      (WTF::cryptographicallyRandomValues):
      * wtf/CryptographicallyRandomNumber.h: Renamed from Source/JavaScriptCore/wtf/CryptographicallyRandomNumber.h.
      (WTF):
      * wtf/CurrentTime.cpp: Renamed from Source/JavaScriptCore/wtf/CurrentTime.cpp.
      (WTF):
      (WTF::highResUpTime):
      (WTF::lowResUTCTime):
      (WTF::qpcAvailable):
      (WTF::currentTime):
      (WTF::currentSystemTime):
      (WTF::monotonicallyIncreasingTime):
      * wtf/CurrentTime.h: Renamed from Source/JavaScriptCore/wtf/CurrentTime.h.
      (WTF):
      (WTF::currentTimeMS):
      (WTF::getLocalTime):
      * wtf/DataLog.cpp: Renamed from Source/JavaScriptCore/wtf/DataLog.cpp.
      (WTF):
      (WTF::initializeLogFileOnce):
      (WTF::initializeLogFile):
      (WTF::dataFile):
      (WTF::dataLogV):
      (WTF::dataLog):
      * wtf/DataLog.h: Renamed from Source/JavaScriptCore/wtf/DataLog.h.
      (WTF):
      * wtf/DateMath.cpp: Renamed from Source/JavaScriptCore/wtf/DateMath.cpp.
      (WTF):
      (WTF::isLeapYear):
      (WTF::daysInYear):
      (WTF::daysFrom1970ToYear):
      (WTF::msToDays):
      (WTF::twoDigitStringFromNumber):
      (WTF::msToYear):
      (WTF::dayInYear):
      (WTF::msToMilliseconds):
      (WTF::msToMinutes):
      (WTF::msToHours):
      (WTF::monthFromDayInYear):
      (WTF::checkMonth):
      (WTF::dayInMonthFromDayInYear):
      (WTF::monthToDayInYear):
      (WTF::dateToDaysFrom1970):
      (WTF::maximumYearForDST):
      (WTF::minimumYearForDST):
      (WTF::equivalentYearForDST):
      (WTF::calculateUTCOffset):
      (WTF::calculateDSTOffsetSimple):
      (WTF::calculateDSTOffset):
      (WTF::initializeDates):
      (WTF::ymdhmsToSeconds):
      (KnownZone):
      (WTF::skipSpacesAndComments):
      (WTF::findMonth):
      (WTF::parseLong):
      (WTF::parseES5DatePortion):
      (WTF::parseES5TimePortion):
      (WTF::parseES5DateFromNullTerminatedCharacters):
      (WTF::parseDateFromNullTerminatedCharacters):
      (WTF::timeClip):
      (WTF::makeRFC2822DateString):
      * wtf/DateMath.h: Renamed from Source/JavaScriptCore/wtf/DateMath.h.
      (WTF):
      (WTF::jsCurrentTime):
      * wtf/DecimalNumber.cpp: Renamed from Source/JavaScriptCore/wtf/DecimalNumber.cpp.
      (WTF):
      (WTF::DecimalNumber::bufferLengthForStringDecimal):
      (WTF::DecimalNumber::bufferLengthForStringExponential):
      (WTF::DecimalNumber::toStringDecimal):
      (WTF::DecimalNumber::toStringExponential):
      * wtf/DecimalNumber.h: Renamed from Source/JavaScriptCore/wtf/DecimalNumber.h.
      (WTF):
      (DecimalNumber):
      (WTF::DecimalNumber::DecimalNumber):
      (WTF::DecimalNumber::sign):
      (WTF::DecimalNumber::exponent):
      (WTF::DecimalNumber::significand):
      (WTF::DecimalNumber::precision):
      * wtf/Decoder.h: Renamed from Source/JavaScriptCore/wtf/Decoder.h.
      (WTF):
      (Decoder):
      (WTF::Decoder::Decoder):
      (WTF::Decoder::~Decoder):
      * wtf/Deque.h: Renamed from Source/JavaScriptCore/wtf/Deque.h.
      (WTF):
      (Deque):
      (WTF::Deque::size):
      (WTF::Deque::isEmpty):
      (WTF::Deque::begin):
      (WTF::Deque::end):
      (WTF::Deque::rbegin):
      (WTF::Deque::rend):
      (WTF::Deque::first):
      (WTF::Deque::last):
      (DequeIteratorBase):
      (WTF::DequeIteratorBase::assign):
      (DequeIterator):
      (WTF::DequeIterator::DequeIterator):
      (WTF::DequeIterator::operator=):
      (WTF::DequeIterator::operator*):
      (WTF::DequeIterator::operator->):
      (WTF::DequeIterator::operator==):
      (WTF::DequeIterator::operator!=):
      (WTF::DequeIterator::operator++):
      (WTF::DequeIterator::operator--):
      (DequeConstIterator):
      (WTF::DequeConstIterator::DequeConstIterator):
      (WTF::DequeConstIterator::operator=):
      (WTF::DequeConstIterator::operator*):
      (WTF::DequeConstIterator::operator->):
      (WTF::DequeConstIterator::operator==):
      (WTF::DequeConstIterator::operator!=):
      (WTF::DequeConstIterator::operator++):
      (WTF::DequeConstIterator::operator--):
      (DequeReverseIterator):
      (WTF::DequeReverseIterator::DequeReverseIterator):
      (WTF::DequeReverseIterator::operator=):
      (WTF::DequeReverseIterator::operator*):
      (WTF::DequeReverseIterator::operator->):
      (WTF::DequeReverseIterator::operator==):
      (WTF::DequeReverseIterator::operator!=):
      (WTF::DequeReverseIterator::operator++):
      (WTF::DequeReverseIterator::operator--):
      (DequeConstReverseIterator):
      (WTF::DequeConstReverseIterator::DequeConstReverseIterator):
      (WTF::DequeConstReverseIterator::operator=):
      (WTF::DequeConstReverseIterator::operator*):
      (WTF::DequeConstReverseIterator::operator->):
      (WTF::DequeConstReverseIterator::operator==):
      (WTF::DequeConstReverseIterator::operator!=):
      (WTF::DequeConstReverseIterator::operator++):
      (WTF::DequeConstReverseIterator::operator--):
      (WTF::::checkValidity):
      (WTF::::checkIndexValidity):
      (WTF::::invalidateIterators):
      (WTF::::Deque):
      (WTF::deleteAllValues):
      (WTF::=):
      (WTF::::destroyAll):
      (WTF::::~Deque):
      (WTF::::swap):
      (WTF::::clear):
      (WTF::::findIf):
      (WTF::::expandCapacityIfNeeded):
      (WTF::::expandCapacity):
      (WTF::::takeFirst):
      (WTF::::append):
      (WTF::::prepend):
      (WTF::::removeFirst):
      (WTF::::remove):
      (WTF::::addToIteratorsList):
      (WTF::::removeFromIteratorsList):
      (WTF::::DequeIteratorBase):
      (WTF::::~DequeIteratorBase):
      (WTF::::isEqual):
      (WTF::::increment):
      (WTF::::decrement):
      (WTF::::after):
      (WTF::::before):
      * wtf/DisallowCType.h: Renamed from Source/JavaScriptCore/wtf/DisallowCType.h.
      * wtf/DoublyLinkedList.h: Renamed from Source/JavaScriptCore/wtf/DoublyLinkedList.h.
      (WTF):
      (DoublyLinkedListNode):
      (WTF::::DoublyLinkedListNode):
      (WTF::::setPrev):
      (WTF::::setNext):
      (WTF::::prev):
      (WTF::::next):
      (DoublyLinkedList):
      (WTF::::DoublyLinkedList):
      (WTF::::isEmpty):
      (WTF::::size):
      (WTF::::clear):
      (WTF::::head):
      (WTF::::tail):
      (WTF::::push):
      (WTF::::append):
      (WTF::::remove):
      (WTF::::removeHead):
      * wtf/DynamicAnnotations.cpp: Renamed from Source/JavaScriptCore/wtf/DynamicAnnotations.cpp.
      (WTFAnnotateBenignRaceSized):
      (WTFAnnotateHappensBefore):
      (WTFAnnotateHappensAfter):
      * wtf/DynamicAnnotations.h: Renamed from Source/JavaScriptCore/wtf/DynamicAnnotations.h.
      * wtf/Encoder.h: Renamed from Source/JavaScriptCore/wtf/Encoder.h.
      (WTF):
      (Encoder):
      (WTF::Encoder::Encoder):
      (WTF::Encoder::~Encoder):
      * wtf/ExportMacros.h: Renamed from Source/JavaScriptCore/wtf/ExportMacros.h.
      * wtf/FastAllocBase.h: Renamed from Source/JavaScriptCore/wtf/FastAllocBase.h.
      (WTF):
      (WTF::fastNew):
      (Internal):
      (WTF::Internal::NewArrayImpl::fastNewArray):
      (WTF::fastNewArray):
      (WTF::fastDelete):
      (WTF::fastDeleteSkippingDestructor):
      (WTF::Internal::DeleteArrayImpl::fastDeleteArray):
      (WTF::fastDeleteArray):
      (WTF::fastNonNullDelete):
      (WTF::Internal::NonNullDeleteArrayImpl::fastNonNullDeleteArray):
      (WTF::fastNonNullDeleteArray):
      * wtf/FastMalloc.cpp: Renamed from Source/JavaScriptCore/wtf/FastMalloc.cpp.
      (WTF):
      (WTF::isForbidden):
      (WTF::fastMallocForbid):
      (WTF::fastMallocAllow):
      (WTF::initializeIsForbiddenKey):
      (Internal):
      (WTF::Internal::fastMallocMatchFailed):
      (WTF::fastZeroedMalloc):
      (WTF::fastStrDup):
      (WTF::tryFastZeroedMalloc):
      (WTF::tryFastMalloc):
      (WTF::fastMalloc):
      (WTF::tryFastCalloc):
      (WTF::fastCalloc):
      (WTF::fastFree):
      (WTF::tryFastRealloc):
      (WTF::fastRealloc):
      (WTF::releaseFastMallocFreeMemory):
      (WTF::fastMallocStatistics):
      (WTF::fastMallocSize):
      (FastMallocZone):
      (WTF::FastMallocZone::goodSize):
      (WTF::FastMallocZone::check):
      (WTF::FastMallocZone::print):
      (WTF::FastMallocZone::log):
      (WTF::FastMallocZone::forceLock):
      (WTF::FastMallocZone::forceUnlock):
      (WTF::FastMallocZone::statistics):
      (WTF::FastMallocZone::zoneValloc):
      (WTF::FastMallocZone::zoneDestroy):
      (WTF::KernelSupportsTLS):
      (WTF::CheckIfKernelSupportsTLS):
      (WTF::ClassIndex):
      (TCEntry):
      (WTF::LgFloor):
      (WTF::SLL_Next):
      (WTF::SLL_SetNext):
      (WTF::SLL_Push):
      (WTF::SLL_Pop):
      (WTF::SLL_PopRange):
      (WTF::SLL_PushRange):
      (WTF::SLL_Size):
      (WTF::SizeClass):
      (WTF::ByteSizeForClass):
      (WTF::NumMoveSize):
      (WTF::InitSizeClasses):
      (WTF::MetaDataAlloc):
      (PageHeapAllocator):
      (WTF::PageHeapAllocator::Init):
      (WTF::PageHeapAllocator::New):
      (WTF::PageHeapAllocator::Delete):
      (WTF::PageHeapAllocator::inuse):
      (WTF::PageHeapAllocator::recordAdministrativeRegions):
      (WTF::pages):
      (WTF::AllocationSize):
      (Span):
      (WTF::Event):
      (WTF::NewSpan):
      (WTF::DeleteSpan):
      (WTF::DLL_Init):
      (WTF::DLL_Remove):
      (WTF::DLL_IsEmpty):
      (WTF::DLL_Length):
      (WTF::DLL_Print):
      (WTF::DLL_Prepend):
      (StackTrace):
      (MapSelector):
      (TCMalloc_PageHeap):
      (WTF::TCMalloc_PageHeap::GetDescriptor):
      (WTF::TCMalloc_PageHeap::GetDescriptorEnsureSafe):
      (WTF::TCMalloc_PageHeap::SystemBytes):
      (WTF::TCMalloc_PageHeap::FreeBytes):
      (WTF::TCMalloc_PageHeap::GetSizeClassIfCached):
      (WTF::TCMalloc_PageHeap::CacheSizeClass):
      (SpanList):
      (WTF::TCMalloc_PageHeap::RecordSpan):
      (WTF::TCMalloc_PageHeap::init):
      (WTF::TCMalloc_PageHeap::initializeScavenger):
      (WTF::TCMalloc_PageHeap::isScavengerSuspended):
      (WTF::TCMalloc_PageHeap::scheduleScavenger):
      (WTF::TCMalloc_PageHeap::rescheduleScavenger):
      (WTF::TCMalloc_PageHeap::suspendScavenger):
      (WTF::TCMalloc_PageHeap::scavengerTimerFired):
      (WTF::TCMalloc_PageHeap::runScavengerThread):
      (WTF::TCMalloc_PageHeap::signalScavenger):
      (WTF::TCMalloc_PageHeap::scavenge):
      (WTF::TCMalloc_PageHeap::shouldScavenge):
      (WTF::TCMalloc_PageHeap::New):
      (WTF::TCMalloc_PageHeap::AllocLarge):
      (WTF::TCMalloc_PageHeap::Split):
      (WTF::TCMalloc_PageHeap::Carve):
      (WTF::mergeDecommittedStates):
      (WTF::TCMalloc_PageHeap::Delete):
      (WTF::TCMalloc_PageHeap::IncrementalScavenge):
      (WTF::TCMalloc_PageHeap::RegisterSizeClass):
      (WTF::TCMalloc_PageHeap::ReturnedBytes):
      (WTF::PagesToMB):
      (WTF::TCMalloc_PageHeap::Dump):
      (WTF::TCMalloc_PageHeap::GrowHeap):
      (WTF::TCMalloc_PageHeap::Check):
      (WTF::TCMalloc_PageHeap::CheckList):
      (WTF::TCMalloc_PageHeap::ReleaseFreeList):
      (WTF::TCMalloc_PageHeap::ReleaseFreePages):
      (TCMalloc_ThreadCache_FreeList):
      (WTF::TCMalloc_ThreadCache_FreeList::Init):
      (WTF::TCMalloc_ThreadCache_FreeList::length):
      (WTF::TCMalloc_ThreadCache_FreeList::empty):
      (WTF::TCMalloc_ThreadCache_FreeList::lowwatermark):
      (WTF::TCMalloc_ThreadCache_FreeList::clear_lowwatermark):
      (WTF::TCMalloc_ThreadCache_FreeList::Push):
      (WTF::TCMalloc_ThreadCache_FreeList::PushRange):
      (WTF::TCMalloc_ThreadCache_FreeList::PopRange):
      (WTF::TCMalloc_ThreadCache_FreeList::Pop):
      (WTF::TCMalloc_ThreadCache_FreeList::enumerateFreeObjects):
      (TCMalloc_ThreadCache):
      (WTF::TCMalloc_ThreadCache::freelist_length):
      (WTF::TCMalloc_ThreadCache::Size):
      (WTF::TCMalloc_ThreadCache::enumerateFreeObjects):
      (TCMalloc_Central_FreeList):
      (WTF::TCMalloc_Central_FreeList::length):
      (WTF::TCMalloc_Central_FreeList::tc_length):
      (WTF::TCMalloc_Central_FreeList::enumerateFreeObjects):
      (TCMalloc_Central_FreeListPadded):
      (WTF::getPageHeap):
      (WTF::TCMalloc_PageHeap::periodicScavenge):
      (WTF::TCMalloc_PageHeap::scavengerThread):
      (WTF::setThreadHeap):
      (WTF::TCMalloc_Central_FreeList::Init):
      (WTF::TCMalloc_Central_FreeList::ReleaseListToSpans):
      (WTF::TCMalloc_Central_FreeList::ReleaseToSpans):
      (WTF::TCMalloc_Central_FreeList::EvictRandomSizeClass):
      (WTF::TCMalloc_Central_FreeList::MakeCacheSpace):
      (WTF::TCMalloc_Central_FreeList::ShrinkCache):
      (WTF::TCMalloc_Central_FreeList::InsertRange):
      (WTF::TCMalloc_Central_FreeList::RemoveRange):
      (WTF::TCMalloc_Central_FreeList::FetchFromSpansSafe):
      (WTF::TCMalloc_Central_FreeList::FetchFromSpans):
      (WTF::TCMalloc_Central_FreeList::Populate):
      (WTF::TCMalloc_ThreadCache::SampleAllocation):
      (WTF::TCMalloc_ThreadCache::Init):
      (WTF::TCMalloc_ThreadCache::Cleanup):
      (WTF::TCMalloc_ThreadCache::Allocate):
      (WTF::TCMalloc_ThreadCache::Deallocate):
      (WTF::TCMalloc_ThreadCache::FetchFromCentralCache):
      (WTF::TCMalloc_ThreadCache::ReleaseToCentralCache):
      (WTF::TCMalloc_ThreadCache::Scavenge):
      (WTF::TCMalloc_ThreadCache::PickNextSample):
      (WTF::TCMalloc_ThreadCache::InitModule):
      (WTF::TCMalloc_ThreadCache::NewHeap):
      (WTF::TCMalloc_ThreadCache::GetThreadHeap):
      (WTF::TCMalloc_ThreadCache::GetCache):
      (WTF::TCMalloc_ThreadCache::GetCacheIfPresent):
      (WTF::TCMalloc_ThreadCache::InitTSD):
      (WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary):
      * wtf/FastMalloc.h: Renamed from Source/JavaScriptCore/wtf/FastMalloc.h.
      (WTF):
      (WTF::TryMallocReturnValue::TryMallocReturnValue):
      (WTF::TryMallocReturnValue::~TryMallocReturnValue):
      (TryMallocReturnValue):
      (WTF::TryMallocReturnValue::operator PossiblyNull<T>):
      (WTF::TryMallocReturnValue::getValue):
      (FastMallocStatistics):
      (ValidationHeader):
      (Internal):
      (WTF::Internal::fastMallocValidationHeader):
      (WTF::Internal::fastMallocValidationSuffix):
      (WTF::Internal::fastMallocMatchValidationType):
      (WTF::Internal::setFastMallocMatchValidationType):
      (WTF::fastMallocMatchValidateMalloc):
      (WTF::fastMallocMatchValidateFree):
      (WTF::fastMallocValidate):
      (throw):
      * wtf/FixedArray.h: Renamed from Source/JavaScriptCore/wtf/FixedArray.h.
      (WTF):
      (FixedArray):
      (WTF::FixedArray::operator[]):
      (WTF::FixedArray::data):
      (WTF::FixedArray::size):
      * wtf/Float32Array.h: Renamed from Source/JavaScriptCore/wtf/Float32Array.h.
      (WTF):
      (Float32Array):
      (WTF::Float32Array::set):
      (WTF::Float32Array::item):
      (WTF::Float32Array::isFloatArray):
      (WTF::Float32Array::create):
      (WTF::Float32Array::Float32Array):
      (WTF::Float32Array::subarray):
      * wtf/Float64Array.h: Renamed from Source/JavaScriptCore/wtf/Float64Array.h.
      (WTF):
      (Float64Array):
      (WTF::Float64Array::set):
      (WTF::Float64Array::item):
      (WTF::Float64Array::isDoubleArray):
      (WTF::Float64Array::create):
      (WTF::Float64Array::Float64Array):
      (WTF::Float64Array::subarray):
      * wtf/Forward.h: Renamed from Source/JavaScriptCore/wtf/Forward.h.
      (WTF):
      * wtf/Functional.h: Renamed from Source/JavaScriptCore/wtf/Functional.h.
      (WTF):
      (HasRefAndDeref):
      (NoType):
      (BaseMixin):
      (WTF::R):
      (WTF::C::):
      (WTF::RefAndDeref::ref):
      (WTF::RefAndDeref::deref):
      (ParamStorageTraits):
      (WTF::ParamStorageTraits::wrap):
      (WTF::ParamStorageTraits::unwrap):
      (FunctionImplBase):
      (WTF::FunctionImplBase::~FunctionImplBase):
      (FunctionBase):
      (WTF::FunctionBase::isNull):
      (WTF::FunctionBase::FunctionBase):
      (WTF::FunctionBase::impl):
      (WTF::bind):
      * wtf/GetPtr.h: Renamed from Source/JavaScriptCore/wtf/GetPtr.h.
      (WTF):
      (WTF::getPtr):
      * wtf/HashCountedSet.h: Renamed from Source/JavaScriptCore/wtf/HashCountedSet.h.
      (WTF):
      (HashCountedSet):
      (WTF::HashCountedSet::HashCountedSet):
      (WTF::::size):
      (WTF::::capacity):
      (WTF::::isEmpty):
      (WTF::::begin):
      (WTF::::end):
      (WTF::::find):
      (WTF::::contains):
      (WTF::::count):
      (WTF::::add):
      (WTF::::remove):
      (WTF::::removeAll):
      (WTF::::clear):
      (WTF::copyToVector):
      * wtf/HashFunctions.h: Renamed from Source/JavaScriptCore/wtf/HashFunctions.h.
      (WTF):
      (WTF::intHash):
      (WTF::IntHash::hash):
      (WTF::IntHash::equal):
      (IntHash):
      (WTF::FloatHash::hash):
      (WTF::FloatHash::equal):
      (FloatHash):
      (WTF::PtrHash::hash):
      (WTF::PtrHash::equal):
      (PtrHash):
      (WTF::PairHash::hash):
      (WTF::PairHash::equal):
      (PairHash):
      * wtf/HashIterators.h: Renamed from Source/JavaScriptCore/wtf/HashIterators.h.
      (WTF):
      (HashTableConstKeysIterator):
      (WTF::HashTableConstKeysIterator::HashTableConstKeysIterator):
      (WTF::HashTableConstKeysIterator::get):
      (WTF::HashTableConstKeysIterator::operator*):
      (WTF::HashTableConstKeysIterator::operator->):
      (WTF::HashTableConstKeysIterator::operator++):
      (HashTableConstValuesIterator):
      (WTF::HashTableConstValuesIterator::HashTableConstValuesIterator):
      (WTF::HashTableConstValuesIterator::get):
      (WTF::HashTableConstValuesIterator::operator*):
      (WTF::HashTableConstValuesIterator::operator->):
      (WTF::HashTableConstValuesIterator::operator++):
      (HashTableKeysIterator):
      (WTF::HashTableKeysIterator::HashTableKeysIterator):
      (WTF::HashTableKeysIterator::get):
      (WTF::HashTableKeysIterator::operator*):
      (WTF::HashTableKeysIterator::operator->):
      (WTF::HashTableKeysIterator::operator++):
      (WTF::HashTableKeysIterator::operator HashTableConstKeysIterator<HashTableType, KeyType, MappedType>):
      (HashTableValuesIterator):
      (WTF::HashTableValuesIterator::HashTableValuesIterator):
      (WTF::HashTableValuesIterator::get):
      (WTF::HashTableValuesIterator::operator*):
      (WTF::HashTableValuesIterator::operator->):
      (WTF::HashTableValuesIterator::operator++):
      (WTF::HashTableValuesIterator::operator HashTableConstValuesIterator<HashTableType, KeyType, MappedType>):
      (WTF::operator==):
      (WTF::operator!=):
      * wtf/HashMap.h: Renamed from Source/JavaScriptCore/wtf/HashMap.h.
      (WTF):
      (ReferenceTypeMaker):
      (HashMap):
      (WTF::HashMap::keys):
      (WTF::HashMap::values):
      (HashMapKeysProxy):
      (WTF::HashMap::HashMapKeysProxy::begin):
      (WTF::HashMap::HashMapKeysProxy::end):
      (HashMapValuesProxy):
      (WTF::HashMap::HashMapValuesProxy::begin):
      (WTF::HashMap::HashMapValuesProxy::end):
      (WTF::PairFirstExtractor::extract):
      (WTF::HashMapTranslator::hash):
      (WTF::HashMapTranslator::equal):
      (WTF::HashMapTranslator::translate):
      (WTF::HashMapTranslatorAdapter::hash):
      (WTF::HashMapTranslatorAdapter::equal):
      (WTF::HashMapTranslatorAdapter::translate):
      (WTF::::swap):
      (WTF::::size):
      (WTF::::capacity):
      (WTF::::isEmpty):
      (WTF::::begin):
      (WTF::::end):
      (WTF::::find):
      (WTF::::contains):
      (WTF::::inlineAdd):
      (WTF::::set):
      (WTF::::add):
      (WTF::::get):
      (WTF::::remove):
      (WTF::::clear):
      (WTF::::take):
      (WTF::::checkConsistency):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::deleteAllPairSeconds):
      (WTF::deleteAllValues):
      (WTF::deleteAllPairFirsts):
      (WTF::deleteAllKeys):
      (WTF::copyKeysToVector):
      (WTF::copyValuesToVector):
      * wtf/HashSet.h: Renamed from Source/JavaScriptCore/wtf/HashSet.h.
      (WTF):
      (HashSet):
      (WTF::IdentityExtractor::extract):
      (WTF::HashSetTranslatorAdapter::hash):
      (WTF::HashSetTranslatorAdapter::equal):
      (WTF::HashSetTranslatorAdapter::translate):
      (WTF::::swap):
      (WTF::::size):
      (WTF::::capacity):
      (WTF::::isEmpty):
      (WTF::::begin):
      (WTF::::end):
      (WTF::::find):
      (WTF::::contains):
      (WTF::::add):
      (WTF::::remove):
      (WTF::::clear):
      (WTF::deleteAllValues):
      (WTF::fastDeleteAllValues):
      (WTF::copyToVector):
      * wtf/HashTable.cpp: Renamed from Source/JavaScriptCore/wtf/HashTable.cpp.
      (WTF):
      (WTF::hashTableStatsMutex):
      (WTF::HashTableStats::~HashTableStats):
      (WTF::HashTableStats::recordCollisionAtCount):
      * wtf/HashTable.h: Renamed from Source/JavaScriptCore/wtf/HashTable.h.
      (WTF):
      (HashTableStats):
      (WTF::addIterator):
      (WTF::removeIterator):
      (HashTableConstIterator):
      (WTF::HashTableConstIterator::skipEmptyBuckets):
      (WTF::HashTableConstIterator::HashTableConstIterator):
      (WTF::HashTableConstIterator::~HashTableConstIterator):
      (WTF::HashTableConstIterator::operator=):
      (WTF::HashTableConstIterator::get):
      (WTF::HashTableConstIterator::operator*):
      (WTF::HashTableConstIterator::operator->):
      (WTF::HashTableConstIterator::operator++):
      (WTF::HashTableConstIterator::operator==):
      (WTF::HashTableConstIterator::operator!=):
      (WTF::HashTableConstIterator::checkValidity):
      (HashTableIterator):
      (WTF::HashTableIterator::HashTableIterator):
      (WTF::HashTableIterator::get):
      (WTF::HashTableIterator::operator*):
      (WTF::HashTableIterator::operator->):
      (WTF::HashTableIterator::operator++):
      (WTF::HashTableIterator::operator==):
      (WTF::HashTableIterator::operator!=):
      (WTF::HashTableIterator::operator const_iterator):
      (WTF::hashTableSwap):
      (IdentityHashTranslator):
      (WTF::IdentityHashTranslator::hash):
      (WTF::IdentityHashTranslator::equal):
      (WTF::IdentityHashTranslator::translate):
      (HashTable):
      (WTF::HashTable::~HashTable):
      (WTF::HashTable::begin):
      (WTF::HashTable::end):
      (WTF::HashTable::size):
      (WTF::HashTable::capacity):
      (WTF::HashTable::isEmpty):
      (WTF::HashTable::add):
      (WTF::HashTable::find):
      (WTF::HashTable::contains):
      (WTF::HashTable::isEmptyBucket):
      (WTF::HashTable::isDeletedBucket):
      (WTF::HashTable::isEmptyOrDeletedBucket):
      (WTF::HashTable::lookup):
      (WTF::HashTable::checkTableConsistency):
      (WTF::HashTable::internalCheckTableConsistency):
      (WTF::HashTable::internalCheckTableConsistencyExceptSize):
      (WTF::HashTable::lookupForWriting):
      (WTF::HashTable::shouldExpand):
      (WTF::HashTable::mustRehashInPlace):
      (WTF::HashTable::shouldShrink):
      (WTF::HashTable::shrink):
      (WTF::HashTable::deleteBucket):
      (WTF::HashTable::makeLookupResult):
      (WTF::HashTable::makeIterator):
      (WTF::HashTable::makeConstIterator):
      (WTF::HashTable::makeKnownGoodIterator):
      (WTF::HashTable::makeKnownGoodConstIterator):
      (WTF::HashTable::checkTableConsistencyExceptSize):
      (WTF::HashTable::invalidateIterators):
      (WTF::::HashTable):
      (WTF::doubleHash):
      (WTF::::checkKey):
      (WTF::::lookup):
      (WTF::::lookupForWriting):
      (WTF::::fullLookupForWriting):
      (WTF::::initializeBucket):
      (WTF::::add):
      (WTF::::addPassingHashCode):
      (WTF::::reinsert):
      (WTF::::find):
      (WTF::::contains):
      (WTF::::removeAndInvalidateWithoutEntryConsistencyCheck):
      (WTF::::removeAndInvalidate):
      (WTF::::remove):
      (WTF::::removeWithoutEntryConsistencyCheck):
      (WTF::::allocateTable):
      (WTF::::deallocateTable):
      (WTF::::expand):
      (WTF::::rehash):
      (WTF::::clear):
      (WTF::::swap):
      (WTF::=):
      (WTF::::checkTableConsistency):
      (WTF::::checkTableConsistencyExceptSize):
      (WTF::::invalidateIterators):
      (WTF::HashTableConstIteratorAdapter::HashTableConstIteratorAdapter):
      (HashTableConstIteratorAdapter):
      (WTF::HashTableConstIteratorAdapter::get):
      (WTF::HashTableConstIteratorAdapter::operator*):
      (WTF::HashTableConstIteratorAdapter::operator->):
      (WTF::HashTableConstIteratorAdapter::operator++):
      (WTF::HashTableIteratorAdapter::HashTableIteratorAdapter):
      (HashTableIteratorAdapter):
      (WTF::HashTableIteratorAdapter::get):
      (WTF::HashTableIteratorAdapter::operator*):
      (WTF::HashTableIteratorAdapter::operator->):
      (WTF::HashTableIteratorAdapter::operator++):
      (WTF::HashTableIteratorAdapter::operator HashTableConstIteratorAdapter<HashTableType, ValueType>):
      (WTF::operator==):
      (WTF::operator!=):
      * wtf/HashTraits.h: Renamed from Source/JavaScriptCore/wtf/HashTraits.h.
      (WTF):
      (GenericHashTraits):
      (WTF::GenericHashTraits::emptyValue):
      (WTF::GenericHashTraits::store):
      (WTF::GenericHashTraits::passOut):
      (WTF::GenericHashTraits::peek):
      (FloatHashTraits):
      (WTF::FloatHashTraits::emptyValue):
      (WTF::FloatHashTraits::constructDeletedValue):
      (WTF::FloatHashTraits::isDeletedValue):
      (UnsignedWithZeroKeyHashTraits):
      (WTF::UnsignedWithZeroKeyHashTraits::emptyValue):
      (WTF::UnsignedWithZeroKeyHashTraits::constructDeletedValue):
      (WTF::UnsignedWithZeroKeyHashTraits::isDeletedValue):
      (SimpleClassHashTraits):
      (WTF::SimpleClassHashTraits::constructDeletedValue):
      (WTF::SimpleClassHashTraits::isDeletedValue):
      (PairHashTraits):
      (WTF::PairHashTraits::emptyValue):
      (WTF::PairHashTraits::constructDeletedValue):
      (WTF::PairHashTraits::isDeletedValue):
      * wtf/HexNumber.h: Renamed from Source/JavaScriptCore/wtf/HexNumber.h.
      (WTF):
      (Internal):
      (WTF::Internal::hexDigitsForMode):
      (WTF::appendByteAsHex):
      (WTF::placeByteAsHexCompressIfPossible):
      (WTF::placeByteAsHex):
      (WTF::appendUnsignedAsHex):
      (WTF::appendUnsignedAsHexFixedSize):
      * wtf/InlineASM.h: Renamed from Source/JavaScriptCore/wtf/InlineASM.h.
      * wtf/Int16Array.h: Renamed from Source/JavaScriptCore/wtf/Int16Array.h.
      (WTF):
      (Int16Array):
      (WTF::Int16Array::set):
      (WTF::Int16Array::isShortArray):
      (WTF::Int16Array::create):
      (WTF::Int16Array::Int16Array):
      (WTF::Int16Array::subarray):
      * wtf/Int32Array.h: Renamed from Source/JavaScriptCore/wtf/Int32Array.h.
      (WTF):
      (Int32Array):
      (WTF::Int32Array::set):
      (WTF::Int32Array::isIntArray):
      (WTF::Int32Array::create):
      (WTF::Int32Array::Int32Array):
      (WTF::Int32Array::subarray):
      * wtf/Int8Array.h: Renamed from Source/JavaScriptCore/wtf/Int8Array.h.
      (WTF):
      (Int8Array):
      (WTF::Int8Array::set):
      (WTF::Int8Array::isByteArray):
      (WTF::Int8Array::create):
      (WTF::Int8Array::Int8Array):
      (WTF::Int8Array::subarray):
      * wtf/IntegralTypedArrayBase.h: Renamed from Source/JavaScriptCore/wtf/IntegralTypedArrayBase.h.
      (WTF):
      (IntegralTypedArrayBase):
      (WTF::IntegralTypedArrayBase::set):
      (WTF::IntegralTypedArrayBase::item):
      (WTF::IntegralTypedArrayBase::IntegralTypedArrayBase):
      * wtf/ListHashSet.h: Renamed from Source/JavaScriptCore/wtf/ListHashSet.h.
      (WTF):
      (ListHashSet):
      (ListHashSetNodeAllocator):
      (WTF::ListHashSetNodeAllocator::ListHashSetNodeAllocator):
      (WTF::ListHashSetNodeAllocator::allocate):
      (WTF::ListHashSetNodeAllocator::deallocate):
      (WTF::ListHashSetNodeAllocator::pool):
      (WTF::ListHashSetNodeAllocator::pastPool):
      (WTF::ListHashSetNodeAllocator::inPool):
      (ListHashSetNode):
      (WTF::ListHashSetNode::ListHashSetNode):
      (WTF::ListHashSetNode::operator new):
      (WTF::ListHashSetNode::destroy):
      (WTF::ListHashSetNodeHashFunctions::hash):
      (WTF::ListHashSetNodeHashFunctions::equal):
      (ListHashSetNodeHashFunctions):
      (ListHashSetIterator):
      (WTF::ListHashSetIterator::ListHashSetIterator):
      (WTF::ListHashSetIterator::get):
      (WTF::ListHashSetIterator::operator*):
      (WTF::ListHashSetIterator::operator->):
      (WTF::ListHashSetIterator::operator++):
      (WTF::ListHashSetIterator::operator--):
      (WTF::ListHashSetIterator::operator==):
      (WTF::ListHashSetIterator::operator!=):
      (WTF::ListHashSetIterator::operator const_iterator):
      (WTF::ListHashSetIterator::node):
      (ListHashSetConstIterator):
      (WTF::ListHashSetConstIterator::ListHashSetConstIterator):
      (WTF::ListHashSetConstIterator::get):
      (WTF::ListHashSetConstIterator::operator*):
      (WTF::ListHashSetConstIterator::operator->):
      (WTF::ListHashSetConstIterator::operator++):
      (WTF::ListHashSetConstIterator::operator--):
      (WTF::ListHashSetConstIterator::operator==):
      (WTF::ListHashSetConstIterator::operator!=):
      (WTF::ListHashSetConstIterator::node):
      (ListHashSetReverseIterator):
      (WTF::ListHashSetReverseIterator::ListHashSetReverseIterator):
      (WTF::ListHashSetReverseIterator::get):
      (WTF::ListHashSetReverseIterator::operator*):
      (WTF::ListHashSetReverseIterator::operator->):
      (WTF::ListHashSetReverseIterator::operator++):
      (WTF::ListHashSetReverseIterator::operator--):
      (WTF::ListHashSetReverseIterator::operator==):
      (WTF::ListHashSetReverseIterator::operator!=):
      (WTF::ListHashSetReverseIterator::operator const_reverse_iterator):
      (WTF::ListHashSetReverseIterator::node):
      (ListHashSetConstReverseIterator):
      (WTF::ListHashSetConstReverseIterator::ListHashSetConstReverseIterator):
      (WTF::ListHashSetConstReverseIterator::get):
      (WTF::ListHashSetConstReverseIterator::operator*):
      (WTF::ListHashSetConstReverseIterator::operator->):
      (WTF::ListHashSetConstReverseIterator::operator++):
      (WTF::ListHashSetConstReverseIterator::operator--):
      (WTF::ListHashSetConstReverseIterator::operator==):
      (WTF::ListHashSetConstReverseIterator::operator!=):
      (WTF::ListHashSetConstReverseIterator::node):
      (WTF::ListHashSetTranslator::hash):
      (WTF::ListHashSetTranslator::equal):
      (WTF::ListHashSetTranslator::translate):
      (WTF::::ListHashSet):
      (WTF::=):
      (WTF::::swap):
      (WTF::::~ListHashSet):
      (WTF::::size):
      (WTF::::capacity):
      (WTF::::isEmpty):
      (WTF::::begin):
      (WTF::::end):
      (WTF::::rbegin):
      (WTF::::rend):
      (WTF::::first):
      (WTF::::last):
      (WTF::::removeLast):
      (WTF::::find):
      (WTF::ListHashSetTranslatorAdapter::hash):
      (WTF::ListHashSetTranslatorAdapter::equal):
      (WTF::::contains):
      (WTF::::add):
      (WTF::::insertBefore):
      (WTF::::remove):
      (WTF::::clear):
      (WTF::::unlinkAndDelete):
      (WTF::::appendNode):
      (WTF::::insertNodeBefore):
      (WTF::::deleteAllNodes):
      (WTF::::makeReverseIterator):
      (WTF::::makeConstReverseIterator):
      (WTF::::makeIterator):
      (WTF::::makeConstIterator):
      (WTF::deleteAllValues):
      * wtf/ListRefPtr.h: Renamed from Source/JavaScriptCore/wtf/ListRefPtr.h.
      (WTF):
      (ListRefPtr):
      (WTF::ListRefPtr::ListRefPtr):
      (WTF::ListRefPtr::~ListRefPtr):
      (WTF::ListRefPtr::operator=):
      (WTF::getPtr):
      * wtf/Locker.h: Renamed from Source/JavaScriptCore/wtf/Locker.h.
      (WTF):
      (Locker):
      (WTF::Locker::Locker):
      (WTF::Locker::~Locker):
      * wtf/MD5.cpp: Renamed from Source/JavaScriptCore/wtf/MD5.cpp.
      (WTF):
      (WTF::testMD5):
      (WTF::expectMD5):
      (WTF::reverseBytes):
      (WTF::MD5Transform):
      (WTF::MD5::MD5):
      (WTF::MD5::addBytes):
      (WTF::MD5::checksum):
      * wtf/MD5.h: Renamed from Source/JavaScriptCore/wtf/MD5.h.
      (WTF):
      (MD5):
      (WTF::MD5::addBytes):
      * wtf/MainThread.cpp: Renamed from Source/JavaScriptCore/wtf/MainThread.cpp.
      (WTF):
      (FunctionWithContext):
      (WTF::FunctionWithContext::FunctionWithContext):
      (WTF::FunctionWithContext::operator == ):
      (FunctionWithContextFinder):
      (WTF::FunctionWithContextFinder::FunctionWithContextFinder):
      (WTF::FunctionWithContextFinder::operator()):
      (WTF::mainThreadFunctionQueueMutex):
      (WTF::functionQueue):
      (WTF::initializeMainThread):
      (WTF::initializeMainThreadOnce):
      (WTF::initializeMainThreadToProcessMainThreadOnce):
      (WTF::initializeMainThreadToProcessMainThread):
      (WTF::dispatchFunctionsFromMainThread):
      (WTF::callOnMainThread):
      (WTF::callOnMainThreadAndWait):
      (WTF::cancelCallOnMainThread):
      (WTF::callFunctionObject):
      (WTF::setMainThreadCallbacksPaused):
      (WTF::isMainThread):
      (WTF::initializeGCThreads):
      (WTF::registerGCThread):
      (WTF::isMainThreadOrGCThread):
      * wtf/MainThread.h: Renamed from Source/JavaScriptCore/wtf/MainThread.h.
      (WTF):
      (WTF::isMainThreadOrGCThread):
      * wtf/MallocZoneSupport.h: Renamed from Source/JavaScriptCore/wtf/MallocZoneSupport.h.
      (WTF):
      (RemoteMemoryReader):
      (WTF::RemoteMemoryReader::RemoteMemoryReader):
      (WTF::RemoteMemoryReader::operator()):
      (WTF::RemoteMemoryReader::nextEntryInLinkedList):
      * wtf/MathExtras.h: Renamed from Source/JavaScriptCore/wtf/MathExtras.h.
      (wtf_ceil):
      (isfinite):
      (isinf):
      (signbit):
      (round):
      (roundf):
      (llround):
      (llroundf):
      (lround):
      (lroundf):
      (trunc):
      (abs):
      (isnan):
      (nextafter):
      (nextafterf):
      (copysign):
      (log2):
      (log2f):
      (wtf_atan2):
      (wtf_fmod):
      (wtf_pow):
      (deg2rad):
      (rad2deg):
      (deg2grad):
      (grad2deg):
      (turn2deg):
      (deg2turn):
      (rad2grad):
      (grad2rad):
      (defaultMinimumForClamp):
      (defaultMaximumForClamp):
      (clampTo):
      (clampToInteger):
      (clampToFloat):
      (clampToPositiveInteger):
      (isWithinIntRange):
      (decomposeDouble):
      (doubleToInteger):
      * wtf/MessageQueue.h: Renamed from Source/JavaScriptCore/wtf/MessageQueue.h.
      (WTF):
      (MessageQueue):
      (WTF::MessageQueue::MessageQueue):
      (WTF::MessageQueue::infiniteTime):
      (WTF::MessageQueue::alwaysTruePredicate):
      (WTF::::~MessageQueue):
      (WTF::::append):
      (WTF::::appendAndCheckEmpty):
      (WTF::::prepend):
      (WTF::::waitForMessage):
      (WTF::::waitForMessageFilteredWithTimeout):
      (WTF::::tryGetMessage):
      (WTF::::tryGetMessageIgnoringKilled):
      (WTF::::removeIf):
      (WTF::::isEmpty):
      (WTF::::kill):
      (WTF::::killed):
      * wtf/MetaAllocator.cpp: Renamed from Source/JavaScriptCore/wtf/MetaAllocator.cpp.
      (WTF):
      (WTF::MetaAllocator::~MetaAllocator):
      (WTF::MetaAllocatorTracker::notify):
      (WTF::MetaAllocatorTracker::release):
      (WTF::MetaAllocator::release):
      (WTF::MetaAllocatorHandle::MetaAllocatorHandle):
      (WTF::MetaAllocatorHandle::~MetaAllocatorHandle):
      (WTF::MetaAllocatorHandle::shrink):
      (WTF::MetaAllocator::MetaAllocator):
      (WTF::MetaAllocator::allocate):
      (WTF::MetaAllocator::currentStatistics):
      (WTF::MetaAllocator::findAndRemoveFreeSpace):
      (WTF::MetaAllocator::addFreeSpaceFromReleasedHandle):
      (WTF::MetaAllocator::addFreshFreeSpace):
      (WTF::MetaAllocator::debugFreeSpaceSize):
      (WTF::MetaAllocator::addFreeSpace):
      (WTF::MetaAllocator::incrementPageOccupancy):
      (WTF::MetaAllocator::decrementPageOccupancy):
      (WTF::MetaAllocator::roundUp):
      (WTF::MetaAllocator::allocFreeSpaceNode):
      (WTF::MetaAllocator::freeFreeSpaceNode):
      (WTF::MetaAllocator::dumpProfile):
      * wtf/MetaAllocator.h: Renamed from Source/JavaScriptCore/wtf/MetaAllocator.h.
      (WTF):
      (MetaAllocatorTracker):
      (WTF::MetaAllocatorTracker::find):
      (MetaAllocator):
      (WTF::MetaAllocator::trackAllocations):
      (WTF::MetaAllocator::bytesAllocated):
      (WTF::MetaAllocator::bytesReserved):
      (WTF::MetaAllocator::bytesCommitted):
      (Statistics):
      (WTF::MetaAllocator::dumpProfile):
      (FreeSpaceNode):
      (WTF::MetaAllocator::FreeSpaceNode::FreeSpaceNode):
      (WTF::MetaAllocator::FreeSpaceNode::key):
      * wtf/MetaAllocatorHandle.h: Renamed from Source/JavaScriptCore/wtf/MetaAllocatorHandle.h.
      (WTF):
      (MetaAllocatorHandle):
      (WTF::MetaAllocatorHandle::start):
      (WTF::MetaAllocatorHandle::end):
      (WTF::MetaAllocatorHandle::sizeInBytes):
      (WTF::MetaAllocatorHandle::isManaged):
      (WTF::MetaAllocatorHandle::allocator):
      (WTF::MetaAllocatorHandle::ownerUID):
      (WTF::MetaAllocatorHandle::key):
      * wtf/NonCopyingSort.h: Renamed from Source/JavaScriptCore/wtf/NonCopyingSort.h.
      (WTF):
      (WTF::siftDown):
      (WTF::heapify):
      (WTF::heapSort):
      (WTF::nonCopyingSort):
      * wtf/Noncopyable.h: Renamed from Source/JavaScriptCore/wtf/Noncopyable.h.
      * wtf/NotFound.h: Renamed from Source/JavaScriptCore/wtf/NotFound.h.
      (WTF):
      * wtf/NullPtr.cpp: Renamed from Source/JavaScriptCore/wtf/NullPtr.cpp.
      * wtf/NullPtr.h: Renamed from Source/JavaScriptCore/wtf/NullPtr.h.
      * wtf/NumberOfCores.cpp: Renamed from Source/JavaScriptCore/wtf/NumberOfCores.cpp.
      (WTF):
      (WTF::numberOfProcessorCores):
      * wtf/NumberOfCores.h: Renamed from Source/JavaScriptCore/wtf/NumberOfCores.h.
      (WTF):
      * wtf/OSAllocator.h: Renamed from Source/JavaScriptCore/wtf/OSAllocator.h.
      (WTF):
      (OSAllocator):
      (WTF::OSAllocator::reserveAndCommit):
      (WTF::OSAllocator::decommitAndRelease):
      (WTF::OSAllocator::reallocateCommitted):
      * wtf/OSAllocatorPosix.cpp: Renamed from Source/JavaScriptCore/wtf/OSAllocatorPosix.cpp.
      (WTF):
      (WTF::OSAllocator::reserveUncommitted):
      (WTF::OSAllocator::reserveAndCommit):
      (WTF::OSAllocator::commit):
      (WTF::OSAllocator::decommit):
      (WTF::OSAllocator::releaseDecommitted):
      * wtf/OSAllocatorWin.cpp: Renamed from Source/JavaScriptCore/wtf/OSAllocatorWin.cpp.
      (WTF):
      (WTF::protection):
      (WTF::OSAllocator::reserveUncommitted):
      (WTF::OSAllocator::reserveAndCommit):
      (WTF::OSAllocator::commit):
      (WTF::OSAllocator::decommit):
      (WTF::OSAllocator::releaseDecommitted):
      * wtf/OSRandomSource.cpp: Renamed from Source/JavaScriptCore/wtf/OSRandomSource.cpp.
      (WTF):
      (WTF::cryptographicallyRandomValuesFromOS):
      * wtf/OSRandomSource.h: Renamed from Source/JavaScriptCore/wtf/OSRandomSource.h.
      (WTF):
      * wtf/OwnArrayPtr.h: Renamed from Source/JavaScriptCore/wtf/OwnArrayPtr.h.
      (WTF):
      (OwnArrayPtr):
      (WTF::OwnArrayPtr::OwnArrayPtr):
      (WTF::OwnArrayPtr::~OwnArrayPtr):
      (WTF::OwnArrayPtr::get):
      (WTF::OwnArrayPtr::operator*):
      (WTF::OwnArrayPtr::operator->):
      (WTF::OwnArrayPtr::operator[]):
      (WTF::OwnArrayPtr::operator!):
      (WTF::OwnArrayPtr::operator UnspecifiedBoolType):
      (WTF::OwnArrayPtr::operator=):
      (WTF::OwnArrayPtr::swap):
      (WTF::::OwnArrayPtr):
      (WTF::::clear):
      (WTF::::release):
      (WTF::::leakPtr):
      (WTF::=):
      (WTF::swap):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::getPtr):
      * wtf/OwnPtr.h: Renamed from Source/JavaScriptCore/wtf/OwnPtr.h.
      (WTF):
      (OwnPtr):
      (WTF::OwnPtr::OwnPtr):
      (WTF::OwnPtr::~OwnPtr):
      (WTF::OwnPtr::get):
      (WTF::OwnPtr::operator*):
      (WTF::OwnPtr::operator->):
      (WTF::OwnPtr::operator!):
      (WTF::OwnPtr::operator UnspecifiedBoolType):
      (WTF::OwnPtr::operator=):
      (WTF::OwnPtr::swap):
      (WTF::OwnPtr::operator==):
      (WTF::OwnPtr::operator!=):
      (WTF::::OwnPtr):
      (WTF::::clear):
      (WTF::::release):
      (WTF::::leakPtr):
      (WTF::=):
      (WTF::swap):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::getPtr):
      * wtf/OwnPtrCommon.h: Renamed from Source/JavaScriptCore/wtf/OwnPtrCommon.h.
      (WTF):
      (WTF::deleteOwnedPtr):
      * wtf/PackedIntVector.h: Renamed from Source/JavaScriptCore/wtf/PackedIntVector.h.
      (WTF):
      (PackedIntVector):
      (WTF::PackedIntVector::PackedIntVector):
      (WTF::PackedIntVector::operator=):
      (WTF::PackedIntVector::size):
      (WTF::PackedIntVector::ensureSize):
      (WTF::PackedIntVector::resize):
      (WTF::PackedIntVector::clearAll):
      (WTF::PackedIntVector::get):
      (WTF::PackedIntVector::set):
      (WTF::PackedIntVector::mask):
      * wtf/PageAllocation.h: Renamed from Source/JavaScriptCore/wtf/PageAllocation.h.
      (WTF):
      (PageAllocation):
      (WTF::PageAllocation::PageAllocation):
      (WTF::PageAllocation::operator bool):
      (WTF::PageAllocation::allocate):
      (WTF::PageAllocation::deallocate):
      * wtf/PageAllocationAligned.cpp: Renamed from Source/JavaScriptCore/wtf/PageAllocationAligned.cpp.
      (WTF):
      (WTF::PageAllocationAligned::allocate):
      (WTF::PageAllocationAligned::deallocate):
      * wtf/PageAllocationAligned.h: Renamed from Source/JavaScriptCore/wtf/PageAllocationAligned.h.
      (WTF):
      (PageAllocationAligned):
      (WTF::PageAllocationAligned::PageAllocationAligned):
      * wtf/PageBlock.cpp: Renamed from Source/JavaScriptCore/wtf/PageBlock.cpp.
      (WTF):
      (WTF::systemPageSize):
      (WTF::pageSize):
      (WTF::pageMask):
      * wtf/PageBlock.h: Renamed from Source/JavaScriptCore/wtf/PageBlock.h.
      (WTF):
      (WTF::isPageAligned):
      (WTF::isPowerOfTwo):
      (PageBlock):
      (WTF::PageBlock::base):
      (WTF::PageBlock::size):
      (WTF::PageBlock::operator bool):
      (WTF::PageBlock::contains):
      (WTF::PageBlock::PageBlock):
      * wtf/PageReservation.h: Renamed from Source/JavaScriptCore/wtf/PageReservation.h.
      (WTF):
      (PageReservation):
      (WTF::PageReservation::PageReservation):
      (WTF::PageReservation::operator bool):
      (WTF::PageReservation::commit):
      (WTF::PageReservation::decommit):
      (WTF::PageReservation::committed):
      (WTF::PageReservation::reserve):
      (WTF::PageReservation::reserveWithGuardPages):
      (WTF::PageReservation::deallocate):
      * wtf/ParallelJobs.h: Renamed from Source/JavaScriptCore/wtf/ParallelJobs.h.
      (WTF):
      (ParallelJobs):
      (WTF::ParallelJobs::ParallelJobs):
      (WTF::ParallelJobs::numberOfJobs):
      (WTF::ParallelJobs::parameter):
      (WTF::ParallelJobs::execute):
      * wtf/ParallelJobsGeneric.cpp: Renamed from Source/JavaScriptCore/wtf/ParallelJobsGeneric.cpp.
      (WTF):
      (WTF::ParallelEnvironment::ParallelEnvironment):
      (WTF::ParallelEnvironment::execute):
      (WTF::ParallelEnvironment::ThreadPrivate::tryLockFor):
      (WTF::ParallelEnvironment::ThreadPrivate::execute):
      (WTF::ParallelEnvironment::ThreadPrivate::waitForFinish):
      (WTF::ParallelEnvironment::ThreadPrivate::workerThread):
      * wtf/ParallelJobsGeneric.h: Renamed from Source/JavaScriptCore/wtf/ParallelJobsGeneric.h.
      (WTF):
      (ParallelEnvironment):
      (WTF::ParallelEnvironment::numberOfJobs):
      (ThreadPrivate):
      (WTF::ParallelEnvironment::ThreadPrivate::ThreadPrivate):
      (WTF::ParallelEnvironment::ThreadPrivate::create):
      * wtf/ParallelJobsLibdispatch.h: Renamed from Source/JavaScriptCore/wtf/ParallelJobsLibdispatch.h.
      (WTF):
      (ParallelEnvironment):
      (WTF::ParallelEnvironment::ParallelEnvironment):
      (WTF::ParallelEnvironment::numberOfJobs):
      (WTF::ParallelEnvironment::execute):
      * wtf/ParallelJobsOpenMP.h: Renamed from Source/JavaScriptCore/wtf/ParallelJobsOpenMP.h.
      (WTF):
      (ParallelEnvironment):
      (WTF::ParallelEnvironment::ParallelEnvironment):
      (WTF::ParallelEnvironment::numberOfJobs):
      (WTF::ParallelEnvironment::execute):
      * wtf/PassOwnArrayPtr.h: Renamed from Source/JavaScriptCore/wtf/PassOwnArrayPtr.h.
      (WTF):
      (PassOwnArrayPtr):
      (WTF::PassOwnArrayPtr::PassOwnArrayPtr):
      (WTF::PassOwnArrayPtr::~PassOwnArrayPtr):
      (WTF::PassOwnArrayPtr::get):
      (WTF::PassOwnArrayPtr::operator*):
      (WTF::PassOwnArrayPtr::operator->):
      (WTF::PassOwnArrayPtr::operator!):
      (WTF::PassOwnArrayPtr::operator UnspecifiedBoolType):
      (WTF::PassOwnArrayPtr::operator=):
      (WTF::::leakPtr):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::adoptArrayPtr):
      (WTF::deleteOwnedArrayPtr):
      (WTF::static_pointer_cast):
      (WTF::const_pointer_cast):
      (WTF::getPtr):
      * wtf/PassOwnPtr.h: Renamed from Source/JavaScriptCore/wtf/PassOwnPtr.h.
      (WTF):
      (PassOwnPtr):
      (WTF::PassOwnPtr::PassOwnPtr):
      (WTF::PassOwnPtr::~PassOwnPtr):
      (WTF::PassOwnPtr::get):
      (WTF::PassOwnPtr::operator*):
      (WTF::PassOwnPtr::operator->):
      (WTF::PassOwnPtr::operator!):
      (WTF::PassOwnPtr::operator UnspecifiedBoolType):
      (WTF::PassOwnPtr::operator=):
      (WTF::PassOwnPtr::operator==):
      (WTF::PassOwnPtr::operator!=):
      (WTF::::leakPtr):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::adoptPtr):
      (WTF::static_pointer_cast):
      (WTF::const_pointer_cast):
      (WTF::getPtr):
      * wtf/PassRefPtr.h: Renamed from Source/JavaScriptCore/wtf/PassRefPtr.h.
      (WTF):
      (WTF::adopted):
      (WTF::refIfNotNull):
      (WTF::derefIfNotNull):
      (PassRefPtr):
      (WTF::PassRefPtr::PassRefPtr):
      (WTF::PassRefPtr::~PassRefPtr):
      (WTF::PassRefPtr::get):
      (WTF::PassRefPtr::operator*):
      (WTF::PassRefPtr::operator->):
      (WTF::PassRefPtr::operator!):
      (WTF::PassRefPtr::operator UnspecifiedBoolType):
      (WTF::PassRefPtr::operator=):
      (NonNullPassRefPtr):
      (WTF::NonNullPassRefPtr::NonNullPassRefPtr):
      (WTF::NonNullPassRefPtr::~NonNullPassRefPtr):
      (WTF::NonNullPassRefPtr::get):
      (WTF::NonNullPassRefPtr::operator*):
      (WTF::NonNullPassRefPtr::operator->):
      (WTF::NonNullPassRefPtr::operator=):
      (WTF::::PassRefPtr):
      (WTF::::leakRef):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::adoptRef):
      (WTF::static_pointer_cast):
      (WTF::const_pointer_cast):
      (WTF::getPtr):
      * wtf/PassTraits.h: Renamed from Source/JavaScriptCore/wtf/PassTraits.h.
      (WTF):
      (PassTraits):
      (WTF::PassTraits::transfer):
      * wtf/PlatformBlackBerry.cmake: Renamed from Source/JavaScriptCore/wtf/PlatformBlackBerry.cmake.
      * wtf/PlatformEfl.cmake: Renamed from Source/JavaScriptCore/wtf/PlatformEfl.cmake.
      * wtf/PlatformWinCE.cmake: Renamed from Source/JavaScriptCore/wtf/PlatformWinCE.cmake.
      * wtf/PossiblyNull.h: Renamed from Source/JavaScriptCore/wtf/PossiblyNull.h.
      (WTF):
      (WTF::PossiblyNull::PossiblyNull):
      (WTF::PossiblyNull::~PossiblyNull):
      (PossiblyNull):
      (WTF::::getValue):
      * wtf/RandomNumber.cpp: Renamed from Source/JavaScriptCore/wtf/RandomNumber.cpp.
      (WTF):
      (WTF::randomNumber):
      * wtf/RandomNumber.h: Renamed from Source/JavaScriptCore/wtf/RandomNumber.h.
      (WTF):
      * wtf/RandomNumberSeed.h: Renamed from Source/JavaScriptCore/wtf/RandomNumberSeed.h.
      (WTF):
      (WTF::initializeRandomNumberGenerator):
      * wtf/RedBlackTree.h: Renamed from Source/JavaScriptCore/wtf/RedBlackTree.h.
      (WTF):
      (RedBlackTree):
      (Node):
      (WTF::RedBlackTree::Node::successor):
      (WTF::RedBlackTree::Node::predecessor):
      (WTF::RedBlackTree::Node::reset):
      (WTF::RedBlackTree::Node::parent):
      (WTF::RedBlackTree::Node::setParent):
      (WTF::RedBlackTree::Node::left):
      (WTF::RedBlackTree::Node::setLeft):
      (WTF::RedBlackTree::Node::right):
      (WTF::RedBlackTree::Node::setRight):
      (WTF::RedBlackTree::Node::color):
      (WTF::RedBlackTree::Node::setColor):
      (WTF::RedBlackTree::RedBlackTree):
      (WTF::RedBlackTree::insert):
      (WTF::RedBlackTree::remove):
      (WTF::RedBlackTree::findExact):
      (WTF::RedBlackTree::findLeastGreaterThanOrEqual):
      (WTF::RedBlackTree::findGreatestLessThanOrEqual):
      (WTF::RedBlackTree::first):
      (WTF::RedBlackTree::last):
      (WTF::RedBlackTree::size):
      (WTF::RedBlackTree::isEmpty):
      (WTF::RedBlackTree::treeMinimum):
      (WTF::RedBlackTree::treeMaximum):
      (WTF::RedBlackTree::treeInsert):
      (WTF::RedBlackTree::leftRotate):
      (WTF::RedBlackTree::rightRotate):
      (WTF::RedBlackTree::removeFixup):
      * wtf/RefCounted.h: Renamed from Source/JavaScriptCore/wtf/RefCounted.h.
      (WTF):
      (RefCountedBase):
      (WTF::RefCountedBase::ref):
      (WTF::RefCountedBase::hasOneRef):
      (WTF::RefCountedBase::refCount):
      (WTF::RefCountedBase::turnOffVerifier):
      (WTF::RefCountedBase::relaxAdoptionRequirement):
      (WTF::RefCountedBase::addressOfCount):
      (WTF::RefCountedBase::RefCountedBase):
      (WTF::RefCountedBase::~RefCountedBase):
      (WTF::RefCountedBase::derefBase):
      (WTF::RefCountedBase::deletionHasBegun):
      (WTF::adopted):
      (RefCounted):
      (WTF::RefCounted::deref):
      (WTF::RefCounted::RefCounted):
      (WTF::RefCounted::~RefCounted):
      (RefCountedCustomAllocated):
      (WTF::RefCountedCustomAllocated::deref):
      (WTF::RefCountedCustomAllocated::~RefCountedCustomAllocated):
      (WTF::RefCountedBase::setMutexForVerifier):
      (WTF::RefCountedBase::setDispatchQueueForVerifier):
      * wtf/RefCountedArray.h: Renamed from Source/JavaScriptCore/wtf/RefCountedArray.h.
      (WTF):
      (RefCountedArray):
      (WTF::RefCountedArray::RefCountedArray):
      (WTF::RefCountedArray::operator=):
      (WTF::RefCountedArray::~RefCountedArray):
      (WTF::RefCountedArray::size):
      (WTF::RefCountedArray::data):
      (WTF::RefCountedArray::begin):
      (WTF::RefCountedArray::end):
      (WTF::RefCountedArray::at):
      (WTF::RefCountedArray::operator[]):
      (Header):
      (WTF::RefCountedArray::Header::size):
      (WTF::RefCountedArray::Header::payload):
      (WTF::RefCountedArray::Header::fromPayload):
      * wtf/RefCountedLeakCounter.cpp: Renamed from Source/JavaScriptCore/wtf/RefCountedLeakCounter.cpp.
      (WTF):
      (WTF::RefCountedLeakCounter::suppressMessages):
      (WTF::RefCountedLeakCounter::cancelMessageSuppression):
      (WTF::RefCountedLeakCounter::RefCountedLeakCounter):
      (WTF::RefCountedLeakCounter::~RefCountedLeakCounter):
      (WTF::RefCountedLeakCounter::increment):
      (WTF::RefCountedLeakCounter::decrement):
      * wtf/RefCountedLeakCounter.h: Renamed from Source/JavaScriptCore/wtf/RefCountedLeakCounter.h.
      (WTF):
      (RefCountedLeakCounter):
      * wtf/RefPtr.h: Renamed from Source/JavaScriptCore/wtf/RefPtr.h.
      (WTF):
      (RefPtr):
      (WTF::RefPtr::RefPtr):
      (WTF::RefPtr::isHashTableDeletedValue):
      (WTF::RefPtr::~RefPtr):
      (WTF::RefPtr::get):
      (WTF::RefPtr::release):
      (WTF::RefPtr::operator*):
      (WTF::RefPtr::operator->):
      (WTF::RefPtr::operator!):
      (WTF::RefPtr::operator UnspecifiedBoolType):
      (WTF::RefPtr::operator=):
      (WTF::RefPtr::hashTableDeletedValue):
      (WTF::::RefPtr):
      (WTF::::clear):
      (WTF::=):
      (WTF::::swap):
      (WTF::swap):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::static_pointer_cast):
      (WTF::const_pointer_cast):
      (WTF::getPtr):
      * wtf/RefPtrHashMap.h: Renamed from Source/JavaScriptCore/wtf/RefPtrHashMap.h.
      (WTF):
      (WTF::::swap):
      (WTF::::size):
      (WTF::::capacity):
      (WTF::::isEmpty):
      (WTF::::begin):
      (WTF::::end):
      (WTF::::find):
      (WTF::::contains):
      (WTF::::inlineAdd):
      (WTF::::set):
      (WTF::::add):
      (WTF::::get):
      (WTF::::inlineGet):
      (WTF::::remove):
      (WTF::::clear):
      (WTF::::take):
      * wtf/RetainPtr.h: Renamed from Source/JavaScriptCore/wtf/RetainPtr.h.
      (WTF):
      (WTF::adoptNSReference):
      (RetainPtr):
      (WTF::RetainPtr::RetainPtr):
      (WTF::RetainPtr::isHashTableDeletedValue):
      (WTF::RetainPtr::~RetainPtr):
      (WTF::RetainPtr::get):
      (WTF::RetainPtr::operator->):
      (WTF::RetainPtr::operator!):
      (WTF::RetainPtr::operator UnspecifiedBoolType):
      (WTF::RetainPtr::operator=):
      (WTF::RetainPtr::hashTableDeletedValue):
      (WTF::::RetainPtr):
      (WTF::::clear):
      (WTF::::leakRef):
      (WTF::=):
      (WTF::::adoptCF):
      (WTF::::adoptNS):
      (WTF::::swap):
      (WTF::swap):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::adoptCF):
      (WTF::adoptNS):
      (WTF::retainPtr):
      * wtf/SHA1.cpp: Renamed from Source/JavaScriptCore/wtf/SHA1.cpp.
      (WTF):
      (WTF::testSHA1):
      (WTF::expectSHA1):
      (WTF::f):
      (WTF::k):
      (WTF::rotateLeft):
      (WTF::SHA1::SHA1):
      (WTF::SHA1::addBytes):
      (WTF::SHA1::computeHash):
      (WTF::SHA1::finalize):
      (WTF::SHA1::processBlock):
      (WTF::SHA1::reset):
      * wtf/SHA1.h: Renamed from Source/JavaScriptCore/wtf/SHA1.h.
      (WTF):
      (SHA1):
      (WTF::SHA1::addBytes):
      * wtf/SegmentedVector.h: Renamed from Source/JavaScriptCore/wtf/SegmentedVector.h.
      (WTF):
      (SegmentedVectorIterator):
      (WTF::SegmentedVectorIterator::~SegmentedVectorIterator):
      (WTF::SegmentedVectorIterator::operator*):
      (WTF::SegmentedVectorIterator::operator->):
      (WTF::SegmentedVectorIterator::operator++):
      (WTF::SegmentedVectorIterator::operator==):
      (WTF::SegmentedVectorIterator::operator!=):
      (WTF::SegmentedVectorIterator::operator=):
      (WTF::SegmentedVectorIterator::SegmentedVectorIterator):
      (SegmentedVector):
      (WTF::SegmentedVector::SegmentedVector):
      (WTF::SegmentedVector::~SegmentedVector):
      (WTF::SegmentedVector::size):
      (WTF::SegmentedVector::isEmpty):
      (WTF::SegmentedVector::at):
      (WTF::SegmentedVector::operator[]):
      (WTF::SegmentedVector::last):
      (WTF::SegmentedVector::append):
      (WTF::SegmentedVector::alloc):
      (WTF::SegmentedVector::removeLast):
      (WTF::SegmentedVector::grow):
      (WTF::SegmentedVector::clear):
      (WTF::SegmentedVector::begin):
      (WTF::SegmentedVector::end):
      (WTF::SegmentedVector::deleteAllSegments):
      (WTF::SegmentedVector::segmentExistsFor):
      (WTF::SegmentedVector::segmentFor):
      (WTF::SegmentedVector::subscriptFor):
      (WTF::SegmentedVector::ensureSegmentsFor):
      (WTF::SegmentedVector::ensureSegment):
      * wtf/SentinelLinkedList.h: Renamed from Source/JavaScriptCore/wtf/SentinelLinkedList.h.
      (WTF):
      (BasicRawSentinelNode):
      (WTF::BasicRawSentinelNode::BasicRawSentinelNode):
      (WTF::BasicRawSentinelNode::setPrev):
      (WTF::BasicRawSentinelNode::setNext):
      (WTF::BasicRawSentinelNode::prev):
      (WTF::BasicRawSentinelNode::next):
      (WTF::BasicRawSentinelNode::isOnList):
      (SentinelLinkedList):
      (WTF::SentinelLinkedList::isEmpty):
      (WTF::::remove):
      (WTF::::SentinelLinkedList):
      (WTF::::begin):
      (WTF::::end):
      (WTF::::push):
      * wtf/SimpleStats.h: Renamed from Source/JavaScriptCore/wtf/SimpleStats.h.
      (WTF):
      (SimpleStats):
      (WTF::SimpleStats::SimpleStats):
      (WTF::SimpleStats::add):
      (WTF::SimpleStats::operator!):
      (WTF::SimpleStats::count):
      (WTF::SimpleStats::sum):
      (WTF::SimpleStats::sumOfSquares):
      (WTF::SimpleStats::mean):
      (WTF::SimpleStats::variance):
      (WTF::SimpleStats::standardDeviation):
      * wtf/SinglyLinkedList.h: Renamed from Source/JavaScriptCore/wtf/SinglyLinkedList.h.
      (WTF):
      (SinglyLinkedList):
      (WTF::::SinglyLinkedList):
      (WTF::::isEmpty):
      (WTF::::push):
      (WTF::::pop):
      * wtf/SizeLimits.cpp: Renamed from Source/JavaScriptCore/wtf/SizeLimits.cpp.
      (WTF):
      (SameSizeAsRefCounted):
      * wtf/Spectrum.h: Renamed from Source/JavaScriptCore/wtf/Spectrum.h.
      (WTF):
      (Spectrum):
      (WTF::Spectrum::Spectrum):
      (WTF::Spectrum::add):
      (WTF::Spectrum::get):
      (WTF::Spectrum::begin):
      (WTF::Spectrum::end):
      (WTF::Spectrum::KeyAndCount::KeyAndCount):
      (KeyAndCount):
      (WTF::Spectrum::KeyAndCount::operator<):
      (WTF::Spectrum::buildList):
      * wtf/StackBounds.cpp: Renamed from Source/JavaScriptCore/wtf/StackBounds.cpp.
      (WTF):
      (WTF::estimateStackBound):
      (WTF::StackBounds::initialize):
      (WTF::detectGrowingDownward):
      (WTF::isPageWritable):
      (WTF::getLowerStackBound):
      (WTF::getUpperStackBound):
      * wtf/StackBounds.h: Renamed from Source/JavaScriptCore/wtf/StackBounds.h.
      (WTF):
      (StackBounds):
      (WTF::StackBounds::StackBounds):
      (WTF::StackBounds::currentThreadStackBounds):
      (WTF::StackBounds::origin):
      (WTF::StackBounds::current):
      (WTF::StackBounds::recursionLimit):
      (WTF::StackBounds::recursionCheck):
      (WTF::StackBounds::isGrowingDownward):
      (WTF::StackBounds::checkConsistency):
      * wtf/StaticConstructors.h: Renamed from Source/JavaScriptCore/wtf/StaticConstructors.h.
      * wtf/StdLibExtras.h: Renamed from Source/JavaScriptCore/wtf/StdLibExtras.h.
      (isPointerTypeAlignmentOkay):
      (reinterpret_cast_ptr):
      (WTF):
      (WTF::isPointerAligned):
      (WTF::is8ByteAligned):
      (WTF::bitwise_cast):
      (WTF::safeCast):
      (WTF::bitCount):
      (WTF::roundUpToMultipleOf):
      (WTF::binarySearch):
      (WTF::binarySearchWithFunctor):
      (WTF::genericBinarySearch):
      (operator new):
      * wtf/StringExtras.cpp: Renamed from Source/JavaScriptCore/wtf/StringExtras.cpp.
      (strcasecmp):
      (strncasecmp):
      * wtf/StringExtras.h: Renamed from Source/JavaScriptCore/wtf/StringExtras.h.
      (snprintf):
      (wtf_vsnprintf):
      (strnicmp):
      (stricmp):
      (strdup):
      (strncasecmp):
      (strcasecmp):
      (strnstr):
      * wtf/StringHasher.h: Renamed from Source/JavaScriptCore/wtf/StringHasher.h.
      (WTF):
      (StringHasher):
      (WTF::StringHasher::StringHasher):
      (WTF::StringHasher::addCharacters):
      (WTF::StringHasher::addCharacter):
      (WTF::StringHasher::hash):
      (WTF::StringHasher::computeHash):
      (WTF::StringHasher::hashMemory):
      (WTF::StringHasher::defaultConverter):
      (WTF::StringHasher::addCharactersToHash):
      * wtf/TCPackedCache.h: Renamed from Source/JavaScriptCore/wtf/TCPackedCache.h.
      (PackedCache):
      (PackedCache::PackedCache):
      (PackedCache::Put):
      (PackedCache::Has):
      (PackedCache::GetOrDefault):
      (PackedCache::Clear):
      (PackedCache::EntryToValue):
      (PackedCache::EntryToUpper):
      (PackedCache::KeyToUpper):
      (PackedCache::UpperToPartialKey):
      (PackedCache::Hash):
      (PackedCache::KeyMatch):
      * wtf/TCPageMap.h: Renamed from Source/JavaScriptCore/wtf/TCPageMap.h.
      (TCMalloc_PageMap1):
      (TCMalloc_PageMap1::init):
      (TCMalloc_PageMap1::Ensure):
      (TCMalloc_PageMap1::PreallocateMoreMemory):
      (TCMalloc_PageMap1::get):
      (TCMalloc_PageMap1::set):
      (TCMalloc_PageMap2):
      (Leaf):
      (TCMalloc_PageMap2::init):
      (TCMalloc_PageMap2::get):
      (TCMalloc_PageMap2::set):
      (TCMalloc_PageMap2::Ensure):
      (TCMalloc_PageMap2::PreallocateMoreMemory):
      (TCMalloc_PageMap2::visitValues):
      (TCMalloc_PageMap2::visitAllocations):
      (TCMalloc_PageMap3):
      (Node):
      (TCMalloc_PageMap3::NewNode):
      (TCMalloc_PageMap3::init):
      (TCMalloc_PageMap3::get):
      (TCMalloc_PageMap3::set):
      (TCMalloc_PageMap3::Ensure):
      (TCMalloc_PageMap3::PreallocateMoreMemory):
      (TCMalloc_PageMap3::visitValues):
      (TCMalloc_PageMap3::visitAllocations):
      * wtf/TCSpinLock.h: Renamed from Source/JavaScriptCore/wtf/TCSpinLock.h.
      (TCMalloc_SpinLock):
      (TCMalloc_SpinLock::Lock):
      (TCMalloc_SpinLock::Unlock):
      (TCMalloc_SpinLock::IsHeld):
      (TCMalloc_SpinLock::Init):
      (TCMalloc_SpinLock::Finalize):
      (TCMalloc_SlowLock):
      (TCMalloc_SpinLockHolder):
      (TCMalloc_SpinLockHolder::TCMalloc_SpinLockHolder):
      (TCMalloc_SpinLockHolder::~TCMalloc_SpinLockHolder):
      * wtf/TCSystemAlloc.cpp: Renamed from Source/JavaScriptCore/wtf/TCSystemAlloc.cpp.
      (TrySbrk):
      (TryMmap):
      (TryVirtualAlloc):
      (TryDevMem):
      (TCMalloc_SystemAlloc):
      (TCMalloc_SystemRelease):
      (TCMalloc_SystemCommit):
      * wtf/TCSystemAlloc.h: Renamed from Source/JavaScriptCore/wtf/TCSystemAlloc.h.
      (TCMalloc_SystemRelease):
      (TCMalloc_SystemCommit):
      * wtf/TemporaryChange.h: Renamed from Source/JavaScriptCore/wtf/TemporaryChange.h.
      (WTF):
      (TemporaryChange):
      (WTF::TemporaryChange::TemporaryChange):
      (WTF::TemporaryChange::~TemporaryChange):
      * wtf/ThreadFunctionInvocation.h: Renamed from Source/JavaScriptCore/wtf/ThreadFunctionInvocation.h.
      (WTF):
      (WTF::ThreadFunctionInvocation::ThreadFunctionInvocation):
      (ThreadFunctionInvocation):
      * wtf/ThreadIdentifierDataPthreads.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadIdentifierDataPthreads.cpp.
      (WTF):
      (WTF::ThreadIdentifierData::~ThreadIdentifierData):
      (WTF::ThreadIdentifierData::initializeOnce):
      (WTF::ThreadIdentifierData::identifier):
      (WTF::ThreadIdentifierData::initialize):
      (WTF::ThreadIdentifierData::destruct):
      * wtf/ThreadIdentifierDataPthreads.h: Renamed from Source/JavaScriptCore/wtf/ThreadIdentifierDataPthreads.h.
      (WTF):
      (ThreadIdentifierData):
      (WTF::ThreadIdentifierData::ThreadIdentifierData):
      * wtf/ThreadRestrictionVerifier.h: Renamed from Source/JavaScriptCore/wtf/ThreadRestrictionVerifier.h.
      (WTF):
      (ThreadRestrictionVerifier):
      (WTF::ThreadRestrictionVerifier::ThreadRestrictionVerifier):
      (WTF::ThreadRestrictionVerifier::~ThreadRestrictionVerifier):
      (WTF::ThreadRestrictionVerifier::setMutexMode):
      (WTF::ThreadRestrictionVerifier::setDispatchQueueMode):
      (WTF::ThreadRestrictionVerifier::turnOffVerification):
      (WTF::ThreadRestrictionVerifier::setShared):
      (WTF::ThreadRestrictionVerifier::isSafeToUse):
      * wtf/ThreadSafeRefCounted.h: Renamed from Source/JavaScriptCore/wtf/ThreadSafeRefCounted.h.
      (WTF):
      (ThreadSafeRefCountedBase):
      (WTF::ThreadSafeRefCountedBase::ThreadSafeRefCountedBase):
      (WTF::ThreadSafeRefCountedBase::ref):
      (WTF::ThreadSafeRefCountedBase::hasOneRef):
      (WTF::ThreadSafeRefCountedBase::refCount):
      (WTF::ThreadSafeRefCountedBase::derefBase):
      (ThreadSafeRefCounted):
      (WTF::ThreadSafeRefCounted::deref):
      (WTF::ThreadSafeRefCounted::ThreadSafeRefCounted):
      * wtf/ThreadSpecific.h: Renamed from Source/JavaScriptCore/wtf/ThreadSpecific.h.
      (WTF):
      (ThreadSpecific):
      (Data):
      (WTF::ThreadSpecific::Data::Data):
      (WTF::::ThreadSpecific):
      (WTF::::get):
      (WTF::::set):
      (WTF::::~ThreadSpecific):
      (WTF::::destroy):
      (WTF::::isSet):
      (WTF::T):
      (WTF::::operator):
      * wtf/ThreadSpecificWin.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadSpecificWin.cpp.
      (WTF):
      (WTF::tlsKeyCount):
      (WTF::tlsKeys):
      (WTF::ThreadSpecificThreadExit):
      * wtf/Threading.cpp: Renamed from Source/JavaScriptCore/wtf/Threading.cpp.
      (WTF):
      (NewThreadContext):
      (WTF::NewThreadContext::NewThreadContext):
      (WTF::threadEntryPoint):
      (WTF::createThread):
      (WTF::ThreadFunctionWithReturnValueInvocation::ThreadFunctionWithReturnValueInvocation):
      (ThreadFunctionWithReturnValueInvocation):
      (WTF::compatEntryPoint):
      (WTF::waitForThreadCompletion):
      * wtf/Threading.h: Renamed from Source/JavaScriptCore/wtf/Threading.h.
      (WTF):
      * wtf/ThreadingNone.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadingNone.cpp.
      * wtf/ThreadingPrimitives.h: Renamed from Source/JavaScriptCore/wtf/ThreadingPrimitives.h.
      (WTF):
      (PlatformMutex):
      (PlatformCondition):
      (Mutex):
      (WTF::Mutex::impl):
      (ReadWriteLock):
      (ThreadCondition):
      * wtf/ThreadingPthreads.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadingPthreads.cpp.
      (WTF):
      (WTF::threadMapMutex):
      (WTF::initializeThreading):
      (WTF::lockAtomicallyInitializedStaticMutex):
      (WTF::unlockAtomicallyInitializedStaticMutex):
      (WTF::threadMap):
      (WTF::identifierByPthreadHandle):
      (WTF::establishIdentifierForPthreadHandle):
      (WTF::pthreadHandleForIdentifier):
      (WTF::clearPthreadHandleForIdentifier):
      (WTF::wtfThreadEntryPoint):
      (WTF::createThreadInternal):
      (WTF::initializeCurrentThreadInternal):
      (WTF::waitForThreadCompletion):
      (WTF::detachThread):
      (WTF::yield):
      (WTF::currentThread):
      (WTF::Mutex::Mutex):
      (WTF::Mutex::~Mutex):
      (WTF::Mutex::lock):
      (WTF::Mutex::tryLock):
      (WTF::Mutex::unlock):
      (WTF::ReadWriteLock::ReadWriteLock):
      (WTF::ReadWriteLock::~ReadWriteLock):
      (WTF::ReadWriteLock::readLock):
      (WTF::ReadWriteLock::tryReadLock):
      (WTF::ReadWriteLock::writeLock):
      (WTF::ReadWriteLock::tryWriteLock):
      (WTF::ReadWriteLock::unlock):
      (WTF::ThreadCondition::ThreadCondition):
      (WTF::ThreadCondition::~ThreadCondition):
      (WTF::ThreadCondition::wait):
      (WTF::ThreadCondition::timedWait):
      (WTF::ThreadCondition::signal):
      (WTF::ThreadCondition::broadcast):
      * wtf/ThreadingWin.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadingWin.cpp.
      (WTF):
      (tagTHREADNAME_INFO):
      (WTF::initializeCurrentThreadInternal):
      (WTF::lockAtomicallyInitializedStaticMutex):
      (WTF::unlockAtomicallyInitializedStaticMutex):
      (WTF::threadMapMutex):
      (WTF::initializeThreading):
      (WTF::threadMap):
      (WTF::storeThreadHandleByIdentifier):
      (WTF::threadHandleForIdentifier):
      (WTF::clearThreadHandleForIdentifier):
      (WTF::wtfThreadEntryPoint):
      (WTF::createThreadInternal):
      (WTF::waitForThreadCompletion):
      (WTF::detachThread):
      (WTF::yield):
      (WTF::currentThread):
      (WTF::Mutex::Mutex):
      (WTF::Mutex::~Mutex):
      (WTF::Mutex::lock):
      (WTF::Mutex::tryLock):
      (WTF::Mutex::unlock):
      (WTF::PlatformCondition::timedWait):
      (WTF::PlatformCondition::signal):
      (WTF::ThreadCondition::ThreadCondition):
      (WTF::ThreadCondition::~ThreadCondition):
      (WTF::ThreadCondition::wait):
      (WTF::ThreadCondition::timedWait):
      (WTF::ThreadCondition::signal):
      (WTF::ThreadCondition::broadcast):
      (WTF::absoluteTimeToWaitTimeoutInterval):
      * wtf/TypeTraits.cpp: Renamed from Source/JavaScriptCore/wtf/TypeTraits.cpp.
      (WTF):
      * wtf/TypeTraits.h: Renamed from Source/JavaScriptCore/wtf/TypeTraits.h.
      (WTF):
      (IsConvertibleToInteger):
      (IsArray):
      (IsSameType):
      (IsSubclass):
      (NoType):
      (IsSubclassOfTemplate):
      (RemoveTemplate):
      (RemoveConst):
      (RemoveVolatile):
      (RemoveConstVolatile):
      (RemovePointer):
      (RemoveReference):
      (RemoveExtent):
      (DecayArray):
      (IntegralConstant):
      * wtf/TypedArrayBase.h: Renamed from Source/JavaScriptCore/wtf/TypedArrayBase.h.
      (WTF):
      (TypedArrayBase):
      (WTF::TypedArrayBase::data):
      (WTF::TypedArrayBase::set):
      (WTF::TypedArrayBase::setRange):
      (WTF::TypedArrayBase::zeroRange):
      (WTF::TypedArrayBase::length):
      (WTF::TypedArrayBase::byteLength):
      (WTF::TypedArrayBase::TypedArrayBase):
      (WTF::TypedArrayBase::create):
      (WTF::TypedArrayBase::subarrayImpl):
      (WTF::TypedArrayBase::neuter):
      * wtf/Uint16Array.h: Renamed from Source/JavaScriptCore/wtf/Uint16Array.h.
      (WTF):
      (Uint16Array):
      (WTF::Uint16Array::set):
      (WTF::Uint16Array::isUnsignedShortArray):
      (WTF::Uint16Array::create):
      (WTF::Uint16Array::Uint16Array):
      (WTF::Uint16Array::subarray):
      * wtf/Uint32Array.h: Renamed from Source/JavaScriptCore/wtf/Uint32Array.h.
      (WTF):
      (Uint32Array):
      (WTF::Uint32Array::set):
      (WTF::Uint32Array::isUnsignedIntArray):
      (WTF::Uint32Array::create):
      (WTF::Uint32Array::Uint32Array):
      (WTF::Uint32Array::subarray):
      * wtf/Uint8Array.h: Renamed from Source/JavaScriptCore/wtf/Uint8Array.h.
      (WTF):
      (Uint8Array):
      (WTF::Uint8Array::set):
      (WTF::Uint8Array::isUnsignedByteArray):
      (WTF::Uint8Array::create):
      (WTF::Uint8Array::Uint8Array):
      (WTF::Uint8Array::subarray):
      * wtf/Uint8ClampedArray.h: Renamed from Source/JavaScriptCore/wtf/Uint8ClampedArray.h.
      (WTF):
      (Uint8ClampedArray):
      (WTF::Uint8ClampedArray::set):
      (WTF::Uint8ClampedArray::isUnsignedByteClampedArray):
      (WTF::Uint8ClampedArray::create):
      (WTF::Uint8ClampedArray::Uint8ClampedArray):
      (WTF::Uint8ClampedArray::subarray):
      * wtf/UnionFind.h: Renamed from Source/JavaScriptCore/wtf/UnionFind.h.
      (WTF):
      (UnionFind):
      (WTF::UnionFind::UnionFind):
      (WTF::UnionFind::find):
      (WTF::UnionFind::unify):
      * wtf/UnusedParam.h: Renamed from Source/JavaScriptCore/wtf/UnusedParam.h.
      (unusedParam):
      * wtf/VMTags.h: Renamed from Source/JavaScriptCore/wtf/VMTags.h.
      * wtf/ValueCheck.h: Renamed from Source/JavaScriptCore/wtf/ValueCheck.h.
      (WTF):
      (ValueCheck):
      (WTF::ValueCheck::checkConsistency):
      * wtf/Vector.h: Renamed from Source/JavaScriptCore/wtf/Vector.h.
      (WTF):
      (WTF::VectorTypeOperations::destruct):
      (VectorTypeOperations):
      (WTF::VectorTypeOperations::initialize):
      (WTF::VectorTypeOperations::move):
      (WTF::VectorTypeOperations::moveOverlapping):
      (WTF::VectorTypeOperations::uninitializedCopy):
      (WTF::VectorTypeOperations::uninitializedFill):
      (WTF::VectorTypeOperations::compare):
      (VectorBufferBase):
      (WTF::VectorBufferBase::allocateBuffer):
      (WTF::VectorBufferBase::tryAllocateBuffer):
      (WTF::VectorBufferBase::deallocateBuffer):
      (WTF::VectorBufferBase::buffer):
      (WTF::VectorBufferBase::bufferSlot):
      (WTF::VectorBufferBase::capacity):
      (WTF::VectorBufferBase::releaseBuffer):
      (WTF::VectorBufferBase::VectorBufferBase):
      (WTF::VectorBufferBase::~VectorBufferBase):
      (VectorBuffer):
      (WTF::VectorBuffer::VectorBuffer):
      (WTF::VectorBuffer::~VectorBuffer):
      (WTF::VectorBuffer::allocateBuffer):
      (WTF::VectorBuffer::tryAllocateBuffer):
      (WTF::VectorBuffer::deallocateBuffer):
      (WTF::VectorBuffer::swap):
      (WTF::VectorBuffer::restoreInlineBufferIfNeeded):
      (WTF::VectorBuffer::releaseBuffer):
      (WTF::VectorBuffer::inlineBuffer):
      (Vector):
      (WTF::Vector::Vector):
      (WTF::Vector::~Vector):
      (WTF::Vector::size):
      (WTF::Vector::capacity):
      (WTF::Vector::isEmpty):
      (WTF::Vector::at):
      (WTF::Vector::operator[]):
      (WTF::Vector::data):
      (WTF::Vector::dataSlot):
      (WTF::Vector::begin):
      (WTF::Vector::end):
      (WTF::Vector::rbegin):
      (WTF::Vector::rend):
      (WTF::Vector::reversed):
      (WTF::Vector::first):
      (WTF::Vector::last):
      (WTF::Vector::shrinkToFit):
      (WTF::Vector::clear):
      (WTF::Vector::removeLast):
      (WTF::Vector::fill):
      (WTF::Vector::swap):
      (VectorReverseProxy):
      (WTF::Vector::VectorReverseProxy::begin):
      (WTF::Vector::VectorReverseProxy::end):
      (WTF::operator<<):
      (WTF::operator>>):
      (WTF::::Vector):
      (WTF::=):
      (WTF::typelessPointersAreEqual):
      (WTF::::contains):
      (WTF::::find):
      (WTF::::reverseFind):
      (WTF::::fill):
      (WTF::::appendRange):
      (WTF::::expandCapacity):
      (WTF::::tryExpandCapacity):
      (WTF::::resize):
      (WTF::::shrink):
      (WTF::::grow):
      (WTF::::reserveCapacity):
      (WTF::::tryReserveCapacity):
      (WTF::::reserveInitialCapacity):
      (WTF::::shrinkCapacity):
      (WTF::::append):
      (WTF::::tryAppend):
      (WTF::::appendSlowCase):
      (WTF::::uncheckedAppend):
      (WTF::::insert):
      (WTF::::prepend):
      (WTF::::remove):
      (WTF::::reverse):
      (WTF::::releaseBuffer):
      (WTF::::checkConsistency):
      (WTF::deleteAllValues):
      (WTF::swap):
      (WTF::operator==):
      (WTF::operator!=):
      * wtf/VectorTraits.h: Renamed from Source/JavaScriptCore/wtf/VectorTraits.h.
      (WTF):
      (SimpleClassVectorTraits):
      * wtf/WTFThreadData.cpp: Renamed from Source/JavaScriptCore/wtf/WTFThreadData.cpp.
      (WTF):
      (WTF::WTFThreadData::WTFThreadData):
      (WTF::WTFThreadData::~WTFThreadData):
      (JSC):
      (JSC::IdentifierTable::~IdentifierTable):
      (JSC::IdentifierTable::add):
      * wtf/WTFThreadData.h: Renamed from Source/JavaScriptCore/wtf/WTFThreadData.h.
      (JSC):
      (IdentifierTable):
      (JSC::IdentifierTable::remove):
      (JSC::IdentifierTable::literalTable):
      (WTF):
      (WTFThreadData):
      (WTF::WTFThreadData::atomicStringTable):
      (WTF::WTFThreadData::currentIdentifierTable):
      (WTF::WTFThreadData::setCurrentIdentifierTable):
      (WTF::WTFThreadData::resetCurrentIdentifierTable):
      (WTF::WTFThreadData::stack):
      (WTF::wtfThreadData):
      * wtf/blackberry/MainThreadBlackBerry.cpp: Renamed from Source/JavaScriptCore/wtf/blackberry/MainThreadBlackBerry.cpp.
      (WTF):
      (WTF::initializeMainThreadPlatform):
      (WTF::scheduleDispatchFunctionsOnMainThread):
      * wtf/chromium/ChromiumThreading.h: Renamed from Source/JavaScriptCore/wtf/chromium/ChromiumThreading.h.
      (WTF):
      (ChromiumThreading):
      * wtf/chromium/MainThreadChromium.cpp: Renamed from Source/JavaScriptCore/wtf/chromium/MainThreadChromium.cpp.
      (WTF):
      (WTF::initializeMainThread):
      (WTF::callOnMainThread):
      (WTF::callOnMainThreadAndWait):
      (WTF::setMainThreadCallbacksPaused):
      (WTF::isMainThread):
      * wtf/dtoa.cpp: Renamed from Source/JavaScriptCore/wtf/dtoa.cpp.
      (WTF):
      (WTF::storeInc):
      (WTF::BigInt::BigInt):
      (BigInt):
      (WTF::BigInt::clear):
      (WTF::BigInt::size):
      (WTF::BigInt::resize):
      (WTF::BigInt::words):
      (WTF::BigInt::append):
      (WTF::multadd):
      (WTF::hi0bits):
      (WTF::lo0bits):
      (WTF::i2b):
      (WTF::mult):
      (P5Node):
      (WTF::P5Node::P5Node):
      (WTF::pow5mult):
      (WTF::lshift):
      (WTF::cmp):
      (WTF::diff):
      (WTF::d2b):
      (WTF::strtod):
      (WTF::quorem):
      (WTF::dtoa):
      * wtf/dtoa.h: Renamed from Source/JavaScriptCore/wtf/dtoa.h.
      (WTF):
      * wtf/dtoa/COPYING: Renamed from Source/JavaScriptCore/wtf/dtoa/COPYING.
      * wtf/dtoa/LICENSE: Renamed from Source/JavaScriptCore/wtf/dtoa/LICENSE.
      * wtf/dtoa/README: Renamed from Source/JavaScriptCore/wtf/dtoa/README.
      * wtf/dtoa/bignum-dtoa.cc: Renamed from Source/JavaScriptCore/wtf/dtoa/bignum-dtoa.cc.
      * wtf/dtoa/bignum-dtoa.h: Renamed from Source/JavaScriptCore/wtf/dtoa/bignum-dtoa.h.
      (WTF):
      (double_conversion):
      * wtf/dtoa/bignum.cc: Renamed from Source/JavaScriptCore/wtf/dtoa/bignum.cc.
      * wtf/dtoa/bignum.h: Renamed from Source/JavaScriptCore/wtf/dtoa/bignum.h.
      (WTF):
      (double_conversion):
      (Bignum):
      (WTF::double_conversion::Bignum::Times10):
      (WTF::double_conversion::Bignum::Equal):
      (WTF::double_conversion::Bignum::LessEqual):
      (WTF::double_conversion::Bignum::Less):
      (WTF::double_conversion::Bignum::PlusEqual):
      (WTF::double_conversion::Bignum::PlusLessEqual):
      (WTF::double_conversion::Bignum::PlusLess):
      (WTF::double_conversion::Bignum::EnsureCapacity):
      (WTF::double_conversion::Bignum::BigitLength):
      * wtf/dtoa/cached-powers.cc: Renamed from Source/JavaScriptCore/wtf/dtoa/cached-powers.cc.
      * wtf/dtoa/cached-powers.h: Renamed from Source/JavaScriptCore/wtf/dtoa/cached-powers.h.
      (WTF):
      (double_conversion):
      (PowersOfTenCache):
      * wtf/dtoa/diy-fp.cc: Renamed from Source/JavaScriptCore/wtf/dtoa/diy-fp.cc.
      * wtf/dtoa/diy-fp.h: Renamed from Source/JavaScriptCore/wtf/dtoa/diy-fp.h.
      (WTF):
      (double_conversion):
      (DiyFp):
      (WTF::double_conversion::DiyFp::DiyFp):
      (WTF::double_conversion::DiyFp::Subtract):
      (WTF::double_conversion::DiyFp::Minus):
      (WTF::double_conversion::DiyFp::Times):
      (WTF::double_conversion::DiyFp::Normalize):
      (WTF::double_conversion::DiyFp::f):
      (WTF::double_conversion::DiyFp::e):
      (WTF::double_conversion::DiyFp::set_f):
      (WTF::double_conversion::DiyFp::set_e):
      * wtf/dtoa/double-conversion.cc: Renamed from Source/JavaScriptCore/wtf/dtoa/double-conversion.cc.
      * wtf/dtoa/double-conversion.h: Renamed from Source/JavaScriptCore/wtf/dtoa/double-conversion.h.
      (WTF):
      (double_conversion):
      (DoubleToStringConverter):
      (WTF::double_conversion::DoubleToStringConverter::DoubleToStringConverter):
      (StringToDoubleConverter):
      (WTF::double_conversion::StringToDoubleConverter::StringToDoubleConverter):
      * wtf/dtoa/double.h: Renamed from Source/JavaScriptCore/wtf/dtoa/double.h.
      (WTF):
      (double_conversion):
      (WTF::double_conversion::double_to_uint64):
      (WTF::double_conversion::uint64_to_double):
      (Double):
      (WTF::double_conversion::Double::Double):
      (WTF::double_conversion::Double::AsDiyFp):
      (WTF::double_conversion::Double::AsNormalizedDiyFp):
      (WTF::double_conversion::Double::AsUint64):
      (WTF::double_conversion::Double::NextDouble):
      (WTF::double_conversion::Double::Exponent):
      (WTF::double_conversion::Double::Significand):
      (WTF::double_conversion::Double::IsDenormal):
      (WTF::double_conversion::Double::IsSpecial):
      (WTF::double_conversion::Double::IsNan):
      (WTF::double_conversion::Double::IsInfinite):
      (WTF::double_conversion::Double::Sign):
      (WTF::double_conversion::Double::UpperBoundary):
      (WTF::double_conversion::Double::NormalizedBoundaries):
      (WTF::double_conversion::Double::value):
      (WTF::double_conversion::Double::SignificandSizeForOrderOfMagnitude):
      (WTF::double_conversion::Double::Infinity):
      (WTF::double_conversion::Double::NaN):
      (WTF::double_conversion::Double::DiyFpToUint64):
      * wtf/dtoa/fast-dtoa.cc: Renamed from Source/JavaScriptCore/wtf/dtoa/fast-dtoa.cc.
      * wtf/dtoa/fast-dtoa.h: Renamed from Source/JavaScriptCore/wtf/dtoa/fast-dtoa.h.
      (WTF):
      (double_conversion):
      * wtf/dtoa/fixed-dtoa.cc: Renamed from Source/JavaScriptCore/wtf/dtoa/fixed-dtoa.cc.
      * wtf/dtoa/fixed-dtoa.h: Renamed from Source/JavaScriptCore/wtf/dtoa/fixed-dtoa.h.
      (WTF):
      (double_conversion):
      * wtf/dtoa/strtod.cc: Renamed from Source/JavaScriptCore/wtf/dtoa/strtod.cc.
      * wtf/dtoa/strtod.h: Renamed from Source/JavaScriptCore/wtf/dtoa/strtod.h.
      (WTF):
      (double_conversion):
      * wtf/dtoa/utils.h: Renamed from Source/JavaScriptCore/wtf/dtoa/utils.h.
      (WTF):
      (double_conversion):
      (WTF::double_conversion::Max):
      (WTF::double_conversion::Min):
      (WTF::double_conversion::StrLength):
      (Vector):
      (WTF::double_conversion::Vector::Vector):
      (WTF::double_conversion::Vector::SubVector):
      (WTF::double_conversion::Vector::length):
      (WTF::double_conversion::Vector::is_empty):
      (WTF::double_conversion::Vector::start):
      (WTF::double_conversion::Vector::operator[]):
      (WTF::double_conversion::Vector::first):
      (WTF::double_conversion::Vector::last):
      (StringBuilder):
      (WTF::double_conversion::StringBuilder::StringBuilder):
      (WTF::double_conversion::StringBuilder::~StringBuilder):
      (WTF::double_conversion::StringBuilder::size):
      (WTF::double_conversion::StringBuilder::position):
      (WTF::double_conversion::StringBuilder::SetPosition):
      (WTF::double_conversion::StringBuilder::Reset):
      (WTF::double_conversion::StringBuilder::AddCharacter):
      (WTF::double_conversion::StringBuilder::AddString):
      (WTF::double_conversion::StringBuilder::AddSubstring):
      (WTF::double_conversion::StringBuilder::AddPadding):
      (WTF::double_conversion::StringBuilder::Finalize):
      (WTF::double_conversion::StringBuilder::is_finalized):
      (WTF::double_conversion::BitCast):
      * wtf/efl/MainThreadEfl.cpp: Renamed from Source/JavaScriptCore/wtf/efl/MainThreadEfl.cpp.
      (WTF):
      (WTF::pipeObject):
      (WTF::monitorDispatchFunctions):
      (WTF::initializeMainThreadPlatform):
      (WTF::scheduleDispatchFunctionsOnMainThread):
      * wtf/efl/OwnPtrEfl.cpp: Renamed from Source/JavaScriptCore/wtf/efl/OwnPtrEfl.cpp.
      (WTF):
      (WTF::deleteOwnedPtr):
      * wtf/gobject/GOwnPtr.cpp: Renamed from Source/JavaScriptCore/wtf/gobject/GOwnPtr.cpp.
      (WTF):
      (WTF::GError):
      (WTF::GList):
      (WTF::GSList):
      (WTF::GPatternSpec):
      (WTF::GDir):
      (WTF::GTimer):
      (WTF::GKeyFile):
      * wtf/gobject/GOwnPtr.h: Renamed from Source/JavaScriptCore/wtf/gobject/GOwnPtr.h.
      (WTF):
      (GOwnPtr):
      (WTF::GOwnPtr::GOwnPtr):
      (WTF::GOwnPtr::~GOwnPtr):
      (WTF::GOwnPtr::get):
      (WTF::GOwnPtr::release):
      (WTF::GOwnPtr::outPtr):
      (WTF::GOwnPtr::set):
      (WTF::GOwnPtr::clear):
      (WTF::GOwnPtr::operator*):
      (WTF::GOwnPtr::operator->):
      (WTF::GOwnPtr::operator!):
      (WTF::GOwnPtr::operator UnspecifiedBoolType):
      (WTF::GOwnPtr::swap):
      (WTF::swap):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::getPtr):
      (WTF::freeOwnedGPtr):
      * wtf/gobject/GRefPtr.cpp: Renamed from Source/JavaScriptCore/wtf/gobject/GRefPtr.cpp.
      (WTF):
      (WTF::refGPtr):
      (WTF::derefGPtr):
      (_GVariant):
      * wtf/gobject/GRefPtr.h: Renamed from Source/JavaScriptCore/wtf/gobject/GRefPtr.h.
      (WTF):
      (GRefPtr):
      (WTF::GRefPtr::GRefPtr):
      (WTF::GRefPtr::~GRefPtr):
      (WTF::GRefPtr::clear):
      (WTF::GRefPtr::isHashTableDeletedValue):
      (WTF::GRefPtr::get):
      (WTF::GRefPtr::operator*):
      (WTF::GRefPtr::operator->):
      (WTF::GRefPtr::operator!):
      (WTF::GRefPtr::operator UnspecifiedBoolType):
      (WTF::GRefPtr::hashTableDeletedValue):
      (WTF::=):
      (WTF::::swap):
      (WTF::swap):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::static_pointer_cast):
      (WTF::const_pointer_cast):
      (WTF::getPtr):
      (WTF::adoptGRef):
      (WTF::refGPtr):
      (WTF::derefGPtr):
      * wtf/gobject/GTypedefs.h: Renamed from Source/JavaScriptCore/wtf/gobject/GTypedefs.h.
      * wtf/gobject/GlibUtilities.cpp: Renamed from Source/JavaScriptCore/wtf/gobject/GlibUtilities.cpp.
      (getCurrentExecutablePath):
      * wtf/gobject/GlibUtilities.h: Renamed from Source/JavaScriptCore/wtf/gobject/GlibUtilities.h.
      * wtf/gtk/MainThreadGtk.cpp: Renamed from Source/JavaScriptCore/wtf/gtk/MainThreadGtk.cpp.
      (WTF):
      (WTF::initializeMainThreadPlatform):
      (WTF::timeoutFired):
      (WTF::scheduleDispatchFunctionsOnMainThread):
      * wtf/mac/MainThreadMac.mm: Renamed from Source/JavaScriptCore/wtf/mac/MainThreadMac.mm.
      (-[JSWTFMainThreadCaller call]):
      (WTF):
      (WTF::initializeMainThreadPlatform):
      (WTF::initializeMainThreadToProcessMainThreadPlatform):
      (WTF::timerFired):
      (WTF::postTimer):
      (WTF::scheduleDispatchFunctionsOnMainThread):
      (WTF::isMainThread):
      * wtf/qt/MainThreadQt.cpp: Renamed from Source/JavaScriptCore/wtf/qt/MainThreadQt.cpp.
      (WTF):
      (MainThreadInvoker):
      (WTF::MainThreadInvoker::MainThreadInvoker):
      (WTF::MainThreadInvoker::event):
      (WTF::initializeMainThreadPlatform):
      (WTF::scheduleDispatchFunctionsOnMainThread):
      * wtf/qt/StringQt.cpp: Renamed from Source/JavaScriptCore/wtf/qt/StringQt.cpp.
      (WTF):
      (WTF::String::String):
      (WTF::String::operator QString):
      (WTF::operator<<):
      (WTF::operator>>):
      * wtf/qt/UtilsQt.h: Renamed from Source/JavaScriptCore/wtf/qt/UtilsQt.h.
      (escapeHtml):
      * wtf/qt/compat/QGuiApplication: Renamed from Source/JavaScriptCore/wtf/qt/compat/QGuiApplication.
      * wtf/qt/compat/qguiapplication.h: Renamed from Source/JavaScriptCore/wtf/qt/compat/qguiapplication.h.
      (QGuiApplication):
      (QGuiApplication::styleHints):
      * wtf/text/ASCIIFastPath.h: Renamed from Source/JavaScriptCore/wtf/text/ASCIIFastPath.h.
      (WTF):
      (WTF::isAlignedToMachineWord):
      (WTF::alignToMachineWord):
      (WTF::isAllASCII):
      (WTF::charactersAreAllASCII):
      * wtf/text/AtomicString.cpp: Renamed from Source/JavaScriptCore/wtf/text/AtomicString.cpp.
      (WTF):
      (AtomicStringTable):
      (WTF::AtomicStringTable::create):
      (WTF::AtomicStringTable::table):
      (WTF::AtomicStringTable::destroy):
      (WTF::stringTable):
      (WTF::addToStringTable):
      (WTF::CStringTranslator::hash):
      (CStringTranslator):
      (WTF::CStringTranslator::equal):
      (WTF::CStringTranslator::translate):
      (WTF::AtomicString::add):
      (UCharBuffer):
      (WTF::UCharBufferTranslator::hash):
      (UCharBufferTranslator):
      (WTF::UCharBufferTranslator::equal):
      (WTF::UCharBufferTranslator::translate):
      (HashAndCharacters):
      (WTF::HashAndCharactersTranslator::hash):
      (HashAndCharactersTranslator):
      (WTF::HashAndCharactersTranslator::equal):
      (WTF::HashAndCharactersTranslator::translate):
      (HashAndUTF8Characters):
      (WTF::HashAndUTF8CharactersTranslator::hash):
      (HashAndUTF8CharactersTranslator):
      (WTF::HashAndUTF8CharactersTranslator::equal):
      (WTF::HashAndUTF8CharactersTranslator::translate):
      (SubstringLocation):
      (WTF::SubstringTranslator::hash):
      (SubstringTranslator):
      (WTF::SubstringTranslator::equal):
      (WTF::SubstringTranslator::translate):
      (WTF::AtomicString::addSlowCase):
      (WTF::AtomicString::find):
      (WTF::AtomicString::remove):
      (WTF::AtomicString::lower):
      (WTF::AtomicString::fromUTF8Internal):
      (WTF::AtomicString::show):
      * wtf/text/AtomicString.h: Renamed from Source/JavaScriptCore/wtf/text/AtomicString.h.
      (WTF):
      (AtomicString):
      (WTF::AtomicString::AtomicString):
      (WTF::AtomicString::isHashTableDeletedValue):
      (WTF::AtomicString::operator const String&):
      (WTF::AtomicString::string):
      (WTF::AtomicString::impl):
      (WTF::AtomicString::characters):
      (WTF::AtomicString::length):
      (WTF::AtomicString::operator[]):
      (WTF::AtomicString::contains):
      (WTF::AtomicString::find):
      (WTF::AtomicString::startsWith):
      (WTF::AtomicString::endsWith):
      (WTF::AtomicString::upper):
      (WTF::AtomicString::toInt):
      (WTF::AtomicString::toDouble):
      (WTF::AtomicString::toFloat):
      (WTF::AtomicString::percentage):
      (WTF::AtomicString::isNull):
      (WTF::AtomicString::isEmpty):
      (WTF::AtomicString::createCFString):
      (WTF::AtomicString::operator NSString*):
      (WTF::AtomicString::operator QString):
      (WTF::AtomicString::add):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::equalIgnoringCase):
      (WTF::AtomicString::fromUTF8):
      * wtf/text/AtomicStringHash.h: Renamed from Source/JavaScriptCore/wtf/text/AtomicStringHash.h.
      (WTF):
      (WTF::AtomicStringHash::hash):
      (AtomicStringHash):
      (WTF::AtomicStringHash::equal):
      * wtf/text/AtomicStringImpl.h: Renamed from Source/JavaScriptCore/wtf/text/AtomicStringImpl.h.
      (WTF):
      (AtomicStringImpl):
      (WTF::AtomicStringImpl::AtomicStringImpl):
      * wtf/text/CString.cpp: Renamed from Source/JavaScriptCore/wtf/text/CString.cpp.
      (WTF):
      (WTF::CString::CString):
      (WTF::CString::init):
      (WTF::CString::mutableData):
      (WTF::CString::newUninitialized):
      (WTF::CString::copyBufferIfNeeded):
      (WTF::operator==):
      * wtf/text/CString.h: Renamed from Source/JavaScriptCore/wtf/text/CString.h.
      (WTF):
      (CStringBuffer):
      (WTF::CStringBuffer::data):
      (WTF::CStringBuffer::length):
      (WTF::CStringBuffer::create):
      (WTF::CStringBuffer::CStringBuffer):
      (WTF::CStringBuffer::mutableData):
      (CString):
      (WTF::CString::CString):
      (WTF::CString::data):
      (WTF::CString::length):
      (WTF::CString::isNull):
      (WTF::CString::buffer):
      (WTF::operator!=):
      * wtf/text/StringBuffer.h: Renamed from Source/JavaScriptCore/wtf/text/StringBuffer.h.
      (WTF):
      (StringBuffer):
      (WTF::StringBuffer::StringBuffer):
      (WTF::StringBuffer::~StringBuffer):
      (WTF::StringBuffer::shrink):
      (WTF::StringBuffer::resize):
      (WTF::StringBuffer::length):
      (WTF::StringBuffer::characters):
      (WTF::StringBuffer::operator[]):
      (WTF::StringBuffer::release):
      * wtf/text/StringBuilder.cpp: Renamed from Source/JavaScriptCore/wtf/text/StringBuilder.cpp.
      (WTF):
      (WTF::StringBuilder::reifyString):
      (WTF::StringBuilder::resize):
      (WTF::StringBuilder::allocateBuffer):
      (WTF::StringBuilder::allocateBufferUpConvert):
      (WTF::LChar):
      (WTF::UChar):
      (WTF::StringBuilder::reserveCapacity):
      (WTF::StringBuilder::appendUninitialized):
      (WTF::StringBuilder::appendUninitializedSlow):
      (WTF::StringBuilder::append):
      (WTF::StringBuilder::canShrink):
      (WTF::StringBuilder::shrinkToFit):
      * wtf/text/StringBuilder.h: Renamed from Source/JavaScriptCore/wtf/text/StringBuilder.h.
      (WTF):
      (StringBuilder):
      (WTF::StringBuilder::StringBuilder):
      (WTF::StringBuilder::append):
      (WTF::StringBuilder::toString):
      (WTF::StringBuilder::toStringPreserveCapacity):
      (WTF::StringBuilder::toAtomicString):
      (WTF::StringBuilder::length):
      (WTF::StringBuilder::isEmpty):
      (WTF::StringBuilder::capacity):
      (WTF::StringBuilder::operator[]):
      (WTF::StringBuilder::characters8):
      (WTF::StringBuilder::characters16):
      (WTF::StringBuilder::characters):
      (WTF::StringBuilder::is8Bit):
      (WTF::StringBuilder::clear):
      (WTF::StringBuilder::swap):
      (WTF::LChar):
      (WTF::UChar):
      (WTF::equal):
      (WTF::operator==):
      (WTF::operator!=):
      * wtf/text/StringConcatenate.h: Renamed from Source/JavaScriptCore/wtf/text/StringConcatenate.h.
      (WTF):
      (WTF::sumWithOverflow):
      (WTF::tryMakeString):
      (WTF::makeString):
      * wtf/text/StringHash.h: Renamed from Source/JavaScriptCore/wtf/text/StringHash.h.
      (WTF):
      (WTF::StringHash::hash):
      (WTF::StringHash::equal):
      (StringHash):
      (CaseFoldingHash):
      (WTF::CaseFoldingHash::foldCase):
      (WTF::CaseFoldingHash::hash):
      (WTF::CaseFoldingHash::equal):
      (WTF::AlreadyHashed::hash):
      (AlreadyHashed):
      (WTF::AlreadyHashed::avoidDeletedValue):
      * wtf/text/StringImpl.cpp: Renamed from Source/JavaScriptCore/wtf/text/StringImpl.cpp.
      (WTF):
      (WTF::StringImpl::~StringImpl):
      (WTF::StringImpl::createUninitialized):
      (WTF::StringImpl::reallocate):
      (WTF::StringImpl::create):
      (WTF::StringImpl::getData16SlowCase):
      (WTF::StringImpl::upconvertCharacters):
      (WTF::StringImpl::containsOnlyWhitespace):
      (WTF::StringImpl::substring):
      (WTF::StringImpl::characterStartingAt):
      (WTF::StringImpl::lower):
      (WTF::StringImpl::upper):
      (WTF::StringImpl::fill):
      (WTF::StringImpl::foldCase):
      (WTF::StringImpl::stripMatchedCharacters):
      (UCharPredicate):
      (WTF::UCharPredicate::UCharPredicate):
      (WTF::UCharPredicate::operator()):
      (SpaceOrNewlinePredicate):
      (WTF::SpaceOrNewlinePredicate::operator()):
      (WTF::StringImpl::stripWhiteSpace):
      (WTF::StringImpl::removeCharacters):
      (WTF::StringImpl::simplifyMatchedCharactersToSpace):
      (WTF::StringImpl::simplifyWhiteSpace):
      (WTF::StringImpl::toIntStrict):
      (WTF::StringImpl::toUIntStrict):
      (WTF::StringImpl::toInt64Strict):
      (WTF::StringImpl::toUInt64Strict):
      (WTF::StringImpl::toIntPtrStrict):
      (WTF::StringImpl::toInt):
      (WTF::StringImpl::toUInt):
      (WTF::StringImpl::toInt64):
      (WTF::StringImpl::toUInt64):
      (WTF::StringImpl::toIntPtr):
      (WTF::StringImpl::toDouble):
      (WTF::StringImpl::toFloat):
      (WTF::equalIgnoringCase):
      (WTF::StringImpl::find):
      (WTF::StringImpl::findIgnoringCase):
      (WTF::findInner):
      (WTF::StringImpl::reverseFind):
      (WTF::reverseFindInner):
      (WTF::StringImpl::reverseFindIgnoringCase):
      (WTF::StringImpl::endsWith):
      (WTF::StringImpl::replace):
      (WTF::equal):
      (WTF::equalIgnoringNullity):
      (WTF::StringImpl::defaultWritingDirection):
      (WTF::StringImpl::adopt):
      (WTF::StringImpl::createWithTerminatingNullCharacter):
      * wtf/text/StringImpl.h: Renamed from Source/JavaScriptCore/wtf/text/StringImpl.h.
      (JSC):
      (WTF):
      (StringImpl):
      (WTF::StringImpl::StringImpl):
      (WTF::StringImpl::create):
      (WTF::StringImpl::create8):
      (WTF::StringImpl::tryCreateUninitialized):
      (WTF::StringImpl::flagsOffset):
      (WTF::StringImpl::flagIs8Bit):
      (WTF::StringImpl::dataOffset):
      (WTF::StringImpl::adopt):
      (WTF::StringImpl::length):
      (WTF::StringImpl::is8Bit):
      (WTF::StringImpl::characters8):
      (WTF::StringImpl::characters16):
      (WTF::StringImpl::characters):
      (WTF::StringImpl::cost):
      (WTF::StringImpl::has16BitShadow):
      (WTF::StringImpl::isIdentifier):
      (WTF::StringImpl::setIsIdentifier):
      (WTF::StringImpl::hasTerminatingNullCharacter):
      (WTF::StringImpl::isAtomic):
      (WTF::StringImpl::setIsAtomic):
      (WTF::StringImpl::setHash):
      (WTF::StringImpl::rawHash):
      (WTF::StringImpl::hasHash):
      (WTF::StringImpl::existingHash):
      (WTF::StringImpl::hash):
      (WTF::StringImpl::hasOneRef):
      (WTF::StringImpl::ref):
      (WTF::StringImpl::deref):
      (WTF::StringImpl::copyChars):
      (WTF::StringImpl::operator[]):
      (WTF::StringImpl::find):
      (WTF::StringImpl::findIgnoringCase):
      (WTF::StringImpl::startsWith):
      (WTF::StringImpl::bufferOwnership):
      (WTF::StringImpl::isStatic):
      (WTF::LChar):
      (WTF::UChar):
      (WTF::equal):
      (WTF::equalIgnoringCase):
      (WTF::equalIgnoringNullity):
      (WTF::codePointCompare):
      (WTF::codePointCompare8):
      (WTF::codePointCompare16):
      (WTF::codePointCompare8To16):
      (WTF::isSpaceOrNewline):
      (WTF::StringImpl::isolatedCopy):
      * wtf/text/StringOperators.h: Renamed from Source/JavaScriptCore/wtf/text/StringOperators.h.
      (WTF):
      (StringAppend):
      (WTF::StringAppend::StringAppend):
      (WTF::StringAppend::operator String):
      (WTF::StringAppend::operator AtomicString):
      (WTF::StringAppend::is8Bit):
      (WTF::StringAppend::writeTo):
      (WTF::StringAppend::length):
      (WTF::operator+):
      * wtf/text/StringStatics.cpp: Renamed from Source/JavaScriptCore/wtf/text/StringStatics.cpp.
      (WTF):
      (WTF::StringImpl::empty):
      (WTF::StringImpl::hashSlowCase):
      (WTF::AtomicString::init):
      * wtf/text/TextPosition.h: Renamed from Source/JavaScriptCore/wtf/text/TextPosition.h.
      (WTF):
      (OrdinalNumber):
      (WTF::OrdinalNumber::fromZeroBasedInt):
      (WTF::OrdinalNumber::fromOneBasedInt):
      (WTF::OrdinalNumber::OrdinalNumber):
      (WTF::OrdinalNumber::zeroBasedInt):
      (WTF::OrdinalNumber::oneBasedInt):
      (WTF::OrdinalNumber::operator==):
      (WTF::OrdinalNumber::operator!=):
      (WTF::OrdinalNumber::first):
      (WTF::OrdinalNumber::beforeFirst):
      (TextPosition):
      (WTF::TextPosition::TextPosition):
      (WTF::TextPosition::operator==):
      (WTF::TextPosition::operator!=):
      (WTF::TextPosition::minimumPosition):
      (WTF::TextPosition::belowRangePosition):
      * wtf/text/WTFString.cpp: Renamed from Source/JavaScriptCore/wtf/text/WTFString.cpp.
      (WTF):
      (WTF::String::String):
      (WTF::String::append):
      (WTF::codePointCompare):
      (WTF::String::insert):
      (WTF::String::characterStartingAt):
      (WTF::String::truncate):
      (WTF::String::remove):
      (WTF::String::substring):
      (WTF::String::substringSharingImpl):
      (WTF::String::lower):
      (WTF::String::upper):
      (WTF::String::stripWhiteSpace):
      (WTF::String::simplifyWhiteSpace):
      (WTF::String::removeCharacters):
      (WTF::String::foldCase):
      (WTF::String::percentage):
      (WTF::String::charactersWithNullTermination):
      (WTF::String::format):
      (WTF::String::number):
      (WTF::String::toIntStrict):
      (WTF::String::toUIntStrict):
      (WTF::String::toInt64Strict):
      (WTF::String::toUInt64Strict):
      (WTF::String::toIntPtrStrict):
      (WTF::String::toInt):
      (WTF::String::toUInt):
      (WTF::String::toInt64):
      (WTF::String::toUInt64):
      (WTF::String::toIntPtr):
      (WTF::String::toDouble):
      (WTF::String::toFloat):
      (WTF::String::isolatedCopy):
      (WTF::String::split):
      (WTF::String::ascii):
      (WTF::String::latin1):
      (WTF::putUTF8Triple):
      (WTF::String::utf8):
      (WTF::String::fromUTF8):
      (WTF::String::fromUTF8WithLatin1Fallback):
      (WTF::isCharacterAllowedInBase):
      (WTF::toIntegralType):
      (WTF::lengthOfCharactersAsInteger):
      (WTF::charactersToIntStrict):
      (WTF::charactersToUIntStrict):
      (WTF::charactersToInt64Strict):
      (WTF::charactersToUInt64Strict):
      (WTF::charactersToIntPtrStrict):
      (WTF::charactersToInt):
      (WTF::charactersToUInt):
      (WTF::charactersToInt64):
      (WTF::charactersToUInt64):
      (WTF::charactersToIntPtr):
      (WTF::toDoubleType):
      (WTF::charactersToDouble):
      (WTF::charactersToFloat):
      (WTF::charactersToFloatIgnoringJunk):
      (WTF::emptyString):
      (String::show):
      (string):
      (asciiDebug):
      * wtf/text/WTFString.h: Renamed from Source/JavaScriptCore/wtf/text/WTFString.h.
      (WebKit):
      (WTF):
      (String):
      (WTF::String::String):
      (WTF::String::~String):
      (WTF::String::swap):
      (WTF::String::adopt):
      (WTF::String::isNull):
      (WTF::String::isEmpty):
      (WTF::String::impl):
      (WTF::String::length):
      (WTF::String::characters):
      (WTF::String::characters8):
      (WTF::String::characters16):
      (WTF::String::is8Bit):
      (WTF::String::operator[]):
      (WTF::String::find):
      (WTF::String::reverseFind):
      (WTF::String::findIgnoringCase):
      (WTF::String::reverseFindIgnoringCase):
      (WTF::String::contains):
      (WTF::String::startsWith):
      (WTF::String::endsWith):
      (WTF::String::append):
      (WTF::String::replace):
      (WTF::String::makeLower):
      (WTF::String::makeUpper):
      (WTF::String::fill):
      (WTF::String::left):
      (WTF::String::right):
      (WTF::String::createUninitialized):
      (WTF::String::operator NSString*):
      (WTF::String::fromUTF8):
      (WTF::String::fromUTF8WithLatin1Fallback):
      (WTF::String::defaultWritingDirection):
      (WTF::String::containsOnlyWhitespace):
      (WTF::String::isHashTableDeletedValue):
      (WTF::operator+=):
      (WTF::operator==):
      (WTF::operator!=):
      (WTF::equalIgnoringCase):
      (WTF::equalPossiblyIgnoringCase):
      (WTF::equalIgnoringNullity):
      (WTF::operator!):
      (WTF::swap):
      (WTF::LChar):
      (WTF::UChar):
      (WTF::String::containsOnlyLatin1):
      (WTF::nsStringNilIfEmpty):
      (WTF::String::containsOnlyASCII):
      (WTF::codePointCompareLessThan):
      (WTF::find):
      (WTF::reverseFind):
      (WTF::append):
      (WTF::appendNumber):
      (WTF::isAllSpecialCharacters):
      (WTF::String::isAllSpecialCharacters):
      * wtf/threads/BinarySemaphore.cpp: Renamed from Source/JavaScriptCore/wtf/threads/BinarySemaphore.cpp.
      (WTF):
      (WTF::BinarySemaphore::BinarySemaphore):
      (WTF::BinarySemaphore::~BinarySemaphore):
      (WTF::BinarySemaphore::signal):
      (WTF::BinarySemaphore::wait):
      * wtf/threads/BinarySemaphore.h: Renamed from Source/JavaScriptCore/wtf/threads/BinarySemaphore.h.
      (WTF):
      (BinarySemaphore):
      (WTF::BinarySemaphore::event):
      * wtf/threads/win/BinarySemaphoreWin.cpp: Renamed from Source/JavaScriptCore/wtf/threads/win/BinarySemaphoreWin.cpp.
      (WTF):
      (WTF::BinarySemaphore::BinarySemaphore):
      (WTF::BinarySemaphore::~BinarySemaphore):
      (WTF::BinarySemaphore::signal):
      (WTF::BinarySemaphore::wait):
      * wtf/unicode/CharacterNames.h: Renamed from Source/JavaScriptCore/wtf/unicode/CharacterNames.h.
      (Unicode):
      * wtf/unicode/Collator.h: Renamed from Source/JavaScriptCore/wtf/unicode/Collator.h.
      (WTF):
      (Collator):
      * wtf/unicode/CollatorDefault.cpp: Renamed from Source/JavaScriptCore/wtf/unicode/CollatorDefault.cpp.
      (WTF):
      (WTF::Collator::Collator):
      (WTF::Collator::~Collator):
      (WTF::Collator::setOrderLowerFirst):
      (WTF::Collator::userDefault):
      (WTF::Collator::collate):
      * wtf/unicode/ScriptCodesFromICU.h: Renamed from Source/JavaScriptCore/wtf/unicode/ScriptCodesFromICU.h.
      * wtf/unicode/UTF8.cpp: Renamed from Source/JavaScriptCore/wtf/unicode/UTF8.cpp.
      (Unicode):
      (WTF::Unicode::inlineUTF8SequenceLengthNonASCII):
      (WTF::Unicode::inlineUTF8SequenceLength):
      (WTF::Unicode::UTF8SequenceLength):
      (WTF::Unicode::decodeUTF8Sequence):
      (WTF::Unicode::convertLatin1ToUTF8):
      (WTF::Unicode::convertUTF16ToUTF8):
      (WTF::Unicode::isLegalUTF8):
      (WTF::Unicode::readUTF8Sequence):
      (WTF::Unicode::convertUTF8ToUTF16):
      (WTF::Unicode::calculateStringHashAndLengthFromUTF8):
      (WTF::Unicode::equalUTF16WithUTF8):
      * wtf/unicode/UTF8.h: Renamed from Source/JavaScriptCore/wtf/unicode/UTF8.h.
      (Unicode):
      * wtf/unicode/Unicode.h: Renamed from Source/JavaScriptCore/wtf/unicode/Unicode.h.
      * wtf/unicode/UnicodeMacrosFromICU.h: Renamed from Source/JavaScriptCore/wtf/unicode/UnicodeMacrosFromICU.h.
      * wtf/unicode/glib/UnicodeGLib.cpp: Renamed from Source/JavaScriptCore/wtf/unicode/glib/UnicodeGLib.cpp.
      (Unicode):
      (WTF::Unicode::foldCase):
      (WTF::Unicode::getUTF16LengthFromUTF8):
      (WTF::Unicode::convertCase):
      (WTF::Unicode::toLower):
      (WTF::Unicode::toUpper):
      (WTF::Unicode::direction):
      (WTF::Unicode::umemcasecmp):
      * wtf/unicode/glib/UnicodeGLib.h: Renamed from Source/JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h.
      (Unicode):
      (WTF::Unicode::toLower):
      (WTF::Unicode::toUpper):
      (WTF::Unicode::toTitleCase):
      (WTF::Unicode::isArabicChar):
      (WTF::Unicode::isAlphanumeric):
      (WTF::Unicode::isFormatChar):
      (WTF::Unicode::isSeparatorSpace):
      (WTF::Unicode::isPrintableChar):
      (WTF::Unicode::isDigit):
      (WTF::Unicode::isPunct):
      (WTF::Unicode::hasLineBreakingPropertyComplexContext):
      (WTF::Unicode::hasLineBreakingPropertyComplexContextOrIdeographic):
      (WTF::Unicode::mirroredChar):
      (WTF::Unicode::category):
      (WTF::Unicode::isLower):
      (WTF::Unicode::digitValue):
      (WTF::Unicode::combiningClass):
      (WTF::Unicode::decompositionType):
      * wtf/unicode/icu/CollatorICU.cpp: Renamed from Source/JavaScriptCore/wtf/unicode/icu/CollatorICU.cpp.
      (WTF):
      (WTF::cachedCollatorMutex):
      (WTF::Collator::Collator):
      (WTF::Collator::userDefault):
      (WTF::Collator::~Collator):
      (WTF::Collator::setOrderLowerFirst):
      (WTF::Collator::collate):
      (WTF::Collator::createCollator):
      (WTF::Collator::releaseCollator):
      * wtf/unicode/icu/UnicodeIcu.h: Renamed from Source/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h.
      (Unicode):
      (WTF::Unicode::foldCase):
      (WTF::Unicode::toLower):
      (WTF::Unicode::toUpper):
      (WTF::Unicode::toTitleCase):
      (WTF::Unicode::isArabicChar):
      (WTF::Unicode::isAlphanumeric):
      (WTF::Unicode::isSeparatorSpace):
      (WTF::Unicode::isPrintableChar):
      (WTF::Unicode::isPunct):
      (WTF::Unicode::hasLineBreakingPropertyComplexContext):
      (WTF::Unicode::hasLineBreakingPropertyComplexContextOrIdeographic):
      (WTF::Unicode::mirroredChar):
      (WTF::Unicode::category):
      (WTF::Unicode::direction):
      (WTF::Unicode::isLower):
      (WTF::Unicode::combiningClass):
      (WTF::Unicode::decompositionType):
      (WTF::Unicode::umemcasecmp):
      * wtf/unicode/qt4/UnicodeQt4.h: Renamed from Source/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h.
      (Properties):
      (QUnicodeTables):
      (Unicode):
      (WTF::Unicode::toLower):
      (WTF::Unicode::toUpper):
      (WTF::Unicode::toTitleCase):
      (WTF::Unicode::foldCase):
      (WTF::Unicode::isArabicChar):
      (WTF::Unicode::isPrintableChar):
      (WTF::Unicode::isSeparatorSpace):
      (WTF::Unicode::isPunct):
      (WTF::Unicode::isLower):
      (WTF::Unicode::hasLineBreakingPropertyComplexContext):
      (WTF::Unicode::mirroredChar):
      (WTF::Unicode::combiningClass):
      (WTF::Unicode::decompositionType):
      (WTF::Unicode::umemcasecmp):
      (WTF::Unicode::direction):
      (WTF::Unicode::category):
      * wtf/unicode/wince/UnicodeWinCE.cpp: Renamed from Source/JavaScriptCore/wtf/unicode/wince/UnicodeWinCE.cpp.
      (Unicode):
      (WTF::Unicode::toLower):
      (WTF::Unicode::toUpper):
      (WTF::Unicode::foldCase):
      (WTF::Unicode::isPrintableChar):
      (WTF::Unicode::isSpace):
      (WTF::Unicode::isLetter):
      (WTF::Unicode::isUpper):
      (WTF::Unicode::isLower):
      (WTF::Unicode::isDigit):
      (WTF::Unicode::isPunct):
      (WTF::Unicode::isAlphanumeric):
      (WTF::Unicode::toTitleCase):
      (WTF::Unicode::direction):
      (WTF::Unicode::category):
      (WTF::Unicode::decompositionType):
      (WTF::Unicode::combiningClass):
      (WTF::Unicode::mirroredChar):
      (WTF::Unicode::digitValue):
      * wtf/unicode/wince/UnicodeWinCE.h: Renamed from Source/JavaScriptCore/wtf/unicode/wince/UnicodeWinCE.h.
      (Unicode):
      (WTF::Unicode::isSeparatorSpace):
      (WTF::Unicode::isHighSurrogate):
      (WTF::Unicode::isLowSurrogate):
      (WTF::Unicode::isArabicChar):
      (WTF::Unicode::hasLineBreakingPropertyComplexContext):
      (WTF::Unicode::umemcasecmp):
      (WTF::Unicode::surrogateToUcs4):
      * wtf/url/api/ParsedURL.cpp: Renamed from Source/JavaScriptCore/wtf/url/api/ParsedURL.cpp.
      (WTF):
      (WTF::ParsedURL::ParsedURL):
      (WTF::ParsedURL::isolatedCopy):
      (WTF::ParsedURL::scheme):
      (WTF::ParsedURL::username):
      (WTF::ParsedURL::password):
      (WTF::ParsedURL::host):
      (WTF::ParsedURL::port):
      (WTF::ParsedURL::path):
      (WTF::ParsedURL::query):
      (WTF::ParsedURL::fragment):
      (WTF::ParsedURL::baseAsString):
      (WTF::ParsedURL::segment):
      * wtf/url/api/ParsedURL.h: Renamed from Source/JavaScriptCore/wtf/url/api/ParsedURL.h.
      (WTF):
      (ParsedURL):
      (WTF::ParsedURL::ParsedURL):
      (WTF::ParsedURL::isValid):
      (WTF::ParsedURL::spec):
      * wtf/url/api/URLString.h: Renamed from Source/JavaScriptCore/wtf/url/api/URLString.h.
      (WTF):
      (URLString):
      (WTF::URLString::URLString):
      (WTF::URLString::string):
      * wtf/url/src/RawURLBuffer.h: Renamed from Source/JavaScriptCore/wtf/url/src/RawURLBuffer.h.
      (WTF):
      (RawURLBuffer):
      (WTF::RawURLBuffer::RawURLBuffer):
      (WTF::RawURLBuffer::~RawURLBuffer):
      (WTF::RawURLBuffer::resize):
      * wtf/url/src/URLBuffer.h: Renamed from Source/JavaScriptCore/wtf/url/src/URLBuffer.h.
      (WTF):
      (URLBuffer):
      (WTF::URLBuffer::URLBuffer):
      (WTF::URLBuffer::~URLBuffer):
      (WTF::URLBuffer::at):
      (WTF::URLBuffer::set):
      (WTF::URLBuffer::capacity):
      (WTF::URLBuffer::length):
      (WTF::URLBuffer::data):
      (WTF::URLBuffer::setLength):
      (WTF::URLBuffer::append):
      (WTF::URLBuffer::grow):
      * wtf/url/src/URLCharacterTypes.cpp: Renamed from Source/JavaScriptCore/wtf/url/src/URLCharacterTypes.cpp.
      (WTF):
      * wtf/url/src/URLCharacterTypes.h: Renamed from Source/JavaScriptCore/wtf/url/src/URLCharacterTypes.h.
      (WTF):
      (URLCharacterTypes):
      (WTF::URLCharacterTypes::isQueryChar):
      (WTF::URLCharacterTypes::isIPv4Char):
      (WTF::URLCharacterTypes::isHexChar):
      (WTF::URLCharacterTypes::isCharOfType):
      * wtf/url/src/URLComponent.h: Renamed from Source/JavaScriptCore/wtf/url/src/URLComponent.h.
      (WTF):
      (URLComponent):
      (WTF::URLComponent::URLComponent):
      (WTF::URLComponent::fromRange):
      (WTF::URLComponent::isValid):
      (WTF::URLComponent::isNonEmpty):
      (WTF::URLComponent::isEmptyOrInvalid):
      (WTF::URLComponent::reset):
      (WTF::URLComponent::operator==):
      (WTF::URLComponent::begin):
      (WTF::URLComponent::setBegin):
      (WTF::URLComponent::length):
      (WTF::URLComponent::setLength):
      (WTF::URLComponent::end):
      * wtf/url/src/URLEscape.cpp: Renamed from Source/JavaScriptCore/wtf/url/src/URLEscape.cpp.
      (WTF):
      * wtf/url/src/URLEscape.h: Renamed from Source/JavaScriptCore/wtf/url/src/URLEscape.h.
      (WTF):
      (WTF::appendURLEscapedCharacter):
      * wtf/url/src/URLParser.h: Renamed from Source/JavaScriptCore/wtf/url/src/URLParser.h.
      (WTF):
      (URLParser):
      (WTF::URLParser::isPossibleAuthorityTerminator):
      (WTF::URLParser::parseAuthority):
      (WTF::URLParser::extractScheme):
      (WTF::URLParser::parseAfterScheme):
      (WTF::URLParser::parseStandardURL):
      (WTF::URLParser::parsePath):
      (WTF::URLParser::parsePathURL):
      (WTF::URLParser::parseMailtoURL):
      (WTF::URLParser::parsePort):
      (WTF::URLParser::extractFileName):
      (WTF::URLParser::extractQueryKeyValue):
      (WTF::URLParser::isURLSlash):
      (WTF::URLParser::shouldTrimFromURL):
      (WTF::URLParser::trimURL):
      (WTF::URLParser::consecutiveSlashes):
      (WTF::URLParser::isPortDigit):
      (WTF::URLParser::nextAuthorityTerminator):
      (WTF::URLParser::parseUserInfo):
      (WTF::URLParser::parseServerInfo):
      * wtf/url/src/URLQueryCanonicalizer.h: Renamed from Source/JavaScriptCore/wtf/url/src/URLQueryCanonicalizer.h.
      (WTF):
      (URLQueryCanonicalizer):
      (WTF::URLQueryCanonicalizer::canonicalize):
      (WTF::URLQueryCanonicalizer::isAllASCII):
      (WTF::URLQueryCanonicalizer::isRaw8Bit):
      (WTF::URLQueryCanonicalizer::appendRaw8BitQueryString):
      (WTF::URLQueryCanonicalizer::convertToQueryEncoding):
      * wtf/url/src/URLSegments.cpp: Renamed from Source/JavaScriptCore/wtf/url/src/URLSegments.cpp.
      (WTF):
      (WTF::URLSegments::length):
      (WTF::URLSegments::charactersBefore):
      * wtf/url/src/URLSegments.h: Renamed from Source/JavaScriptCore/wtf/url/src/URLSegments.h.
      (WTF):
      (URLSegments):
      (WTF::URLSegments::URLSegments):
      * wtf/win/MainThreadWin.cpp: Renamed from Source/JavaScriptCore/wtf/win/MainThreadWin.cpp.
      (WTF):
      (WTF::ThreadingWindowWndProc):
      (WTF::initializeMainThreadPlatform):
      (WTF::scheduleDispatchFunctionsOnMainThread):
      * wtf/win/OwnPtrWin.cpp: Renamed from Source/JavaScriptCore/wtf/win/OwnPtrWin.cpp.
      (WTF):
      (WTF::deleteOwnedPtr):
      * wtf/wince/FastMallocWinCE.h: Renamed from Source/JavaScriptCore/wtf/wince/FastMallocWinCE.h.
      (operator new):
      (operator delete):
      (operator new[]):
      (operator delete[]):
      (throw):
      (WTF):
      (Internal):
      (WTF::Internal::fastMallocMatchValidationType):
      (WTF::Internal::fastMallocMatchValidationValue):
      (WTF::Internal::setFastMallocMatchValidationType):
      (WTF::fastMallocMatchValidateMalloc):
      (WTF::fastMallocMatchValidateFree):
      * wtf/wince/MemoryManager.cpp: Renamed from Source/JavaScriptCore/wtf/wince/MemoryManager.cpp.
      (WTF):
      (WTF::memoryManager):
      (WTF::MemoryManager::MemoryManager):
      (WTF::MemoryManager::~MemoryManager):
      (WTF::MemoryManager::createCompatibleBitmap):
      (WTF::MemoryManager::createDIBSection):
      (WTF::MemoryManager::m_malloc):
      (WTF::MemoryManager::m_calloc):
      (WTF::MemoryManager::m_realloc):
      (WTF::MemoryManager::m_free):
      (WTF::MemoryManager::resizeMemory):
      (WTF::MemoryManager::allocate64kBlock):
      (WTF::MemoryManager::free64kBlock):
      (WTF::MemoryManager::onIdle):
      (WTF::MemoryManager::virtualAlloc):
      (WTF::MemoryManager::virtualFree):
      (WTF::fastMalloc):
      (WTF::fastCalloc):
      (WTF::fastFree):
      (WTF::fastRealloc):
      (WTF::fastMallocForbid):
      (WTF::fastMallocAllow):
      (WTF::fastZeroedMalloc):
      (WTF::tryFastMalloc):
      (WTF::tryFastZeroedMalloc):
      (WTF::tryFastCalloc):
      (WTF::tryFastRealloc):
      (WTF::fastStrDup):
      * wtf/wince/MemoryManager.h: Renamed from Source/JavaScriptCore/wtf/wince/MemoryManager.h.
      (WTF):
      (MemoryManager):
      (WTF::MemoryManager::allocationCanFail):
      (WTF::MemoryManager::setAllocationCanFail):
      (MemoryAllocationCanFail):
      (WTF::MemoryAllocationCanFail::MemoryAllocationCanFail):
      (WTF::MemoryAllocationCanFail::~MemoryAllocationCanFail):
      (MemoryAllocationCannotFail):
      (WTF::MemoryAllocationCannotFail::MemoryAllocationCannotFail):
      (WTF::MemoryAllocationCannotFail::~MemoryAllocationCannotFail):
      * wtf/wx/MainThreadWx.cpp: Renamed from Source/JavaScriptCore/wtf/wx/MainThreadWx.cpp.
      (wxCallAfter):
      (wxCallAfter::wxCallAfter):
      (wxCallAfter::OnCallback):
      (WTF):
      (WTF::initializeMainThreadPlatform):
      (WTF::scheduleDispatchFunctionsOnMainThread):
      * wtf/wx/StringWx.cpp: Renamed from Source/JavaScriptCore/wtf/wx/StringWx.cpp.
      (WTF):
      (WTF::String::String):
      (WTF::String::operator wxString):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c215cc6
  6. 28 Nov, 2011 1 commit
    • oliver@apple.com's avatar
      Move typed array implementations into wtf · 9ce01c6f
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=73248
      
      Reviewed by Sam Weinig.
      
      Source/JavaScriptCore:
      
      Move typed array implementation files from WebCore to wtf.  Inline the
      .cpp files for each of the array views to cut down on unnecessary exports
      and function call overhead for trivial operations.
      
      Added files to all the project files.
      
      * GNUmakefile.list.am:
      * JavaScriptCore.exp:
      * JavaScriptCore.vcproj/WTF/WTF.vcproj:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/ArrayBuffer.cpp: Renamed from Source/WebCore/html/canvas/Float32Array.cpp.
      (WTF::ArrayBuffer::transfer):
      (WTF::ArrayBuffer::addView):
      (WTF::ArrayBuffer::removeView):
      * wtf/ArrayBuffer.h: Renamed from Source/WebCore/html/canvas/ArrayBuffer.cpp.
      (WTF::ArrayBufferContents::ArrayBufferContents):
      (WTF::ArrayBufferContents::data):
      (WTF::ArrayBufferContents::sizeInBytes):
      (WTF::ArrayBufferContents::transfer):
      (WTF::ArrayBuffer::~ArrayBuffer):
      (WTF::ArrayBuffer::clampValue):
      (WTF::ArrayBuffer::create):
      (WTF::ArrayBuffer::ArrayBuffer):
      (WTF::ArrayBuffer::data):
      (WTF::ArrayBuffer::byteLength):
      (WTF::ArrayBuffer::slice):
      (WTF::ArrayBuffer::sliceImpl):
      (WTF::ArrayBuffer::clampIndex):
      (WTF::ArrayBufferContents::tryAllocate):
      (WTF::ArrayBufferContents::~ArrayBufferContents):
      * wtf/ArrayBufferView.cpp: Copied from Source/WebCore/bindings/js/JSArrayBufferCustom.cpp.
      (WTF::ArrayBufferView::ArrayBufferView):
      (WTF::ArrayBufferView::~ArrayBufferView):
      (WTF::ArrayBufferView::neuter):
      * wtf/ArrayBufferView.h: Renamed from Source/WebCore/html/canvas/ArrayBufferView.h.
      (WTF::ArrayBufferView::isByteArray):
      (WTF::ArrayBufferView::isUnsignedByteArray):
      (WTF::ArrayBufferView::isShortArray):
      (WTF::ArrayBufferView::isUnsignedShortArray):
      (WTF::ArrayBufferView::isIntArray):
      (WTF::ArrayBufferView::isUnsignedIntArray):
      (WTF::ArrayBufferView::isFloatArray):
      (WTF::ArrayBufferView::isDoubleArray):
      (WTF::ArrayBufferView::isDataView):
      (WTF::ArrayBufferView::buffer):
      (WTF::ArrayBufferView::baseAddress):
      (WTF::ArrayBufferView::byteOffset):
      (WTF::ArrayBufferView::verifySubRange):
      (WTF::ArrayBufferView::clampOffsetAndNumElements):
      (WTF::ArrayBufferView::setImpl):
      (WTF::ArrayBufferView::setRangeImpl):
      (WTF::ArrayBufferView::zeroRangeImpl):
      (WTF::ArrayBufferView::calculateOffsetAndLength):
      * wtf/CMakeLists.txt:
      * wtf/Float32Array.h: Renamed from Source/WebCore/html/canvas/Float32Array.h.
      (WTF::Float32Array::set):
      (WTF::Float32Array::item):
      (WTF::Float32Array::isFloatArray):
      (WTF::Float32Array::create):
      (WTF::Float32Array::Float32Array):
      (WTF::Float32Array::subarray):
      * wtf/Float64Array.h: Renamed from Source/WebCore/html/canvas/Float64Array.h.
      (WTF::Float64Array::set):
      (WTF::Float64Array::item):
      (WTF::Float64Array::isDoubleArray):
      (WTF::Float64Array::create):
      (WTF::Float64Array::Float64Array):
      (WTF::Float64Array::subarray):
      * wtf/Int16Array.h: Renamed from Source/WebCore/html/canvas/Int16Array.cpp.
      (WTF::Int16Array::set):
      (WTF::Int16Array::isShortArray):
      (WTF::Int16Array::create):
      (WTF::Int16Array::Int16Array):
      (WTF::Int16Array::subarray):
      * wtf/Int32Array.h: Renamed from Source/WebCore/html/canvas/Int32Array.cpp.
      (WTF::Int32Array::set):
      (WTF::Int32Array::isIntArray):
      (WTF::Int32Array::create):
      (WTF::Int32Array::Int32Array):
      (WTF::Int32Array::subarray):
      * wtf/Int8Array.h: Renamed from Source/WebCore/html/canvas/Int8Array.cpp.
      (WTF::Int8Array::set):
      (WTF::Int8Array::isByteArray):
      (WTF::Int8Array::create):
      (WTF::Int8Array::Int8Array):
      (WTF::Int8Array::subarray):
      * wtf/IntegralTypedArrayBase.h: Renamed from Source/WebCore/html/canvas/IntegralTypedArrayBase.h.
      (WTF::IntegralTypedArrayBase::set):
      (WTF::IntegralTypedArrayBase::item):
      (WTF::IntegralTypedArrayBase::IntegralTypedArrayBase):
      * wtf/TypedArrayBase.h: Renamed from Source/WebCore/html/canvas/TypedArrayBase.h.
      (WTF::TypedArrayBase::data):
      (WTF::TypedArrayBase::set):
      (WTF::TypedArrayBase::setRange):
      (WTF::TypedArrayBase::zeroRange):
      (WTF::TypedArrayBase::length):
      (WTF::TypedArrayBase::byteLength):
      (WTF::TypedArrayBase::TypedArrayBase):
      (WTF::TypedArrayBase::create):
      (WTF::TypedArrayBase::subarrayImpl):
      * wtf/Uint16Array.h: Renamed from Source/WebCore/html/canvas/Uint16Array.cpp.
      (WTF::Uint16Array::set):
      (WTF::Uint16Array::isUnsignedShortArray):
      (WTF::Uint16Array::create):
      (WTF::Uint16Array::Uint16Array):
      (WTF::Uint16Array::subarray):
      * wtf/Uint32Array.h: Renamed from Source/WebCore/html/canvas/Uint32Array.cpp.
      (WTF::Uint32Array::set):
      (WTF::Uint32Array::isUnsignedIntArray):
      (WTF::Uint32Array::create):
      (WTF::Uint32Array::Uint32Array):
      (WTF::Uint32Array::subarray):
      * wtf/Uint8Array.h: Renamed from Source/WebCore/html/canvas/Uint8Array.h.
      (WTF::Uint8Array::set):
      (WTF::Uint8Array::isUnsignedByteArray):
      (WTF::Uint8Array::create):
      (WTF::Uint8Array::Uint8Array):
      (WTF::Uint8Array::subarray):
      * wtf/wtf.pro:
      
      Source/WebCore:
      
      Removed the typed array implementation files from WebCore and
      added forwarding headers.
      
      * CMakeLists.txt:
      * ForwardingHeaders/wtf/ArrayBuffer.h: Added.
      * ForwardingHeaders/wtf/ArrayBufferView.h: Added.
      * ForwardingHeaders/wtf/Float32Array.h: Added.
      * ForwardingHeaders/wtf/Float64Array.h: Added.
      * ForwardingHeaders/wtf/Int16Array.h: Added.
      * ForwardingHeaders/wtf/Int32Array.h: Added.
      * ForwardingHeaders/wtf/Int8Array.h: Added.
      * ForwardingHeaders/wtf/Uint16Array.h: Added.
      * ForwardingHeaders/wtf/Uint32Array.h: Added.
      * ForwardingHeaders/wtf/Uint8Array.h: Added.
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSArrayBufferCustom.cpp:
      * bindings/js/JSArrayBufferViewHelper.h:
      * bindings/js/JSAudioContextCustom.cpp:
      * bindings/js/JSFileReaderCustom.cpp:
      * bindings/js/JSFloat32ArrayCustom.cpp:
      * bindings/js/JSFloat64ArrayCustom.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/js/JSWaveShaperNodeCustom.cpp:
      * bindings/js/JSWebGLRenderingContextCustom.cpp:
      * bindings/js/JSXMLHttpRequestCustom.cpp:
      * bindings/scripts/CodeGeneratorJS.pm:
      (AddIncludesForType):
      (GenerateHeader):
      (NativeToJSValue):
      * bindings/scripts/test/JS/JSFloat64Array.cpp:
      * bindings/scripts/test/JS/JSFloat64Array.h:
      * dom/MessageEvent.h:
      * fileapi/FileReader.cpp:
      * fileapi/FileReaderLoader.cpp:
      * fileapi/FileReaderSync.cpp:
      * fileapi/WebKitBlobBuilder.cpp:
      * html/HTMLMediaElement.cpp:
      * html/canvas/ArrayBuffer.h: Removed.
      * html/canvas/ArrayBufferView.cpp: Removed.
      * html/canvas/DataView.h:
      * html/canvas/Float64Array.cpp: Removed.
      * html/canvas/Int16Array.h: Removed.
      * html/canvas/Int32Array.h: Removed.
      * html/canvas/Int8Array.h: Removed.
      * html/canvas/Uint16Array.h: Removed.
      * html/canvas/Uint32Array.h: Removed.
      * html/canvas/Uint8Array.cpp: Removed.
      * html/canvas/WebGLBuffer.cpp:
      * html/canvas/WebGLBuffer.h:
      * html/canvas/WebGLGetInfo.cpp:
      * html/canvas/WebGLGetInfo.h:
      * html/canvas/WebGLRenderingContext.cpp:
      * html/canvas/WebGLRenderingContext.h:
      * page/Crypto.cpp:
      * platform/graphics/GraphicsContext3D.cpp:
      * platform/graphics/mac/GraphicsContext3DMac.mm:
      * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
      * webaudio/AsyncAudioDecoder.cpp:
      * webaudio/AudioBuffer.h:
      * webaudio/AudioContext.cpp:
      * webaudio/AudioParam.h:
      * webaudio/AudioParamTimeline.h:
      * webaudio/JavaScriptAudioNode.cpp:
      * webaudio/RealtimeAnalyser.cpp:
      * webaudio/WaveShaperProcessor.h:
      * websockets/WebSocketChannel.cpp:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      * xml/XMLHttpRequest.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ce01c6f
  7. 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
  8. 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
  9. 02 Feb, 2011 1 commit
    • kbr@google.com's avatar
      2011-02-02 Kenneth Russell <kbr@google.com> · 5a0aca35
      kbr@google.com authored
              Reviewed by James Robinson.
      
              Rename Typed Array subset to subarray
              https://bugs.webkit.org/show_bug.cgi?id=53618
      
              * fast/canvas/webgl/array-setters.html:
              * fast/canvas/webgl/array-unit-tests-expected.txt:
              * fast/canvas/webgl/array-unit-tests.html:
              * fast/canvas/webgl/draw-elements-out-of-bounds-expected.txt:
              * fast/canvas/webgl/draw-elements-out-of-bounds.html:
              * fast/canvas/webgl/webgl-array-invalid-ranges-expected.txt:
              * fast/canvas/webgl/webgl-array-invalid-ranges.html:
      2011-02-02  Kenneth Russell  <kbr@google.com>
      
              Reviewed by James Robinson.
      
              Rename Typed Array subset to subarray
              https://bugs.webkit.org/show_bug.cgi?id=53618
      
              * html/canvas/Float32Array.cpp:
              (WebCore::Float32Array::subarray):
              * html/canvas/Float32Array.h:
              * html/canvas/Float32Array.idl:
              * html/canvas/Int16Array.cpp:
              (WebCore::Int16Array::subarray):
              * html/canvas/Int16Array.h:
              * html/canvas/Int16Array.idl:
              * html/canvas/Int32Array.cpp:
              (WebCore::Int32Array::subarray):
              * html/canvas/Int32Array.h:
              * html/canvas/Int32Array.idl:
              * html/canvas/Int8Array.cpp:
              (WebCore::Int8Array::subarray):
              * html/canvas/Int8Array.h:
              * html/canvas/Int8Array.idl:
              * html/canvas/TypedArrayBase.h:
              (WebCore::TypedArrayBase::subarrayImpl):
              * html/canvas/Uint16Array.cpp:
              (WebCore::Uint16Array::subarray):
              * html/canvas/Uint16Array.h:
              * html/canvas/Uint16Array.idl:
              * html/canvas/Uint32Array.cpp:
              (WebCore::Uint32Array::subarray):
              * html/canvas/Uint32Array.h:
              * html/canvas/Uint32Array.idl:
              * html/canvas/Uint8Array.cpp:
              (WebCore::Uint8Array::subarray):
              * html/canvas/Uint8Array.h:
              * html/canvas/Uint8Array.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77412 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a0aca35
  10. 28 Jan, 2011 1 commit
    • kbr@google.com's avatar
      2011-01-27 Kenneth Russell <kbr@google.com> · 761e3037
      kbr@google.com authored
              Reviewed by James Robinson.
      
              Rename Typed Array slice() to subset()
              https://bugs.webkit.org/show_bug.cgi?id=53273
      
              * bindings/js/JSArrayBufferViewHelper.h:
              (WebCore::constructArrayBufferView):
              * bindings/v8/custom/V8ArrayBufferViewCustom.h:
              (WebCore::constructWebGLArray):
              * html/canvas/Float32Array.cpp:
              (WebCore::Float32Array::subset):
              * html/canvas/Float32Array.h:
              * html/canvas/Float32Array.idl:
              * html/canvas/Int16Array.cpp:
              (WebCore::Int16Array::subset):
              * html/canvas/Int16Array.h:
              * html/canvas/Int16Array.idl:
              * html/canvas/Int32Array.cpp:
              (WebCore::Int32Array::subset):
              * html/canvas/Int32Array.h:
              * html/canvas/Int32Array.idl:
              * html/canvas/Int8Array.cpp:
              (WebCore::Int8Array::subset):
              * html/canvas/Int8Array.h:
              * html/canvas/Int8Array.idl:
              * html/canvas/TypedArrayBase.h:
              (WebCore::TypedArrayBase::subsetImpl):
              * html/canvas/Uint16Array.cpp:
              (WebCore::Uint16Array::subset):
              * html/canvas/Uint16Array.h:
              * html/canvas/Uint16Array.idl:
              * html/canvas/Uint32Array.cpp:
              (WebCore::Uint32Array::subset):
              * html/canvas/Uint32Array.h:
              * html/canvas/Uint32Array.idl:
              * html/canvas/Uint8Array.cpp:
              (WebCore::Uint8Array::subset):
              * html/canvas/Uint8Array.h:
              * html/canvas/Uint8Array.idl:
      2011-01-27  Kenneth Russell  <kbr@google.com>
      
              Reviewed by James Robinson.
      
              Rename Typed Array slice() to subset()
              https://bugs.webkit.org/show_bug.cgi?id=53273
      
              * fast/canvas/webgl/array-setters.html:
              * fast/canvas/webgl/array-unit-tests-expected.txt:
              * fast/canvas/webgl/array-unit-tests.html:
              * fast/canvas/webgl/draw-elements-out-of-bounds-expected.txt:
              * fast/canvas/webgl/draw-elements-out-of-bounds.html:
              * fast/canvas/webgl/webgl-array-invalid-ranges-expected.txt:
              * fast/canvas/webgl/webgl-array-invalid-ranges.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      761e3037
  11. 25 Jan, 2011 1 commit
    • cmarrin@apple.com's avatar
      2011-01-24 Chris Marrin <cmarrin@apple.com> · 8b28bbc8
      cmarrin@apple.com authored
              Reviewed by Eric Seidel.
      
              Change ENABLE_3D_CANVAS to ENABLE_WEBGL
              https://bugs.webkit.org/show_bug.cgi?id=53041
      
              * configure.ac:
      2011-01-24  Chris Marrin  <cmarrin@apple.com>
      
              Reviewed by Eric Seidel.
      
              Change ENABLE_3D_CANVAS to ENABLE_WEBGL
              https://bugs.webkit.org/show_bug.cgi?id=53041
      
              * Configurations/FeatureDefines.xcconfig:
      2011-01-24  Chris Marrin  <cmarrin@apple.com>
      
              Reviewed by Eric Seidel.
      
              Change ENABLE_3D_CANVAS to ENABLE_WEBGL
              https://bugs.webkit.org/show_bug.cgi?id=53041
      
              * WebKit.gyp:
              * features.gypi:
              * src/Extensions3DChromium.cpp:
              * src/GraphicsContext3DChromium.cpp:
              * src/WebRuntimeFeatures.cpp:
              (WebKit::WebRuntimeFeatures::enableWebGL):
              (WebKit::WebRuntimeFeatures::isWebGLEnabled):
      2011-01-24  Chris Marrin  <cmarrin@apple.com>
      
              Reviewed by Eric Seidel.
      
              Change ENABLE_3D_CANVAS to ENABLE_WEBGL
              https://bugs.webkit.org/show_bug.cgi?id=53041
      
              * Api/qwebsettings.cpp:
              (QWebSettingsPrivate::apply):
      2011-01-24  Chris Marrin  <cmarrin@apple.com>
      
              Reviewed by Eric Seidel.
      
              Change ENABLE_3D_CANVAS to ENABLE_WEBGL
              https://bugs.webkit.org/show_bug.cgi?id=53041
      
              * WebView.cpp:
              (WebView::notifyPreferencesChanged):
      2011-01-24  Chris Marrin  <cmarrin@apple.com>
      
              Reviewed by Eric Seidel.
      
              Change ENABLE_3D_CANVAS to ENABLE_WEBGL
              https://bugs.webkit.org/show_bug.cgi?id=53041
      
              * Configurations/FeatureDefines.xcconfig:
      2011-01-24  Chris Marrin  <cmarrin@apple.com>
      
              Reviewed by Eric Seidel.
      
              Change ENABLE_3D_CANVAS to ENABLE_WEBGL
              https://bugs.webkit.org/show_bug.cgi?id=53041
      
              * Configurations/FeatureDefines.xcconfig:
              * DerivedSources.cpp:
              * GNUmakefile.am:
              * WebCore.pro:
              * bindings/generic/RuntimeEnabledFeatures.h:
              * bindings/js/JSArrayBufferCustom.cpp:
              * bindings/js/JSCanvasRenderingContextCustom.cpp:
              (WebCore::toJS):
              * bindings/js/JSDOMWindowCustom.cpp:
              * bindings/js/JSDataViewCustom.cpp:
              * bindings/js/JSDocumentCustom.cpp:
              * bindings/js/JSFloat32ArrayCustom.cpp:
              * bindings/js/JSHTMLCanvasElementCustom.cpp:
              (WebCore::JSHTMLCanvasElement::getContext):
              * 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/js/JSWebGLRenderingContextCustom.cpp:
              * bindings/js/JSXMLHttpRequestCustom.cpp:
              (WebCore::JSXMLHttpRequest::markChildren):
              (WebCore::JSXMLHttpRequest::send):
              (WebCore::JSXMLHttpRequest::response):
              * bindings/v8/custom/V8ArrayBufferCustom.cpp:
              * bindings/v8/custom/V8ArrayBufferViewCustom.h:
              * bindings/v8/custom/V8DataViewCustom.cpp:
              * bindings/v8/custom/V8DocumentCustom.cpp:
              (WebCore::V8Document::getCSSCanvasContextCallback):
              * bindings/v8/custom/V8Float32ArrayCustom.cpp:
              * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
              (WebCore::V8HTMLCanvasElement::getContextCallback):
              * 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:
              * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
              * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
              (WebCore::V8XMLHttpRequest::responseAccessorGetter):
              (WebCore::V8XMLHttpRequest::sendCallback):
              * features.pri:
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::getContext):
              (WebCore::HTMLCanvasElement::reset):
              * html/HTMLCanvasElement.h:
              * 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/OESStandardDerivatives.cpp:
              * html/canvas/OESStandardDerivatives.idl:
              * html/canvas/OESTextureFloat.cpp:
              * html/canvas/OESTextureFloat.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:
              * html/canvas/WebGLActiveInfo.idl:
              * html/canvas/WebGLBuffer.cpp:
              * html/canvas/WebGLBuffer.idl:
              * html/canvas/WebGLContextAttributes.cpp:
              * html/canvas/WebGLContextAttributes.idl:
              * html/canvas/WebGLContextEvent.idl:
              * html/canvas/WebGLExtension.cpp:
              * html/canvas/WebGLFramebuffer.cpp:
              * html/canvas/WebGLFramebuffer.idl:
              * html/canvas/WebGLGetInfo.cpp:
              * html/canvas/WebGLObject.cpp:
              * html/canvas/WebGLProgram.cpp:
              * html/canvas/WebGLProgram.idl:
              * html/canvas/WebGLRenderbuffer.cpp:
              * html/canvas/WebGLRenderbuffer.idl:
              * html/canvas/WebGLRenderingContext.cpp:
              * html/canvas/WebGLRenderingContext.idl:
              * html/canvas/WebGLShader.cpp:
              * html/canvas/WebGLShader.idl:
              * html/canvas/WebGLTexture.cpp:
              * html/canvas/WebGLTexture.idl:
              * html/canvas/WebGLUniformLocation.cpp:
              * html/canvas/WebGLUniformLocation.idl:
              * html/canvas/WebKitLoseContext.cpp:
              * html/canvas/WebKitLoseContext.idl:
              * page/DOMWindow.idl:
              * platform/graphics/ANGLEWebKitBridge.cpp:
              * platform/graphics/GraphicsContext3D.cpp:
              * platform/graphics/cg/GraphicsContext3DCG.cpp:
              * platform/graphics/gpu/DrawingBuffer.cpp:
              * platform/graphics/gpu/mac/DrawingBufferMac.mm:
              * platform/graphics/mac/GraphicsContext3DMac.mm:
              * platform/graphics/mac/WebGLLayer.mm:
              * platform/graphics/opengl/Extensions3DOpenGL.cpp:
              * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
              * platform/graphics/qt/Extensions3DQt.cpp:
              * platform/graphics/qt/GraphicsContext3DQt.cpp:
              * platform/graphics/qt/GraphicsLayerQt.cpp:
              (WebCore::GraphicsLayerQtImpl::GraphicsLayerQtImpl):
              (WebCore::GraphicsLayerQtImpl::paint):
              (WebCore::GraphicsLayerQtImpl::flushChanges):
              * platform/graphics/qt/GraphicsLayerQt.h:
              * platform/graphics/skia/GraphicsContext3DSkia.cpp:
              * platform/graphics/texmap/GraphicsLayerTextureMapper.h:
              * rendering/RenderLayerBacking.cpp:
              (WebCore::isAcceleratedCanvas):
              (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
              (WebCore::RenderLayerBacking::containsPaintedContent):
              (WebCore::RenderLayerBacking::contentChanged):
              * webaudio/AudioBuffer.cpp:
              * webaudio/AudioBuffer.idl:
              * webaudio/RealtimeAnalyser.cpp:
              * webaudio/RealtimeAnalyser.h:
              * webaudio/RealtimeAnalyserNode.h:
              * webaudio/RealtimeAnalyserNode.idl:
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::setResponseType):
              (WebCore::XMLHttpRequest::clearResponse):
              (WebCore::XMLHttpRequest::didReceiveData):
              * xml/XMLHttpRequest.h:
      2011-01-24  Chris Marrin  <cmarrin@apple.com>
      
              Reviewed by Eric Seidel.
      
              Change ENABLE_3D_CANVAS to ENABLE_WEBGL
              https://bugs.webkit.org/show_bug.cgi?id=53041
      
              * Configurations/FeatureDefines.xcconfig:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b28bbc8
  12. 08 Jan, 2011 1 commit
  13. 19 Nov, 2010 1 commit
    • jianli@chromium.org's avatar
      Move length and slice out of ArrayBufferView interface · dd35f9af
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=49697
      
      Reviewed by Kenneth Russell.
      
      No functionality change. Covered by existing ArrayBuffer tests.
      
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSArrayBufferViewCustom.cpp: Removed.
      * bindings/v8/custom/V8ArrayBufferViewCustom.cpp: Removed.
      * html/canvas/ArrayBufferView.h:
      * html/canvas/ArrayBufferView.idl:
      * html/canvas/Float32Array.cpp:
      (WebCore::Float32Array::slice):
      * html/canvas/Float32Array.h:
      * html/canvas/Float32Array.idl:
      * html/canvas/Int16Array.cpp:
      (WebCore::Int16Array::slice):
      * html/canvas/Int16Array.h:
      * html/canvas/Int16Array.idl:
      * html/canvas/Int32Array.cpp:
      (WebCore::Int32Array::slice):
      * html/canvas/Int32Array.h:
      * html/canvas/Int32Array.idl:
      * html/canvas/Int8Array.cpp:
      (WebCore::Int8Array::slice):
      * html/canvas/Int8Array.h:
      * html/canvas/Int8Array.idl:
      * html/canvas/TypedArrayBase.h:
      (WebCore::TypedArrayBase::length):
      * html/canvas/Uint16Array.cpp:
      (WebCore::Uint16Array::slice):
      * html/canvas/Uint16Array.h:
      * html/canvas/Uint16Array.idl:
      * html/canvas/Uint32Array.cpp:
      (WebCore::Uint32Array::slice):
      * html/canvas/Uint32Array.h:
      * html/canvas/Uint32Array.idl:
      * html/canvas/Uint8Array.cpp:
      (WebCore::Uint8Array::slice):
      * html/canvas/Uint8Array.h:
      * html/canvas/Uint8Array.idl:
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore::WebGLRenderingContext::readPixels):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd35f9af
  14. 11 Oct, 2010 1 commit
    • jianli@chromium.org's avatar
      Add File API feature guard to all typed array files · 2225291f
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=47437
      
      Reviewed by Adam Barth.
      
      Since we're going to add ArrayBuffer support to FileReader and BlobBuilder,
      we need to update all type array files to include File API feature guard
      in addition to the existing 3D_CANVAS guard. When ArrayBuffer is used in
      XMLHttpRequest, we will then remove all the guards. This is per the
      discussion on webkit-dev mailing list:
      https://lists.webkit.org/pipermail/webkit-dev/2010-October/014716.html
      
      * html/canvas/ArrayBuffer.cpp:
      * html/canvas/ArrayBuffer.idl:
      * html/canvas/ArrayBufferView.cpp:
      * html/canvas/ArrayBufferView.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:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2225291f
  15. 14 May, 2010 1 commit
    • kbr@google.com's avatar
      2010-05-14 Kenneth Russell <kbr@google.com> · 3706f9b1
      kbr@google.com authored
              Reviewed by Darin Adler.
      
              Rename WebGLArray types to TypedArray types
              https://bugs.webkit.org/show_bug.cgi?id=39091
      
              Extended functionality of do-webcore-rename script and used it to
              rename the WebGLArray types to the TypedArray naming convention.
              The only source files which were touched by hand, and which are
              being manually reviewed, are:
                  WebCore/page/DOMWindow.idl
                  WebCore/bindings/generic/RuntimeEnabledFeatures.h (script's changes undone)
                  WebKit/WebCore/bindings/js/JSDOMWindowCustom.cpp
                  WebKit/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp
              These only needed to be touched to update the aliases between the
              WebGLArray and TypedArray names introduced in bug 39036. (It was
              not feasible to have do-webcore-rename handle this as it would
              introduce circular renamings.) These aliases will be removed in
              roughly a month once existing WebGL content has been updated.
      
              No new tests; covered under existing WebGL tests. Updated
              constructed-objects-prototypes and prototype-inheritance-2 tests.
              Ran all layout tests in Safari and all WebGL tests in Chromium.
      
              * src/GraphicsContext3D.cpp:
              (WebCore::GraphicsContext3DInternal::bufferData):
              (WebCore::GraphicsContext3DInternal::bufferSubData):
      2010-05-14  Kenneth Russell  <kbr@google.com>
      
              Reviewed by Darin Adler.
      
              Rename WebGLArray types to TypedArray types
              https://bugs.webkit.org/show_bug.cgi?id=39091
      
              Extended functionality of do-webcore-rename script and used it to
              rename the WebGLArray types to the TypedArray naming convention.
              The only source files which were touched by hand, and which are
              being manually reviewed, are:
                  WebCore/page/DOMWindow.idl
                  WebCore/bindings/generic/RuntimeEnabledFeatures.h (script's changes undone)
                  WebKit/WebCore/bindings/js/JSDOMWindowCustom.cpp
                  WebKit/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp
              These only needed to be touched to update the aliases between the
              WebGLArray and TypedArray names introduced in bug 39036. (It was
              not feasible to have do-webcore-rename handle this as it would
              introduce circular renamings.) These aliases will be removed in
              roughly a month once existing WebGL content has been updated.
      
              No new tests; covered under existing WebGL tests. Updated
              constructed-objects-prototypes and prototype-inheritance-2 tests.
              Ran all layout tests in Safari and all WebGL tests in Chromium.
      
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSArrayBufferConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLArrayBufferConstructor.cpp.
              (WebCore::):
              (WebCore::JSArrayBufferConstructor::JSArrayBufferConstructor):
              (WebCore::constructCanvasArrayBuffer):
              (WebCore::JSArrayBufferConstructor::getConstructData):
              * bindings/js/JSArrayBufferConstructor.h: Copied from WebCore/bindings/js/JSWebGLArrayBufferConstructor.h.
              (WebCore::construct):
              * bindings/js/JSArrayBufferViewCustom.cpp: Copied from WebCore/bindings/js/JSWebGLArrayCustom.cpp.
              (WebCore::toJS):
              (WebCore::JSArrayBufferView::slice):
              * bindings/js/JSArrayBufferViewHelper.h: Copied from WebCore/bindings/js/JSWebGLArrayHelper.h.
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::arrayBuffer):
              (WebCore::JSDOMWindow::int8Array):
              (WebCore::JSDOMWindow::uint8Array):
              (WebCore::JSDOMWindow::int32Array):
              (WebCore::JSDOMWindow::uint32Array):
              (WebCore::JSDOMWindow::int16Array):
              (WebCore::JSDOMWindow::uint16Array):
              (WebCore::JSDOMWindow::floatArray):
              (WebCore::JSDOMWindow::webGLArrayBuffer):
              (WebCore::JSDOMWindow::webGLByteArray):
              (WebCore::JSDOMWindow::webGLUnsignedByteArray):
              (WebCore::JSDOMWindow::webGLIntArray):
              (WebCore::JSDOMWindow::webGLUnsignedIntArray):
              (WebCore::JSDOMWindow::webGLShortArray):
              (WebCore::JSDOMWindow::webGLUnsignedShortArray):
              (WebCore::JSDOMWindow::webGLFloatArray):
              * bindings/js/JSFloatArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLFloatArrayConstructor.cpp.
              (WebCore::):
              (WebCore::JSFloatArrayConstructor::JSFloatArrayConstructor):
              (WebCore::constructCanvasFloatArray):
              (WebCore::JSFloatArrayConstructor::getConstructData):
              * bindings/js/JSFloatArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLFloatArrayConstructor.h.
              * bindings/js/JSFloatArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLFloatArrayCustom.cpp.
              (WebCore::JSFloatArray::indexSetter):
              (WebCore::toJS):
              (WebCore::JSFloatArray::set):
              * bindings/js/JSInt16ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLShortArrayConstructor.cpp.
              (WebCore::):
              (WebCore::JSInt16ArrayConstructor::JSInt16ArrayConstructor):
              (WebCore::constructCanvasShortArray):
              (WebCore::JSInt16ArrayConstructor::getConstructData):
              * bindings/js/JSInt16ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLShortArrayConstructor.h.
              * bindings/js/JSInt16ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLShortArrayCustom.cpp.
              (WebCore::JSInt16Array::indexSetter):
              (WebCore::toJS):
              (WebCore::JSInt16Array::set):
              * bindings/js/JSInt32ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLIntArrayConstructor.cpp.
              (WebCore::):
              (WebCore::JSInt32ArrayConstructor::JSInt32ArrayConstructor):
              (WebCore::constructCanvasIntArray):
              (WebCore::JSInt32ArrayConstructor::getConstructData):
              * bindings/js/JSInt32ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLIntArrayConstructor.h.
              * bindings/js/JSInt32ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLIntArrayCustom.cpp.
              (WebCore::JSInt32Array::indexSetter):
              (WebCore::toJS):
              (WebCore::JSInt32Array::set):
              * bindings/js/JSInt8ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLByteArrayConstructor.cpp.
              (WebCore::):
              (WebCore::JSInt8ArrayConstructor::JSInt8ArrayConstructor):
              (WebCore::constructCanvasByteArray):
              (WebCore::JSInt8ArrayConstructor::getConstructData):
              * bindings/js/JSInt8ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLByteArrayConstructor.h.
              * bindings/js/JSInt8ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLByteArrayCustom.cpp.
              (WebCore::JSInt8Array::indexSetter):
              (WebCore::toJS):
              (WebCore::JSInt8Array::set):
              * bindings/js/JSUint16ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedShortArrayConstructor.cpp.
              (WebCore::):
              (WebCore::JSUint16ArrayConstructor::JSUint16ArrayConstructor):
              (WebCore::constructCanvasUnsignedShortArray):
              (WebCore::JSUint16ArrayConstructor::getConstructData):
              * bindings/js/JSUint16ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLUnsignedShortArrayConstructor.h.
              * bindings/js/JSUint16ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedShortArrayCustom.cpp.
              (WebCore::JSUint16Array::indexSetter):
              (WebCore::toJS):
              (WebCore::JSUint16Array::set):
              * bindings/js/JSUint32ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedIntArrayConstructor.cpp.
              (WebCore::):
              (WebCore::JSUint32ArrayConstructor::JSUint32ArrayConstructor):
              (WebCore::constructCanvasUnsignedIntArray):
              (WebCore::JSUint32ArrayConstructor::getConstructData):
              * bindings/js/JSUint32ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLUnsignedIntArrayConstructor.h.
              * bindings/js/JSUint32ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedIntArrayCustom.cpp.
              (WebCore::JSUint32Array::indexSetter):
              (WebCore::toJS):
              (WebCore::JSUint32Array::set):
              * bindings/js/JSUint8ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedByteArrayConstructor.cpp.
              (WebCore::):
              (WebCore::JSUint8ArrayConstructor::JSUint8ArrayConstructor):
              (WebCore::constructCanvasUnsignedByteArray):
              (WebCore::JSUint8ArrayConstructor::getConstructData):
              * bindings/js/JSUint8ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLUnsignedByteArrayConstructor.h.
              * bindings/js/JSUint8ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedByteArrayCustom.cpp.
              (WebCore::JSUint8Array::indexSetter):
              (WebCore::toJS):
              (WebCore::JSUint8Array::set):
              * bindings/js/JSWebGLArrayBufferConstructor.cpp: Removed.
              * bindings/js/JSWebGLArrayBufferConstructor.h: Removed.
              * bindings/js/JSWebGLArrayCustom.cpp: Removed.
              * bindings/js/JSWebGLArrayHelper.h: Removed.
              * bindings/js/JSWebGLByteArrayConstructor.cpp: Removed.
              * bindings/js/JSWebGLByteArrayConstructor.h: Removed.
              * bindings/js/JSWebGLByteArrayCustom.cpp: Removed.
              * bindings/js/JSWebGLFloatArrayConstructor.cpp: Removed.
              * bindings/js/JSWebGLFloatArrayConstructor.h: Removed.
              * bindings/js/JSWebGLFloatArrayCustom.cpp: Removed.
              * bindings/js/JSWebGLIntArrayConstructor.cpp: Removed.
              * bindings/js/JSWebGLIntArrayConstructor.h: Removed.
              * bindings/js/JSWebGLIntArrayCustom.cpp: Removed.
              * bindings/js/JSWebGLRenderingContextCustom.cpp:
              (WebCore::JSWebGLRenderingContext::bufferData):
              (WebCore::JSWebGLRenderingContext::bufferSubData):
              (WebCore::JSWebGLRenderingContext::texImage2D):
              (WebCore::JSWebGLRenderingContext::texSubImage2D):
              (WebCore::dataFunctionf):
              (WebCore::dataFunctioni):
              (WebCore::dataFunctionMatrix):
              * bindings/js/JSWebGLShortArrayConstructor.cpp: Removed.
              * bindings/js/JSWebGLShortArrayConstructor.h: Removed.
              * bindings/js/JSWebGLShortArrayCustom.cpp: Removed.
              * bindings/js/JSWebGLUnsignedByteArrayConstructor.cpp: Removed.
              * bindings/js/JSWebGLUnsignedByteArrayConstructor.h: Removed.
              * bindings/js/JSWebGLUnsignedByteArrayCustom.cpp: Removed.
              * bindings/js/JSWebGLUnsignedIntArrayConstructor.cpp: Removed.
              * bindings/js/JSWebGLUnsignedIntArrayConstructor.h: Removed.
              * bindings/js/JSWebGLUnsignedIntArrayCustom.cpp: Removed.
              * bindings/js/JSWebGLUnsignedShortArrayConstructor.cpp: Removed.
              * bindings/js/JSWebGLUnsignedShortArrayConstructor.h: Removed.
              * bindings/js/JSWebGLUnsignedShortArrayCustom.cpp: Removed.
              * bindings/v8/V8DOMWrapper.cpp:
              * bindings/v8/custom/V8ArrayBufferCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLArrayBufferCustom.cpp.
              (WebCore::V8ArrayBuffer::constructorCallback):
              * bindings/v8/custom/V8ArrayBufferViewCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLArrayCustom.cpp.
              (WebCore::toV8):
              (WebCore::V8ArrayBufferView::sliceCallback):
              * bindings/v8/custom/V8ArrayBufferViewCustom.h: Copied from WebCore/bindings/v8/custom/V8WebGLArrayCustom.h.
              (WebCore::constructWebGLArray):
              * bindings/v8/custom/V8DOMWindowCustom.cpp:
              (WebCore::V8DOMWindow::WebGLArrayBufferAccessorGetter):
              (WebCore::V8DOMWindow::WebGLByteArrayAccessorGetter):
              (WebCore::V8DOMWindow::WebGLUnsignedByteArrayAccessorGetter):
              (WebCore::V8DOMWindow::WebGLShortArrayAccessorGetter):
              (WebCore::V8DOMWindow::WebGLUnsignedShortArrayAccessorGetter):
              (WebCore::V8DOMWindow::WebGLIntArrayAccessorGetter):
              (WebCore::V8DOMWindow::WebGLUnsignedIntArrayAccessorGetter):
              (WebCore::V8DOMWindow::WebGLFloatArrayAccessorGetter):
              * bindings/v8/custom/V8FloatArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLFloatArrayCustom.cpp.
              (WebCore::V8FloatArray::constructorCallback):
              (WebCore::V8FloatArray::setCallback):
              (WebCore::toV8):
              * bindings/v8/custom/V8Int16ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLShortArrayCustom.cpp.
              (WebCore::V8Int16Array::constructorCallback):
              (WebCore::V8Int16Array::setCallback):
              (WebCore::toV8):
              * bindings/v8/custom/V8Int32ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLIntArrayCustom.cpp.
              (WebCore::V8Int32Array::constructorCallback):
              (WebCore::V8Int32Array::setCallback):
              (WebCore::toV8):
              * bindings/v8/custom/V8Int8ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLByteArrayCustom.cpp.
              (WebCore::V8Int8Array::constructorCallback):
              (WebCore::V8Int8Array::setCallback):
              (WebCore::toV8):
              * bindings/v8/custom/V8Uint16ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp.
              (WebCore::V8Uint16Array::constructorCallback):
              (WebCore::V8Uint16Array::setCallback):
              (WebCore::toV8):
              * bindings/v8/custom/V8Uint32ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp.
              (WebCore::V8Uint32Array::constructorCallback):
              (WebCore::V8Uint32Array::setCallback):
              (WebCore::toV8):
              * bindings/v8/custom/V8Uint8ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp.
              (WebCore::V8Uint8Array::constructorCallback):
              (WebCore::V8Uint8Array::setCallback):
              (WebCore::toV8):
              * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp: Removed.
              * bindings/v8/custom/V8WebGLArrayCustom.cpp: Removed.
              * bindings/v8/custom/V8WebGLArrayCustom.h: Removed.
              * bindings/v8/custom/V8WebGLByteArrayCustom.cpp: Removed.
              * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp: Removed.
              * bindings/v8/custom/V8WebGLIntArrayCustom.cpp: Removed.
              * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
              (WebCore::vertexAttribAndUniformHelperf):
              (WebCore::uniformHelperi):
              (WebCore::uniformMatrixHelper):
              * bindings/v8/custom/V8WebGLShortArrayCustom.cpp: Removed.
              * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp: Removed.
              * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp: Removed.
              * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp: Removed.
              * html/canvas/ArrayBuffer.cpp: Copied from WebCore/html/canvas/WebGLArrayBuffer.cpp.
              (WebCore::ArrayBuffer::create):
              (WebCore::ArrayBuffer::ArrayBuffer):
              (WebCore::ArrayBuffer::data):
              (WebCore::ArrayBuffer::byteLength):
              (WebCore::ArrayBuffer::~ArrayBuffer):
              (WebCore::ArrayBuffer::tryAllocate):
              * html/canvas/ArrayBuffer.h: Copied from WebCore/html/canvas/WebGLArrayBuffer.h.
              * html/canvas/ArrayBuffer.idl: Copied from WebCore/html/canvas/WebGLArrayBuffer.idl.
              * html/canvas/ArrayBufferView.cpp: Copied from WebCore/html/canvas/WebGLArray.cpp.
              (WebCore::ArrayBufferView::ArrayBufferView):
              (WebCore::ArrayBufferView::~ArrayBufferView):
              (WebCore::ArrayBufferView::setImpl):
              (WebCore::ArrayBufferView::calculateOffsetAndLength):
              * html/canvas/ArrayBufferView.h: Copied from WebCore/html/canvas/WebGLArray.h.
              (WebCore::ArrayBufferView::buffer):
              (WebCore::ArrayBufferView::verifySubRange):
              (WebCore::ArrayBufferView::clampOffsetAndNumElements):
              * html/canvas/ArrayBufferView.idl: Copied from WebCore/html/canvas/WebGLArray.idl.
              * html/canvas/FloatArray.cpp: Copied from WebCore/html/canvas/WebGLFloatArray.cpp.
              (WebCore::FloatArray::create):
              (WebCore::FloatArray::FloatArray):
              (WebCore::FloatArray::slice):
              * html/canvas/FloatArray.h: Copied from WebCore/html/canvas/WebGLFloatArray.h.
              (WebCore::FloatArray::set):
              (WebCore::FloatArray::item):
              * html/canvas/FloatArray.idl: Copied from WebCore/html/canvas/WebGLFloatArray.idl.
              * html/canvas/Int16Array.cpp: Copied from WebCore/html/canvas/WebGLShortArray.cpp.
              (WebCore::Int16Array::create):
              (WebCore::Int16Array::Int16Array):
              (WebCore::Int16Array::slice):
              * html/canvas/Int16Array.h: Copied from WebCore/html/canvas/WebGLShortArray.h.
              * html/canvas/Int16Array.idl: Copied from WebCore/html/canvas/WebGLShortArray.idl.
              * html/canvas/Int32Array.cpp: Copied from WebCore/html/canvas/WebGLIntArray.cpp.
              (WebCore::Int32Array::create):
              (WebCore::Int32Array::Int32Array):
              (WebCore::Int32Array::slice):
              * html/canvas/Int32Array.h: Copied from WebCore/html/canvas/WebGLIntArray.h.
              * html/canvas/Int32Array.idl: Copied from WebCore/html/canvas/WebGLIntArray.idl.
              * html/canvas/Int8Array.cpp: Copied from WebCore/html/canvas/WebGLByteArray.cpp.
              (WebCore::Int8Array::create):
              (WebCore::Int8Array::Int8Array):
              (WebCore::Int8Array::slice):
              * html/canvas/Int8Array.h: Copied from WebCore/html/canvas/WebGLByteArray.h.
              * html/canvas/Int8Array.idl: Copied from WebCore/html/canvas/WebGLByteArray.idl.
              * html/canvas/IntegralTypedArrayBase.h: Copied from WebCore/html/canvas/WebGLIntegralTypedArrayBase.h.
              (WebCore::IntegralTypedArrayBase::set):
              (WebCore::IntegralTypedArrayBase::item):
              (WebCore::IntegralTypedArrayBase::IntegralTypedArrayBase):
              * html/canvas/TypedArrayBase.h: Copied from WebCore/html/canvas/WebGLTypedArrayBase.h.
              (WebCore::TypedArrayBase::set):
              (WebCore::TypedArrayBase::TypedArrayBase):
              (WebCore::TypedArrayBase::create):
              * html/canvas/Uint16Array.cpp: Copied from WebCore/html/canvas/WebGLUnsignedShortArray.cpp.
              (WebCore::Uint16Array::create):
              (WebCore::Uint16Array::Uint16Array):
              (WebCore::Uint16Array::slice):
              * html/canvas/Uint16Array.h: Copied from WebCore/html/canvas/WebGLUnsignedShortArray.h.
              * html/canvas/Uint16Array.idl: Copied from WebCore/html/canvas/WebGLUnsignedShortArray.idl.
              * html/canvas/Uint32Array.cpp: Copied from WebCore/html/canvas/WebGLUnsignedIntArray.cpp.
              (WebCore::Uint32Array::create):
              (WebCore::Uint32Array::Uint32Array):
              (WebCore::Uint32Array::slice):
              * html/canvas/Uint32Array.h: Copied from WebCore/html/canvas/WebGLUnsignedIntArray.h.
              * html/canvas/Uint32Array.idl: Copied from WebCore/html/canvas/WebGLUnsignedIntArray.idl.
              * html/canvas/Uint8Array.cpp: Copied from WebCore/html/canvas/WebGLUnsignedByteArray.cpp.
              (WebCore::Uint8Array::create):
              (WebCore::Uint8Array::Uint8Array):
              (WebCore::Uint8Array::slice):
              * html/canvas/Uint8Array.h: Copied from WebCore/html/canvas/WebGLUnsignedByteArray.h.
              * html/canvas/Uint8Array.idl: Copied from WebCore/html/canvas/WebGLUnsignedByteArray.idl.
              * html/canvas/WebGLArray.cpp: Removed.
              * html/canvas/WebGLArray.h: Removed.
              * html/canvas/WebGLArray.idl: Removed.
              * html/canvas/WebGLArrayBuffer.cpp: Removed.
              * html/canvas/WebGLArrayBuffer.h: Removed.
              * html/canvas/WebGLArrayBuffer.idl: Removed.
              * html/canvas/WebGLBuffer.cpp:
              (WebCore::WebGLBuffer::associateBufferData):
              (WebCore::WebGLBuffer::associateBufferSubData):
              * html/canvas/WebGLBuffer.h:
              (WebCore::WebGLBuffer::elementArrayBuffer):
              * html/canvas/WebGLByteArray.cpp: Removed.
              * html/canvas/WebGLByteArray.h: Removed.
              * html/canvas/WebGLByteArray.idl: Removed.
              * html/canvas/WebGLFloatArray.cpp: Removed.
              * html/canvas/WebGLFloatArray.h: Removed.
              * html/canvas/WebGLFloatArray.idl: Removed.
              * html/canvas/WebGLGetInfo.cpp:
              (WebCore::WebGLGetInfo::WebGLGetInfo):
              (WebCore::WebGLGetInfo::getWebGLFloatArray):
              (WebCore::WebGLGetInfo::getWebGLIntArray):
              (WebCore::WebGLGetInfo::getWebGLUnsignedByteArray):
              * html/canvas/WebGLGetInfo.h:
              * html/canvas/WebGLIntArray.cpp: Removed.
              * html/canvas/WebGLIntArray.h: Removed.
              * html/canvas/WebGLIntArray.idl: Removed.
              * html/canvas/WebGLIntegralTypedArrayBase.h: Removed.
              * html/canvas/WebGLRenderingContext.cpp:
              (WebCore::WebGLRenderingContext::bufferData):
              (WebCore::WebGLRenderingContext::bufferSubData):
              (WebCore::WebGLRenderingContext::getUniform):
              (WebCore::WebGLRenderingContext::getVertexAttrib):
              (WebCore::WebGLRenderingContext::readPixels):
              (WebCore::WebGLRenderingContext::texImage2D):
              (WebCore::WebGLRenderingContext::texSubImage2D):
              (WebCore::WebGLRenderingContext::uniform1fv):
              (WebCore::WebGLRenderingContext::uniform1iv):
              (WebCore::WebGLRenderingContext::uniform2fv):
              (WebCore::WebGLRenderingContext::uniform2iv):
              (WebCore::WebGLRenderingContext::uniform3fv):
              (WebCore::WebGLRenderingContext::uniform3iv):
              (WebCore::WebGLRenderingContext::uniform4fv):
              (WebCore::WebGLRenderingContext::uniform4iv):
              (WebCore::WebGLRenderingContext::uniformMatrix2fv):
              (WebCore::WebGLRenderingContext::uniformMatrix3fv):
              (WebCore::WebGLRenderingContext::uniformMatrix4fv):
              (WebCore::WebGLRenderingContext::vertexAttrib1fv):
              (WebCore::WebGLRenderingContext::vertexAttrib2fv):
              (WebCore::WebGLRenderingContext::vertexAttrib3fv):
              (WebCore::WebGLRenderingContext::vertexAttrib4fv):
              (WebCore::WebGLRenderingContext::getWebGLFloatArrayParameter):
              (WebCore::WebGLRenderingContext::getWebGLIntArrayParameter):
              (WebCore::WebGLRenderingContext::getWebGLUnsignedByteArrayParameter):
              * html/canvas/WebGLRenderingContext.h:
              * html/canvas/WebGLRenderingContext.idl:
              * html/canvas/WebGLShortArray.cpp: Removed.
              * html/canvas/WebGLShortArray.h: Removed.
              * html/canvas/WebGLShortArray.idl: Removed.
              * html/canvas/WebGLTypedArrayBase.h: Removed.
              * html/canvas/WebGLUnsignedByteArray.cpp: Removed.
              * html/canvas/WebGLUnsignedByteArray.h: Removed.
              * html/canvas/WebGLUnsignedByteArray.idl: Removed.
              * html/canvas/WebGLUnsignedIntArray.cpp: Removed.
              * html/canvas/WebGLUnsignedIntArray.h: Removed.
              * html/canvas/WebGLUnsignedIntArray.idl: Removed.
              * html/canvas/WebGLUnsignedShortArray.cpp: Removed.
              * html/canvas/WebGLUnsignedShortArray.h: Removed.
              * html/canvas/WebGLUnsignedShortArray.idl: Removed.
              * page/DOMWindow.idl:
              * platform/graphics/GraphicsContext3D.h:
              * platform/graphics/mac/GraphicsContext3DMac.cpp:
              (WebCore::GraphicsContext3D::bufferData):
              (WebCore::GraphicsContext3D::bufferSubData):
              * platform/graphics/qt/GraphicsContext3DQt.cpp:
              (WebCore::GraphicsContext3D::bufferData):
              (WebCore::GraphicsContext3D::bufferSubData):
      2010-05-14  Kenneth Russell  <kbr@google.com>
      
              Reviewed by Darin Adler.
      
              Rename WebGLArray types to TypedArray types
              https://bugs.webkit.org/show_bug.cgi?id=39091
      
              Extended functionality of do-webcore-rename script and used it to
              rename the WebGLArray types to the TypedArray naming convention.
              The only source files which were touched by hand, and which are
              being manually reviewed, are:
                  WebCore/page/DOMWindow.idl
                  WebCore/bindings/generic/RuntimeEnabledFeatures.h (script's changes undone)
                  WebKit/WebCore/bindings/js/JSDOMWindowCustom.cpp
                  WebKit/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp
              These only needed to be touched to update the aliases between the
              WebGLArray and TypedArray names introduced in bug 39036. (It was
              not feasible to have do-webcore-rename handle this as it would
              introduce circular renamings.) These aliases will be removed in
              roughly a month once existing WebGL content has been updated.
      
              No new tests; covered under existing WebGL tests. Updated
              constructed-objects-prototypes and prototype-inheritance-2 tests.
              Ran all layout tests in Safari and all WebGL tests in Chromium.
      
              * fast/dom/script-tests/constructed-objects-prototypes.js:
              (constructorPropertiesOnWindow):
              * fast/dom/script-tests/prototype-inheritance-2.js:
              (constructorNamesForWindow):
      2010-05-14  Kenneth Russell  <kbr@google.com>
      
              Reviewed by Darin Adler.
      
              Rename WebGLArray types to TypedArray types
              https://bugs.webkit.org/show_bug.cgi?id=39091
      
              Extended functionality of do-webcore-rename script and used it to
              rename the WebGLArray types to the TypedArray naming convention.
              The only source files which were touched by hand, and which are
              being manually reviewed, are:
                  WebCore/page/DOMWindow.idl
                  WebCore/bindings/generic/RuntimeEnabledFeatures.h (script's changes undone)
                  WebKit/WebCore/bindings/js/JSDOMWindowCustom.cpp
                  WebKit/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp
              These only needed to be touched to update the aliases between the
              WebGLArray and TypedArray names introduced in bug 39036. (It was
              not feasible to have do-webcore-rename handle this as it would
              introduce circular renamings.) These aliases will be removed in
              roughly a month once existing WebGL content has been updated.
      
              No new tests; covered under existing WebGL tests. Updated
              constructed-objects-prototypes and prototype-inheritance-2 tests.
              Ran all layout tests in Safari and all WebGL tests in Chromium.
      
              * Scripts/do-webcore-rename:
                Handle the case where some renames are substrings of others.
                Support renaming files containing custom JS bindings. If
                isDOMTypeRename is non-zero, expand the regexp which rewrites
                the file's contents in order to support custom JS bindings.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3706f9b1
  16. 07 May, 2010 1 commit
    • kbr@google.com's avatar
      2010-05-06 Kenneth Russell <kbr@google.com> · 79af5734
      kbr@google.com authored
              Reviewed by Dimitri Glazkov.
      
              WebCore::WebGLUnsignedIntArrayInternal::getCallback ReadAV@Arbitrary (deef89ee3d0345edebeaf13cf974c47c)
              https://bugs.webkit.org/show_bug.cgi?id=38039
      
              Web IDL now allows indexed getters and setters to be unnamed. Per
              discussion in WebGL working group and recent update to spec,
              removed the buggy get() and single-element set() methods from the
              JavaScript bindings to the WebGL array types. Refactored set()
              implementation in JSC bindings to share more code and modified V8
              binding to look more like it. Added unit tests for indexed getter
              with out-of-range indices and verifying removal of get and
              single-element set methods. Updated existing WebGL array tests.
      
              Tests: fast/canvas/webgl/array-get-and-set-method-removal.html
                     fast/canvas/webgl/array-get-out-of-bounds.html
      
              * bindings/js/JSWebGLArrayHelper.h:
              (WebCore::setWebGLArrayHelper):
              * bindings/js/JSWebGLByteArrayCustom.cpp:
              (WebCore::JSWebGLByteArray::set):
              * bindings/js/JSWebGLFloatArrayCustom.cpp:
              (WebCore::JSWebGLFloatArray::set):
              * bindings/js/JSWebGLIntArrayCustom.cpp:
              (WebCore::JSWebGLIntArray::set):
              * bindings/js/JSWebGLShortArrayCustom.cpp:
              (WebCore::JSWebGLShortArray::set):
              * bindings/js/JSWebGLUnsignedByteArrayCustom.cpp:
              (WebCore::JSWebGLUnsignedByteArray::set):
              * bindings/js/JSWebGLUnsignedIntArrayCustom.cpp:
              (WebCore::JSWebGLUnsignedIntArray::set):
              * bindings/js/JSWebGLUnsignedShortArrayCustom.cpp:
              (WebCore::JSWebGLUnsignedShortArray::set):
              * bindings/v8/custom/V8WebGLArrayCustom.h:
              (WebCore::setWebGLArrayHelper):
              * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
              (WebCore::V8WebGLByteArray::setCallback):
              * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
              (WebCore::V8WebGLFloatArray::setCallback):
              * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
              (WebCore::V8WebGLIntArray::setCallback):
              * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
              (WebCore::V8WebGLShortArray::setCallback):
              * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
              (WebCore::V8WebGLUnsignedByteArray::setCallback):
              * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
              (WebCore::V8WebGLUnsignedIntArray::setCallback):
              * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
              (WebCore::V8WebGLUnsignedShortArray::setCallback):
              * html/canvas/WebGLByteArray.h:
              * html/canvas/WebGLByteArray.idl:
              * html/canvas/WebGLFloatArray.h:
              * html/canvas/WebGLFloatArray.idl:
              * html/canvas/WebGLIntArray.h:
              * html/canvas/WebGLIntArray.idl:
              * html/canvas/WebGLShortArray.h:
              * html/canvas/WebGLShortArray.idl:
              * html/canvas/WebGLUnsignedByteArray.h:
              * html/canvas/WebGLUnsignedByteArray.idl:
              * html/canvas/WebGLUnsignedIntArray.h:
              * html/canvas/WebGLUnsignedIntArray.idl:
              * html/canvas/WebGLUnsignedShortArray.h:
              * html/canvas/WebGLUnsignedShortArray.idl:
      2010-05-06  Kenneth Russell  <kbr@google.com>
      
              Reviewed by Dimitri Glazkov.
      
              WebCore::WebGLUnsignedIntArrayInternal::getCallback ReadAV@Arbitrary (deef89ee3d0345edebeaf13cf974c47c)
              https://bugs.webkit.org/show_bug.cgi?id=38039
      
              Web IDL now allows indexed getters and setters to be unnamed. Per
              discussion in WebGL working group and recent update to spec,
              removed the buggy get() and single-element set() methods from the
              JavaScript bindings to the WebGL array types. Refactored set()
              implementation in JSC bindings to share more code and modified V8
              binding to look more like it. Added unit tests for indexed getter
              with out-of-range indices and verifying removal of get and
              single-element set methods. Updated existing WebGL array tests.
      
              * fast/canvas/webgl/array-get-and-set-method-removal-expected.txt: Added.
              * fast/canvas/webgl/array-get-and-set-method-removal.html: Added.
              * fast/canvas/webgl/array-get-out-of-bounds-expected.txt: Added.
              * fast/canvas/webgl/array-get-out-of-bounds.html: Added.
              * fast/canvas/webgl/array-setters-expected.txt:
              * fast/canvas/webgl/array-setters.html:
              * fast/canvas/webgl/array-unit-tests-expected.txt:
              * fast/canvas/webgl/array-unit-tests.html:
              * fast/canvas/webgl/bug-32456-expected.txt:
              * fast/canvas/webgl/bug-32456.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58957 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79af5734
  17. 16 Nov, 2009 1 commit
  18. 10 Nov, 2009 1 commit
  19. 09 Sep, 2009 1 commit
  20. 08 Sep, 2009 1 commit
  21. 21 Aug, 2009 1 commit
  22. 22 Sep, 2008 1 commit
    • mjs@apple.com's avatar
      JavaScriptCore: · a173abd0
      mjs@apple.com authored
      2008-09-22  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Dave Hyatt.
              
              Based on initial work by Darin Adler.
              
              - replace masqueradesAsUndefined virtual method with a flag in TypeInfo
              - use this to JIT inline code for eq_null and neq_null
              https://bugs.webkit.org/show_bug.cgi?id=20823
      
              0.5% speedup on SunSpider
              ~4% speedup on Richards benchmark
              
              * VM/CTI.cpp:
              (JSC::CTI::privateCompileMainPass):
              * VM/Machine.cpp:
              (JSC::jsTypeStringForValue):
              (JSC::jsIsObjectType):
              (JSC::Machine::privateExecute):
              (JSC::Machine::cti_op_is_undefined):
              * VM/Machine.h:
              * kjs/JSCell.h:
              * kjs/JSValue.h:
              * kjs/StringObjectThatMasqueradesAsUndefined.h:
              (JSC::StringObjectThatMasqueradesAsUndefined::create):
              (JSC::StringObjectThatMasqueradesAsUndefined::createStructureID):
              * kjs/StructureID.h:
              (JSC::StructureID::mutableTypeInfo):
              * kjs/TypeInfo.h:
              (JSC::TypeInfo::TypeInfo):
              (JSC::TypeInfo::masqueradesAsUndefined):
              * kjs/operations.cpp:
              (JSC::equal):
              * masm/X86Assembler.h:
              (JSC::X86Assembler::):
              (JSC::X86Assembler::setne_r):
              (JSC::X86Assembler::setnz_r):
              (JSC::X86Assembler::testl_i32m):
      
      WebCore:
      
      2008-09-22  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Dave Hyatt.
      
              Based on initial work by Darin Adler.
              
              - replace masqueradesAsUndefined virtual method with a flag in TypeInfo
              - use this to JIT inline code for eq_null and neq_null
              https://bugs.webkit.org/show_bug.cgi?id=20823
              
              * WebCore.xcodeproj/project.pbxproj:
              * WebCore.vcproj/WebCore.vcproj:
              * bindings/js/JSCSSStyleDeclarationCustom.cpp:
              (WebCore::JSCSSStyleDeclaration::nameGetter):
              * bindings/js/JSHTMLAllCollection.cpp: Added.
              (WebCore::):
              * bindings/js/JSHTMLAllCollection.h:
              (WebCore::JSHTMLAllCollection::createStructureID):
              (WebCore::JSHTMLAllCollection::toBoolean):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a173abd0
  23. 08 Jan, 2008 1 commit
    • mitz@apple.com's avatar
      Rubber-stamped by Sam Weinig. · 78333174
      mitz@apple.com authored
              - rename FontDataBaseClass.{cpp,h} back to FontData.{cpp,h}
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * editing/Editor.cpp:
              * platform/graphics/FontData.cpp: Copied from WebCore/platform/graphics/FontDataBaseClass.cpp.
              * platform/graphics/FontData.h: Copied from WebCore/platform/graphics/FontDataBaseClass.h.
              * platform/graphics/FontDataBaseClass.cpp: Removed.
              * platform/graphics/FontDataBaseClass.h: Removed.
              * platform/graphics/SegmentedFontData.h:
              * platform/graphics/SimpleFontData.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78333174
  24. 07 Jan, 2008 1 commit
    • mitz@apple.com's avatar
      WebCore: · 648b73b1
      mitz@apple.com authored
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/objc/DOM.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSFontFace.cpp:
              (WebCore::CSSFontFace::fontLoaded): Changed to call the owning segmented
              font face.
              (WebCore::CSSFontFace::getFontData):
              * css/CSSFontFace.h:
              (WebCore::CSSFontFace::CSSFontFace):
              (WebCore::CSSFontFace::setSegmentedFontFace):
              * css/CSSFontFaceSource.cpp:
              (WebCore::CSSFontFaceSource::pruneTable): Removed the calls to
              GlyphPageTreeNode::pruneTreeCustomFontData because the fonts in the
              font table are not exposed in the glyph page tree. Only the segmented
              font is, and that is taken care of by the segmented font face.
              (WebCore::CSSFontFaceSource::getFontData):
              * css/CSSFontFaceSource.h:
              * css/CSSFontSelector.cpp:
              (WebCore::CSSFontSelector::addFontFaceRule): Changed to collect
              @font-face rules with the same family and traits into a single
              segmented font face, instead of just retaining the most recent one.
              (WebCore::CSSFontSelector::fontLoaded):
              (WebCore::CSSFontSelector::getFontData):
              * css/CSSFontSelector.h:
              * css/CSSGrammar.y:
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseValue):
              (WebCore::CSSParser::parseFontFaceUnicodeRange): Added. Parses a unicode
              range value.
              * css/CSSParser.h:
              * css/CSSPrimitiveValue.h:
              (WebCore::CSSPrimitiveValue::):
              * css/CSSPropertyNames.in:
              * css/CSSSegmentedFontFace.cpp: Added.
              (WebCore::CSSSegmentedFontFace::CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::~CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::pruneTable):
              (WebCore::CSSSegmentedFontFace::isLoaded):
              (WebCore::CSSSegmentedFontFace::isValid):
              (WebCore::CSSSegmentedFontFace::fontLoaded):
              (WebCore::CSSSegmentedFontFace::overlayRange):
              (WebCore::CSSSegmentedFontFace::getFontData):
              * css/CSSSegmentedFontFace.h: Added.
              (WebCore::FontFaceRange::FontFaceRange):
              (WebCore::FontFaceRange::from):
              (WebCore::FontFaceRange::to):
              (WebCore::FontFaceRange::fontFace):
              (WebCore::CSSSegmentedFontFace::fontSelector):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * css/CSSUnicodeRangeValue.cpp: Added.
              (WebCore::CSSUnicodeRangeValue::~CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::cssText):
              * css/CSSUnicodeRangeValue.h: Added.
              (WebCore::CSSUnicodeRangeValue::CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::from):
              (WebCore::CSSUnicodeRangeValue::to):
              * css/SVGCSSFontFace.cpp:
              (WebCore::SVGCSSFontFace::getFontData):
              * css/SVGCSSFontFace.h:
              * editing/Editor.cpp:
              (WebCore::Editor::fontForSelection):
              * editing/Editor.h:
              * page/mac/FrameMac.mm:
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge fontForSelection:]):
              * platform/graphics/Font.cpp:
              (WebCore::WidthIterator::advance):
              (WebCore::Font::glyphDataForCharacter):
              (WebCore::Font::primaryFont): Changed to return the simple font data
              used for the space character.
              (WebCore::Font::fontDataAt):
              (WebCore::Font::fontDataForCharacters):
              (WebCore::Font::drawGlyphBuffer):
              * platform/graphics/Font.h:
              * platform/graphics/FontCache.cpp:
              (WebCore::FontCache::getCachedFontData):
              (WebCore::FontCache::getFontData):
              * platform/graphics/FontCache.h:
              * platform/graphics/FontData.cpp: Renamed to SimpleFontData.cpp
              * platform/graphics/FontData.h: Renamed to SimpleFontData.cpp.
              * platform/graphics/FontDataBaseClass.cpp: Added. This will be renamed
              FontData.cpp.
              (WebCore::FontData::~FontData):
              * platform/graphics/FontDataBaseClass.h: Added. This will be renamed
              FontData.h.
              * platform/graphics/FontFallbackList.cpp:
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::FontFallbackList::fontDataForCharacters):
              * platform/graphics/FontFallbackList.h:
              (WebCore::FontFallbackList::primaryFont):
              * platform/graphics/FontSelector.h:
              * platform/graphics/GlyphBuffer.h:
              (WebCore::GlyphBuffer::fontDataAt):
              (WebCore::GlyphBuffer::swap):
              (WebCore::GlyphBuffer::add):
              * platform/graphics/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              (WebCore::GlyphPageTreeNode::initializePage): Added code to initialize
              pages for segmented font data.
              (WebCore::GlyphPageTreeNode::getChild):
              (WebCore::GlyphPageTreeNode::pruneCustomFontData):
              * platform/graphics/GlyphPageTreeNode.h:
              (WebCore::GlyphPage::setGlyphDataForCharacter):
              (WebCore::GlyphPage::setGlyphDataForIndex):
              (WebCore::GlyphPageTreeNode::getRootChild):
              * platform/graphics/SegmentedFontData.cpp: Added.
              (WebCore::SegmentedFontData::~SegmentedFontData):
              (WebCore::SegmentedFontData::fontDataForCharacter):
              (WebCore::SegmentedFontData::containsCharacters):
              (WebCore::SegmentedFontData::isCustomFont):
              (WebCore::SegmentedFontData::isLoading):
              (WebCore::SegmentedFontData::isSegmented):
              * platform/graphics/SegmentedFontData.h: Added.
              (WebCore::FontDataRange::FontDataRange):
              (WebCore::FontDataRange::from):
              (WebCore::FontDataRange::to):
              (WebCore::FontDataRange::fontData):
              (WebCore::SegmentedFontData::appendRange):
              (WebCore::SegmentedFontData::numRanges):
              (WebCore::SegmentedFontData::rangeAt):
              * platform/graphics/SimpleFontData.cpp: Copied from WebCore/platform/graphics/FontData.cpp.
              (WebCore::SimpleFontData::SimpleFontData):
              (WebCore::SimpleFontData::~SimpleFontData):
              (WebCore::SimpleFontData::ascent):
              (WebCore::SimpleFontData::descent):
              (WebCore::SimpleFontData::widthForGlyph):
              (WebCore::SimpleFontData::fontDataForCharacter):
              (WebCore::SimpleFontData::isSegmented):
              * platform/graphics/SimpleFontData.h: Copied from WebCore/platform/graphics/FontData.h.
              (WebCore::SimpleFontData::isCustomFont):
              (WebCore::SimpleFontData::isLoading):
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::setPlatformFont):
              * platform/graphics/gtk/FontCacheGtk.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/gtk/FontDataGtk.cpp: Renamed to
              SimpleFontDataGtk.cpp.
              * platform/graphics/gtk/FontGtk.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/gtk/SimpleFontDataGtk.cpp: Copied from WebCore/platform/graphics/gtk/FontDataGtk.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::setFont):
              * platform/graphics/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/mac/FontDataMac.mm: Renamed to SimpleFontDataMac.mm.
              * platform/graphics/mac/FontMac.mm:
              (WebCore::initializeATSUStyle):
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::drawGlyphs):
              * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/mac/SimpleFontDataMac.mm: Copied from WebCore/platform/graphics/mac/FontDataMac.mm.
              (WebCore::initFontData):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::checkShapesArabic):
              * platform/graphics/qt/FontDataQt.cpp: Renamed to SimpleFontDataQt.cpp.
              * platform/graphics/qt/GlyphPageTreeNodeQt.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              * platform/graphics/qt/SimpleFontDataQt.cpp: Copied from WebCore/platform/graphics/qt/FontDataQt.cpp.
              * platform/graphics/win/FontCacheWin.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/win/FontDataWin.cpp: Renamed to
              SimpleFontDataWin.cpp.
              * platform/graphics/win/FontWin.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/win/GlyphPageTreeNodeWin.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/win/SimpleFontDataWin.cpp: Copied from WebCore/platform/graphics/win/FontDataWin.cpp.
              (WebCore::SimpleFontData::setShouldApplyMacAscentHack):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::scriptFontProperties):
              * platform/graphics/wx/FontCacheWx.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/wx/FontDataWx.cpp: Renamed to SimpleFontDataWx.cpp.
              * platform/graphics/wx/FontWx.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/wx/GlyphMapWx.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/wx/SimpleFontDataWx.cpp: Copied from WebCore/platform/graphics/wx/FontDataWx.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              * platform/mac/FileChooserMac.mm:
              * platform/mac/PopupMenuMac.mm:
              * platform/mac/WebCoreTextRenderer.mm:
              * platform/win/PopupMenuWin.cpp:
              * platform/win/UniscribeController.cpp:
              (WebCore::UniscribeController::advance):
              (WebCore::UniscribeController::itemizeShapeAndPlace):
              (WebCore::UniscribeController::shapeAndPlaceItem):
              (WebCore::UniscribeController::shape):
              * platform/win/UniscribeController.h:
              * svg/SVGFont.cpp:
              (WebCore::Font::drawGlyphsWithSVGFont):
              * svg/SVGFontElement.cpp:
              (WebCore::SVGFontElement::collectGlyphs):
              * svg/SVGFontFaceElement.cpp:
              (WebCore::SVGFontFaceElement::createFontData):
              * svg/SVGFontFaceElement.h:
              * svg/SVGGlyphElement.cpp:
      
      WebKit/mac:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * Misc/WebNSAttributedStringExtras.mm:
      
      WebKit/win:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * WebView.cpp:
              (WebView::setShouldApplyMacFontAscentHack):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      648b73b1
  25. 16 Jan, 2007 1 commit
    • eseidel's avatar
      2007-01-15 Eric Seidel <eric@webkit.org> · 8eddecf9
      eseidel authored
              Reviewed by bdash.
      
              Update header guards to follow new style guidelines using new clean-header-guards script.
      
              * bindings/js/JSHTMLElementWrapperFactory.h:
              * bindings/js/JSHTMLInputElementBase.h:
              * bindings/js/JSHTMLOptionElementConstructor.h:
              * bindings/js/JSSVGElementWrapperFactory.h:
              * bindings/js/JSSVGPODTypeWrapper.h:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_css.h:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_domnode.h:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.h:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.h:
              * bridge/EditorClient.h:
              * bridge/History.h:
              * css/CSSStyleSheet.h:
              * css/CSSValue.h:
              * css/CSSValueList.h:
              * css/DashboardRegion.h:
              * css/FontFamilyValue.h:
              * css/FontValue.h:
              * css/MediaFeatureNames.h:
              * css/MediaList.h:
              * css/Pair.h:
              * css/RectImpl.h:
              * css/ShadowValue.h:
              * css/StyleBase.h:
              * css/StyleList.h:
              * css/StyleSheet.h:
              * css/StyleSheetList.h:
              * css/cssstyleselector.h:
              * dom/BeforeTextInsertedEvent.h:
              * dom/CDATASection.h:
              * dom/CharacterData.h:
              * dom/ChildNodeList.h:
              * dom/Comment.h:
              * dom/DOMImplementation.h:
              * dom/DocPtr.h:
              * dom/Document.h:
              * dom/DocumentFragment.h:
              * dom/DocumentMarker.h:
              * dom/DocumentType.h:
              * dom/EditingText.h:
              * dom/Entity.h:
              * dom/EntityReference.h:
              * dom/EventNames.h:
              * dom/EventTargetNode.h:
              * dom/NameNodeList.h:
              * dom/NamedNodeMap.h:
              * dom/Node.h:
              * dom/NodeList.h:
              * dom/Notation.h:
              * dom/Position.h:
              * dom/ProcessingInstruction.h:
              * dom/Range.h:
              * dom/StyleElement.h:
              * dom/Text.h:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.h:
              * editing/BreakBlockquoteCommand.h:
              * editing/CommandByName.h:
              * editing/CompositeEditCommand.h:
              * editing/DeleteButton.h:
              * editing/DeleteButtonController.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertParagraphSeparatorCommand.h:
              * editing/InsertTextCommand.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RemoveCSSPropertyCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TextGranularity.h:
              * editing/TypingCommand.h:
              * editing/WrapContentsInDummySpanCommand.h:
              * history/BackForwardList.h:
              * history/HistoryItem.h:
              * history/HistoryItemTimer.h:
              * history/PageCache.h:
              * html/CanvasGradient.h:
              * html/CanvasPattern.h:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.h:
              * html/FormDataList.h:
              * html/HTMLAnchorElement.h:
              * html/HTMLAppletElement.h:
              * html/HTMLAreaElement.h:
              * html/HTMLBRElement.h:
              * html/HTMLBaseElement.h:
              * html/HTMLBaseFontElement.h:
              * html/HTMLBlockquoteElement.h:
              * html/HTMLBodyElement.h:
              * html/HTMLButtonElement.h:
              * html/HTMLCanvasElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDListElement.h:
              * html/HTMLDirectoryElement.h:
              * html/HTMLDivElement.h:
              * html/HTMLElement.h:
              * html/HTMLElementFactory.h:
              * html/HTMLEmbedElement.h:
              * html/HTMLFieldSetElement.h:
              * html/HTMLFontElement.h:
              * html/HTMLFormCollection.h:
              * html/HTMLFormElement.h:
              * html/HTMLFrameSetElement.h:
              * html/HTMLGenericFormElement.h:
              * html/HTMLHRElement.h:
              * html/HTMLHeadElement.h:
              * html/HTMLHeadingElement.h:
              * html/HTMLHtmlElement.h:
              * html/HTMLImageElement.h:
              * html/HTMLImageLoader.h:
              * html/HTMLInputElement.h:
              * html/HTMLIsIndexElement.h:
              * html/HTMLKeygenElement.h:
              * html/HTMLLIElement.h:
              * html/HTMLLabelElement.h:
              * html/HTMLLegendElement.h:
              * html/HTMLLinkElement.h:
              * html/HTMLMapElement.h:
              * html/HTMLMarqueeElement.h:
              * html/HTMLMenuElement.h:
              * html/HTMLMetaElement.h:
              * html/HTMLModElement.h:
              * html/HTMLNameCollection.h:
              * html/HTMLOListElement.h:
              * html/HTMLObjectElement.h:
              * html/HTMLOptGroupElement.h:
              * html/HTMLOptionElement.h:
              * html/HTMLOptionsCollection.h:
              * html/HTMLParagraphElement.h:
              * html/HTMLParamElement.h:
              * html/HTMLParser.h:
              * html/HTMLPlugInElement.h:
              * html/HTMLPreElement.h:
              * html/HTMLQuoteElement.h:
              * html/HTMLScriptElement.h:
              * html/HTMLSelectElement.h:
              * html/HTMLStyleElement.h:
              * html/HTMLTableCaptionElement.h:
              * html/HTMLTableCellElement.h:
              * html/HTMLTableColElement.h:
              * html/HTMLTableElement.h:
              * html/HTMLTablePartElement.h:
              * html/HTMLTableRowElement.h:
              * html/HTMLTableSectionElement.h:
              * html/HTMLTextAreaElement.h:
              * html/HTMLTextFieldInnerElement.h:
              * html/HTMLTitleElement.h:
              * html/HTMLUListElement.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/events/JSSVGLazyEventListener.h:
              * ksvg2/events/SVGZoomEvent.h:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/PointerEventsHitRules.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/misc/TimeScheduler.h:
              * ksvg2/svg/GradientAttributes.h:
              * ksvg2/svg/LinearGradientAttributes.h:
              * ksvg2/svg/PatternAttributes.h:
              * ksvg2/svg/RadialGradientAttributes.h:
              * ksvg2/svg/SVGAElement.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimateElement.h:
              * ksvg2/svg/SVGAnimateMotionElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGAnimatedPathData.h:
              * ksvg2/svg/SVGAnimatedPoints.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGCircleElement.h:
              * ksvg2/svg/SVGClipPathElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGComponentTransferFunctionElement.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGDOMImplementation.h:
              * ksvg2/svg/SVGDefsElement.h:
              * ksvg2/svg/SVGDescElement.h:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGElementInstance.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGEllipseElement.h:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFEBlendElement.h:
              * ksvg2/svg/SVGFEColorMatrixElement.h:
              * ksvg2/svg/SVGFEComponentTransferElement.h:
              * ksvg2/svg/SVGFECompositeElement.h:
              * ksvg2/svg/SVGFEDiffuseLightingElement.h:
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEDistantLightElement.h:
              * ksvg2/svg/SVGFEFloodElement.h:
              * ksvg2/svg/SVGFEFuncAElement.h:
              * ksvg2/svg/SVGFEFuncBElement.h:
              * ksvg2/svg/SVGFEFuncGElement.h:
              * ksvg2/svg/SVGFEFuncRElement.h:
              * ksvg2/svg/SVGFEGaussianBlurElement.h:
              * ksvg2/svg/SVGFEImageElement.h:
              * ksvg2/svg/SVGFELightElement.h:
              * ksvg2/svg/SVGFEMergeElement.h:
              * ksvg2/svg/SVGFEMergeNodeElement.h:
              * ksvg2/svg/SVGFEOffsetElement.h:
              * ksvg2/svg/SVGFEPointLightElement.h:
              * ksvg2/svg/SVGFESpecularLightingElement.h:
              * ksvg2/svg/SVGFESpotLightElement.h:
              * ksvg2/svg/SVGFETileElement.h:
              * ksvg2/svg/SVGFETurbulenceElement.h:
              * ksvg2/svg/SVGFilterElement.h:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
              * ksvg2/svg/SVGFitToViewBox.h:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGGElement.h:
              * ksvg2/svg/SVGGradientElement.h:
              * ksvg2/svg/SVGImageElement.h:
              * ksvg2/svg/SVGLangSpace.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGLengthList.h:
              * ksvg2/svg/SVGLineElement.h:
              * ksvg2/svg/SVGLinearGradientElement.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGListTraits.h:
              * ksvg2/svg/SVGLocatable.h:
              * ksvg2/svg/SVGMarkerElement.h:
              * ksvg2/svg/SVGMaskElement.h:
              * ksvg2/svg/SVGMetadataElement.h:
              * ksvg2/svg/SVGNumberList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGParserUtilities.h:
              * ksvg2/svg/SVGPathElement.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPathSegArc.h:
              * ksvg2/svg/SVGPathSegClosePath.h:
              * ksvg2/svg/SVGPathSegCurvetoCubic.h:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * ksvg2/svg/SVGPathSegLineto.h:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
              * ksvg2/svg/SVGPathSegLinetoVertical.h:
              * ksvg2/svg/SVGPathSegList.h:
              * ksvg2/svg/SVGPathSegMoveto.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGPointList.h:
              * ksvg2/svg/SVGPolyElement.h:
              * ksvg2/svg/SVGPolygonElement.h:
              * ksvg2/svg/SVGPolylineElement.h:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRadialGradientElement.h:
              * ksvg2/svg/SVGRectElement.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGScriptElement.h:
              * ksvg2/svg/SVGSetElement.h:
              * ksvg2/svg/SVGStopElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGStyleElement.h:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledLocatableElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.h:
              * ksvg2/svg/SVGSymbolElement.h:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTextContentElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/SVGTextPositioningElement.h:
              * ksvg2/svg/SVGTitleElement.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransformList.h:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * ksvg2/svg/SVGUseElement.h:
              * ksvg2/svg/SVGViewElement.h:
              * ksvg2/svg/SVGZoomAndPan.h:
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.h:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocumentLoader.h:
              * loader/Request.h:
              * loader/SubresourceLoader.h:
              * loader/icon/IconDataCache.h:
              * loader/icon/IconDatabase.h:
              * loader/icon/IconLoader.h:
              * loader/icon/SQLDatabase.h:
              * loader/icon/SQLStatement.h:
              * loader/icon/SQLTransaction.h:
              * page/Frame.h:
              * page/FrameLoadRequest.h:
              * page/FrameTree.h:
              * page/FrameView.h:
              * page/PageState.h:
              * page/Plugin.h:
              * page/qt/FrameQt.h:
              * page/qt/FrameQtClient.h:
              * platform/Arena.h:
              * platform/ArrayImpl.h:
              * platform/Cursor.h:
              * platform/DeprecatedArray.h:
              * platform/DeprecatedCString.h:
              * platform/FileChooser.h:
              * platform/Font.h:
              * platform/FontCache.h:
              * platform/FontData.h:
              * platform/FontDescription.h:
              * platform/FontFamily.h:
              * platform/GlyphBuffer.h:
              * platform/GlyphMap.h:
              * platform/GlyphWidthMap.h:
              * platform/Logging.h:
              * platform/Pasteboard.h:
              * platform/PlatformString.h:
              * platform/PlugInInfoStore.h:
              * platform/PopupMenu.h:
              * platform/PopupMenuClient.h:
              * platform/ScrollBar.h:
              * platform/ScrollView.h:
              * platform/SearchPopupMenu.h:
              * platform/Shared.h:
              * platform/Sound.h:
              * platform/SystemTime.h:
              * platform/Timer.h:
              * platform/Widget.h:
              * platform/cf/RetainPtr.h:
              * platform/gdk/ChromeClientGdk.h:
              * platform/gdk/FontPlatformData.h:
              * platform/gdk/FrameGdk.h:
              * platform/gdk/KeyboardCodes.h:
              * platform/gdk/RenderPopupMenuGdk.h:
              * platform/gdk/RenderThemeGdk.h:
              * platform/graphics/BitmapImage.h:
              * platform/graphics/Color.h:
              * platform/graphics/FloatPoint.h:
              * platform/graphics/FloatPoint3D.h:
              * platform/graphics/FloatRect.h:
              * platform/graphics/Icon.h:
              * platform/graphics/Image.h:
              * platform/graphics/ImageAnimationObserver.h:
              * platform/graphics/ImageBuffer.h:
              * platform/graphics/ImageSource.h:
              * platform/graphics/IntPoint.h:
              * platform/graphics/IntRect.h:
              * platform/graphics/IntSize.h:
              * platform/graphics/IntSizeHash.h:
              * platform/graphics/PathTraversalState.h:
              * platform/graphics/Pen.h:
              * platform/graphics/qt/ImageDecoderQt.h:
              * platform/graphics/svg/SVGImage.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
              * platform/graphics/svg/SVGPaintServer.h:
              * platform/graphics/svg/SVGPaintServerGradient.h:
              * platform/graphics/svg/SVGPaintServerLinearGradient.h:
              * platform/graphics/svg/SVGPaintServerPattern.h:
              * platform/graphics/svg/SVGPaintServerRadialGradient.h:
              * platform/graphics/svg/SVGPaintServerSolid.h:
              * platform/graphics/svg/SVGResource.h:
              * platform/graphics/svg/SVGResourceClipper.h:
              * platform/graphics/svg/SVGResourceFilter.h:
              * platform/graphics/svg/SVGResourceMarker.h:
              * platform/graphics/svg/SVGResourceMasker.h:
              * platform/graphics/svg/cg/CgSupport.h:
              * platform/graphics/svg/filters/SVGDistantLightSource.h:
              * platform/graphics/svg/filters/SVGFEBlend.h:
              * platform/graphics/svg/filters/SVGFEColorMatrix.h:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
              * platform/graphics/svg/filters/SVGFEComposite.h:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
              * platform/graphics/svg/filters/SVGFEFlood.h:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
              * platform/graphics/svg/filters/SVGFEImage.h:
              * platform/graphics/svg/filters/SVGFEMerge.h:
              * platform/graphics/svg/filters/SVGFEMorphology.h:
              * platform/graphics/svg/filters/SVGFEOffset.h:
              * platform/graphics/svg/filters/SVGFESpecularLighting.h:
              * platform/graphics/svg/filters/SVGFETile.h:
              * platform/graphics/svg/filters/SVGFETurbulence.h:
              * platform/graphics/svg/filters/SVGFilterEffect.h:
              * platform/graphics/svg/filters/SVGLightSource.h:
              * platform/graphics/svg/filters/SVGPointLightSource.h:
              * platform/graphics/svg/filters/SVGSpotLightSource.h:
              * platform/mac/FontPlatformData.h:
              * platform/mac/PlatformScrollBar.h:
              * platform/network/AuthenticationChallenge.h:
              * platform/network/Credential.h:
              * platform/network/HTTPHeaderMap.h:
              * platform/network/ProtectionSpace.h:
              * platform/network/ResourceError.h:
              * platform/network/ResourceRequest.h:
              * platform/network/ResourceResponse.h:
              * platform/network/cf/FormDataStreamCFNet.h:
              * platform/network/cf/ResourceRequestCFNet.h:
              * platform/network/cf/ResourceResponseCFNet.h:
              * platform/network/gdk/ResourceHandleManager.h:
              * platform/network/mac/AuthenticationMac.h:
              * platform/network/mac/FormDataStreamMac.h:
              * platform/network/qt/ResourceHandleManagerKDE.h:
              * platform/network/qt/ResourceHandleManagerQt.h:
              * platform/network/win/ResourceHandleWin.h:
              * platform/qt/FontPlatformData.h:
              * platform/qt/KeyboardCodes.h:
              * platform/qt/PlatformScrollBar.h:
              * platform/qt/ScrollViewCanvasQt.h:
              * platform/qt/SharedTimerQt.h:
              * platform/win/FontPlatformData.h:
              * platform/win/PlatformScrollBar.h:
              * rendering/AutoTableLayout.h:
              * rendering/HitTestRequest.h:
              * rendering/HitTestResult.h:
              * rendering/InlineBox.h:
              * rendering/InlineFlowBox.h:
              * rendering/Length.h:
              * rendering/ListMarkerBox.h:
              * rendering/RenderBox.h:
              * rendering/RenderMenuList.h:
              * rendering/RenderPart.h:
              * rendering/RenderPartObject.h:
              * rendering/RenderPath.h:
              * rendering/RenderReplaced.h:
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGInline.h:
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGTSpan.h:
              * rendering/RenderSVGText.h:
              * rendering/RenderStyle.h:
              * rendering/RenderTableCol.h:
              * rendering/RenderThemeWin.h:
              * rendering/bidi.h:
              * xml/DOMParser.h:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.h:
              * xml/XPathExpressionNode.h:
              * xml/XPathFunctions.h:
              * xml/XPathNSResolver.h:
              * xml/XPathNamespace.h:
              * xml/XPathParser.h:
              * xml/XPathPath.h:
              * xml/XPathPredicate.h:
              * xml/XPathResult.h:
              * xml/XPathStep.h:
              * xml/XPathUtil.h:
              * xml/XPathValue.h:
              * xml/XPathVariableReference.h:
              * xml/XSLImportRule.h:
              * xml/XSLStyleSheet.h:
              * xml/XSLTProcessor.h:
              * xml/xmlhttprequest.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8eddecf9
  26. 20 Oct, 2006 1 commit
    • aliceli1's avatar
      WebCore: · 5a36ed98
      aliceli1 authored
              Reviewed by Maciej.
      
              This is the initial foundation for the EditingController class and
              everything else it needs to work.  The idea is that the Frame has an
              EditingController object that it calls to handle editing commands, the
              most simple examples being copy/paste.  This controller will handle
              these editing commands in WebCore, and only hand off to WebKit to call
              editing delegates (to the let the app intercept editing actions if it
              wants to).  Thus we need a platform-specific client to which the
              EditingController hands off the delegate calls, 
              WebCoreEditingControllerClient.  On the WebCore side this is an 
              abstract base class, and on the WebKit(Mac) side this is an ObjC++
              subclass, WebEditingControllerClient.  How does the EditingController
              get a handle to its platform-specific client?  In WebKit, the creator
              of a platform-specific Frame creates the client (which is ref-counted)
              and passes it down the chain of constructors until it gets back to the
              EditingController, which then refs it in its constructor and derefs in
              its destructor.
              
              No Layout tests needed.
              
              * WebCore.xcodeproj/project.pbxproj:
              Added files and made DomRangeInternal.h and EditingClient.h private headers, necessary for WebKit to compile
      
              * bridge/EditorClient.h: Added.
              (WebCore::EditorClient::~EditorClient):
      
              * bridge/mac/FrameMac.h:
              Added an EditingClient to the constructor, to pass down to Frame constructor
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::FrameMac):
              Passed client down to Frame constructor
              
              * bridge/mac/WebCoreFrameBridge.h:
              Added an EditingClient to the constructor, to pass down to FrameMac constructor
              
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]):
              (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]):
              Passed client down to FrameMac constructor
              
              * editing/Editor.cpp: Added.
              Mostly stuf implementations of the following functions, except for a couple.  These are all needed by cut, copy, paste, delete.
              (WebCore::generalPasteboard):
              (WebCore::Editor::canCopy):
              (WebCore::Editor::canCut):
              (WebCore::Editor::canDelete):
              (WebCore::Editor::canDeleteRange):
              (WebCore::Editor::canPaste):
              (WebCore::Editor::canSmartCopyOrDelete):
              (WebCore::Editor::deleteSelection):
              (WebCore::Editor::deleteSelectionWithSmartDelete):
              (WebCore::Editor::isSelectionRichlyEditable):
              (WebCore::Editor::pasteAsPlainTextWithPasteboard):
              (WebCore::Editor::pasteWithPasteboard):
              (WebCore::Editor::selectedRange):
              (WebCore::Editor::shouldDeleteRange):
              (WebCore::Editor::tryDHTMLCopy):
              (WebCore::Editor::tryDHTMLCut):
              (WebCore::Editor::tryDHTMLPaste):
              (WebCore::Editor::writeSelectionToPasteboard):
              (WebCore::Editor::Editor):
              (WebCore::Editor::~Editor):
              (WebCore::Editor::cut):
              (WebCore::Editor::copy):
              (WebCore::Editor::paste):
              (WebCore::Editor::performDelete):
              
              * editing/Editor.h: Added.
              
              * page/Frame.h:
              Added an EditingClient to the constructor, to pass down to Editor constructor
      
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              Passed down to Editor constructor
              (WebCore::Frame::editor):
              Accessfor for Editor stored in FramePrivate
              
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              Added an Editor object to the FramePrivate data
              
              * platform/Sound.h: Added.
              Made a platform-independent accessor to a beep function
              
              * platform/mac/SoundMac.mm: Added.
              (WebCore::systemBeep):
              calls mac system beep
      
      WebKit:
      
              Reviewed by Maciej.
      
              Adding knowledge of EditorClient to WebKit
      
              * WebCoreSupport/WebEditorClient.h: Added.
      
              * WebCoreSupport/WebEditorClient.mm: Added.
              (WebEditorClient::WebEditorClient):
              (WebEditorClient::~WebEditorClient):
              (WebEditorClient::shouldDeleteRange):
              Implementation of mac EditorClient
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
              (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
              create an editor client to pass down the chain of constructors
      
              * WebKit.xcodeproj/project.pbxproj:
              Added related EditorClient files
      
              * WebKitPrefix.h:
              Added tiger build flag in order to make certain private headers from webcore compile successfully
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17179 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a36ed98
  27. 10 Jul, 2006 1 commit
    • darin's avatar
      Reviewed by Tim Hatcher. · f4b05b29
      darin authored
              - put more into the WebCore namespace
              - removed unused code for plain text fields
      
              Put more classes, class templates, enums, functions, and constants into
              the WebCore namespace, including all the headers in the platform directory.
      
              Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
      
              Added some "WebCore::" qualifiers in a few places.
      
              Removed "uses WebCore::" in headers that we said we'd remove "when
              everything is in the WebCore namespace".
      
              * bindings/js/JSDOMParser.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bridge/History.h:
              * bridge/JavaAppletWidget.h:
              * bridge/mac/FormDataMac.h:
              * bridge/mac/FormDataMac.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreIconDatabaseBridge.mm:
              * bridge/mac/WebCorePageState.h:
              * bridge/mac/WebCoreScriptDebugger.mm:
              * bridge/mac/WebCoreSettings.h:
              * css/CSSGrammar.y:
              * css/CSSPageRule.cpp:
              * css/CSSPageRule.h:
              * css/MediaList.cpp:
              * css/cssstyleselector.h:
              * dom/Clipboard.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/XMLTokenizer.cpp:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/BreakBlockquoteCommand.h:
              * editing/CompositeEditCommand.cpp:
              * editing/CompositeEditCommand.h:
              * editing/CreateLinkCommand.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/FormatBlockCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/IndentOutdentCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertListCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertTextCommand.cpp:
              * editing/InsertTextCommand.h:
              * editing/JSEditor.cpp:
              * editing/JSEditor.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.cpp:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.cpp:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.h:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/WrapContentsInDummySpanCommand.h:
              * editing/markup.cpp:
              * editing/markup.h:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLBodyElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDocument.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLLabelElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLTableElement.cpp:
              * html/HTMLTablePartElement.cpp:
              * icon/IconDatabase.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderSVGContainer.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGPoint.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/svgpathparser.cpp:
              * ksvg2/svg/svgpathparser.h:
              * loader/Cache.h:
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h:
              * loader/mac/LoaderFunctionsMac.mm:
              * page/Frame.h:
              * page/FrameView.h:
              * page/Page.h:
              * page/Settings.h:
              * platform/AffineTransform.cpp:
              * platform/AffineTransform.h:
              * platform/Arena.cpp:
              * platform/Arena.h:
              * platform/CookieJar.h:
              * platform/DeprecatedCString.cpp:
              * platform/DeprecatedCString.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedPtrQueue.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FileButton.h:
              * platform/FloatPoint.h:
              * platform/FloatRect.h:
              * platform/FloatSize.h:
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/GraphicsContext.h:
              * platform/IntPoint.h:
              * platform/IntRect.h:
              * platform/IntSize.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/ListBox.h:
              * platform/Logging.cpp:
              * platform/Logging.h:
              * platform/Pen.h:
              * platform/PopUpButton.h:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SSLKeyGenerator.h:
              * platform/ScrollBar.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/Slider.h:
              * platform/StringImpl.h:
              * platform/TextBox.h:
              * platform/TextField.h:
              * platform/TextStream.cpp:
              * platform/TextStream.h:
              * platform/TransferJob.h:
              * platform/TransferJobClient.h:
              * platform/Widget.h:
              * platform/cg/AffineTransformCG.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/DeprecatedStringListMac.mm:
              * platform/mac/FontCacheMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/ListBoxMac.mm:
              * platform/mac/PopUpButtonMac.mm:
              * platform/mac/SSLKeyGeneratorMac.mm:
              * platform/mac/TextBoxMac.mm:
              * platform/mac/TextFieldMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/RenderArena.cpp:
              * rendering/RenderArena.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderText.cpp:
              * rendering/RenderTextFragment.cpp:
              * rendering/RenderTheme.h:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.h:
              * rendering/bidi.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4b05b29
  28. 20 Mar, 2006 1 commit
  29. 24 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by John Sullivan. · 947a31b6
      darin authored
              - moved QMouseEvent, QKeyEvent, QWheelEvent, and "Foundation extras"
                from kwq to platform directory
              - moved history function from kwq to bridge directory
              - eliminated QEvent, MousePressEvent, MouseDoubleClickEvent, MouseMoveEvent,
                MoveReleaseEvent, and DrawContents classes
              - merged NodeImpl::MouseEvent and the MouseEvent from khtml_events.h into
                a single class in the page directory
              - broke khtmllayout.h out into a file for the Length structure in the css
                directory and a file for the GapRects structure in the rendering directory
              - redid the Length structure to work more portably by not relying on bitfield
                layout and improve the names to no longer explicitly mention "width"
              - reduced use of QGuardedPtr and other uses of the QObject "destroyed" signal
      
              * ForwardingHeaders/kparts: Removed.
              * ForwardingHeaders/qevent.h: Removed.
              * khtml/khtml_events.cpp: Removed.
              * khtml/khtml_events.h: Removed.
              * khtml/misc/khtmllayout.h: Removed.
              * kwq/KWQEvent.h: Removed.
              * kwq/KWQEvent.mm: Removed.
              * kwq/KWQFoundationExtras.h: Removed.
              * kwq/KWQKHistoryProvider.mm: Removed.
              * kwq/KWQKPartsHistoryProvider.h: Removed.
      
              * bridge/History.h: Added.
              * bridge/mac/HistoryMac.mm: Added.
              * css/Length.h: Added.
              * page/MouseEventWithHitTestResults.h: Added.
              * platform/KeyEvent.h: Added.
              * platform/MouseEvent.h: Added.
              * platform/WheelEvent.h: Added.
              * platform/mac/FoundationExtras.h: Added.
              * platform/mac/KeyEventMac.mm: Added.
              * platform/mac/MouseEventMac.mm: Added.
              * platform/mac/WheelEventMac.mm: Added.
              * rendering/GapRects.h: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for above changes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for above changes.
      
              * bridge/mac/MacFrame.h: Removed unused parameters from urlSelected functions.
              Replaced MouseEvent, MousePressEvent, MouseMoveEvent, and MouseReleaseEvent
              with MouseEventWithHitTestResults.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::urlSelected): Removed unused parameters.
              (WebCore::MacFrame::wheelEvent): Changed to use WheelEvent.
              (WebCore::MacFrame::keyEvent): Changed to use KeyEvent.
              (WebCore::MacFrame::khtmlMousePressEvent): Changed parameter type.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Ditto.
              (WebCore::MacFrame::khtmlMouseReleaseEvent): Ditto.
              (WebCore::MacFrame::passSubframeEventToSubframe): Ditto.
              (WebCore::MacFrame::mouseDown): Changed to use MouseEvent.
              (WebCore::MacFrame::mouseDragged): Ditto.
              (WebCore::MacFrame::mouseUp): Ditto.
              (WebCore::MacFrame::mouseMoved): Ditto.
              (WebCore::MacFrame::sendContextMenuEvent): Ditto.
      
              * css/csshelper.h: Removed a bunch of unused declarations.
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::prepareMouseEvent): Changed to take a MouseEvent
              and return a MouseEventWithHitTestResults.
              (WebCore::DocumentImpl::defaultEventHandler): Changed to use KeyEvent.
      
              * dom/NodeImpl.h: Removed NodeImpl::MouseEvent and NodeImpl::MouseEventType.
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchMouseEvent): Changed to always get the type and
              detail values from the caller, never from the event. Changed to use MouseEvent.
              (WebCore::NodeImpl::dispatchKeyEvent): Changed to use KeyEvent.
              (WebCore::NodeImpl::dispatchWheelEvent): Changed to use WheelEvent.
      
              * dom/dom2_eventsimpl.h:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::KeyboardEventImpl::KeyboardEventImpl): Changed to use KeyEvent.
              (WebCore::KeyboardEventImpl::charCode): Ditto.
      
              * dom/dom_elementimpl.h: Removed unused mouseEventHandler function.
      
              * khtml/ecma/domparser.h: Use RefPtr instead of QGuardedPtr to hold the reference
              to the document.
      
              * khtml/ecma/kjs_proxy.h: (WebCore::KJSProxyImpl::haveInterpreter): Added. For
              use in the Frame destructor so we can get an existing KJS::Window object without
              creating a new interpreter and window object.
      
              * khtml/ecma/kjs_window.h: Merged WindowQObject into Window. Changed all the
              guarded pointers to Frame to use plain old pointers that are cleared by the
              Frame explicitly (by the function disconnectFrame). Made the pointers to all
              the sub-objects of KJS::Window be mutable so we don't have to const_cast in
              the functions to get (and lazily create) them.
              * khtml/ecma/kjs_window.cpp:
              (KJS::DOMWindowTimer::DOMWindowTimer): Use Window* instead of WindowQObject*.
              (KJS::History::disconnectFrame): Added. Clears m_frame.
              (KJS::FrameArray::disconnectFrame): Added. Clears m_frame.
              (KJS::Window::Window): Removed code to create a WindowQObject.
              (KJS::Window::~Window): Removed code to delete a WindowQObject.
              (KJS::Window::location): Remove now-unneeded const_cast.
              (KJS::Window::selection): Ditto.
              (KJS::Window::locationbar): Ditto.
              (KJS::Window::menubar): Ditto.
              (KJS::Window::personalbar): Ditto.
              (KJS::Window::statusbar): Ditto.
              (KJS::Window::toolbar): Ditto.
              (KJS::Window::scrollbars): Ditto.
              (KJS::Window::getValueProperty): Update since m_frame is now a raw pointer.
              (KJS::Window::getOwnPropertySlot): Ditto.
              (KJS::Window::toBoolean): Ditto.
              (KJS::Window::scheduleClose): Remove assert that WindowQObject* is not null.
              (KJS::Window::isSafeScript): Update since m_frame is now a raw pointer.
              (KJS::Window::clear): Remove code to delete a WindowQObject. Added a call
              to clearAllTimeouts instead.
              (KJS::Window::clearAllTimeouts): Added. Does equivalent of the WindowQObject
              destructor.
              (KJS::Window::installTimeout): Moved to Window from WindowQObject.
              (KJS::Window::pauseTimeouts): Ditto.
              (KJS::Window::resumeTimeouts): Ditto.
              (KJS::Window::clearTimeout): Ditto.
              (KJS::Window::timerFired): Ditto.
              (KJS::Window::disconnectFrame): Added. Sets all the frame pointers to 0.
              (KJS::FrameArray::getOwnPropertySlot): Update since m_frame is now a raw pointer.
              (KJS::Location::getOwnPropertySlot): Ditto.
              (KJS::Location::put): Ditto.
              (KJS::Selection::getOwnPropertySlot): Ditto.
              (KJS::BarInfo::getOwnPropertySlot): Ditto.
      
              * khtml/html/html_baseimpl.h: Forward-declare Length instead of including khtmllayout.h.
              * khtml/html/html_imageimpl.h: Ditto.
      
              * khtml/html/html_inlineimpl.cpp: (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
              Changed to use KeyEvent and removed the code to extract the button and state from the
              DOM even to pass to urlSelected.
              * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::defaultEventHandler): Ditto.
      
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::timerFired): Change to use
              a RefPtr instead of a QGuardedPtr.
      
              * khtml/misc/helper.h:
              * khtml/misc/helper.cpp: Removed printpainter and setPrintPainter.
      
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp: (WebCore::SVGDocumentImpl::dispatchKeyEvent):
              Change to use KeyEvent.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusChanged):
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]):
              Updated to use new eventFilterFocusIn/Out instead of the general purpose
              eventFilter function. This allows us to remove QEvent and the focus events.
      
              * kwq/KWQNamespace.h: Removed ButtonState.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Replaced eventFilter function with eventFilterFocusIn and
              eventFilterFocusOut, allowing us to remove QEvent. Removed event function.
      
              * kwq/KWQSlot.cpp:
              (KWQSlot::KWQSlot): Removed the parentDestroyed slot.
              (KWQSlot::call): Ditto.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Renamed from
              PartStyleSheetLoader. Removed a lot of unneeded null checks. Use a
              raw Frame pointer instead of a QGuardedPtr, and count on the Frame
              to delete us when it's being deleted.
              (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader): No longer
              a virtual function. This is not a polymorphic class.
              (WebCore::UserStyleSheetLoader::setStyleSheet): Remove code to delete
              ourselves -- that's now the frame's responsibility.
              (WebCore::Frame::~Frame): Call disconnectFrame on the KJS::Window and
              delete m_userStyleSheetLoader.
              (WebCore::Frame::changeLocation): Update since urlSelected no longer takes
              button and state parameters.
              (WebCore::Frame::setUserStyleSheet): Delete existing loader to stop a load
              in progress before starting a new load. Store reference to loader.
              (WebCore::Frame::urlSelected): Remove button and state parameters and unused
              local variable hasTarget.
              (WebCore::Frame::selectClosestWordFromMouseEvent): Change from QMouseEvent
              to MouseEvent.
              (WebCore::Frame::handleMousePressEventDoubleClick): Change from MousePressEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::handleMousePressEventTripleClick): Ditto.
              (WebCore::Frame::handleMousePressEventSingleClick): Ditto.
              (WebCore::Frame::khtmlMousePressEvent): Ditto.
              (WebCore::Frame::handleMouseMoveEventSelection): Change from MouseMoveEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseMoveEvent): Ditto.
              (WebCore::Frame::khtmlMouseReleaseEvent): Change from MouseReleaseEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseDoubleClickEvent): Change from
              MouseReleaseDoubleClickEvent to MouseEventWithHitTestResults.
              (WebCore::Frame::passWidgetMouseDownEventToWidget): Change from
              NodeImpl::MouseEvent to MouseEventWithHitTestResults.
      
              * page/FramePrivate.h: Added m_userStyleSheetLoader.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::viewportMousePressEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportMouseDoubleClickEvent): Ditto.
              (WebCore::selectCursor): Ditto.
              (WebCore::FrameView::viewportMouseMoveEvent): Ditto.
              (WebCore::FrameView::viewportMouseReleaseEvent): Ditto.
              (WebCore::FrameView::keyPressEvent): Change from QKeyEvent to KeyEvent.
              (WebCore::FrameView::dispatchMouseEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportWheelEvent): Change from QWheelEvent to
              WheelEvent.
              (WebCore::FrameView::hoverTimerFired): Update for change to prepareMouseEvent
              parameters.
      
              * platform/Widget.h:
              * platform/Widget.cpp: Removed event function.
      
              * rendering/render_form.h: Removed LineEditWidget, ComboBoxWidget, TextAreaWidget.
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::slotClicked): Changed from QMouseEvent to MouseEvent.
              (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed): Updated for changes
              to the Length class.
              (WebCore::RenderSelect::setWidgetWritingDirection): Updated for removal of
              ComboBoxWidget.
              (WebCore::RenderSelect::slotSelected): Ditto.
              (WebCore::RenderSelect::createComboBox): Ditto.
      
              * rendering/render_replaced.h:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::destroy): Updated since removeEventFilter no longer takes
              a parameter.
              (WebCore::RenderWidget::setQWidget): Ditto.
              (WebCore::RenderWidget::eventFilterFocusIn): Added. Replaces eventFilter.
              (WebCore::RenderWidget::eventFilterFocusOut): Ditto.
      
              * css/css_computedstyle.cpp:
              (WebCore::valueForLength):
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              * css/cssstyleselector.cpp:
              (WebCore::checkPseudoState):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElementImpl::getRegion):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::MarginInfo::MarginInfo):
              (WebCore::RenderBlock::isSelfCollapsingBlock):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::determineHorizontalPosition):
              (WebCore::RenderBlock::leftRelOffset):
              (WebCore::RenderBlock::rightRelOffset):
              (WebCore::RenderBlock::calcMinMaxWidth):
              (WebCore::getBPMWidth):
              (WebCore::RenderBlock::calcInlineMinMaxWidth):
              (WebCore::RenderBlock::calcBlockMinMaxWidth):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::calcMinMaxWidth):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::addChild):
              (WebCore::RenderTableSection::addCell):
              (WebCore::RenderTableSection::calcRowHeight):
              (WebCore::RenderTableSection::layoutRows):
              * rendering/RenderText.h:
              (khtml::RenderText::marginLeft):
              (khtml::RenderText::marginRight):
              * rendering/bidi.cpp:
              (khtml::getBPMWidth):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::getClipRect):
              (WebCore::RenderBox::relativePositionOffset):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::sizesToIntrinsicWidth):
              (WebCore::RenderBox::calcHorizontalMargins):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcHeightUsing):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedWidthUsing):
              (WebCore::RenderBox::calcReplacedHeight):
              (WebCore::RenderBox::calcReplacedHeightUsing):
              (WebCore::RenderBox::availableHeightUsing):
              (WebCore::RenderBox::calcVerticalMargins):
              (WebCore::RenderBox::calcAbsoluteHorizontal):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              (WebCore::RenderBox::calcAbsoluteVertical):
              (WebCore::RenderBox::calcAbsoluteVerticalValues):
              * rendering/render_br.cpp:
              (WebCore::RenderBR::lineHeight):
              * rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::calcHorizontalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcVerticalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcMinMaxWidth):
              (khtml::RenderFlexibleBox::allowedChildFlex):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::lineHeight):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::isWidthSpecified):
              (WebCore::RenderImage::isHeightSpecified):
              * rendering/render_layer.cpp:
              (WebCore::Marquee::direction):
              (WebCore::Marquee::start):
              (WebCore::Marquee::updateMarqueeStyle):
              (WebCore::Marquee::timerFired):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::marginLeft):
              (WebCore::InlineFlowBox::marginRight):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paddingTop):
              (WebCore::RenderObject::paddingBottom):
              (WebCore::RenderObject::paddingLeft):
              (WebCore::RenderObject::paddingRight):
              (WebCore::RenderObject::getVerticalPosition):
              (WebCore::RenderObject::lineHeight):
              (WebCore::RenderObject::addDashboardRegions):
              * rendering/render_style.h:
              * rendering/render_theme_mac.mm:
              (WebCore::RenderThemeMac::addIntrinsicMargins):
              * rendering/table_layout.cpp:
              (WebCore::FixedTableLayout::calcWidthArray):
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::FixedTableLayout::layout):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::fullRecalc):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::layout):
              (WebCore::AutoTableLayout::calcPercentages):
              Updated for changes to the Length class.
              Also removed a check of the printpainter global, never used in WebCore.
      
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/csshelper.cpp:
              * editing/SelectionController.cpp:
              * khtml/ecma/kjs_html.h:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKURL.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPainter.mm:
              * kwq/WebCoreSettings.mm:
              * platform/StringImpl.cpp:
              * platform/mac/CursorMac.mm:
              * platform/mac/WidgetMac.mm:
              * rendering/RenderBlock.h:
              * rendering/render_canvas.cpp:
              * rendering/render_line.h:
              * rendering/render_style.cpp:
              * rendering/table_layout.h:
              Updated includes.
      
              * bindings/js/JSDOMCore.cpp: Touched, because I got strange failures if this
              didn't rebuild.
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      947a31b6
  30. 23 Feb, 2006 1 commit
  31. 14 Feb, 2006 1 commit
    • darin's avatar
      Rubber-stamped by Eric. · a68e043d
      darin authored
              - moved editing sources from khtml/editing to editing, and renamed files with single classes
      
              * WebCore.xcodeproj/project.pbxproj: Added new, removed old.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
      
              * bridge/mac/MacFrame.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * dom/DocumentImpl.cpp:
              * dom/dom2_rangeimpl.cpp:
              * dom/dom_position.cpp:
              * khtml/khtml_events.cpp:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.h:
              * kwq/KWQEditCommand.mm:
              * page/Frame.cpp:
              * page/FramePrivate.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderText.cpp:
              * rendering/render_br.cpp:
              * rendering/render_inline.cpp:
              * rendering/render_object.cpp:
              * rendering/render_replaced.cpp:
              Fixed up includes.
      
              * editing: Added.
              * editing/AppendNodeCommand.cpp: Added.
              * editing/AppendNodeCommand.h: Added.
              * editing/ApplyStyleCommand.cpp: Added.
              * editing/ApplyStyleCommand.h: Added.
              * editing/BreakBlockquoteCommand.cpp: Added.
              * editing/BreakBlockquoteCommand.h: Added.
              * editing/CompositeEditCommand.cpp: Added.
              * editing/CompositeEditCommand.h: Added.
              * editing/DeleteFromTextNodeCommand.cpp: Added.
              * editing/DeleteFromTextNodeCommand.h: Added.
              * editing/DeleteSelectionCommand.cpp: Added.
              * editing/DeleteSelectionCommand.h: Added.
              * editing/EditCommand.cpp: Added.
              * editing/EditCommand.h: Added.
              * editing/InsertIntoTextNodeCommand.cpp: Added.
              * editing/InsertIntoTextNodeCommand.h: Added.
              * editing/InsertLineBreakCommand.cpp: Added.
              * editing/InsertLineBreakCommand.h: Added.
              * editing/InsertNodeBeforeCommand.cpp: Added.
              * editing/InsertNodeBeforeCommand.h: Added.
              * editing/InsertParagraphSeparatorCommand.cpp: Added.
              * editing/InsertParagraphSeparatorCommand.h: Added.
              * editing/InsertTextCommand.cpp: Added.
              * editing/InsertTextCommand.h: Added.
              * editing/JoinTextNodesCommand.cpp: Added.
              * editing/JoinTextNodesCommand.h: Added.
              * editing/MergeIdenticalElementsCommand.cpp: Added.
              * editing/MergeIdenticalElementsCommand.h: Added.
              * editing/MoveSelectionCommand.cpp: Added.
              * editing/MoveSelectionCommand.h: Added.
              * editing/RebalanceWhitespaceCommand.cpp: Added.
              * editing/RebalanceWhitespaceCommand.h: Added.
              * editing/RemoveCSSPropertyCommand.cpp: Added.
              * editing/RemoveCSSPropertyCommand.h: Added.
              * editing/RemoveNodeAttributeCommand.cpp: Added.
              * editing/RemoveNodeAttributeCommand.h: Added.
              * editing/RemoveNodeCommand.cpp: Added.
              * editing/RemoveNodeCommand.h: Added.
              * editing/RemoveNodePreservingChildrenCommand.cpp: Added.
              * editing/RemoveNodePreservingChildrenCommand.h: Added.
              * editing/ReplaceSelectionCommand.cpp: Added.
              * editing/ReplaceSelectionCommand.h: Added.
              * editing/Selection.cpp:
              * editing/SelectionController.cpp:
              * editing/SetNodeAttributeCommand.cpp: Added.
              * editing/SetNodeAttributeCommand.h: Added.
              * editing/SplitElementCommand.cpp: Added.
              * editing/SplitElementCommand.h: Added.
              * editing/SplitTextNodeCommand.cpp: Added.
              * editing/SplitTextNodeCommand.h: Added.
              * editing/SplitTextNodeContainingElementCommand.cpp: Added.
              * editing/SplitTextNodeContainingElementCommand.h: Added.
              * editing/TypingCommand.cpp: Added.
              * editing/TypingCommand.h: Added.
              * editing/VisiblePosition.cpp: Added.
              * editing/VisiblePosition.h: Added.
              * editing/VisibleRange.cpp: Added.
              * editing/VisibleRange.h: Added.
              * editing/WrapContentsInDummySpanCommand.cpp: Added.
              * editing/WrapContentsInDummySpanCommand.h: Added.
              * editing/append_node_command.cpp: Removed.
              * editing/append_node_command.h: Removed.
              * editing/apply_style_command.cpp: Removed.
              * editing/apply_style_command.h: Removed.
              * editing/break_blockquote_command.cpp: Removed.
              * editing/break_blockquote_command.h: Removed.
              * editing/composite_edit_command.cpp: Removed.
              * editing/composite_edit_command.h: Removed.
              * editing/delete_from_text_node_command.cpp: Removed.
              * editing/delete_from_text_node_command.h: Removed.
              * editing/delete_selection_command.cpp: Removed.
              * editing/delete_selection_command.h: Removed.
              * editing/edit_command.cpp: Removed.
              * editing/edit_command.h: Removed.
              * editing/htmlediting.cpp:
              * editing/insert_into_text_node_command.cpp: Removed.
              * editing/insert_into_text_node_command.h: Removed.
              * editing/insert_line_break_command.cpp: Removed.
              * editing/insert_line_break_command.h: Removed.
              * editing/insert_node_before_command.cpp: Removed.
              * editing/insert_node_before_command.h: Removed.
              * editing/insert_paragraph_separator_command.cpp: Removed.
              * editing/insert_paragraph_separator_command.h: Removed.
              * editing/insert_text_command.cpp: Removed.
              * editing/insert_text_command.h: Removed.
              * editing/join_text_nodes_command.cpp: Removed.
              * editing/join_text_nodes_command.h: Removed.
              * editing/jsediting.cpp:
              * editing/markup.cpp:
              * editing/merge_identical_elements_command.cpp: Removed.
              * editing/merge_identical_elements_command.h: Removed.
              * editing/move_selection_command.cpp: Removed.
              * editing/move_selection_command.h: Removed.
              * editing/rebalance_whitespace_command.cpp: Removed.
              * editing/rebalance_whitespace_command.h: Removed.
              * editing/remove_css_property_command.cpp: Removed.
              * editing/remove_css_property_command.h: Removed.
              * editing/remove_node_attribute_command.cpp: Removed.
              * editing/remove_node_attribute_command.h: Removed.
              * editing/remove_node_command.cpp: Removed.
              * editing/remove_node_command.h: Removed.
              * editing/remove_node_preserving_children_command.cpp: Removed.
              * editing/remove_node_preserving_children_command.h: Removed.
              * editing/replace_selection_command.cpp: Removed.
              * editing/replace_selection_command.h: Removed.
              * editing/set_node_attribute_command.cpp: Removed.
              * editing/set_node_attribute_command.h: Removed.
              * editing/split_element_command.cpp: Removed.
              * editing/split_element_command.h: Removed.
              * editing/split_text_node_command.cpp: Removed.
              * editing/split_text_node_command.h: Removed.
              * editing/split_text_node_containing_element.cpp: Removed.
              * editing/split_text_node_containing_element_command.h: Removed.
              * editing/typing_command.cpp: Removed.
              * editing/typing_command.h: Removed.
              * editing/visible_position.cpp: Removed.
              * editing/visible_position.h: Removed.
              * editing/visible_range.cpp: Removed.
              * editing/visible_range.h: Removed.
              * editing/visible_units.cpp:
              * editing/wrap_contents_in_dummy_span_command.cpp: Removed.
              * editing/wrap_contents_in_dummy_span_command.h: Removed.
      
              * khtml/editing: Removed.
              * khtml/editing/Selection.cpp: Removed.
              * khtml/editing/Selection.h: Removed.
              * khtml/editing/SelectionController.cpp: Removed.
              * khtml/editing/SelectionController.h: Removed.
              * khtml/editing/append_node_command.cpp: Removed.
              * khtml/editing/append_node_command.h: Removed.
              * khtml/editing/apply_style_command.cpp: Removed.
              * khtml/editing/apply_style_command.h: Removed.
              * khtml/editing/break_blockquote_command.cpp: Removed.
              * khtml/editing/break_blockquote_command.h: Removed.
              * khtml/editing/composite_edit_command.cpp: Removed.
              * khtml/editing/composite_edit_command.h: Removed.
              * khtml/editing/delete_from_text_node_command.cpp: Removed.
              * khtml/editing/delete_from_text_node_command.h: Removed.
              * khtml/editing/delete_selection_command.cpp: Removed.
              * khtml/editing/delete_selection_command.h: Removed.
              * khtml/editing/edit_actions.h: Removed.
              * khtml/editing/edit_command.cpp: Removed.
              * khtml/editing/edit_command.h: Removed.
              * khtml/editing/html_interchange.cpp: Removed.
              * khtml/editing/html_interchange.h: Removed.
              * khtml/editing/htmlediting.cpp: Removed.
              * khtml/editing/htmlediting.h: Removed.
              * khtml/editing/insert_into_text_node_command.cpp: Removed.
              * khtml/editing/insert_into_text_node_command.h: Removed.
              * khtml/editing/insert_line_break_command.cpp: Removed.
              * khtml/editing/insert_line_break_command.h: Removed.
              * khtml/editing/insert_node_before_command.cpp: Removed.
              * khtml/editing/insert_node_before_command.h: Removed.
              * khtml/editing/insert_paragraph_separator_command.cpp: Removed.
              * khtml/editing/insert_paragraph_separator_command.h: Removed.
              * khtml/editing/insert_text_command.cpp: Removed.
              * khtml/editing/insert_text_command.h: Removed.
              * khtml/editing/join_text_nodes_command.cpp: Removed.
              * khtml/editing/join_text_nodes_command.h: Removed.
              * khtml/editing/jsediting.cpp: Removed.
              * khtml/editing/jsediting.h: Removed.
              * khtml/editing/markup.cpp: Removed.
              * khtml/editing/markup.h: Removed.
              * khtml/editing/merge_identical_elements_command.cpp: Removed.
              * khtml/editing/merge_identical_elements_command.h: Removed.
              * khtml/editing/move_selection_command.cpp: Removed.
              * khtml/editing/move_selection_command.h: Removed.
              * khtml/editing/rebalance_whitespace_command.cpp: Removed.
              * khtml/editing/rebalance_whitespace_command.h: Removed.
              * khtml/editing/remove_css_property_command.cpp: Removed.
              * khtml/editing/remove_css_property_command.h: Removed.
              * khtml/editing/remove_node_attribute_command.cpp: Removed.
              * khtml/editing/remove_node_attribute_command.h: Removed.
              * khtml/editing/remove_node_command.cpp: Removed.
              * khtml/editing/remove_node_command.h: Removed.
              * khtml/editing/remove_node_preserving_children_command.cpp: Removed.
              * khtml/editing/remove_node_preserving_children_command.h: Removed.
              * khtml/editing/replace_selection_command.cpp: Removed.
              * khtml/editing/replace_selection_command.h: Removed.
              * khtml/editing/set_node_attribute_command.cpp: Removed.
              * khtml/editing/set_node_attribute_command.h: Removed.
              * khtml/editing/split_element_command.cpp: Removed.
              * khtml/editing/split_element_command.h: Removed.
              * khtml/editing/split_text_node_command.cpp: Removed.
              * khtml/editing/split_text_node_command.h: Removed.
              * khtml/editing/split_text_node_containing_element.cpp: Removed.
              * khtml/editing/split_text_node_containing_element_command.h: Removed.
              * khtml/editing/text_affinity.h: Removed.
              * khtml/editing/text_granularity.h: Removed.
              * khtml/editing/typing_command.cpp: Removed.
              * khtml/editing/typing_command.h: Removed.
              * khtml/editing/visible_position.cpp: Removed.
              * khtml/editing/visible_position.h: Removed.
              * khtml/editing/visible_range.cpp: Removed.
              * khtml/editing/visible_range.h: Removed.
              * khtml/editing/visible_text.cpp: Removed.
              * khtml/editing/visible_text.h: Removed.
              * khtml/editing/visible_units.cpp: Removed.
              * khtml/editing/visible_units.h: Removed.
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp: Removed.
              * khtml/editing/wrap_contents_in_dummy_span_command.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a68e043d
  32. 03 Oct, 2005 1 commit
    • mjs's avatar
      JavaScriptCore: · b64c50a2
      mjs authored
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	A number of optimizations to the new threadsafe malloc that make it actually as fast
      	as dlmalloc (I measured wrong before) and as memory-efficient as the system malloc.
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
      	via a private inline operator new that is now included into every file via config.h.
      
      	- tweaked some of the numeric parameters for size classes and amount of wasted memory
      	allowed per allocation - this saves on memory use and consequently improves speed.
      
      	- so long as the allocator is not being used on background threads, get the per-thread
      	cache from a global variable instead of from pthread_getspecific, since the latter is slow.
      
      	- inline more functions, and force the ones GCC refuses to inline with
      	attribute(always_inline), nearly all of these have one call site so inlining them has
      	to be a win.
      
      	- use some tricks to calculate allocation size more efficiently and fewer times for small
      	allocations, to avoid hitting the huge size table array.
      
      	- avoid hitting the per-thread cache on code paths that don't need it.
      
      	- implement inline assembly version of spinlock for PowerPC (was already done for x86)
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_class.cpp:
              * bindings/c/c_instance.cpp:
              * bindings/c/c_runtime.cpp:
              * bindings/c/c_utility.cpp:
              * bindings/jni/jni_class.cpp:
              * bindings/jni/jni_instance.cpp:
              * bindings/jni/jni_jsobject.cpp:
              * bindings/jni/jni_objc.mm:
              * bindings/jni/jni_runtime.cpp:
              * bindings/jni/jni_utility.cpp:
              * bindings/npruntime.cpp:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.cpp:
              * bindings/runtime_array.cpp:
              * bindings/runtime_method.cpp:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.cpp:
              * bindings/testbindings.cpp:
              * bindings/testbindings.mm:
              * kjs/array_object.cpp:
              (ArrayInstanceImp::ArrayInstanceImp):
              (ArrayInstanceImp::~ArrayInstanceImp):
              (ArrayInstanceImp::resizeStorage):
              * kjs/bool_object.cpp:
              * kjs/collector.cpp:
              (KJS::Collector::registerThread):
              * kjs/config.h:
              * kjs/debugger.cpp:
              * kjs/error_object.cpp:
              * kjs/function.cpp:
              * kjs/function_object.cpp:
              * kjs/identifier.cpp:
              (KJS::Identifier::rehash):
              * kjs/internal.cpp:
              (KJS::Parser::saveNewNode):
              (KJS::clearNewNodes):
              * kjs/interpreter.cpp:
              * kjs/lexer.cpp:
              (Lexer::doneParsing):
              (Lexer::makeIdentifier):
              (Lexer::makeUString):
              * kjs/list.cpp:
              * kjs/math_object.cpp:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/nodes2string.cpp:
              * kjs/number_object.cpp:
              (integer_part_noexp):
              (char_sequence):
              * kjs/object.cpp:
              * kjs/object_object.cpp:
              * kjs/property_map.cpp:
              * kjs/property_slot.cpp:
              * kjs/protected_values.cpp:
              (KJS::ProtectedValues::rehash):
              * kjs/reference.cpp:
              * kjs/reference_list.cpp:
              * kjs/regexp.cpp:
              * kjs/regexp_object.cpp:
              * kjs/scope_chain.cpp:
              * kjs/scope_chain.h:
              * kjs/string_object.cpp:
              * kjs/testkjs.cpp:
              * kjs/ustring.h:
              * kjs/value.cpp:
              * kxmlcore/Assertions.mm:
              * kxmlcore/FastMalloc.cpp:
              (KXMLCore::InitSizeClasses):
              (KXMLCore::DLL_IsEmpty):
              (KXMLCore::DLL_Prepend):
              (KXMLCore::TCMalloc_Central_FreeList::Insert):
              (KXMLCore::TCMalloc_Central_FreeList::Remove):
              (KXMLCore::TCMalloc_Central_FreeList::Populate):
              (KXMLCore::TCMalloc_ThreadCache::Allocate):
              (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache):
              (KXMLCore::fastMallocRegisterThread):
              (KXMLCore::TCMalloc_ThreadCache::GetCache):
              (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent):
              (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary):
              (KXMLCore::do_malloc):
              (KXMLCore::do_free):
              (KXMLCore::realloc):
              * kxmlcore/FastMalloc.h:
              (operator new):
              (operator delete):
              (operator new[]):
              (operator delete[]):
              * kxmlcore/HashTable.cpp:
              * kxmlcore/TCSpinLock.h:
              (TCMalloc_SpinLock::Lock):
              (TCMalloc_SpinLock::Unlock):
              (TCMalloc_SlowLock):
              * kxmlcore/TCSystemAlloc.cpp:
      
      WebCore:
      
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
              via a private inline operator new that is now included into every file via config.h
      
              * WebCore.xcodeproj/project.pbxproj:
              * WebCorePrefix.h:
              * khtml/css/css_base.cpp:
              * khtml/css/css_base.h:
              * khtml/css/css_computedstyle.cpp:
              * khtml/css/css_ruleimpl.cpp:
              * khtml/css/css_stylesheetimpl.cpp:
              * khtml/css/css_valueimpl.cpp:
              * khtml/css/css_valueimpl.h:
              * khtml/css/csshelper.cpp:
              * khtml/css/cssparser.cpp:
              (ValueList::ValueList):
              (ValueList::~ValueList):
              (ValueList::addValue):
              (CSSParser::CSSParser):
              (CSSParser::~CSSParser):
              (CSSParser::setupParser):
              (CSSParser::addProperty):
              * khtml/css/cssstyleselector.cpp:
              * khtml/css/cssstyleselector.h:
              * khtml/dom/dom2_events.cpp:
              * khtml/dom/dom2_traversal.cpp:
              * khtml/dom/dom_misc.cpp:
              * khtml/dom/dom_string.cpp:
              * khtml/ecma/domparser.cpp:
              * khtml/ecma/kjs_binding.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::Gradient::~Gradient):
              (KJS::Gradient::addColorStop):
              (KJS::Gradient::colorStops):
              * khtml/ecma/kjs_navigator.cpp:
              * khtml/ecma/kjs_proxy.cpp:
              * khtml/ecma/kjs_range.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_views.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/xmlhttprequest.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/append_node_command.cpp:
              * khtml/editing/apply_style_command.cpp:
              * khtml/editing/break_blockquote_command.cpp:
              * khtml/editing/composite_edit_command.cpp:
              * khtml/editing/delete_from_text_node_command.cpp:
              * khtml/editing/delete_selection_command.cpp:
              * khtml/editing/edit_command.cpp:
              * khtml/editing/html_interchange.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_into_text_node_command.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              * khtml/editing/insert_node_before_command.cpp:
              * khtml/editing/insert_paragraph_separator_command.cpp:
              * khtml/editing/insert_text_command.cpp:
              * khtml/editing/join_text_nodes_command.cpp:
              * khtml/editing/jsediting.cpp:
              * khtml/editing/markup.cpp:
              * khtml/editing/merge_identical_elements_command.cpp:
              * khtml/editing/move_selection_command.cpp:
              * khtml/editing/rebalance_whitespace_command.cpp:
              * khtml/editing/remove_css_property_command.cpp:
              * khtml/editing/remove_node_attribute_command.cpp:
              * khtml/editing/remove_node_command.cpp:
              * khtml/editing/remove_node_preserving_children_command.cpp:
              * khtml/editing/replace_selection_command.cpp:
              * khtml/editing/set_node_attribute_command.cpp:
              * khtml/editing/split_element_command.cpp:
              * khtml/editing/split_text_node_command.cpp:
              * khtml/editing/split_text_node_containing_element.cpp:
              * khtml/editing/typing_command.cpp:
              * khtml/editing/visible_position.cpp:
              * khtml/editing/visible_range.cpp:
              * khtml/editing/visible_text.cpp:
              (khtml::CircularSearchBuffer::~CircularSearchBuffer):
              (khtml::CircularSearchBuffer::CircularSearchBuffer):
              * khtml/editing/visible_units.cpp:
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/html/html_blockimpl.cpp:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_elementimpl.cpp:
              * khtml/html/html_formimpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              * khtml/html/html_listimpl.cpp:
              * khtml/html/html_miscimpl.cpp:
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlfactory.cpp:
              * khtml/html/htmlnames.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::enlargeBuffer):
              (khtml::HTMLTokenizer::enlargeScriptBuffer):
              * khtml/khtml_events.cpp:
              * khtml/khtml_part.cpp:
              * khtml/khtmlview.cpp:
              * khtml/misc/arena.cpp:
              * khtml/misc/arena.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/formdata.cpp:
              * khtml/misc/helper.cpp:
              * khtml/misc/loader.cpp:
              * khtml/misc/stringit.cpp:
              * khtml/rendering/bidi.cpp:
              * khtml/rendering/break_lines.cpp:
              * khtml/rendering/font.cpp:
              * khtml/rendering/render_arena.cpp:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_box.cpp:
              * khtml/rendering/render_br.cpp:
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_canvasimage.cpp:
              (RenderCanvasImage::~RenderCanvasImage):
              (RenderCanvasImage::createDrawingContext):
              * khtml/rendering/render_container.cpp:
              * khtml/rendering/render_flexbox.cpp:
              * khtml/rendering/render_flow.cpp:
              * khtml/rendering/render_form.cpp:
              * khtml/rendering/render_frames.cpp:
              * khtml/rendering/render_image.cpp:
              * khtml/rendering/render_inline.cpp:
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_line.cpp:
              * khtml/rendering/render_list.cpp:
              * khtml/rendering/render_object.cpp:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_style.cpp:
              * khtml/rendering/render_style.h:
              * khtml/rendering/render_table.cpp:
              * khtml/rendering/render_text.cpp:
              * khtml/rendering/render_theme.cpp:
              * khtml/rendering/render_theme_mac.mm:
              * khtml/rendering/table_layout.cpp:
              * khtml/xbl/xbl_binding.cpp:
              * khtml/xbl/xbl_binding_manager.cpp:
              * khtml/xbl/xbl_docimpl.cpp:
              * khtml/xbl/xbl_protobinding.cpp:
              * khtml/xbl/xbl_protohandler.cpp:
              * khtml/xbl/xbl_protoimplementation.cpp:
              * khtml/xbl/xbl_tokenizer.cpp:
              * khtml/xml/EventNames.cpp:
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom2_rangeimpl.cpp:
              * khtml/xml/dom2_rangeimpl.h:
              * khtml/xml/dom2_traversalimpl.cpp:
              * khtml/xml/dom2_traversalimpl.h:
              * khtml/xml/dom2_viewsimpl.cpp:
              * khtml/xml/dom2_viewsimpl.h:
              * khtml/xml/dom_atomicstring.cpp:
              * khtml/xml/dom_docimpl.cpp:
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/dom_nodeimpl.h:
              * khtml/xml/dom_position.cpp:
              * khtml/xml/dom_qname.cpp:
              * khtml/xml/dom_stringimpl.cpp:
              * khtml/xml/dom_stringimpl.h:
              * khtml/xml/dom_textimpl.cpp:
              * khtml/xml/dom_xmlimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * khtml/xsl/xslt_processorimpl.cpp:
              * kwq/DOM-CSS.mm:
              * kwq/DOM.mm:
              * kwq/DOMEvents.mm:
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              (DOMString::DOMString):
              * kwq/DOMUtility.mm:
              * kwq/DOMViews.mm:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQApplication.mm:
              * kwq/KWQArrayImpl.h:
              * kwq/KWQArrayImpl.mm:
              * kwq/KWQBuffer.mm:
              * kwq/KWQButton.mm:
              * kwq/KWQCString.mm:
              * kwq/KWQCharsets.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQCollection.mm:
              * kwq/KWQColor.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQCursor.mm:
              * kwq/KWQDateTime.mm:
              * kwq/KWQDictImpl.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQEvent.mm:
              * kwq/KWQExceptions.mm:
              * kwq/KWQFile.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontFamily.h:
              * kwq/KWQFontFamily.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQFormData.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQGlobal.mm:
              * kwq/KWQGuardedPtr.mm:
              * kwq/KWQKCharsets.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKCookieJar.mm:
              * kwq/KWQKCursor.mm:
              * kwq/KWQKGlobal.mm:
              * kwq/KWQKGlobalSettings.mm:
              * kwq/KWQKHTMLFactory.mm:
              * kwq/KWQKHTMLPart.cpp:
              * kwq/KWQKHTMLPart.mm:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              * kwq/KWQKHTMLView.mm:
              * kwq/KWQKHistoryProvider.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQKJob.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKPartsBrowserInterface.mm:
              * kwq/KWQKPartsEvent.mm:
              * kwq/KWQKPartsPart.mm:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQKStandardDirs.mm:
              * kwq/KWQKStringHandler.mm:
              * kwq/KWQKURL.mm:
              (KURL::KURL):
              (KURL::decode_string):
              (KURL::parse):
              (KURL::encode_string):
              (encodeRelativeString):
              * kwq/KWQKWin.mm:
              * kwq/KWQKWinModule.mm:
              * kwq/KWQLabel.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.mm:
              * kwq/KWQLoader.mm:
              (KWQIsResponseURLEqualToURL):
              * kwq/KWQMapImpl.h:
              * kwq/KWQMapImpl.mm:
              * kwq/KWQMovie.mm:
              * kwq/KWQObject.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPaintDeviceMetrics.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQPalette.mm:
              * kwq/KWQPen.mm:
              * kwq/KWQPixmap.mm:
              * kwq/KWQPoint.mm:
              * kwq/KWQPointArray.mm:
              * kwq/KWQPtrDictImpl.mm:
              * kwq/KWQPushButton.mm:
              * kwq/KWQRect.mm:
              * kwq/KWQRegExp.mm:
              * kwq/KWQRegion.mm:
              * kwq/KWQRenderTreeDebug.cpp:
              * kwq/KWQResourceLoader.mm:
              * kwq/KWQScrollBar.mm:
              * kwq/KWQScrollView.mm:
              * kwq/KWQSignal.mm:
              * kwq/KWQSignalStubs.mm:
              * kwq/KWQSize.mm:
              * kwq/KWQSlider.mm:
              * kwq/KWQSlot.mm:
              * kwq/KWQString.h:
              * kwq/KWQString.mm:
              (ALLOC_CHAR):
              (REALLOC_CHAR):
              (DELETE_CHAR):
              (ALLOC_QCHAR):
              (REALLOC_QCHAR):
              (DELETE_QCHAR):
              (_printQStringAllocationStatistics):
              (allocateHandle):
              (KWQStringData::operator new):
              (KWQStringData::operator delete):
              (freeHandle):
              * kwq/KWQStringList.mm:
              * kwq/KWQStyle.mm:
              * kwq/KWQTextArea.mm:
              * kwq/KWQTextCodec.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQTextStream.mm:
              * kwq/KWQTextUtilities.mm:
              * kwq/KWQTimer.mm:
              * kwq/KWQValueListImpl.h:
              * kwq/KWQValueListImpl.mm:
              * kwq/KWQVariant.mm:
              * kwq/KWQVectorImpl.mm:
              (KWQVectorImpl::KWQVectorImpl):
              (KWQVectorImpl::~KWQVectorImpl):
              (KWQVectorImpl::clear):
              (KWQVectorImpl::resize):
              (KWQVectorImpl::assign):
              * kwq/KWQWMatrix.mm:
              * kwq/KWQWidget.mm:
              * kwq/KWQWindowWidget.mm:
              * kwq/WebCoreBridge.mm:
              * kwq/WebCoreCache.mm:
              * kwq/WebCoreEncodings.mm:
              * kwq/WebCoreJavaScript.mm:
              * kwq/WebCoreScriptDebugger.mm:
              * kwq/WebCoreSettings.mm:
              * kwq/WebCoreTextRendererFactory.mm:
              * kwq/can-convert.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b64c50a2
  33. 23 Sep, 2004 1 commit
    • darin's avatar
      Reviewed by Ken. · e4b01dd1
      darin authored
              - added new VisibleRange class; not used yet
      
              * WebCore.pbproj/project.pbxproj: Added visible_range.h and visible_range.cpp.
              * khtml/editing/visible_range.cpp: Added.
              * khtml/editing/visible_range.h: Added.
      
              - tweaks
      
              * kwq/WebCoreBridge.mm: (-[WebCoreBridge alterCurrentSelection:direction:granularity:]):
              Use switch statement instead of if statement so we get a warning if we ever add a new
              granularity.
      
              * khtml/editing/selection.h: khtml, not DOM, namespace
              * khtml/editing/visible_position.h: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@7654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e4b01dd1
  34. 22 Jan, 2003 1 commit
  35. 31 May, 2002 1 commit
    • darin's avatar
      Remove some unused stuff; total of 1000s of lines. · 23918b0e
      darin authored
      	* Makefile.am: Removed some strange uses of "./" and
      	improved stamp-related rules.
      
      	* WebCore-tests.exp: Removed QDir functions.
      
      	* khtml/Makefile.am: Removed java subdirectory.
      	* khtml/java/*: Removed.
      	* khtml/rendering/render_applet.cpp: Rearrange APPLE_CHANGES so
      	that we use our own KJavaAppletWidget rather than a QWidget.
      	* kwq/khtml/java/kjavaappletcontext.h: Added.
      	* kwq/khtml/java/kjavaappletwidget.h: Added.
      	* kwq/KWQKJavaAppletWidget.mm: Added. Replaces WCJavaAppletWidget.mm.
      	* kwq/KWQsignals.mm: Removed java-related signals.
      
      	* khtml/css/Makefile.am:
      	* khtml/misc/Makefile.am:
      	Improve stamp-related rules.
      
      	* khtml/misc/loader.cpp: Move around and add ifdefs so we don't
      	need as much KWQ code. Maybe revisit this later -- related to the
      	KDE implementation of animated and progressive loading images,
      	which we probably don't need, but it may integrate slightly better than
      	doing our hacks inside QPixmap.
      
      	* kwq/KWQApplication.mm:
      	* kwq/KWQFontInfo.mm:
      	* kwq/KWQInputDialog.mm:
      	* kwq/KWQKFileDialog.mm:
      	* kwq/KWQKHTMLPartBrowserExtension.mm:
      	* kwq/KWQKWin.mm:
      	* kwq/KWQKWinModule.mm:
      	* kwq/KWQKstddirs.mm:
      	* kwq/KWQPixmap.mm:
      	Simplified, removed unused code, minor tweaks.
      
      	* kwq/Makefile.am: Removed all the old files, added some new ones.
      	* kwq/KWQBitmap.mm: Removed.
      	* kwq/KWQBrush.mm: Removed.
      	* kwq/KWQDCOPClient.mm: Removed.
      	* kwq/KWQDataStream.h: Removed.
      	* kwq/KWQDir.mm: Removed.
      	* kwq/KWQFontDatabase.mm: Removed.
      	* kwq/KWQImage.mm: Removed.
      	* kwq/KWQKInstance.mm: Removed.
      	* kwq/KWQPaintDevice.mm: Removed.
      	* kwq/KWQPart.mm: Removed.
      	* kwq/KWQasyncimageio.mm: Removed.
      	* kwq/KWQasyncio.mm: Removed.
      	* kwq/KWQbrowserextension.mm: Removed.
      	* kwq/WCJavaAppletWidget.h: Removed.
      	* kwq/WCJavaAppletWidget.mm: Removed.
      	* kwq/qt/qdatastream.h: Removed.
      	* kwq/qt/qdir.h: Removed.
      	* kwq/qt/qlayout.h: Removed.
      
      	* kwq/KWQCursor.mm:
      	(QCursor::handle): Return the cursor object as an integer rather than
      	just returning 0; makes the code that uses handle() more likely to work
      	although it introduces a 64-bit cleanliness problem.
      
      	* kwq/KWQEvent.mm: Initialize event type in QEvent subclasses.
      
      	* kwq/WebCoreImageRenderer.h: Added NSObject and NSCopying protocols to
      	the WebCoreImageRenderer protocol.
      
      	* kwq/kwqdebug.h: Use displayableString in DEBUG_OBJECT for better logging.
      
      	* kwq/dcop/dcopclient.h:
      	* kwq/kdecore/kstddirs.h:
      	* kwq/kdecore/kwin.h:
      	* kwq/kdecore/kwinmodule.h:
      	* kwq/kfile/kfiledialog.h:
      	* kwq/kparts/browserextension.h:
      	* kwq/kparts/event.h:
      	* kwq/qt/qapplication.h:
      	* kwq/qt/qasyncimageio.h:
      	* kwq/qt/qasyncio.h:
      	* kwq/qt/qbitmap.h:
      	* kwq/qt/qbrush.h:
      	* kwq/qt/qbutton.h:
      	* kwq/qt/qcheckbox.h:
      	* kwq/qt/qcollection.h:
      	* kwq/qt/qcolor.h:
      	* kwq/qt/qcombobox.h:
      	* kwq/qt/qcursor.h:
      	* kwq/qt/qdrawutil.h:
      	* kwq/qt/qevent.h:
      	* kwq/qt/qfont.h:
      	* kwq/qt/qfontdatabase.h:
      	* kwq/qt/qfontinfo.h:
      	* kwq/qt/qimage.h:
      	* kwq/qt/qinputdialog.h:
      	* kwq/qt/qintcache.h:
      	* kwq/qt/qintdict.h:
      	* kwq/qt/qpaintdevice.h:
      	* kwq/qt/qpixmap.h:
      	* kwq/qt/qstring.h:
      	Removed lots of unused stuff, including old conditionals and the like.
      
      	* khtml/khtml_part.cpp:
      	(KHTMLPart::khtmlMouseMoveEvent): Add missing parenthesis.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      23918b0e
  36. 05 Oct, 2001 1 commit
  37. 10 Sep, 2001 1 commit
  38. 06 Sep, 2001 2 commits
  39. 05 Sep, 2001 1 commit