1. 21 Nov, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Remove ENABLE_WORKERS · f0eff209
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105784
      
      .:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/WebCore:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      Source/WebKit:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      Source/WebKit/efl:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * ewk/ewk_settings.cpp:
      (ewk_settings_memory_cache_clear):
      
      Source/WebKit/win:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * WebWorkersPrivate.cpp:
      (WebWorkersPrivate::workerThreadCount):
      
      Source/WTF:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * wtf/FeatureDefines.h:
      * wtf/nix/FeatureDefinesNix.h:
      
      Tools:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * Scripts/webkitperl/FeatureList.pm:
      
      WebKitLibraries:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * win/tools/vsprops/FeatureDefines.props:
      * win/tools/vsprops/FeatureDefinesCairo.props:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0eff209
  2. 18 Oct, 2013 1 commit
    • andersca@apple.com's avatar
      Remove spaces between template angle brackets · c3523f8d
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123040
      
      Reviewed by Andreas Kling.
      
      Source/JavaScriptCore:
      
      * API/JSCallbackObject.cpp:
      (JSC::::create):
      * API/JSObjectRef.cpp:
      * bytecode/CodeBlock.h:
      (JSC::CodeBlock::constants):
      (JSC::CodeBlock::setConstantRegisters):
      * bytecode/DFGExitProfile.h:
      * bytecode/EvalCodeCache.h:
      * bytecode/Operands.h:
      * bytecode/UnlinkedCodeBlock.h:
      (JSC::UnlinkedCodeBlock::constantRegisters):
      * bytecode/Watchpoint.h:
      * bytecompiler/BytecodeGenerator.h:
      * bytecompiler/StaticPropertyAnalysis.h:
      * bytecompiler/StaticPropertyAnalyzer.h:
      * dfg/DFGArgumentsSimplificationPhase.cpp:
      * dfg/DFGBlockInsertionSet.h:
      * dfg/DFGCSEPhase.cpp:
      (JSC::DFG::performCSE):
      (JSC::DFG::performStoreElimination):
      * dfg/DFGCommonData.h:
      * dfg/DFGDesiredStructureChains.h:
      * dfg/DFGDesiredWatchpoints.h:
      * dfg/DFGJITCompiler.h:
      * dfg/DFGOSRExitCompiler32_64.cpp:
      (JSC::DFG::OSRExitCompiler::compileExit):
      * dfg/DFGOSRExitCompiler64.cpp:
      (JSC::DFG::OSRExitCompiler::compileExit):
      * dfg/DFGWorklist.h:
      * heap/BlockAllocator.h:
      (JSC::CopiedBlock):
      (JSC::MarkedBlock):
      (JSC::WeakBlock):
      (JSC::MarkStackSegment):
      (JSC::CopyWorkListSegment):
      (JSC::HandleBlock):
      * heap/Heap.h:
      * heap/Local.h:
      * heap/MarkedBlock.h:
      * heap/Strong.h:
      * jit/AssemblyHelpers.cpp:
      (JSC::AssemblyHelpers::decodedCodeMapFor):
      * jit/AssemblyHelpers.h:
      * jit/SpecializedThunkJIT.h:
      * parser/Nodes.h:
      * parser/Parser.cpp:
      (JSC::::parseIfStatement):
      * parser/Parser.h:
      (JSC::Scope::copyCapturedVariablesToVector):
      (JSC::parse):
      * parser/ParserArena.h:
      * parser/SourceProviderCacheItem.h:
      * profiler/LegacyProfiler.cpp:
      (JSC::dispatchFunctionToProfiles):
      * profiler/LegacyProfiler.h:
      (JSC::LegacyProfiler::currentProfiles):
      * profiler/ProfileNode.h:
      (JSC::ProfileNode::children):
      * profiler/ProfilerDatabase.h:
      * runtime/Butterfly.h:
      (JSC::Butterfly::contiguousInt32):
      (JSC::Butterfly::contiguous):
      * runtime/GenericTypedArrayViewInlines.h:
      (JSC::::create):
      * runtime/Identifier.h:
      (JSC::Identifier::add):
      * runtime/JSPromise.h:
      * runtime/PropertyMapHashTable.h:
      * runtime/PropertyNameArray.h:
      * runtime/RegExpCache.h:
      * runtime/SparseArrayValueMap.h:
      * runtime/SymbolTable.h:
      * runtime/VM.h:
      * tools/CodeProfile.cpp:
      (JSC::truncateTrace):
      * tools/CodeProfile.h:
      * yarr/YarrInterpreter.cpp:
      * yarr/YarrInterpreter.h:
      (JSC::Yarr::BytecodePattern::BytecodePattern):
      * yarr/YarrJIT.cpp:
      (JSC::Yarr::YarrGenerator::opCompileParenthesesSubpattern):
      (JSC::Yarr::YarrGenerator::opCompileParentheticalAssertion):
      (JSC::Yarr::YarrGenerator::opCompileBody):
      * yarr/YarrPattern.cpp:
      (JSC::Yarr::YarrPatternConstructor::checkForTerminalParentheses):
      (JSC::Yarr::YarrPatternConstructor::optimizeDotStarWrappedExpressions):
      * yarr/YarrPattern.h:
      
      Source/WebCore:
      
      * Modules/encryptedmedia/MediaKeySession.h:
      * Modules/encryptedmedia/MediaKeys.h:
      * Modules/geolocation/Geolocation.h:
      * Modules/geolocation/GeolocationController.cpp:
      (WebCore::GeolocationController::positionChanged):
      (WebCore::GeolocationController::errorOccurred):
      * Modules/geolocation/GeolocationController.h:
      * Modules/indexeddb/IDBCallbacks.h:
      * Modules/indexeddb/IDBDatabase.h:
      * Modules/indexeddb/IDBDatabaseBackendInterface.h:
      * Modules/indexeddb/IDBEventDispatcher.cpp:
      (WebCore::IDBEventDispatcher::dispatch):
      * Modules/indexeddb/IDBEventDispatcher.h:
      * Modules/indexeddb/IDBKey.h:
      * Modules/indexeddb/IDBObjectStore.h:
      * Modules/indexeddb/IDBPendingTransactionMonitor.cpp:
      * Modules/indexeddb/IDBRequest.cpp:
      (WebCore::IDBRequest::dispatchEvent):
      * Modules/indexeddb/IDBRequest.h:
      (WebCore::IDBRequest::onSuccessWithPrefetch):
      * Modules/indexeddb/IDBTransaction.cpp:
      (WebCore::IDBTransaction::dispatchEvent):
      * Modules/indexeddb/IDBTransaction.h:
      * Modules/mediacontrols/MediaControlsHost.cpp:
      (WebCore::MediaControlsHost::sortedTrackListForMenu):
      * Modules/mediacontrols/MediaControlsHost.h:
      * Modules/mediasource/MediaSource.cpp:
      (WebCore::MediaSource::activeRanges):
      * Modules/mediasource/MediaSource.h:
      * Modules/mediasource/MediaSourceBase.cpp:
      (WebCore::MediaSourceBase::buffered):
      * Modules/mediasource/MediaSourceBase.h:
      * Modules/mediasource/MediaSourceRegistry.cpp:
      (WebCore::MediaSourceRegistry::unregisterURL):
      * Modules/mediasource/MediaSourceRegistry.h:
      * Modules/mediasource/SourceBufferList.h:
      * Modules/mediasource/WebKitMediaSource.cpp:
      (WebCore::WebKitMediaSource::activeRanges):
      * Modules/mediasource/WebKitMediaSource.h:
      * Modules/mediasource/WebKitSourceBufferList.h:
      * Modules/mediastream/MediaStream.cpp:
      (WebCore::MediaStream::scheduledEventTimerFired):
      * Modules/mediastream/MediaStream.h:
      * Modules/mediastream/MediaStreamRegistry.h:
      * Modules/mediastream/MediaStreamTrack.h:
      * Modules/mediastream/RTCDTMFSender.cpp:
      (WebCore::RTCDTMFSender::scheduledEventTimerFired):
      * Modules/mediastream/RTCDTMFSender.h:
      * Modules/mediastream/RTCDataChannel.cpp:
      (WebCore::RTCDataChannel::scheduledEventTimerFired):
      * Modules/mediastream/RTCDataChannel.h:
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::stop):
      (WebCore::RTCPeerConnection::scheduledEventTimerFired):
      * Modules/mediastream/RTCPeerConnection.h:
      * Modules/mediastream/RTCStatsResponse.h:
      (WebCore::RTCStatsResponse::result):
      * Modules/notifications/Notification.h:
      * Modules/notifications/NotificationCenter.h:
      * Modules/speech/SpeechSynthesis.cpp:
      (WebCore::SpeechSynthesis::getVoices):
      * Modules/speech/SpeechSynthesis.h:
      * Modules/webaudio/AudioBuffer.h:
      * Modules/webaudio/AudioNode.h:
      * Modules/webaudio/AudioNodeOutput.h:
      * Modules/webaudio/MediaStreamAudioSource.cpp:
      (WebCore::MediaStreamAudioSource::setAudioFormat):
      (WebCore::MediaStreamAudioSource::consumeAudio):
      * Modules/webaudio/PeriodicWave.h:
      * Modules/webaudio/ScriptProcessorNode.h:
      * Modules/webdatabase/AbstractDatabaseServer.h:
      * Modules/webdatabase/DatabaseBackend.h:
      * Modules/webdatabase/DatabaseManager.cpp:
      (WebCore::DatabaseManager::origins):
      * Modules/webdatabase/DatabaseManager.h:
      * Modules/webdatabase/DatabaseServer.cpp:
      (WebCore::DatabaseServer::origins):
      * Modules/webdatabase/DatabaseServer.h:
      * Modules/webdatabase/DatabaseThread.h:
      * Modules/webdatabase/DatabaseTracker.cpp:
      (WebCore::DatabaseTracker::interruptAllDatabasesForContext):
      (WebCore::DatabaseTracker::origins):
      (WebCore::DatabaseTracker::getOpenDatabases):
      (WebCore::DatabaseTracker::deleteAllDatabases):
      (WebCore::DatabaseTracker::deleteDatabaseFile):
      * Modules/webdatabase/DatabaseTracker.h:
      * Modules/webdatabase/SQLStatementBackend.cpp:
      * Modules/webdatabase/SQLTransactionBackend.cpp:
      * Modules/webdatabase/SQLTransactionBackend.h:
      * Modules/webdatabase/SQLTransactionCoordinator.cpp:
      (WebCore::SQLTransactionCoordinator::shutdown):
      * Modules/webdatabase/SQLTransactionCoordinator.h:
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryData):
      (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasks):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryDataCallback):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      * Modules/websockets/WebSocket.cpp:
      (WebCore::WebSocket::didReceiveBinaryData):
      * Modules/websockets/WebSocket.h:
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::processFrame):
      * Modules/websockets/WebSocketChannel.h:
      * Modules/websockets/WebSocketChannelClient.h:
      (WebCore::WebSocketChannelClient::didReceiveBinaryData):
      * Modules/websockets/WebSocketExtensionDispatcher.h:
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::workerGlobalScopeDidReceiveBinaryData):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveBinaryData):
      (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendArrayBuffer):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      * accessibility/AXObjectCache.cpp:
      (WebCore::AXObjectCache::~AXObjectCache):
      * accessibility/AXObjectCache.h:
      * accessibility/AccessibilityNodeObject.cpp:
      (WebCore::AccessibilityNodeObject::ariaLabeledByText):
      * accessibility/AccessibilityObject.h:
      (WebCore::AccessibilityText::AccessibilityText):
      * bindings/js/DOMWrapperWorld.h:
      * bindings/js/JSDOMBinding.h:
      (WebCore::toRefPtrNativeArray):
      * bindings/js/JSDOMGlobalObject.h:
      * bindings/js/JSMutationCallback.cpp:
      (WebCore::JSMutationCallback::call):
      * bindings/js/JSMutationCallback.h:
      * bindings/js/JSWebGLRenderingContextCustom.cpp:
      (WebCore::JSWebGLRenderingContext::getAttachedShaders):
      * bindings/js/PageScriptDebugServer.h:
      * bindings/js/ScheduledAction.h:
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::collectIsolatedContexts):
      * bindings/js/ScriptController.h:
      * bindings/js/ScriptDebugServer.h:
      * bindings/js/ScriptProfile.cpp:
      (WebCore::buildInspectorObjectFor):
      * bindings/objc/ObjCNodeFilterCondition.h:
      * bridge/objc/objc_class.h:
      * bridge/runtime_root.cpp:
      (JSC::Bindings::RootObject::invalidate):
      * bridge/runtime_root.h:
      * css/BasicShapeFunctions.cpp:
      (WebCore::basicShapeForValue):
      * css/CSSBasicShapes.h:
      (WebCore::CSSBasicShapePolygon::values):
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::ComputedStyleExtractor::valueForFilter):
      * css/CSSFontFace.h:
      * css/CSSFontFaceSource.h:
      * css/CSSFontSelector.cpp:
      (WebCore::CSSFontSelector::addFontFaceRule):
      (WebCore::CSSFontSelector::getFontFace):
      (WebCore::CSSFontSelector::beginLoadTimerFired):
      * css/CSSFontSelector.h:
      * css/CSSGroupingRule.h:
      * css/CSSImageGeneratorValue.h:
      * css/CSSParserValues.cpp:
      (WebCore::CSSParserSelector::adoptSelectorVector):
      * css/CSSParserValues.h:
      * css/CSSPropertySourceData.h:
      * css/CSSRuleList.h:
      (WebCore::StaticCSSRuleList::rules):
      * css/CSSSegmentedFontFace.cpp:
      (WebCore::CSSSegmentedFontFace::fontLoaded):
      * css/CSSSegmentedFontFace.h:
      * css/CSSSelectorList.cpp:
      (WebCore::CSSSelectorList::adoptSelectorVector):
      * css/CSSSelectorList.h:
      * css/CSSStyleSheet.h:
      * css/CSSValue.h:
      (WebCore::compareCSSValueVector):
      * css/CSSValuePool.h:
      * css/DocumentRuleSets.cpp:
      (WebCore::DocumentRuleSets::collectRulesFromUserStyleSheets):
      (WebCore::DocumentRuleSets::appendAuthorStyleSheets):
      * css/DocumentRuleSets.h:
      * css/ElementRuleCollector.cpp:
      (WebCore::ElementRuleCollector::matchedRuleList):
      * css/ElementRuleCollector.h:
      * css/FontLoader.h:
      * css/InspectorCSSOMWrappers.cpp:
      (WebCore::InspectorCSSOMWrappers::collectFromStyleSheetContents):
      (WebCore::InspectorCSSOMWrappers::collectFromStyleSheets):
      * css/InspectorCSSOMWrappers.h:
      * css/MediaList.cpp:
      (WebCore::MediaQuerySet::parse):
      (WebCore::MediaList::item):
      (WebCore::reportMediaQueryWarningIfNeeded):
      * css/MediaList.h:
      (WebCore::MediaQuerySet::queryVector):
      * css/MediaQueryEvaluator.cpp:
      (WebCore::MediaQueryEvaluator::eval):
      * css/MediaQueryMatcher.h:
      * css/PropertySetCSSStyleDeclaration.cpp:
      (WebCore::PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM):
      * css/PropertySetCSSStyleDeclaration.h:
      * css/RuleSet.cpp:
      (WebCore::RuleSet::addToRuleSet):
      (WebCore::RuleSet::addRegionRule):
      (WebCore::RuleSet::addChildRules):
      (WebCore::RuleSet::addRulesFromSheet):
      * css/RuleSet.h:
      * css/SelectorFilter.h:
      * css/StyleInvalidationAnalysis.cpp:
      (WebCore::StyleInvalidationAnalysis::analyzeStyleSheet):
      * css/StylePropertySet.cpp:
      (WebCore::StylePropertySet::getLayeredShorthandValue):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::appendAuthorStyleSheets):
      (WebCore::StyleResolver::keyframeStylesForAnimation):
      (WebCore::StyleResolver::styleRulesForElement):
      (WebCore::StyleResolver::pseudoStyleRulesForElement):
      (WebCore::StyleResolver::resolveVariables):
      (WebCore::StyleResolver::applyProperty):
      (WebCore::StyleResolver::loadPendingSVGDocuments):
      (WebCore::StyleResolver::loadPendingShaders):
      * css/StyleResolver.h:
      * css/StyleRule.cpp:
      (WebCore::StyleRule::splitIntoMultipleRulesWithMaximumSelectorComponentCount):
      (WebCore::StyleRuleGroup::StyleRuleGroup):
      (WebCore::StyleRuleMedia::StyleRuleMedia):
      (WebCore::StyleRuleSupports::StyleRuleSupports):
      (WebCore::StyleRuleRegion::StyleRuleRegion):
      * css/StyleRule.h:
      (WebCore::StyleRule::parserAdoptSelectorVector):
      (WebCore::StyleRulePage::parserAdoptSelectorVector):
      (WebCore::StyleRuleGroup::childRules):
      (WebCore::StyleRuleMedia::create):
      (WebCore::StyleRuleSupports::create):
      (WebCore::StyleRuleRegion::create):
      (WebCore::StyleRuleHost::create):
      (WebCore::StyleRuleHost::StyleRuleHost):
      * css/StyleScopeResolver.h:
      * css/StyleSheetContents.cpp:
      (WebCore::StyleSheetContents::parserAppendRule):
      (WebCore::childRulesHaveFailedOrCanceledSubresources):
      * css/StyleSheetContents.h:
      (WebCore::StyleSheetContents::childRules):
      (WebCore::StyleSheetContents::importRules):
      * css/StyleSheetList.cpp:
      (WebCore::StyleSheetList::styleSheets):
      (WebCore::StyleSheetList::item):
      * css/StyleSheetList.h:
      * css/WebKitCSSKeyframesRule.h:
      (WebCore::StyleRuleKeyframes::keyframes):
      * dom/CheckedRadioButtons.h:
      * dom/ClientRectList.h:
      * dom/ContainerNode.h:
      (WebCore::ChildNodesLazySnapshot::nextNode):
      (WebCore::ChildNodesLazySnapshot::takeSnapshot):
      * dom/CrossThreadTask.h:
      * dom/Document.cpp:
      (WebCore::Document::webkitCancelFullScreen):
      (WebCore::Document::webkitExitFullscreen):
      (WebCore::Document::fullScreenChangeDelayTimerFired):
      (WebCore::Document::didAssociateFormControlsTimerFired):
      * dom/Document.h:
      * dom/DocumentMarkerController.cpp:
      (WebCore::DocumentMarkerController::removeMarkers):
      * dom/DocumentMarkerController.h:
      * dom/DocumentStyleSheetCollection.cpp:
      (WebCore::DocumentStyleSheetCollection::injectedUserStyleSheets):
      (WebCore::DocumentStyleSheetCollection::injectedAuthorStyleSheets):
      (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets):
      (WebCore::DocumentStyleSheetCollection::analyzeStyleSheetChange):
      (WebCore::styleSheetsUseRemUnits):
      (WebCore::filterEnabledNonemptyCSSStyleSheets):
      (WebCore::collectActiveCSSStyleSheetsFromSeamlessParents):
      (WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets):
      * dom/DocumentStyleSheetCollection.h:
      * dom/Element.cpp:
      (WebCore::Element::attrNodeList):
      (WebCore::Element::webkitGetRegionFlowRanges):
      * dom/Element.h:
      * dom/EventListenerMap.h:
      * dom/EventSender.h:
      (WebCore::EventSender::timerFired):
      * dom/IdTargetObserverRegistry.h:
      * dom/MutationCallback.h:
      * dom/MutationObserver.cpp:
      (WebCore::MutationObserver::takeRecords):
      (WebCore::MutationObserver::deliver):
      (WebCore::MutationObserver::deliverAllMutations):
      * dom/MutationObserver.h:
      * dom/MutationObserverRegistration.h:
      * dom/NamedFlowCollection.cpp:
      (WebCore::NamedFlowCollection::namedFlows):
      * dom/NamedFlowCollection.h:
      * dom/Node.cpp:
      (WebCore::Node::didMoveToNewDocument):
      (WebCore::Node::mutationObserverRegistry):
      (WebCore::Node::registerMutationObserver):
      (WebCore::Node::unregisterMutationObserver):
      (WebCore::Node::notifyMutationObserversNodeWillDetach):
      * dom/Node.h:
      * dom/NodeRareData.h:
      * dom/Range.cpp:
      (WebCore::Range::processContents):
      (WebCore::Range::processNodes):
      (WebCore::Range::processAncestorsAndTheirSiblings):
      * dom/Range.h:
      * dom/ScopedEventQueue.h:
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::reportException):
      * dom/ScriptExecutionContext.h:
      * dom/ScriptedAnimationController.h:
      * editing/ApplyStyleCommand.cpp:
      (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
      * editing/BreakBlockquoteCommand.cpp:
      (WebCore::BreakBlockquoteCommand::doApply):
      * editing/CompositeEditCommand.cpp:
      (WebCore::CompositeEditCommand::removeChildrenInRange):
      (WebCore::CompositeEditCommand::deleteInsignificantText):
      (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
      * editing/CompositeEditCommand.h:
      * editing/EditingStyle.cpp:
      (WebCore::htmlElementEquivalents):
      (WebCore::EditingStyle::conflictsWithImplicitStyleOfElement):
      (WebCore::htmlAttributeEquivalents):
      (WebCore::EditingStyle::conflictsWithImplicitStyleOfAttributes):
      (WebCore::EditingStyle::extractConflictingImplicitStyleOfAttributes):
      (WebCore::EditingStyle::elementIsStyledSpanOrHTMLEquivalent):
      (WebCore::EditingStyle::mergeInlineAndImplicitStyleOfElement):
      (WebCore::styleFromMatchedRulesForElement):
      * editing/Editor.cpp:
      (WebCore::Editor::countMatchesForText):
      * editing/Editor.h:
      * editing/InsertParagraphSeparatorCommand.cpp:
      (WebCore::InsertParagraphSeparatorCommand::getAncestorsInsideBlock):
      (WebCore::InsertParagraphSeparatorCommand::cloneHierarchyUnderNewBlock):
      (WebCore::InsertParagraphSeparatorCommand::doApply):
      * editing/InsertParagraphSeparatorCommand.h:
      * editing/MergeIdenticalElementsCommand.cpp:
      (WebCore::MergeIdenticalElementsCommand::doApply):
      (WebCore::MergeIdenticalElementsCommand::doUnapply):
      * editing/RemoveNodePreservingChildrenCommand.cpp:
      (WebCore::RemoveNodePreservingChildrenCommand::doApply):
      * editing/ReplaceSelectionCommand.cpp:
      (WebCore::ReplacementFragment::removeUnrenderedNodes):
      * editing/SimplifyMarkupCommand.cpp:
      (WebCore::SimplifyMarkupCommand::doApply):
      (WebCore::SimplifyMarkupCommand::pruneSubsequentAncestorsToRemove):
      * editing/SimplifyMarkupCommand.h:
      * editing/SpellChecker.h:
      * editing/SplitElementCommand.cpp:
      (WebCore::SplitElementCommand::executeApply):
      (WebCore::SplitElementCommand::doUnapply):
      * editing/WrapContentsInDummySpanCommand.cpp:
      (WebCore::WrapContentsInDummySpanCommand::executeApply):
      (WebCore::WrapContentsInDummySpanCommand::doUnapply):
      * editing/mac/AlternativeTextUIController.h:
      * fileapi/FileList.h:
      * history/BackForwardList.h:
      * history/HistoryItem.cpp:
      (WebCore::HistoryItem::setRedirectURLs):
      * history/HistoryItem.h:
      * history/mac/HistoryItemMac.mm:
      (WebCore::HistoryItem::setTransientProperty):
      * html/FormController.h:
      * html/HTMLAnchorElement.cpp:
      * html/HTMLCollection.cpp:
      (WebCore::HTMLCollection::append):
      * html/HTMLCollection.h:
      * html/HTMLFormControlElement.cpp:
      (WebCore::HTMLFormControlElement::checkValidity):
      * html/HTMLFormControlElement.h:
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::validateInteractively):
      (WebCore::HTMLFormElement::checkValidity):
      (WebCore::HTMLFormElement::checkInvalidControlsAndCollectUnhandled):
      * html/HTMLFormElement.h:
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::updateActiveTextTrackCues):
      (WebCore::HTMLMediaElement::platformTextTracks):
      (WebCore::HTMLMediaElement::configureTextTrackGroup):
      * html/HTMLMediaElement.h:
      * html/HTMLPlugInImageElement.cpp:
      * html/HTMLSelectElement.cpp:
      (WebCore::HTMLSelectElement::setLength):
      * html/MediaController.cpp:
      (MediaController::asyncEventTimerFired):
      * html/MediaController.h:
      * html/MediaFragmentURIParser.h:
      * html/ValidationMessage.h:
      * html/canvas/WebGLFramebuffer.h:
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore::WebGLRenderingContext::getAttachedShaders):
      * html/canvas/WebGLRenderingContext.h:
      * html/canvas/WebGLTexture.h:
      * html/parser/BackgroundHTMLParser.cpp:
      (WebCore::BackgroundHTMLParser::BackgroundHTMLParser):
      * html/parser/BackgroundHTMLParser.h:
      (WebCore::BackgroundHTMLParser::create):
      * html/parser/HTMLDocumentParser.cpp:
      (WebCore::HTMLDocumentParser::startBackgroundParser):
      * html/parser/HTMLDocumentParser.h:
      * html/parser/HTMLMetaCharsetParser.h:
      * html/parser/HTMLPreloadScanner.cpp:
      (WebCore::TokenPreloadScanner::scan):
      (WebCore::TokenPreloadScanner::scanCommon):
      * html/parser/HTMLResourcePreloader.h:
      * html/parser/XSSAuditor.h:
      * html/shadow/ContentDistributor.cpp:
      (WebCore::ContentDistributor::ensureInsertionPointList):
      (WebCore::ContentDistributor::distribute):
      (WebCore::ContentDistributor::invalidate):
      * html/shadow/ContentDistributor.h:
      * html/shadow/MediaControlElements.cpp:
      (WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu):
      (WebCore::MediaControlTextTrackContainerElement::updateDisplay):
      * html/shadow/MediaControlElements.h:
      * html/track/InbandGenericTextTrack.h:
      * html/track/InbandWebVTTTextTrack.cpp:
      (WebCore::InbandWebVTTTextTrack::newCuesParsed):
      * html/track/LoadableTextTrack.cpp:
      (WebCore::LoadableTextTrack::newCuesAvailable):
      (WebCore::LoadableTextTrack::newRegionsAvailable):
      * html/track/TextTrackCueList.h:
      * html/track/TextTrackList.cpp:
      (TextTrackList::invalidateTrackIndexesAfterTrack):
      (TextTrackList::remove):
      (TextTrackList::contains):
      * html/track/TextTrackList.h:
      * html/track/TrackListBase.cpp:
      (TrackListBase::asyncEventTimerFired):
      * html/track/TrackListBase.h:
      * html/track/WebVTTParser.cpp:
      (WebCore::WebVTTParser::getNewCues):
      (WebCore::WebVTTParser::getNewRegions):
      * html/track/WebVTTParser.h:
      * inspector/ConsoleMessage.cpp:
      (WebCore::ConsoleMessage::addToFrontend):
      * inspector/ContentSearchUtils.cpp:
      (WebCore::ContentSearchUtils::getRegularExpressionMatchesByLines):
      (WebCore::ContentSearchUtils::lineEndings):
      (WebCore::ContentSearchUtils::searchInTextByLines):
      * inspector/ContentSearchUtils.h:
      * inspector/DOMPatchSupport.cpp:
      (WebCore::DOMPatchSupport::patchNode):
      (WebCore::DOMPatchSupport::diff):
      (WebCore::DOMPatchSupport::innerPatchChildren):
      * inspector/DOMPatchSupport.h:
      * inspector/InjectedScript.cpp:
      (WebCore::InjectedScript::getProperties):
      (WebCore::InjectedScript::getInternalProperties):
      (WebCore::InjectedScript::wrapCallFrames):
      * inspector/InjectedScript.h:
      * inspector/InjectedScriptHost.h:
      * inspector/InspectorAgent.cpp:
      (WebCore::InspectorAgent::enable):
      * inspector/InspectorApplicationCacheAgent.cpp:
      (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):
      (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
      * inspector/InspectorApplicationCacheAgent.h:
      * inspector/InspectorBaseAgent.h:
      * inspector/InspectorCSSAgent.cpp:
      (WebCore::SelectorProfile::toInspectorObject):
      (WebCore::UpdateRegionLayoutTask::onTimer):
      (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
      (WebCore::InspectorCSSAgent::getComputedStyleForNode):
      (WebCore::InspectorCSSAgent::getAllStyleSheets):
      (WebCore::InspectorCSSAgent::getSupportedCSSProperties):
      (WebCore::InspectorCSSAgent::getNamedFlowCollection):
      (WebCore::InspectorCSSAgent::buildArrayForRuleList):
      (WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList):
      (WebCore::InspectorCSSAgent::buildArrayForRegions):
      (WebCore::InspectorCSSAgent::buildObjectForNamedFlow):
      * inspector/InspectorCSSAgent.h:
      * inspector/InspectorConsoleAgent.h:
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::RevalidateStyleAttributeTask::onTimer):
      (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
      (WebCore::InspectorDOMAgent::pushNodePathToFrontend):
      (WebCore::InspectorDOMAgent::getEventListenersForNode):
      (WebCore::InspectorDOMAgent::performSearch):
      (WebCore::InspectorDOMAgent::getSearchResults):
      (WebCore::InspectorDOMAgent::getAttributes):
      (WebCore::InspectorDOMAgent::buildObjectForNode):
      (WebCore::InspectorDOMAgent::buildArrayForElementAttributes):
      (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
      (WebCore::InspectorDOMAgent::styleAttributeInvalidated):
      * inspector/InspectorDOMAgent.h:
      * inspector/InspectorDOMStorageAgent.cpp:
      (WebCore::InspectorDOMStorageAgent::getDOMStorageItems):
      * inspector/InspectorDOMStorageAgent.h:
      * inspector/InspectorDatabaseAgent.cpp:
      (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
      * inspector/InspectorDatabaseAgent.h:
      * inspector/InspectorDebuggerAgent.cpp:
      (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
      (WebCore::InspectorDebuggerAgent::searchInContent):
      (WebCore::InspectorDebuggerAgent::setScriptSource):
      (WebCore::InspectorDebuggerAgent::currentCallFrames):
      * inspector/InspectorDebuggerAgent.h:
      * inspector/InspectorHeapProfilerAgent.cpp:
      (WebCore::InspectorHeapProfilerAgent::getProfileHeaders):
      * inspector/InspectorHeapProfilerAgent.h:
      * inspector/InspectorHistory.h:
      * inspector/InspectorIndexedDBAgent.cpp:
      * inspector/InspectorLayerTreeAgent.cpp:
      (WebCore::InspectorLayerTreeAgent::layersForNode):
      (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderObjectHierarchy):
      (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderLayerHierarchy):
      * inspector/InspectorLayerTreeAgent.h:
      * inspector/InspectorMemoryAgent.h:
      * inspector/InspectorPageAgent.cpp:
      (WebCore::buildArrayForCookies):
      (WebCore::InspectorPageAgent::getCookies):
      (WebCore::InspectorPageAgent::searchInResource):
      (WebCore::InspectorPageAgent::searchInResources):
      (WebCore::InspectorPageAgent::buildObjectForFrameTree):
      * inspector/InspectorPageAgent.h:
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::getProfileHeaders):
      * inspector/InspectorProfilerAgent.h:
      * inspector/InspectorResourceAgent.h:
      * inspector/InspectorRuntimeAgent.cpp:
      (WebCore::InspectorRuntimeAgent::getProperties):
      * inspector/InspectorRuntimeAgent.h:
      * inspector/InspectorState.h:
      * inspector/InspectorStyleSheet.cpp:
      (WebCore::asCSSRuleList):
      (WebCore::InspectorStyle::buildArrayForComputedStyle):
      (WebCore::InspectorStyle::styleWithProperties):
      (WebCore::selectorsFromSource):
      (WebCore::InspectorStyleSheet::buildObjectForSelectorList):
      (WebCore::InspectorStyleSheet::buildObjectForRule):
      (WebCore::InspectorStyleSheet::lineEndings):
      (WebCore::InspectorStyleSheet::buildArrayForRuleList):
      (WebCore::InspectorStyleSheetForInlineStyle::lineEndings):
      * inspector/InspectorStyleSheet.h:
      * inspector/InspectorValues.cpp:
      (WebCore::InspectorArrayBase::writeJSON):
      * inspector/InspectorValues.h:
      * inspector/PageRuntimeAgent.cpp:
      (WebCore::PageRuntimeAgent::reportExecutionContextCreation):
      * inspector/ScriptCallStack.cpp:
      (WebCore::ScriptCallStack::buildInspectorArray):
      * inspector/ScriptCallStack.h:
      * loader/CrossOriginPreflightResultCache.h:
      * loader/DocumentLoader.cpp:
      (WebCore::cancelAll):
      (WebCore::setAllDefersLoading):
      (WebCore::DocumentLoader::getSubresources):
      * loader/DocumentLoader.h:
      * loader/FormState.h:
      * loader/FormSubmission.cpp:
      (WebCore::FormSubmission::create):
      * loader/ProgressTracker.h:
      * loader/ResourceLoadScheduler.h:
      * loader/TextTrackLoader.cpp:
      (WebCore::TextTrackLoader::getNewCues):
      (WebCore::TextTrackLoader::getNewRegions):
      * loader/TextTrackLoader.h:
      * loader/WorkerThreadableLoader.cpp:
      (WebCore::workerGlobalScopeDidReceiveData):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData):
      * loader/appcache/ApplicationCache.cpp:
      (WebCore::ApplicationCache::removeResource):
      (WebCore::ApplicationCache::dump):
      * loader/appcache/ApplicationCache.h:
      * loader/appcache/ApplicationCacheStorage.cpp:
      (WebCore::ApplicationCacheStorage::getOriginsWithCache):
      * loader/archive/Archive.cpp:
      (WebCore::Archive::clearAllSubframeArchives):
      (WebCore::Archive::clearAllSubframeArchivesImpl):
      * loader/archive/Archive.h:
      (WebCore::Archive::subresources):
      (WebCore::Archive::subframeArchives):
      * loader/archive/ArchiveResourceCollection.cpp:
      (WebCore::ArchiveResourceCollection::addAllResources):
      * loader/archive/ArchiveResourceCollection.h:
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::createPropertyListRepresentation):
      (WebCore::LegacyWebArchive::create):
      (WebCore::LegacyWebArchive::createFromSelection):
      * loader/archive/cf/LegacyWebArchive.h:
      * loader/archive/mhtml/MHTMLParser.h:
      * loader/cache/CachedResource.h:
      * loader/cache/CachedResourceLoader.h:
      * loader/cache/MemoryCache.h:
      * loader/icon/IconDatabase.cpp:
      (WebCore::IconDatabase::notifyPendingLoadDecisions):
      * loader/icon/IconDatabase.h:
      * page/CaptionUserPreferencesMediaAF.cpp:
      (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu):
      * page/CaptionUserPreferencesMediaAF.h:
      * page/ChromeClient.h:
      (WebCore::ChromeClient::didAssociateFormControls):
      * page/Console.h:
      * page/ContentSecurityPolicy.h:
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::getMatchedCSSRules):
      * page/DeviceController.cpp:
      (WebCore::DeviceController::dispatchDeviceEvent):
      (WebCore::DeviceController::fireDeviceEvent):
      * page/DeviceController.h:
      * page/EditorClient.h:
      * page/EventHandler.cpp:
      (WebCore::EventHandler::handleTouchEvent):
      * page/EventHandler.h:
      * page/FrameView.cpp:
      (WebCore::FrameView::serviceScriptedAnimations):
      * page/Page.cpp:
      (WebCore::Page::findStringMatchingRanges):
      * page/Page.h:
      * page/PageGroup.h:
      * page/Performance.cpp:
      (WebCore::Performance::webkitGetEntriesByType):
      (WebCore::Performance::webkitGetEntriesByName):
      * page/Performance.h:
      * page/PerformanceEntryList.cpp:
      (WebCore::PerformanceEntryList::appendAll):
      * page/PerformanceEntryList.h:
      * page/SecurityOriginHash.h:
      * page/SecurityPolicy.cpp:
      * page/SpeechInputResult.h:
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle):
      * page/animation/AnimationControllerPrivate.h:
      * page/animation/CSSPropertyAnimation.cpp:
      (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
      * page/animation/CompositeAnimation.h:
      * page/scrolling/ScrollingStateNode.cpp:
      (WebCore::ScrollingStateNode::appendChild):
      * page/scrolling/ScrollingStateNode.h:
      (WebCore::ScrollingStateNode::children):
      * page/scrolling/ScrollingThread.cpp:
      (WebCore::ScrollingThread::dispatchFunctionsFromScrollingThread):
      * page/scrolling/ScrollingThread.h:
      * page/scrolling/ScrollingTree.cpp:
      (WebCore::ScrollingTree::updateTreeFromStateNode):
      * page/scrolling/ScrollingTreeNode.cpp:
      (WebCore::ScrollingTreeNode::appendChild):
      * page/scrolling/ScrollingTreeNode.h:
      * page/scrolling/mac/ScrollingCoordinatorMac.mm:
      (WebCore::ScrollingCoordinatorMac::syncChildPositions):
      * platform/CrossThreadCopier.cpp:
      * platform/CrossThreadCopier.h:
      * platform/DragData.h:
      * platform/MainThreadTask.h:
      * platform/PODFreeListArena.h:
      (WebCore::PODFreeListArena::freeObject):
      (WebCore::PODFreeListArena::allocate):
      * platform/PODIntervalTree.h:
      * platform/PODRedBlackTree.h:
      (WebCore::PODRedBlackTree::PODRedBlackTree):
      * platform/PlatformSpeechSynthesizer.cpp:
      (WebCore::PlatformSpeechSynthesizer::voiceList):
      * platform/PlatformSpeechSynthesizer.h:
      * platform/RunLoop.h:
      * platform/ScrollView.cpp:
      (WebCore::ScrollView::frameRectsChanged):
      (WebCore::ScrollView::clipRectChanged):
      (WebCore::ScrollView::setParentVisible):
      (WebCore::ScrollView::show):
      (WebCore::ScrollView::hide):
      * platform/ScrollView.h:
      * platform/SharedBuffer.h:
      * platform/Supplementable.h:
      (WebCore::Supplement::provideTo):
      (WebCore::Supplementable::provideSupplement):
      * platform/URL.cpp:
      (WebCore::findHostnamesInMailToURL):
      (WebCore::encodeHostnames):
      * platform/audio/AudioBus.h:
      * platform/audio/AudioDSPKernelProcessor.h:
      * platform/audio/AudioResampler.h:
      * platform/audio/DynamicsCompressor.h:
      * platform/audio/DynamicsCompressorKernel.h:
      * platform/audio/HRTFDatabase.h:
      * platform/audio/HRTFKernel.h:
      * platform/audio/MultiChannelResampler.h:
      * platform/audio/Reverb.h:
      * platform/audio/ReverbConvolver.h:
      * platform/cf/SharedBufferCF.cpp:
      (WebCore::SharedBuffer::copyBufferAndClear):
      (WebCore::SharedBuffer::copySomeDataFromDataArray):
      * platform/graphics/FloatPolygon.cpp:
      (WebCore::FloatPolygon::FloatPolygon):
      * platform/graphics/FloatPolygon.h:
      * platform/graphics/FontCache.cpp:
      (WebCore::FontCache::getCachedFontData):
      (WebCore::FontCache::purgeInactiveFontData):
      * platform/graphics/GlyphMetricsMap.h:
      (WebCore::::locatePageSlowCase):
      * platform/graphics/GlyphPageTreeNode.h:
      * platform/graphics/GraphicsContext3D.h:
      * platform/graphics/GraphicsLayer.cpp:
      * platform/graphics/GraphicsLayer.h:
      * platform/graphics/PlatformTextTrackMenu.h:
      * platform/graphics/SimpleFontData.h:
      * platform/graphics/WidthCache.h:
      * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h:
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
      (WebCore::MediaPlayerPrivateAVFoundation::processNewAndRemovedTextTracks):
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      (WebCore::MediaPlayerPrivateAVFoundationObjC::processLegacyClosedCaptionsTracks):
      (WebCore::MediaPlayerPrivateAVFoundationObjC::processMediaSelectionOptions):
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::setFilterAnimationKeyframes):
      (WebCore::GraphicsLayerCA::fetchCloneLayers):
      * platform/graphics/ca/GraphicsLayerCA.h:
      * platform/graphics/ca/PlatformCAAnimation.h:
      * platform/graphics/ca/PlatformCALayer.h:
      * platform/graphics/ca/mac/LayerPool.h:
      * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
      (PlatformCAAnimation::setValues):
      * platform/graphics/ca/mac/TileController.h:
      * platform/graphics/cg/SubimageCacheWithTimer.h:
      * platform/graphics/filters/CustomFilterParameterList.h:
      * platform/graphics/filters/FilterEffect.h:
      * platform/graphics/filters/FilterOperations.h:
      (WebCore::FilterOperations::operations):
      * platform/graphics/gpu/Texture.cpp:
      (WebCore::Texture::Texture):
      (WebCore::Texture::create):
      * platform/graphics/gpu/Texture.h:
      * platform/graphics/mac/ComplexTextController.h:
      * platform/graphics/mac/SimpleFontDataCoreText.cpp:
      (WebCore::SimpleFontData::getCFStringAttributes):
      * platform/graphics/transforms/TransformOperations.h:
      (WebCore::TransformOperations::operations):
      * platform/ios/PasteboardIOS.mm:
      (WebCore::documentFragmentWithRTF):
      * platform/mac/PlatformSpeechSynthesizerMac.mm:
      (-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]):
      * platform/mediastream/MediaStreamDescriptor.h:
      * platform/mediastream/MediaStreamSource.h:
      * platform/mediastream/RTCConfiguration.h:
      * platform/network/BlobRegistryImpl.h:
      * platform/network/HTTPHeaderMap.h:
      * platform/network/ResourceResponseBase.cpp:
      (WebCore::ResourceResponseBase::parseCacheControlDirectives):
      (WebCore::parseCacheHeader):
      * platform/network/cf/ResourceHandleCFNet.cpp:
      (WebCore::clientCerts):
      (WebCore::ResourceHandle::createCFURLConnection):
      * platform/text/cf/HyphenationCF.cpp:
      (WebCore::::createValueForNullKey):
      (WebCore::::createValueForKey):
      (WebCore::cfLocaleCache):
      * plugins/PluginMainThreadScheduler.h:
      * rendering/HitTestResult.h:
      * rendering/InlineFlowBox.h:
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::paintContinuationOutlines):
      (WebCore::RenderBlock::removeFromTrackedRendererMaps):
      * rendering/RenderBlock.h:
      * rendering/RenderButton.h:
      * rendering/RenderCounter.cpp:
      * rendering/RenderGrid.cpp:
      (WebCore::RenderGrid::GridIterator::GridIterator):
      * rendering/RenderGrid.h:
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::updateDescendantsAreContiguousInStackingOrder):
      (WebCore::RenderLayer::rebuildZOrderLists):
      (WebCore::RenderLayer::collectLayers):
      * rendering/RenderLayer.h:
      * rendering/RenderNamedFlowThread.cpp:
      (WebCore::RenderNamedFlowThread::getRanges):
      * rendering/RenderNamedFlowThread.h:
      * rendering/RenderRegion.cpp:
      (WebCore::RenderRegion::getRanges):
      * rendering/RenderRegion.h:
      * rendering/RenderView.cpp:
      (WebCore::RenderView::selectionBounds):
      (WebCore::RenderView::setSelection):
      * rendering/RootInlineBox.h:
      * rendering/shapes/PolygonShape.cpp:
      (WebCore::computeShapePaddingBounds):
      (WebCore::computeShapeMarginBounds):
      * rendering/shapes/PolygonShape.h:
      (WebCore::PolygonShape::PolygonShape):
      * rendering/shapes/Shape.cpp:
      (WebCore::createPolygonShape):
      (WebCore::Shape::createShape):
      * rendering/shapes/ShapeInfo.h:
      * rendering/shapes/ShapeInterval.h:
      * rendering/style/QuotesData.cpp:
      (WebCore::QuotesData::create):
      (WebCore::QuotesData::QuotesData):
      * rendering/style/QuotesData.h:
      * rendering/style/RenderStyle.cpp:
      (WebCore::requireTransformOrigin):
      (WebCore::RenderStyle::applyTransform):
      * rendering/style/StyleGridData.h:
      * rendering/svg/RenderSVGResourceGradient.h:
      * rendering/svg/RenderSVGResourcePattern.h:
      * rendering/svg/SVGResourcesCache.h:
      * storage/StorageEventDispatcher.cpp:
      (WebCore::StorageEventDispatcher::dispatchSessionStorageEvents):
      (WebCore::StorageEventDispatcher::dispatchLocalStorageEvents):
      (WebCore::StorageEventDispatcher::dispatchSessionStorageEventsToFrames):
      (WebCore::StorageEventDispatcher::dispatchLocalStorageEventsToFrames):
      * storage/StorageEventDispatcher.h:
      * storage/StorageNamespaceImpl.h:
      * storage/StorageThread.h:
      * storage/StorageTracker.cpp:
      (WebCore::StorageTracker::origins):
      * storage/StorageTracker.h:
      * svg/SVGAnimatedPath.cpp:
      (WebCore::SVGAnimatedPathAnimator::startAnimValAnimation):
      * svg/SVGAnimatedTypeAnimator.cpp:
      (WebCore::SVGElementAnimatedProperties::SVGElementAnimatedProperties):
      (WebCore::SVGAnimatedTypeAnimator::findAnimatedPropertiesForAttributeName):
      * svg/SVGAnimatedTypeAnimator.h:
      * svg/SVGDocumentExtensions.cpp:
      (WebCore::SVGDocumentExtensions::startAnimations):
      (WebCore::SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements):
      (WebCore::SVGDocumentExtensions::addPendingResource):
      (WebCore::SVGDocumentExtensions::isElementPendingResources):
      (WebCore::SVGDocumentExtensions::removeElementFromPendingResources):
      (WebCore::SVGDocumentExtensions::setOfElementsReferencingTarget):
      (WebCore::SVGDocumentExtensions::addElementReferencingTarget):
      (WebCore::SVGDocumentExtensions::rebuildAllElementReferencesForTarget):
      * svg/SVGDocumentExtensions.h:
      * svg/SVGFontElement.h:
      * svg/SVGGlyphMap.h:
      * svg/SVGMarkerElement.cpp:
      (WebCore::SVGMarkerElement::orientTypeAnimated):
      * svg/SVGMarkerElement.h:
      * svg/SVGPathSegList.h:
      * svg/animation/SMILTimeContainer.h:
      * svg/graphics/SVGImageCache.h:
      * svg/graphics/filters/SVGFilterBuilder.h:
      (WebCore::SVGFilterBuilder::addBuiltinEffects):
      * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h:
      (WebCore::SVGAnimatedEnumerationPropertyTearOff::create):
      * svg/properties/SVGAnimatedListPropertyTearOff.h:
      (WebCore::SVGAnimatedListPropertyTearOff::create):
      * svg/properties/SVGAnimatedPropertyTearOff.h:
      (WebCore::SVGAnimatedPropertyTearOff::create):
      * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
      (WebCore::SVGAnimatedStaticPropertyTearOff::create):
      * svg/properties/SVGAttributeToPropertyMap.cpp:
      (WebCore::SVGAttributeToPropertyMap::animatedPropertiesForAttribute):
      * svg/properties/SVGAttributeToPropertyMap.h:
      * svg/properties/SVGStaticListPropertyTearOff.h:
      (WebCore::SVGStaticListPropertyTearOff::create):
      * svg/properties/SVGTransformListPropertyTearOff.h:
      (WebCore::SVGTransformListPropertyTearOff::create):
      (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix):
      (WebCore::SVGTransformListPropertyTearOff::consolidate):
      * workers/DefaultSharedWorkerRepository.h:
      * workers/WorkerMessagingProxy.h:
      * xml/XMLHttpRequestProgressEventThrottle.cpp:
      (WebCore::XMLHttpRequestProgressEventThrottle::dispatchDeferredEvents):
      * xml/XMLHttpRequestProgressEventThrottle.h:
      * xml/XPathNodeSet.cpp:
      (WebCore::XPath::NodeSet::sort):
      (WebCore::XPath::NodeSet::traversalSort):
      * xml/XSLStyleSheet.h:
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      
      Source/WebKit/mac:
      
      * History/WebHistory.mm:
      (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
      * History/WebHistoryItem.mm:
      (-[WebHistoryItem initFromDictionaryRepresentation:]):
      * Plugins/Hosted/NetscapePluginHostProxy.h:
      * Plugins/Hosted/NetscapePluginInstanceProxy.h:
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
      (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
      (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
      (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
      (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
      * Plugins/WebNetscapePluginView.h:
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView destroyPlugin]):
      * Storage/WebDatabaseManager.mm:
      (-[WebDatabaseManager origins]):
      * Storage/WebStorageManager.mm:
      (-[WebStorageManager origins]):
      * WebCoreSupport/WebApplicationCache.mm:
      (+[WebApplicationCache originsWithCache]):
      * WebCoreSupport/WebEditorClient.h:
      * WebCoreSupport/WebEditorClient.mm:
      (WebEditorClient::getClientPasteboardDataForRange):
      (WebEditorClient::documentFragmentFromAttributedString):
      * WebCoreSupport/WebFrameLoaderClient.h:
      * WebCoreSupport/WebNotificationClient.h:
      * WebCoreSupport/WebNotificationClient.mm:
      (WebNotificationClient::show):
      (WebNotificationClient::clearNotifications):
      * WebView/WebArchive.mm:
      (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
      (-[WebArchive subresources]):
      (-[WebArchive subframeArchives]):
      * WebView/WebDataSource.mm:
      (-[WebDataSource subresources]):
      * WebView/WebViewData.h:
      
      Source/WebKit2:
      
      * UIProcess/mac/WebColorPickerMac.h:
      * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::setProcessSuppressionEnabled):
      
      Source/WTF:
      
      * wtf/AVLTree.h:
      * wtf/CheckedArithmetic.h:
      * wtf/Compression.h:
      * wtf/Functional.h:
      (WTF::R):
      * wtf/HashFunctions.h:
      * wtf/HashIterators.h:
      * wtf/HashSet.h:
      (WTF::::contains):
      * wtf/ListHashSet.h:
      (WTF::::contains):
      * wtf/RefCountedLeakCounter.cpp:
      * wtf/RetainPtr.h:
      * wtf/SentinelLinkedList.h:
      (WTF::::remove):
      * wtf/SizeLimits.cpp:
      * wtf/StreamBuffer.h:
      * wtf/Vector.h:
      * wtf/VectorTraits.h:
      * wtf/WeakPtr.h:
      (WTF::WeakReference::create):
      (WTF::WeakReference::createUnbound):
      (WTF::WeakPtr::WeakPtr):
      (WTF::WeakPtrFactory::WeakPtrFactory):
      * wtf/text/AtomicString.cpp:
      (WTF::AtomicString::add):
      (WTF::findString):
      * wtf/text/StringConcatenate.h:
      * wtf/text/StringImpl.h:
      * wtf/text/StringOperators.h:
      (WTF::operator+):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3523f8d
  3. 27 Sep, 2013 1 commit
    • darin@apple.com's avatar
      rename KURL to URL · 5ffbb5c7
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=16214
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * many files: Renamed, using script.
      
      Source/WebKit:
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      Let the script to try to rename here.
      
      Source/WebKit/blackberry:
      
      * many files: Renamed, using script.
      
      Source/WebKit/efl:
      
      * many files: Renamed, using script.
      
      Source/WebKit/gtk:
      
      * many files: Renamed, using script.
      
      Source/WebKit/mac:
      
      * many files: Renamed, using script.
      
      Source/WebKit/qt:
      
      * many files: Renamed, using script.
      
      Source/WebKit/win:
      
      * many files: Renamed, using script.
      
      Source/WebKit/wince:
      
      * many files: Renamed, using script.
      
      Source/WebKit2:
      
      * many files: Renamed, using script.
      
      Tools:
      
      * many files: Renamed, using script.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ffbb5c7
  4. 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
  5. 27 Jun, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      Rename WorkerContext to WorkerGlobalScope · 14792a6b
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=118059
      
      Reviewed by Kentaro Hara.
      
      Source/WebCore:
      
      Rename WorkerContext / SharedWorkerContext / DedicatedWorkerContext to
      WorkerGlobalScope / SharedWorkerGlobalScope / DedicatedWorkerGlobalScope
      to match the latest specification:
      http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#workerglobalscope
      
      Those interfaces have [NoInterfaceObject] IDL extended attribute so the
      name did not matter much so far. However, the specification was updated
      and [NoInterfaceObject] was removed. We should therefore rename those
      interfaces as a preparation for this change.
      
      No new tests, no behavior change as these interfaces are not exposed to
      JavaScript yet.
      
      * CMakeLists.txt:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Modules/filesystem/WorkerGlobalScopeFileSystem.cpp: Renamed from Source/WebCore/Modules/filesystem/WorkerContextFileSystem.cpp.
      (WebCore::WorkerGlobalScopeFileSystem::webkitRequestFileSystem):
      (WebCore::WorkerGlobalScopeFileSystem::webkitRequestFileSystemSync):
      (WebCore::WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemURL):
      (WebCore::WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemSyncURL):
      * Modules/filesystem/WorkerGlobalScopeFileSystem.h: Renamed from Source/WebCore/Modules/filesystem/WorkerContextFileSystem.h.
      * Modules/filesystem/WorkerGlobalScopeFileSystem.idl: Renamed from Source/WebCore/Modules/filesystem/WorkerContextFileSystem.idl.
      * Modules/indexeddb/IDBFactory.cpp:
      * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp: Renamed from Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.cpp.
      (WebCore::WorkerGlobalScopeIndexedDatabase::WorkerGlobalScopeIndexedDatabase):
      (WebCore::WorkerGlobalScopeIndexedDatabase::~WorkerGlobalScopeIndexedDatabase):
      (WebCore::WorkerGlobalScopeIndexedDatabase::supplementName):
      (WebCore::WorkerGlobalScopeIndexedDatabase::from):
      (WebCore::WorkerGlobalScopeIndexedDatabase::indexedDB):
      * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h: Renamed from Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.h.
      * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl: Renamed from Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.idl.
      * Modules/notifications/Notification.cpp:
      * Modules/notifications/NotificationCenter.cpp:
      * Modules/notifications/WorkerGlobalScopeNotifications.cpp: Renamed from Source/WebCore/Modules/notifications/WorkerContextNotifications.cpp.
      (WebCore::WorkerGlobalScopeNotifications::WorkerGlobalScopeNotifications):
      (WebCore::WorkerGlobalScopeNotifications::~WorkerGlobalScopeNotifications):
      (WebCore::WorkerGlobalScopeNotifications::supplementName):
      (WebCore::WorkerGlobalScopeNotifications::from):
      (WebCore::WorkerGlobalScopeNotifications::webkitNotifications):
      * Modules/notifications/WorkerGlobalScopeNotifications.h: Renamed from Source/WebCore/Modules/notifications/WorkerContextNotifications.h.
      * Modules/notifications/WorkerGlobalScopeNotifications.idl: Renamed from Source/WebCore/Modules/notifications/WorkerContextNotifications.idl.
      * Modules/webdatabase/DatabaseContext.cpp:
      (WebCore::DatabaseContext::allowDatabaseAccess):
      (WebCore::DatabaseContext::databaseExceededQuota):
      * Modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.cpp.
      (WebCore::WorkerGlobalScopeWebDatabase::openDatabase):
      (WebCore::WorkerGlobalScopeWebDatabase::openDatabaseSync):
      * Modules/webdatabase/WorkerGlobalScopeWebDatabase.h: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.h.
      (WebCore::WorkerGlobalScopeWebDatabase::WorkerGlobalScopeWebDatabase):
      (WebCore::WorkerGlobalScopeWebDatabase::~WorkerGlobalScopeWebDatabase):
      * Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.idl.
      * Modules/websockets/ThreadableWebSocketChannel.cpp:
      (WebCore::ThreadableWebSocketChannel::create):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasksCallback):
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
      (WebCore::workerGlobalScopeDidSend):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
      (WebCore::workerGlobalScopeDidGetBufferedAmount):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::bufferedAmount):
      (WebCore::workerGlobalScopeDidConnect):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didConnect):
      (WebCore::workerGlobalScopeDidReceiveMessage):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveMessage):
      (WebCore::workerGlobalScopeDidReceiveBinaryData):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveBinaryData):
      (WebCore::workerGlobalScopeDidUpdateBufferedAmount):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didUpdateBufferedAmount):
      (WebCore::workerGlobalScopeDidStartClosingHandshake):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didStartClosingHandshake):
      (WebCore::workerGlobalScopeDidClose):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
      (WebCore::workerGlobalScopeDidReceiveMessageError):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveMessageError):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::Bridge):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::create):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::~WorkerGlobalScopeDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::WorkerGlobalScopeDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::disconnect):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::waitForMethodCompletion):
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (WebCore::WorkerThreadableWebSocketChannel::create):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
      * Target.pri:
      * UseJSC.cmake:
      * WebCore.order:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/cpp/WebDOMEventTarget.cpp:
      (toWebKit):
      * bindings/cpp/WebDOMEventTarget.h:
      * bindings/generic/ActiveDOMCallback.cpp:
      * bindings/js/DOMRequestState.h:
      (WebCore::DOMRequestState::DOMRequestState):
      * bindings/js/JSBindingsAllInOne.cpp:
      * bindings/js/JSDOMBinding.h:
      * bindings/js/JSDOMGlobalObject.cpp:
      (WebCore::JSDOMGlobalObject::scriptExecutionContext):
      (WebCore::toJSDOMGlobalObject):
      * bindings/js/JSDedicatedWorkerGlobalScopeCustom.cpp: Renamed from Source/WebCore/bindings/js/JSDedicatedWorkerContextCustom.cpp.
      (WebCore::JSDedicatedWorkerGlobalScope::postMessage):
      * bindings/js/JSEventListener.cpp:
      (WebCore::JSEventListener::handleEvent):
      * bindings/js/JSEventTargetCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSWorkerGlobalScopeBase.cpp: Renamed from Source/WebCore/bindings/js/JSWorkerContextBase.cpp.
      (WebCore::JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase):
      (WebCore::JSWorkerGlobalScopeBase::finishCreation):
      (WebCore::JSWorkerGlobalScopeBase::destroy):
      (WebCore::JSWorkerGlobalScopeBase::scriptExecutionContext):
      (WebCore::toJS):
      (WebCore::toJSDedicatedWorkerGlobalScope):
      (WebCore::toJSSharedWorkerGlobalScope):
      (WebCore::toJSWorkerGlobalScope):
      * bindings/js/JSWorkerGlobalScopeBase.h: Renamed from Source/WebCore/bindings/js/JSWorkerContextBase.h.
      (WebCore::JSWorkerGlobalScopeBase::impl):
      (WebCore::JSWorkerGlobalScopeBase::createStructure):
      * bindings/js/JSWorkerGlobalScopeCustom.cpp: Renamed from Source/WebCore/bindings/js/JSWorkerContextCustom.cpp.
      (WebCore::JSWorkerGlobalScope::visitChildren):
      (WebCore::JSWorkerGlobalScope::getOwnPropertySlotDelegate):
      (WebCore::JSWorkerGlobalScope::getOwnPropertyDescriptorDelegate):
      (WebCore::JSWorkerGlobalScope::importScripts):
      (WebCore::JSWorkerGlobalScope::setTimeout):
      (WebCore::JSWorkerGlobalScope::setInterval):
      * bindings/js/ScheduledAction.cpp:
      (WebCore::ScheduledAction::execute):
      * bindings/js/ScheduledAction.h:
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::startForWorkerGlobalScope):
      (WebCore::ScriptProfiler::stopForWorkerGlobalScope):
      * bindings/js/ScriptProfiler.h:
      * bindings/js/ScriptState.cpp:
      (WebCore::scriptStateFromWorkerGlobalScope):
      * bindings/js/ScriptState.h:
      * bindings/js/WorkerScriptController.cpp:
      (WebCore::WorkerScriptController::WorkerScriptController):
      (WebCore::WorkerScriptController::~WorkerScriptController):
      (WebCore::WorkerScriptController::initScript):
      (WebCore::WorkerScriptController::evaluate):
      (WebCore::WorkerScriptController::setException):
      (WebCore::WorkerScriptController::forbidExecution):
      (WebCore::WorkerScriptController::isExecutionForbidden):
      (WebCore::WorkerScriptController::disableEval):
      (WebCore::WorkerScriptController::attachDebugger):
      (WebCore::WorkerScriptController::detachDebugger):
      * bindings/js/WorkerScriptController.h:
      (WebCore::WorkerScriptController::workerGlobalScopeWrapper):
      (WebCore::WorkerScriptController::initScriptIfNeeded):
      * bindings/js/WorkerScriptDebugServer.cpp:
      (WebCore::WorkerScriptDebugServer::WorkerScriptDebugServer):
      (WebCore::WorkerScriptDebugServer::addListener):
      (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
      (WebCore::WorkerScriptDebugServer::removeListener):
      (WebCore::WorkerScriptDebugServer::runEventLoopWhilePaused):
      * bindings/js/WorkerScriptDebugServer.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      (GenerateImplementation):
      * bindings/scripts/IDLAttributes.txt:
      * bindings/scripts/preprocess-idls.pl:
      * dom/ActiveDOMObject.cpp:
      * dom/EventTarget.h:
      * dom/EventTargetFactory.in:
      * dom/MessagePort.cpp:
      (WebCore::MessagePort::dispatchMessages):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::createdMessagePort):
      (WebCore::ScriptExecutionContext::destroyedMessagePort):
      (WebCore::ScriptExecutionContext::vm):
      * dom/ScriptExecutionContext.h:
      (WebCore::ScriptExecutionContext::isWorkerGlobalScope):
      * inspector/InjectedScriptManager.cpp:
      (WebCore::InjectedScriptManager::createForWorker):
      (WebCore::InjectedScriptManager::canAccessInspectedWorkerGlobalScope):
      * inspector/InjectedScriptManager.h:
      * inspector/InspectorConsoleInstrumentation.h:
      (WebCore::InspectorInstrumentation::addMessageToConsole):
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::didStartWorkerGlobalScopeImpl):
      (WebCore::InspectorInstrumentation::willEvaluateWorkerScript):
      (WebCore::InspectorInstrumentation::workerGlobalScopeTerminatedImpl):
      (WebCore::InspectorInstrumentation::instrumentingAgentsForWorkerGlobalScope):
      (WebCore::InspectorInstrumentation::instrumentingAgentsForNonDocumentContext):
      * inspector/InspectorInstrumentation.h:
      (WebCore::InspectorInstrumentation::didStartWorkerGlobalScope):
      (WebCore::InspectorInstrumentation::workerGlobalScopeTerminated):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::WorkerProfilerAgent::WorkerProfilerAgent):
      (WebCore::WorkerProfilerAgent::startProfiling):
      (WebCore::WorkerProfilerAgent::stopProfiling):
      (WebCore::InspectorProfilerAgent::create):
      * inspector/InspectorProfilerAgent.h:
      * inspector/InspectorRuntimeAgent.h:
      * inspector/InspectorWorkerAgent.cpp:
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::WorkerFrontendChannel):
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::~WorkerFrontendChannel):
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::proxy):
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::connectToWorkerGlobalScope):
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::disconnectFromWorkerGlobalScope):
      (WebCore::InspectorWorkerAgent::connectToWorker):
      (WebCore::InspectorWorkerAgent::disconnectFromWorker):
      (WebCore::InspectorWorkerAgent::didStartWorkerGlobalScope):
      (WebCore::InspectorWorkerAgent::workerGlobalScopeTerminated):
      (WebCore::InspectorWorkerAgent::destroyWorkerFrontendChannels):
      (WebCore::InspectorWorkerAgent::createWorkerFrontendChannel):
      * inspector/InspectorWorkerAgent.h:
      * inspector/InstrumentingAgents.cpp:
      (WebCore::instrumentationForWorkerGlobalScope):
      * inspector/InstrumentingAgents.h:
      * inspector/WorkerDebuggerAgent.cpp:
      (WebCore::WorkerDebuggerAgent::create):
      (WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
      (WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
      (WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands):
      (WebCore::WorkerDebuggerAgent::injectedScriptForEval):
      * inspector/WorkerDebuggerAgent.h:
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::WorkerInspectorController):
      (WebCore::WorkerInspectorController::connectFrontend):
      * inspector/WorkerInspectorController.h:
      * inspector/WorkerRuntimeAgent.cpp:
      (WebCore::WorkerRuntimeAgent::WorkerRuntimeAgent):
      (WebCore::WorkerRuntimeAgent::injectedScriptForEval):
      (WebCore::WorkerRuntimeAgent::pauseWorkerGlobalScope):
      * inspector/WorkerRuntimeAgent.h:
      (WebCore::WorkerRuntimeAgent::create):
      * loader/ThreadableLoader.cpp:
      (WebCore::ThreadableLoader::create):
      (WebCore::ThreadableLoader::loadResourceSynchronously):
      * loader/WorkerThreadableLoader.cpp:
      (WebCore::WorkerThreadableLoader::WorkerThreadableLoader):
      (WebCore::WorkerThreadableLoader::loadResourceSynchronously):
      (WebCore::workerGlobalScopeDidSendData):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didSendData):
      (WebCore::workerGlobalScopeDidReceiveResponse):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveResponse):
      (WebCore::workerGlobalScopeDidReceiveData):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData):
      (WebCore::workerGlobalScopeDidFinishLoading):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didFinishLoading):
      (WebCore::workerGlobalScopeDidFail):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didFail):
      (WebCore::workerGlobalScopeDidFailAccessControlCheck):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didFailAccessControlCheck):
      (WebCore::workerGlobalScopeDidFailRedirectCheck):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didFailRedirectCheck):
      * loader/WorkerThreadableLoader.h:
      (WebCore::WorkerThreadableLoader::create):
      * loader/cache/MemoryCache.cpp:
      (WebCore::MemoryCache::removeRequestFromCache):
      * platform/blackberry/LocalFileSystemBlackBerry.cpp:
      (WebCore::openFileSystem):
      (WebCore::LocalFileSystem::deleteFileSystem):
      * platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp:
      (WebCore::WorkerAsyncFileSystemBlackBerry::WorkerAsyncFileSystemBlackBerry):
      (WebCore::WorkerAsyncFileSystemBlackBerry::openFileSystem):
      (WebCore::WorkerAsyncFileSystemBlackBerry::deleteFileSystem):
      * platform/blackberry/WorkerAsyncFileSystemBlackBerry.h:
      (WebCore::WorkerAsyncFileSystemBlackBerry::create):
      * platform/blackberry/WorkerAsyncFileWriterBlackBerry.h:
      * platform/blackberry/WorkerPlatformAsyncFileSystemCallbacks.cpp:
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::postTaskToWorkerThread):
      * platform/blackberry/WorkerPlatformAsyncFileSystemCallbacks.h:
      * platform/blackberry/WorkerPlatformFileWriterClient.cpp:
      (WebCore::WorkerPlatformFileWriterClient::postTaskToWorkerThreadIfNeeded):
      * platform/blackberry/WorkerPlatformFileWriterClient.h:
      * workers/DedicatedWorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/DedicatedWorkerContext.cpp.
      (WebCore::DedicatedWorkerGlobalScope::create):
      (WebCore::DedicatedWorkerGlobalScope::DedicatedWorkerGlobalScope):
      (WebCore::DedicatedWorkerGlobalScope::~DedicatedWorkerGlobalScope):
      (WebCore::DedicatedWorkerGlobalScope::interfaceName):
      (WebCore::DedicatedWorkerGlobalScope::postMessage):
      (WebCore::DedicatedWorkerGlobalScope::importScripts):
      (WebCore::DedicatedWorkerGlobalScope::thread):
      * workers/DedicatedWorkerGlobalScope.h: Renamed from Source/WebCore/workers/DedicatedWorkerContext.h.
      * workers/DedicatedWorkerGlobalScope.idl: Renamed from Source/WebCore/workers/DedicatedWorkerContext.idl.
      * workers/DedicatedWorkerThread.cpp:
      (WebCore::DedicatedWorkerThread::createWorkerGlobalScope):
      (WebCore::DedicatedWorkerThread::runEventLoop):
      * workers/DedicatedWorkerThread.h:
      * workers/DefaultSharedWorkerRepository.cpp:
      (WebCore::SharedWorkerProxy::postTaskForModeToWorkerGlobalScope):
      (WebCore::SharedWorkerProxy::workerGlobalScopeClosed):
      (WebCore::SharedWorkerProxy::workerGlobalScopeDestroyed):
      (WebCore::SharedWorkerConnectTask::performTask):
      (WebCore::SharedWorkerScriptLoader::notifyFinished):
      (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
      * workers/SharedWorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/SharedWorkerContext.cpp.
      (WebCore::createConnectEvent):
      (WebCore::SharedWorkerGlobalScope::create):
      (WebCore::SharedWorkerGlobalScope::SharedWorkerGlobalScope):
      (WebCore::SharedWorkerGlobalScope::~SharedWorkerGlobalScope):
      (WebCore::SharedWorkerGlobalScope::interfaceName):
      (WebCore::SharedWorkerGlobalScope::thread):
      (WebCore::SharedWorkerGlobalScope::logExceptionToConsole):
      * workers/SharedWorkerGlobalScope.h: Renamed from Source/WebCore/workers/SharedWorkerContext.h.
      (WebCore::SharedWorkerGlobalScope::name):
      * workers/SharedWorkerGlobalScope.idl: Renamed from Source/WebCore/workers/SharedWorkerContext.idl.
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::createWorkerGlobalScope):
      * workers/SharedWorkerThread.h:
      * workers/Worker.cpp:
      (WebCore::Worker::Worker):
      (WebCore::Worker::postMessage):
      (WebCore::Worker::terminate):
      (WebCore::Worker::notifyFinished):
      * workers/Worker.h:
      * workers/WorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/WorkerContext.cpp.
      (WebCore::CloseWorkerGlobalScopeTask::create):
      (WebCore::CloseWorkerGlobalScopeTask::performTask):
      (WebCore::CloseWorkerGlobalScopeTask::isCleanupTask):
      (WebCore::WorkerGlobalScope::WorkerGlobalScope):
      (WebCore::WorkerGlobalScope::~WorkerGlobalScope):
      (WebCore::WorkerGlobalScope::applyContentSecurityPolicyFromString):
      (WebCore::WorkerGlobalScope::scriptExecutionContext):
      (WebCore::WorkerGlobalScope::virtualURL):
      (WebCore::WorkerGlobalScope::virtualCompleteURL):
      (WebCore::WorkerGlobalScope::completeURL):
      (WebCore::WorkerGlobalScope::userAgent):
      (WebCore::WorkerGlobalScope::disableEval):
      (WebCore::WorkerGlobalScope::location):
      (WebCore::WorkerGlobalScope::close):
      (WebCore::WorkerGlobalScope::navigator):
      (WebCore::WorkerGlobalScope::hasPendingActivity):
      (WebCore::WorkerGlobalScope::postTask):
      (WebCore::WorkerGlobalScope::setTimeout):
      (WebCore::WorkerGlobalScope::clearTimeout):
      (WebCore::WorkerGlobalScope::clearInspector):
      (WebCore::WorkerGlobalScope::setInterval):
      (WebCore::WorkerGlobalScope::clearInterval):
      (WebCore::WorkerGlobalScope::importScripts):
      (WebCore::WorkerGlobalScope::errorEventTarget):
      (WebCore::WorkerGlobalScope::logExceptionToConsole):
      (WebCore::WorkerGlobalScope::addConsoleMessage):
      (WebCore::WorkerGlobalScope::addMessage):
      (WebCore::WorkerGlobalScope::addMessageToWorkerConsole):
      (WebCore::WorkerGlobalScope::isContextThread):
      (WebCore::WorkerGlobalScope::isJSExecutionForbidden):
      (WebCore::WorkerGlobalScope::eventTargetData):
      (WebCore::WorkerGlobalScope::ensureEventTargetData):
      (WebCore::WorkerGlobalScope::Observer::Observer):
      (WebCore::WorkerGlobalScope::Observer::~Observer):
      (WebCore::WorkerGlobalScope::Observer::stopObserving):
      (WebCore::WorkerGlobalScope::registerObserver):
      (WebCore::WorkerGlobalScope::unregisterObserver):
      (WebCore::WorkerGlobalScope::notifyObserversOfStop):
      (WebCore::WorkerGlobalScope::eventQueue):
      * workers/WorkerGlobalScope.h: Renamed from Source/WebCore/workers/WorkerContext.h.
      (WebCore::WorkerGlobalScope::isSharedWorkerGlobalScope):
      (WebCore::WorkerGlobalScope::isDedicatedWorkerGlobalScope):
      (WebCore::WorkerGlobalScope::url):
      (WebCore::WorkerGlobalScope::groupSettings):
      (WebCore::WorkerGlobalScope::script):
      (WebCore::WorkerGlobalScope::clearScript):
      (WebCore::WorkerGlobalScope::thread):
      (WebCore::WorkerGlobalScope::self):
      (WebCore::WorkerGlobalScope::workerInspectorController):
      (WebCore::WorkerGlobalScope::optionalNavigator):
      (WebCore::WorkerGlobalScope::optionalLocation):
      (WebCore::WorkerGlobalScope::isClosing):
      * workers/WorkerGlobalScope.idl: Renamed from Source/WebCore/workers/WorkerContext.idl.
      * workers/WorkerGlobalScopeProxy.h: Renamed from Source/WebCore/workers/WorkerContextProxy.h.
      (WebCore::WorkerGlobalScopeProxy::~WorkerGlobalScopeProxy):
      (WebCore::WorkerGlobalScopeProxy::PageInspector::~PageInspector):
      (WebCore::WorkerGlobalScopeProxy::connectToInspector):
      (WebCore::WorkerGlobalScopeProxy::disconnectFromInspector):
      (WebCore::WorkerGlobalScopeProxy::sendMessageToInspector):
      * workers/WorkerLoaderProxy.h:
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::MessageWorkerGlobalScopeTask::create):
      (WebCore::MessageWorkerGlobalScopeTask::MessageWorkerGlobalScopeTask):
      (WebCore::MessageWorkerGlobalScopeTask::performTask):
      (WebCore::WorkerGlobalScopeDestroyedTask::create):
      (WebCore::WorkerGlobalScopeDestroyedTask::WorkerGlobalScopeDestroyedTask):
      (WebCore::WorkerGlobalScopeDestroyedTask::performTask):
      (WebCore::WorkerTerminateTask::performTask):
      (WebCore::PostMessageToPageInspectorTask::performTask):
      (WebCore::WorkerGlobalScopeProxy::create):
      (WebCore::WorkerMessagingProxy::WorkerMessagingProxy):
      (WebCore::WorkerMessagingProxy::~WorkerMessagingProxy):
      (WebCore::WorkerMessagingProxy::startWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::postTaskForModeToWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::workerObjectDestroyedInternal):
      (WebCore::connectToWorkerGlobalScopeInspectorTask):
      (WebCore::WorkerMessagingProxy::connectToInspector):
      (WebCore::disconnectFromWorkerGlobalScopeInspectorTask):
      (WebCore::WorkerMessagingProxy::disconnectFromInspector):
      (WebCore::dispatchOnInspectorBackendTask):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeDestroyed):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeClosed):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeDestroyedInternal):
      (WebCore::WorkerMessagingProxy::terminateWorkerGlobalScope):
      * workers/WorkerMessagingProxy.h:
      * workers/WorkerObjectProxy.h:
      * workers/WorkerReportingProxy.h:
      * workers/WorkerRunLoop.cpp:
      (WebCore::WorkerRunLoop::run):
      (WebCore::WorkerRunLoop::runInMode):
      (WebCore::WorkerRunLoop::runCleanupTasks):
      (WebCore::WorkerRunLoop::Task::performTask):
      * workers/WorkerRunLoop.h:
      * workers/WorkerScriptLoader.cpp:
      (WebCore::WorkerScriptLoader::loadSynchronously):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThread::workerThread):
      (WebCore::WorkerThread::runEventLoop):
      (WebCore::WorkerThreadShutdownFinishTask::performTask):
      (WebCore::WorkerThreadShutdownStartTask::performTask):
      (WebCore::WorkerThread::stop):
      * workers/WorkerThread.h:
      (WebCore::WorkerThread::workerGlobalScope):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::usesDashboardBackwardCompatibilityMode):
      (WebCore::XMLHttpRequest::responseXML):
      
      Source/WebKit/qt:
      
      Update calls to ScriptExecutionContext::isWorkerContext() as it was
      renamed to ScriptExecutionContext::isWorkerGlobalScope().
      
      * WebCoreSupport/NotificationPresenterClientQt.cpp:
      (WebCore::NotificationPresenterClientQt::show):
      (WebCore::NotificationPresenterClientQt::toPage):
      (WebCore::NotificationPresenterClientQt::toFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      14792a6b
  6. 06 Sep, 2012 1 commit
    • weinig@apple.com's avatar
      Part 2 of removing PlatformString.h, remove PlatformString.h · 3f5ab024
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=95931
      
      Reviewed by Adam Barth.
      
      Remove PlatformString.h
      
      Source/WebCore:
      
      * GNUmakefile.list.am:
      * Modules/filesystem/AsyncFileWriter.h:
      * Modules/filesystem/DOMFilePath.h:
      * Modules/filesystem/DOMFileSystemBase.h:
      * Modules/filesystem/DirectoryEntry.h:
      * Modules/filesystem/DirectoryEntrySync.h:
      * Modules/filesystem/DirectoryReader.h:
      * Modules/filesystem/DirectoryReaderBase.h:
      * Modules/filesystem/DirectoryReaderSync.h:
      * Modules/filesystem/EntryBase.cpp:
      * Modules/filesystem/EntrySync.h:
      * Modules/filesystem/FileEntrySync.h:
      * Modules/filesystem/FileSystemCallbacks.h:
      * Modules/filesystem/LocalFileSystem.h:
      * Modules/geolocation/GeolocationError.h:
      * Modules/geolocation/Geoposition.h:
      * Modules/geolocation/PositionError.h:
      * Modules/indexeddb/IDBAny.h:
      * Modules/indexeddb/IDBDatabaseBackendInterface.h:
      * Modules/indexeddb/IDBDatabaseCallbacks.h:
      * Modules/indexeddb/IDBDatabaseCallbacksImpl.h:
      * Modules/indexeddb/IDBDatabaseError.h:
      * Modules/indexeddb/IDBFactory.h:
      * Modules/indexeddb/IDBFactoryBackendInterface.h:
      * Modules/indexeddb/IDBIndex.h:
      * Modules/indexeddb/IDBIndexBackendInterface.h:
      * Modules/indexeddb/IDBKey.h:
      * Modules/indexeddb/IDBKeyPath.h:
      * Modules/indexeddb/IDBMetadata.h:
      * Modules/indexeddb/IDBObjectStore.h:
      * Modules/indexeddb/IDBObjectStoreBackendInterface.h:
      * Modules/indexeddb/IDBTransactionBackendInterface.h:
      * Modules/indexeddb/IDBUpgradeNeededEvent.h:
      * Modules/indexeddb/IDBVersionChangeEvent.h:
      * Modules/mediastream/MediaStreamTrack.h:
      * Modules/networkinfo/NetworkInfoConnection.h:
      * Modules/notifications/DOMWindowNotifications.h:
      * Modules/speech/SpeechGrammar.h:
      * Modules/speech/SpeechRecognition.h:
      * Modules/speech/SpeechRecognitionAlternative.h:
      * Modules/speech/SpeechRecognitionClient.h:
      * Modules/speech/SpeechRecognitionError.h:
      * Modules/webaudio/AudioContext.cpp:
      * Modules/webaudio/AudioParam.h:
      * Modules/webdatabase/AbstractDatabase.h:
      * Modules/webdatabase/ChangeVersionWrapper.h:
      * Modules/webdatabase/DOMWindowWebDatabase.h:
      * Modules/webdatabase/Database.h:
      * Modules/webdatabase/DatabaseAuthorizer.cpp:
      * Modules/webdatabase/DatabaseAuthorizer.h:
      * Modules/webdatabase/DatabaseDetails.h:
      * Modules/webdatabase/DatabaseSync.h:
      * Modules/webdatabase/DatabaseTask.h:
      * Modules/webdatabase/DatabaseTracker.h:
      * Modules/webdatabase/OriginUsageRecord.h:
      * Modules/webdatabase/SQLError.h:
      * Modules/webdatabase/SQLStatement.h:
      * Modules/webdatabase/SQLStatementSync.h:
      * Modules/webdatabase/SQLTransaction.cpp:
      * Modules/webdatabase/SQLTransactionSync.cpp:
      * Modules/webdatabase/SQLTransactionSync.h:
      * Modules/webdatabase/WorkerContextWebDatabase.h:
      * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp:
      * Modules/webdatabase/chromium/QuotaTracker.h:
      * Modules/websockets/ThreadableWebSocketChannel.cpp:
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      * Modules/websockets/WebSocketHandshake.h:
      * Modules/websockets/WebSocketHandshakeResponse.h:
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/gobject/ConvertToUTF8String.cpp:
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      * bindings/js/JSClipboardCustom.cpp:
      * bindings/js/JSImageDataCustom.cpp:
      * bindings/js/JSInspectorFrontendHostCustom.cpp:
      * bindings/js/JSLazyEventListener.h:
      * bindings/js/JSStorageCustom.cpp:
      * bindings/js/JSXSLTProcessorCustom.cpp:
      * bindings/js/JavaScriptCallFrame.cpp:
      * bindings/js/ScheduledAction.h:
      * bindings/js/ScriptDebugServer.h:
      * bindings/js/ScriptHeapSnapshot.h:
      * bindings/js/ScriptValue.h:
      * bindings/js/SerializedScriptValue.h:
      * bindings/objc/DOMCustomXPathNSResolver.mm:
      * bindings/objc/DOMXPath.mm:
      * bindings/objc/WebScriptObject.mm:
      * bindings/scripts/CodeGeneratorJS.pm:
      (AddIncludesForTypeInImpl):
      (AddIncludesForSVGAnimatedType):
      * bindings/scripts/CodeGeneratorV8.pm:
      (AddIncludesForType):
      * bindings/v8/Dictionary.h:
      * bindings/v8/JavaScriptCallFrame.h:
      * bindings/v8/NPV8Object.cpp:
      * bindings/v8/ScriptDebugServer.h:
      * bindings/v8/ScriptFunctionCall.h:
      * bindings/v8/ScriptHeapSnapshot.h:
      * bindings/v8/ScriptProfile.h:
      * bindings/v8/ScriptProfileNode.h:
      * bindings/v8/ScriptProfiler.h:
      * bindings/v8/ScriptSourceCode.h:
      * bindings/v8/V8Binding.cpp:
      * bindings/v8/V8DOMWrapper.h:
      * bindings/v8/V8LazyEventListener.h:
      * bindings/v8/V8NPUtils.cpp:
      * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
      * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
      * bindings/v8/custom/V8LocationCustom.cpp:
      * bridge/IdentifierRep.cpp:
      * bridge/NP_jsobject.cpp:
      * bridge/c/c_utility.cpp:
      * css/CSSBasicShapes.h:
      * css/CSSBorderImageSliceValue.cpp:
      * css/CSSCharsetRule.h:
      * css/CSSCursorImageValue.cpp:
      * css/CSSFontFaceSrcValue.h:
      * css/CSSGradientValue.cpp:
      * css/CSSInheritedValue.cpp:
      * css/CSSInitialValue.cpp:
      * css/CSSLineBoxContainValue.cpp:
      * css/CSSMediaRule.h:
      * css/CSSProperty.cpp:
      * css/CSSPropertySourceData.cpp:
      * css/CSSPropertySourceData.h:
      * css/CSSReflectValue.cpp:
      * css/CSSTimingFunctionValue.cpp:
      * css/CSSUnicodeRangeValue.cpp:
      * css/CSSValueList.cpp:
      * css/Counter.h:
      * css/FontFeatureValue.h:
      * css/FontValue.cpp:
      * css/MediaQuery.h:
      * css/MediaQueryEvaluator.h:
      * css/MediaQueryListListener.h:
      * css/ShadowValue.cpp:
      * css/StyleMedia.h:
      * css/StyleSheet.h:
      * css/StyleSheetList.cpp:
      * css/WebKitCSSMatrix.h:
      * css/WebKitCSSTransformValue.cpp:
      * dom/DOMStringList.h:
      * dom/DOMStringMap.h:
      * dom/DocumentMarker.h:
      * dom/ErrorEvent.h:
      * dom/ExceptionBase.h:
      * dom/MessagePortChannel.h:
      * dom/MutationRecord.h:
      * dom/TransformSource.h:
      * dom/ViewportArguments.cpp:
      * editing/DOMTransactionStep.h:
      * editing/EditingStyle.h:
      * editing/MarkupAccumulator.h:
      * editing/SmartReplaceICU.cpp:
      * editing/SpellChecker.h:
      * editing/SurroundingText.h:
      * fileapi/AsyncFileStream.cpp:
      * fileapi/Blob.h:
      * fileapi/BlobURL.cpp:
      * fileapi/File.h:
      * history/HistoryItem.h:
      * history/blackberry/HistoryItemViewState.h:
      * history/cf/HistoryPropertyList.h:
      * html/DOMFormData.cpp:
      * html/DOMURL.h:
      * html/MicroDataItemValue.h:
      * html/PublicURLManager.h:
      * html/canvas/CanvasPattern.cpp:
      * html/canvas/CanvasRenderingContext2D.h:
      * html/canvas/CanvasStyle.h:
      * html/canvas/WebGLActiveInfo.h:
      * html/canvas/WebGLGetInfo.h:
      * html/canvas/WebGLRenderingContext.h:
      * html/parser/CSSPreloadScanner.h:
      * html/parser/HTMLEntitySearch.h:
      * html/parser/HTMLEntityTable.h:
      * html/parser/HTMLMetaCharsetParser.cpp:
      * inspector/CodeGeneratorInspector.py:
      (InspectorFrontend_h):
      * inspector/ContentSearchUtils.h:
      * inspector/InjectedScript.cpp:
      * inspector/InjectedScriptBase.cpp:
      * inspector/InjectedScriptManager.h:
      * inspector/InjectedScriptModule.h:
      * inspector/InjectedScriptWebGLModule.h:
      * inspector/InspectorAgent.h:
      * inspector/InspectorCSSAgent.h:
      * inspector/InspectorController.h:
      * inspector/InspectorDOMDebuggerAgent.h:
      * inspector/InspectorDOMStorageAgent.h:
      * inspector/InspectorDatabaseAgent.h:
      * inspector/InspectorDatabaseResource.h:
      * inspector/InspectorFrontendClientLocal.cpp:
      * inspector/InspectorFrontendClientLocal.h:
      * inspector/InspectorFrontendHost.h:
      * inspector/InspectorIndexedDBAgent.h:
      * inspector/InspectorPageAgent.h:
      * inspector/InspectorProfilerAgent.h:
      * inspector/InspectorResourceAgent.h:
      * inspector/InspectorState.h:
      * inspector/InspectorStyleSheet.h:
      * inspector/InspectorStyleTextEditor.h:
      * inspector/InspectorValues.h:
      * inspector/InspectorWebGLAgent.h:
      * inspector/InspectorWorkerResource.h:
      * inspector/ScriptArguments.h:
      * inspector/ScriptBreakpoint.h:
      * inspector/ScriptCallFrame.h:
      * inspector/ScriptDebugListener.h:
      * inspector/TimelineRecordFactory.h:
      * inspector/generate-inspector-protocol-version:
      (main):
      * loader/DocumentLoader.cpp:
      * loader/DocumentWriter.h:
      * loader/FTPDirectoryParser.h:
      * loader/FormState.h:
      * loader/HistoryController.h:
      * loader/PolicyChecker.h:
      * loader/ResourceLoadScheduler.h:
      * loader/SubframeLoader.h:
      * loader/SubstituteData.h:
      * loader/WorkerThreadableLoader.h:
      * loader/appcache/ApplicationCache.h:
      * loader/appcache/ApplicationCacheGroup.h:
      * loader/archive/ArchiveFactory.cpp:
      * loader/archive/ArchiveResourceCollection.h:
      * loader/cache/CachedResource.h:
      * loader/cache/MemoryCache.h:
      * loader/icon/IconRecord.h:
      * loader/icon/PageURLRecord.h:
      * loader/mac/LoaderNSURLExtras.mm:
      * loader/win/DocumentLoaderWin.cpp:
      * page/Console.cpp:
      * page/Coordinates.h:
      * page/DOMSelection.cpp:
      * page/EventSource.cpp:
      * page/GroupSettings.h:
      * page/NavigatorBase.cpp:
      * page/OriginAccessEntry.h:
      * page/Page.h:
      * page/SecurityOrigin.h:
      * page/SpeechInputResult.h:
      * page/UserContentURLPattern.h:
      * page/WindowFeatures.cpp:
      * page/WindowFeatures.h:
      * page/WorkerNavigator.h:
      * page/animation/AnimationControllerPrivate.h:
      * platform/AsyncFileSystem.h:
      * platform/AsyncFileSystemCallbacks.h:
      * platform/ContentType.h:
      * platform/ContextMenu.h:
      * platform/ContextMenuItem.h:
      * platform/Cookie.h:
      * platform/CrossThreadCopier.cpp:
      * platform/DateComponents.cpp:
      * platform/FileChooser.h:
      * platform/FileStream.cpp:
      * platform/FileSystem.h:
      * platform/KURL.cpp:
      (WebCore):
      * platform/KURL.h:
      * platform/KURLHash.h:
      * platform/KillRing.h:
      * platform/Language.cpp:
      * platform/Length.cpp:
      * platform/LinkHash.cpp:
      * platform/Logging.cpp:
      * platform/MIMETypeRegistry.h:
      * platform/SSLKeyGenerator.h:
      * platform/SchemeRegistry.h:
      * platform/SharedBuffer.h:
      * platform/Theme.h:
      * platform/UUID.h:
      * platform/animation/Animation.h:
      * platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.h:
      * platform/blackberry/CookieManager.h:
      * platform/blackberry/CookieMap.h:
      * platform/blackberry/DragDataBlackBerry.cpp:
      * platform/blackberry/KURLBlackBerry.cpp:
      * platform/blackberry/LocalizedStringsBlackBerry.cpp:
      * platform/blackberry/SSLKeyGeneratorBlackBerry.cpp:
      * platform/blackberry/TemporaryLinkStubs.cpp:
      * platform/cf/FileSystemCF.cpp:
      * platform/cf/SchedulePair.h:
      * platform/chromium/ChromiumDataObject.h:
      * platform/chromium/ClipboardUtilitiesChromium.cpp:
      * platform/chromium/DragDataChromium.cpp:
      * platform/chromium/FileSystemChromium.cpp:
      * platform/chromium/FileSystemChromiumMac.mm:
      * platform/chromium/LanguageChromium.cpp:
      * platform/chromium/SSLKeyGeneratorChromium.cpp:
      * platform/cocoa/KeyEventCocoa.mm:
      * platform/efl/ErrorsEfl.h:
      * platform/efl/LanguageEfl.cpp:
      * platform/efl/LocalizedStringsEfl.cpp:
      * platform/efl/LoggingEfl.cpp:
      * platform/efl/PasteboardEfl.cpp:
      * platform/efl/PlatformScreenEfl.cpp:
      * platform/graphics/ANGLEWebKitBridge.h:
      * platform/graphics/BitmapImage.cpp:
      * platform/graphics/FontPlatformData.cpp:
      * platform/graphics/GlyphPageTreeNode.cpp:
      * platform/graphics/GraphicsContext3D.h:
      * platform/graphics/GraphicsTypes.cpp:
      * platform/graphics/SegmentedFontData.cpp:
      * platform/graphics/blackberry/IconBlackBerry.cpp:
      * platform/graphics/blackberry/LayerData.h:
      * platform/graphics/blackberry/LayerFilterRenderer.cpp:
      * platform/graphics/blackberry/LayerRenderer.cpp:
      * platform/graphics/blackberry/skia/PlatformSupport.h:
      * platform/graphics/ca/PlatformCALayer.h:
      * platform/graphics/ca/PlatformCALayerClient.h:
      * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
      * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
      * platform/graphics/cairo/ImageBufferCairo.cpp:
      * platform/graphics/cairo/PathCairo.cpp:
      * platform/graphics/cg/ImageSourceCGMac.mm:
      * platform/graphics/cg/PathCG.cpp:
      * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
      * platform/graphics/chromium/GraphicsLayerChromium.cpp:
      * platform/graphics/chromium/IconChromium.cpp:
      * platform/graphics/chromium/IconChromiumAndroid.cpp:
      * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
      * platform/graphics/efl/IconEfl.cpp:
      * platform/graphics/filters/FEComposite.h:
      * platform/graphics/filters/FEDisplacementMap.h:
      * platform/graphics/filters/SourceAlpha.cpp:
      * platform/graphics/filters/SourceAlpha.h:
      * platform/graphics/filters/SourceGraphic.cpp:
      * platform/graphics/filters/SourceGraphic.h:
      * platform/graphics/freetype/FontPlatformDataFreeType.cpp:
      * platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp:
      * platform/graphics/mac/IconMac.mm:
      * platform/graphics/mac/ImageMac.mm:
      * platform/graphics/opentype/OpenTypeUtilities.h:
      * platform/graphics/openvg/PathOpenVG.cpp:
      * platform/graphics/pango/FontPlatformDataPango.cpp:
      * platform/graphics/qt/FontCacheQt.cpp:
      * platform/graphics/qt/FontPlatformDataQt.cpp:
      * platform/graphics/qt/IconQt.cpp:
      * platform/graphics/qt/ImageQt.cpp:
      * platform/graphics/qt/PathQt.cpp:
      * platform/graphics/skia/FontCustomPlatformData.h:
      * platform/graphics/skia/ImageSkia.cpp:
      * platform/graphics/win/FontCustomPlatformData.h:
      * platform/graphics/win/FontPlatformDataCGWin.cpp:
      * platform/graphics/win/FontPlatformDataCairoWin.cpp:
      * platform/graphics/win/FontPlatformDataWin.cpp:
      * platform/graphics/win/IconWin.cpp:
      * platform/graphics/win/ImageCGWin.cpp:
      * platform/graphics/win/ImageCairoWin.cpp:
      * platform/graphics/win/SimpleFontDataCGWin.cpp:
      * platform/graphics/wince/FontCustomPlatformData.h:
      * platform/graphics/wince/FontPlatformData.cpp:
      * platform/graphics/wince/ImageWinCE.cpp:
      * platform/graphics/wince/MediaPlayerProxy.cpp:
      * platform/graphics/wince/PathWinCE.cpp:
      * platform/graphics/wince/PlatformPathWinCE.cpp:
      * platform/graphics/wx/FontCacheWx.cpp:
      * platform/graphics/wx/FontPlatformDataWx.cpp:
      * platform/graphics/wx/IconWx.cpp:
      * platform/graphics/wx/PathWx.cpp:
      * platform/gtk/ErrorsGtk.h:
      * platform/gtk/FileSystemGtk.cpp:
      * platform/gtk/GtkPopupMenu.h:
      * platform/gtk/KeyBindingTranslator.h:
      * platform/gtk/LanguageGtk.cpp:
      * platform/gtk/LocalizedStringsGtk.cpp:
      * platform/gtk/LoggingGtk.cpp:
      * platform/gtk/PasteboardGtk.cpp:
      * platform/image-decoders/ImageDecoder.h:
      * platform/leveldb/LevelDBSlice.h:
      * platform/mac/FileSystemMac.mm:
      * platform/mediastream/MediaStreamSource.h:
      * platform/mock/GeolocationClientMock.h:
      * platform/network/BlobData.h:
      * platform/network/BlobRegistryImpl.h:
      * platform/network/BlobResourceHandle.h:
      * platform/network/Credential.h:
      * platform/network/FormData.h:
      * platform/network/FormDataBuilder.h:
      * platform/network/HTTPParsers.cpp:
      * platform/network/HTTPRequest.h:
      * platform/network/HTTPValidation.cpp:
      * platform/network/ProtectionSpace.h:
      * platform/network/ResourceErrorBase.h:
      * platform/network/SocketStreamErrorBase.h:
      * platform/network/blackberry/DNSBlackBerry.cpp:
      * platform/network/blackberry/DeferredData.h:
      * platform/network/blackberry/NetworkJob.h:
      * platform/network/cf/CookieJarCFNet.cpp:
      * platform/network/curl/CookieJarCurl.cpp:
      * platform/network/curl/ResourceHandleManager.h:
      * platform/network/qt/DnsPrefetchHelper.cpp:
      * platform/network/soup/ResourceRequestSoup.cpp:
      * platform/network/soup/ResourceResponseSoup.cpp:
      * platform/network/win/CookieJarWin.cpp:
      * platform/posix/FileSystemPOSIX.cpp:
      * platform/qt/ClipboardQt.cpp:
      * platform/qt/CookieJarQt.cpp:
      * platform/qt/FileSystemQt.cpp:
      * platform/qt/LanguageQt.cpp:
      * platform/qt/LocalizedStringsQt.cpp:
      * platform/qt/LoggingQt.cpp:
      * platform/qt/PlatformSupport.h:
      * platform/sql/SQLValue.h:
      * platform/sql/SQLiteDatabase.h:
      * platform/sql/SQLiteFileSystem.h:
      * platform/text/DecodeEscapeSequences.h:
      * platform/text/LineEnding.cpp:
      * platform/text/ParserUtilities.h:
      * platform/text/PlatformString.h: Removed.
      * platform/text/RegularExpression.h:
      * platform/text/SegmentedString.h:
      * platform/text/StringWithDirection.h:
      * platform/text/SuffixTree.h:
      * platform/text/TextBreakIteratorICU.cpp:
      * platform/text/TextCodec.cpp:
      * platform/text/TextCodec.h:
      * platform/text/TextCodecLatin1.cpp:
      * platform/text/TextCodecUTF16.cpp:
      * platform/text/TextCodecUserDefined.cpp:
      * platform/text/TextEncoding.cpp:
      * platform/text/blackberry/StringBlackBerry.cpp:
      * platform/text/cf/StringCF.cpp:
      * platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp:
      * platform/text/gtk/TextCodecGtk.cpp:
      * platform/text/mac/StringMac.mm:
      * platform/text/mac/TextCodecMac.cpp:
      * platform/text/qt/TextCodecQt.cpp:
      * platform/text/win/TextCodecWin.h:
      * platform/text/wince/TextBreakIteratorWinCE.cpp:
      * platform/win/BString.cpp:
      * platform/win/DragDataWin.cpp:
      * platform/win/GDIObjectCounter.h:
      * platform/win/LoggingWin.cpp:
      * platform/win/WCDataObject.cpp:
      * platform/wince/DragDataWinCE.cpp:
      * platform/wx/ClipboardWx.cpp:
      * platform/wx/FileSystemWx.cpp:
      * platform/wx/LanguageWx.cpp:
      * platform/wx/LocalizedStringsWx.cpp:
      * platform/wx/LoggingWx.cpp:
      * platform/wx/PasteboardWx.cpp:
      * platform/wx/PopupMenuWx.cpp:
      * plugins/PluginData.h:
      * plugins/PluginDatabase.h:
      * plugins/PluginDebug.cpp:
      * plugins/PluginPackage.h:
      * plugins/PluginStream.h:
      * rendering/style/StyleDashboardRegion.h:
      * storage/Storage.cpp:
      * storage/StorageArea.h:
      * storage/StorageEvent.h:
      * storage/StorageEventDispatcher.h:
      * storage/StorageMap.h:
      * storage/StorageNamespace.h:
      * storage/StorageNamespaceImpl.h:
      * storage/StorageSyncManager.h:
      * storage/StorageTask.h:
      * storage/StorageTracker.h:
      * svg/SVGPathByteStreamBuilder.h:
      * svg/SVGPathParser.h:
      * svg/SVGPathStringSource.h:
      * svg/SVGStyledElement.cpp:
      * svg/animation/SMILTimeContainer.h:
      * svg/graphics/filters/SVGFilterBuilder.cpp:
      * svg/graphics/filters/SVGFilterBuilder.h:
      * testing/Internals.h:
      * workers/DefaultSharedWorkerRepository.cpp:
      * workers/WorkerLocation.cpp:
      * workers/WorkerThread.cpp:
      * xml/DOMParser.cpp:
      * xml/NativeXPathNSResolver.cpp:
      * xml/XMLSerializer.cpp:
      * xml/XMLSerializer.h:
      * xml/XPathExpression.cpp:
      * xml/XPathValue.h:
      * xml/XSLTUnicodeSort.cpp:
      
      Source/WebKit/blackberry:
      
      * Api/DumpRenderTreeClient.h:
      * WebCoreSupport/ChromeClientBlackBerry.cpp:
      * WebCoreSupport/InspectorClientBlackBerry.h:
      * WebCoreSupport/JavaScriptDebuggerBlackBerry.cpp:
      * WebKitSupport/AboutData.h:
      
      Source/WebKit/cf:
      
      * WebCoreSupport/WebInspectorClientCF.cpp:
      (WebInspectorClient::createFrontendSettings):
      
      Source/WebKit/chromium:
      
      * src/ContextMenuClientImpl.cpp:
      * src/EditorClientImpl.cpp:
      * src/InspectorFrontendClientImpl.cpp:
      * src/LocalFileSystemChromium.cpp:
      * src/SpeechInputClientImpl.cpp:
      * src/SpeechRecognitionClientProxy.h:
      * src/WebDevToolsAgentImpl.cpp:
      * src/WebDevToolsFrontendImpl.cpp:
      * src/WebDevToolsFrontendImpl.h:
      * src/WebEntities.h:
      * src/WebFrameImpl.h:
      * src/WorkerFileSystemCallbacksBridge.h:
      * tests/UniscribeHelperTest.cpp:
      
      Source/WebKit/efl:
      
      * WebCoreSupport/ChromeClientEfl.cpp:
      * WebCoreSupport/InspectorClientEfl.cpp:
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      * WebCoreSupport/InspectorClientGtk.cpp:
      * gdom/ConvertToGCharPrivate.h:
      * webkit/webkitsecurityorigin.cpp:
      * webkit/webkitwebdatasource.cpp:
      * webkit/webkitwebhistoryitem.cpp:
      * webkit/webkitwebresource.cpp:
      
      Source/WebKit/mac:
      
      * History/WebHistoryItem.mm:
      * Misc/WebStringTruncator.mm:
      * Plugins/Hosted/NetscapePluginHostManager.h:
      (NetscapePluginHostManager):
      * Plugins/WebPluginController.mm:
      * Storage/WebStorageTrackerClient.mm:
      * WebCoreSupport/WebChromeClient.mm:
      * WebCoreSupport/WebEditorClient.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebCoreSupport/WebIconDatabaseClient.mm:
      * WebCoreSupport/WebInspectorClient.h:
      (WebInspectorClient):
      (WebInspectorFrontendClient):
      * WebView/WebRenderLayer.mm:
      * WebView/WebViewData.h:
      
      Source/WebKit/qt:
      
      * Api/qwebdatabase_p.h:
      * Api/qwebframe_p.h:
      * Api/qwebhistory.cpp:
      * Api/qwebhistoryinterface.cpp:
      * Api/qwebpage_p.h:
      * Api/qwebsettings.cpp:
      * WebCoreSupport/ChromeClientQt.h:
      * WebCoreSupport/InspectorClientQt.cpp:
      
      Source/WebKit/win:
      
      * DOMCSSClasses.cpp:
      * DefaultPolicyDelegate.cpp:
      * MarshallingHelpers.cpp:
      * WebCoreSupport/WebInspectorClient.h:
      * WebDownload.h:
      * WebFrame.h:
      * WebHistoryItem.h:
      * WebIconDatabase.cpp:
      * WebKitDLL.h:
      * WebKitGraphics.cpp:
      * WebKitSystemBits.cpp:
      * WebLocalizableStrings.cpp:
      * WebNotificationCenter.cpp:
      * WebResource.h:
      
      Source/WebKit/wx:
      
      * WebFrame.cpp:
      * WebKitSupport/ChromeClientWx.cpp:
      * WebKitSupport/EditorClientWx.cpp:
      * WebKitSupport/FrameLoaderClientWx.cpp:
      * WebKitSupport/InspectorClientWx.cpp:
      * WebSettings.cpp:
      * WebView.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f5ab024
  7. 06 Aug, 2012 1 commit
    • yutak@chromium.org's avatar
      WebSocket.send() should accept ArrayBufferView · 531e9e74
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=90877
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Accept ArrayBufferView as an argument of WebSocket.send() to comply with recent change
      in specification: <http://html5.org/tools/web-apps-tracker?from=7084&to=7085>.
      
      Once WebSocket.send(ArrayBuffer) was removed from the specification, but added back
      in <http://html5.org/tools/web-apps-tracker?from=7202&to=7203>. Thus the functionality
      of send(ArrayBuffer) is kept as-is.
      
      Tests: http/tests/websocket/tests/hybi/send-arraybufferview.html
             http/tests/websocket/tests/hybi/workers/send-arraybufferview.html
      
      * Modules/websockets/ThreadableWebSocketChannel.h:
      Change the signature of send() to receive offset and length so the clients can send
      subrange of an ArrayBuffer.
      * Modules/websockets/WebSocket.cpp:
      (WebCore::WebSocket::send):
      WebSocket.send(ArrayBufferView) is added, which puts the sub region of the given
      ArrayBuffer into the outgoing frame queue.
      * Modules/websockets/WebSocket.h:
      * Modules/websockets/WebSocket.idl:
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send):
      * Modules/websockets/WebSocketChannel.h:
      (WebSocketChannel):
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::send):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
      Send only necessary part of data to the main thread.
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (WorkerThreadableWebSocketChannel):
      (Bridge):
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocket::send): Accept ArrayBufferView in send().
      * bindings/v8/custom/V8WebSocketCustom.cpp:
      (WebCore::V8WebSocket::sendCallback): Ditto.
      
      Source/WebKit/chromium:
      
      * src/WebSocketImpl.cpp:
      (WebKit::WebSocketImpl::sendArrayBuffer):
      Apply change in function signature of WebSocketChannel::send().
      
      LayoutTests:
      
      Two tests are added to check whether WebSocket.send(ArrayBufferView) works in the
      main thread and in a worker.
      
      * http/tests/websocket/tests/hybi/send-arraybufferview-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-arraybufferview.html: Added.
      * http/tests/websocket/tests/hybi/workers/resources/send-arraybufferview.js: Added.
      * http/tests/websocket/tests/hybi/workers/send-arraybufferview-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/send-arraybufferview.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      531e9e74
  8. 10 Jul, 2012 1 commit
    • abarth@webkit.org's avatar
      WebSocket: Remove hixie76 protocol implementation · b3d37027
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=88620
      
      Patch by Yuta Kitamura <yutak@chromium.org> on 2012-07-10
      Reviewed by Adam Barth.
      
      Source/WebCore: 
      
      This change removes code that implements the old hixie-76 WebSocket protocol which
      isn't used anymore.
      
      No new tests are added, because the code using the current protocol should not be
      affected. Tests for hixie-76 protocol are skipped (these tests will be removed
      eventually).
      
      * Modules/websockets/ThreadableWebSocketChannel.h:
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didCreateWebSocketChannel):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      (ThreadableWebSocketChannelClientWrapper):
      * Modules/websockets/WebSocket.cpp:
      (WebCore::WebSocket::WebSocket):
      (WebCore::WebSocket::connect):
      (WebCore::WebSocket::send):
      (WebCore::WebSocket::protocol):
      (WebCore::WebSocket::extensions):
      (WebCore::WebSocket::binaryType):
      (WebCore::WebSocket::setBinaryType):
      (WebCore::WebSocket::didReceiveMessageError):
      (WebCore::WebSocket::didClose):
      (WebCore::WebSocket::getFramingOverhead):
      * Modules/websockets/WebSocket.h:
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::WebSocketChannel):
      (WebCore::WebSocketChannel::connect):
      (WebCore::WebSocketChannel::send):
      (WebCore::WebSocketChannel::fail):
      (WebCore::WebSocketChannel::didCloseSocketStream):
      (WebCore::WebSocketChannel::processBuffer):
      (WebCore::WebSocketChannel::startClosingHandshake):
      (WebCore::WebSocketChannel::enqueueTextFrame):
      (WebCore::WebSocketChannel::enqueueRawFrame):
      (WebCore::WebSocketChannel::enqueueBlobFrame):
      (WebCore::WebSocketChannel::processOutgoingFrameQueue):
      (WebCore::WebSocketChannel::abortOutgoingFrameQueue):
      * Modules/websockets/WebSocketChannel.h:
      (WebSocketChannel):
      * Modules/websockets/WebSocketHandshake.cpp:
      (WebCore::WebSocketHandshake::WebSocketHandshake):
      (WebCore::WebSocketHandshake::clientHandshakeMessage):
      (WebCore::WebSocketHandshake::clientHandshakeRequest):
      (WebCore::WebSocketHandshake::readServerHandshake):
      (WebCore::WebSocketHandshake::checkResponseHeaders):
      * Modules/websockets/WebSocketHandshake.h:
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::WorkerContextDidInitializeTask::create):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerContextDidInitializeTask::WorkerContextDidInitializeTask):
      (WorkerThreadableWebSocketChannel::WorkerContextDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (WorkerThreadableWebSocketChannel):
      (Peer):
      (Bridge):
      
      LayoutTests: 
      
      Skip tests under hixie76 directory in all ports, because hixie-76 protocol support is
      being dropped. These tests will be removed later.
      
      * platform/chromium/TestExpectations:
      * platform/gtk/TestExpectations:
      * platform/mac/TestExpectations:
      * platform/qt/TestExpectations:
      * platform/win/Skipped:
      * platform/wk2/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3d37027
  9. 14 Jun, 2012 1 commit
    • commit-queue@webkit.org's avatar
      [WebSocket] WebSocket object in Worker Context should fire error event when it fails connection. · 02093c4f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=88744
      
      Patch by Li Yin <li.yin@intel.com> on 2012-06-14
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Spec:http://dev.w3.org/html5/websockets/#feedback-from-the-protocol
      The behavior of firing error event in Document has been implemented in Committed r117944.
      WebSocket in WorkerContext is also required to fire error event.
      
      Test: http/tests/websocket/tests/hybi/workers/close.html
      
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageError):
      (WebCore):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageErrorCallback):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      (ThreadableWebSocketChannelClientWrapper):
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::workerContextDidReceiveMessageError):
      (WebCore):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveMessageError):
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (Peer):
      
      LayoutTests:
      
      * http/tests/websocket/tests/hybi/workers/close-expected.txt:
      * http/tests/websocket/tests/hybi/workers/resources/close.js:
      (testPassed):
      (runCodeTest.else.ws.onerror):
      (runCodeTest):
      (runReasonTest.else.ws.onerror):
      (runReasonTest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02093c4f
  10. 15 Apr, 2012 1 commit
    • yutak@chromium.org's avatar
      Leak in WebSocketChannel with workers/worker-reload.html (part 2) · 2aa43654
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=83749
      
      Reviewed by David Levin.
      
      Source/WebCore:
      
      Second attempt to remove leaks around WorkerThreadableWebSocketChannel.
      
      No new tests, as this patch does not impose any functional change.
      
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::failedWebSocketChannelCreation):
      (WebCore::ThreadableWebSocketChannelClientWrapper::setFailedWebSocketChannelCreation):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      Add a boolean flag indicating whether Bridge::initialize() has exited without receiving
      a pointer to the peer object.
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::WorkerContextDidInitializeTask::create):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerContextDidInitializeTask::WorkerContextDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerContextDidInitializeTask::performTask):
      Kick mainThreadDestroy() to delete the peer if the bridge has failed to receive
      a pointer to the peer (waitForMethodCompletion() exited due to message queue's
      termination).
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::initialize):
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (WorkerThreadableWebSocketChannel):
      Make WorkerContextDidInitializeTask an inner class of WorkerThreadableWebSocketChannel
      so it can refer WorkerThreadableWebSocketChannel's static member function (mainThreadDestroy()).
      
      Source/WebKit/chromium:
      
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::postTaskForModeToWorkerContext):
      Correctly propagate the return value of postTaskForModeToWorkerContext().
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2aa43654
  11. 05 Apr, 2012 1 commit
  12. 03 Apr, 2012 1 commit
    • yutak@chromium.org's avatar
      Crash in WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel · 42c14bbd
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=82873
      
      Reviewed by David Levin.
      
      Source/WebCore:
      
      WorkerThreadableWebSocketChannel::Bridge should properly handle the cases where inter-thread
      callback is not called due to the termination of the worker run loop. Specifically, the bridge
      should not send its "this" pointer to the main thread, because the bridge object may be freed
      in the worker thread before the main thread starts to process.
      
      Test: http/tests/websocket/tests/hybi/workers/worker-reload.html
      
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::peer):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didCreateWebSocketChannel):
      Renamed from setUseHixie76Protocol, as this funtion now also sets m_peer.
      Sets m_syncMethodDone to true, because this function is called in the end of
      synchronous wait of Bridge::initialize().
      (WebCore::ThreadableWebSocketChannelClientWrapper::clearPeer):
      (WebCore::ThreadableWebSocketChannelClientWrapper::useHixie76Protocol):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      Add WorkerThreadableWebSocketChannel::Peer which is initialized after the creation of
      WebSocketChannel in the main thread.
      (ThreadableWebSocketChannelClientWrapper):
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
      Don't do synchronous wait in the constructor, as a member function may be called
      during the wait before the constructor finishes. The meat of the constructor has
      moved to initialize() function.
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::Bridge):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::~Bridge):
      (WorkerContextDidInitializeTask):
      (WebCore::WorkerContextDidInitializeTask::create):
      (WebCore::WorkerContextDidInitializeTask::~WorkerContextDidInitializeTask):
      (WebCore::WorkerContextDidInitializeTask::WorkerContextDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::initialize):
      Don't pass "this" object to the main thread. Receive the pointer to the peer object
      via ThreadableWebSocketChannelClientWrapper which is ThreadSafeRefCounted<>.
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::connect):
      m_peer may be NULL, and we should not do anything in that case.
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::bufferedAmount):
      (WebCore::WorkerThreadableWebSocketChannel::mainThreadClose):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::close):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::fail):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::suspend):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::resume):
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (WorkerThreadableWebSocketChannel):
      (WebCore::WorkerThreadableWebSocketChannel::refThreadableWebSocketChannel):
      (WebCore::WorkerThreadableWebSocketChannel::derefThreadableWebSocketChannel):
      (Bridge):
      * workers/DefaultSharedWorkerRepository.cpp:
      (SharedWorkerProxy):
      (WebCore::SharedWorkerProxy::postTaskForModeToWorkerContext):
      * workers/WorkerLoaderProxy.h:
      (WorkerLoaderProxy::postTaskForModeToWorkerContext):
      Return bool to indicate whether postTask was successful or not. This is necessary
      to avoid memory leaks of Peer object in Bridge::initialize() function.
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerMessagingProxy::postTaskForModeToWorkerContext):
      * workers/WorkerMessagingProxy.h:
      (WorkerMessagingProxy):
      
      Source/WebKit/chromium:
      
      Change the function signature of WorkerLoaderProxy::postTaskForModeToWorkerContext().
      
      * src/WebSharedWorkerImpl.cpp:
      (WebKit::WebSharedWorkerImpl::postTaskForModeToWorkerContext):
      * src/WebSharedWorkerImpl.h:
      (WebSharedWorkerImpl):
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::postTaskForModeToWorkerContext):
      * src/WebWorkerClientImpl.h:
      (WebWorkerClientImpl):
      
      LayoutTests:
      
      * http/tests/websocket/tests/hybi/workers/resources/worker-reload-iframe.html: Added.
      * http/tests/websocket/tests/hybi/workers/resources/worker-reload.js: Added.
      * http/tests/websocket/tests/hybi/workers/worker-reload-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/worker-reload.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113138 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42c14bbd
  13. 06 Mar, 2012 2 commits
    • bashi@chromium.org's avatar
      [WebSocket] Introduce ThreadableWebSocketChannel::SendResult · 73b6cbb6
      bashi@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80356
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Introduced ThreadableWebSocketChannel::SendResult type so that
      WebSocketChannel can pass the validation result.
      
      No new test. No changes in behavior.
      
      * Modules/websockets/ThreadableWebSocketChannel.h: Added SendResult.
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::sendRequestResult): Use ThreadableWebSocketChannel::SendResult instead of bool.
      (WebCore::ThreadableWebSocketChannelClientWrapper::setSendRequestResult): Ditto.
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      (ThreadableWebSocketChannelClientWrapper):
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send): Use ThreadableWebSocketChannel::SendResult instead of bool. Pass Cstring to enqueTextFrame instead of String.
      (WebCore::WebSocketChannel::enqueueTextFrame): Ditto.
      (WebCore::WebSocketChannel::processOutgoingFrameQueue): Ditto.
      * Modules/websockets/WebSocketChannel.h:
      (WebSocketChannel):
      (QueuedFrame): Changed the type of stringData from String to CString.
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::send): Use ThreadableWebSocketChannel::SendResult instead of bool.
      (WebCore::workerContextDidSend): Ditto.
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send): Ditto.
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send): Ditto.
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (WorkerThreadableWebSocketChannel): ditto.
      (Bridge): Ditto.
      
      Source/WebKit/chromium:
      
      * src/WebSocketImpl.cpp:
      (WebKit::WebSocketImpl::sendText): Checks whether the return value of send() is ThreadableWebSocketChannel::SendSuccess.
      (WebKit::WebSocketImpl::sendArrayBuffer): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@110012 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73b6cbb6
    • senorblanco@chromium.org's avatar
      Unreviewed, rolling out r109832. · 5b8bb568
      senorblanco@chromium.org authored
      http://trac.webkit.org/changeset/109832
      https://bugs.webkit.org/show_bug.cgi?id=80356
      
      Broke WebSocket tests on Chrome Mac and Linux
      
      * Modules/websockets/ThreadableWebSocketChannel.h:
      (ThreadableWebSocketChannel):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::sendRequestResult):
      (WebCore::ThreadableWebSocketChannelClientWrapper::setSendRequestResult):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      (ThreadableWebSocketChannelClientWrapper):
      * Modules/websockets/WebSocket.cpp:
      (WebCore::WebSocket::send):
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send):
      (WebCore::WebSocketChannel::enqueueTextFrame):
      (WebCore::WebSocketChannel::processOutgoingFrameQueue):
      * Modules/websockets/WebSocketChannel.h:
      (WebSocketChannel):
      (QueuedFrame):
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::send):
      (WebCore::workerContextDidSend):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (WorkerThreadableWebSocketChannel):
      (Bridge):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b8bb568
  14. 05 Mar, 2012 1 commit
    • bashi@chromium.org's avatar
      [WebSocket] Introduce ThreadableWebSocketChannel::SendResult · 936d8bf9
      bashi@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80356
      
      Reviewed by Kent Tamura.
      
      Introduced ThreadableWebSocketChannel::SendResult type so that
      WebSocketChannel can pass the validation result.
      
      No new test. No changes in behavior.
      
      * Modules/websockets/ThreadableWebSocketChannel.h: Added SendResult.
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::sendRequestResult): Use ThreadableWebSocketChannel::SendResult instead of bool.
      (WebCore::ThreadableWebSocketChannelClientWrapper::setSendRequestResult): Ditto.
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      (ThreadableWebSocketChannelClientWrapper):
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send): Use ThreadableWebSocketChannel::SendResult instead of bool. Pass Cstring to enqueTextFrame instead of String.
      (WebCore::WebSocketChannel::enqueueTextFrame): Ditto.
      (WebCore::WebSocketChannel::processOutgoingFrameQueue): Ditto.
      * Modules/websockets/WebSocketChannel.h:
      (WebSocketChannel):
      (QueuedFrame): Changed the type of stringData from String to CString.
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::send): Use ThreadableWebSocketChannel::SendResult instead of bool.
      (WebCore::workerContextDidSend): Ditto.
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send): Ditto.
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send): Ditto.
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (WorkerThreadableWebSocketChannel): ditto.
      (Bridge): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      936d8bf9
  15. 26 Feb, 2012 1 commit
    • abarth@webkit.org's avatar
      Move websockets to Modules/websockets · 1b18b622
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79598
      
      Reviewed by Eric Seidel.
      
      Nowadays, the only ENABLE(WEB_SOCKETS) ifdef in WebCore proper is in
      WebCore::Settings, and that will be removed (soon?) once Apple drops
      support for the old WebSockets protocol.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Modules/websockets: Copied from Source/WebCore/websockets.
      * Target.pri:
      * WebCore.gyp/WebCore.gyp:
      * WebCore.gypi:
      * WebCore.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcproj/WebCoreCommon.vsprops:
      * WebCore.vcproj/copyForwardingHeaders.cmd:
      * WebCore.xcodeproj/project.pbxproj:
      * websockets: Removed.
      * websockets/CloseEvent.h: Removed.
      * websockets/CloseEvent.idl: Removed.
      * websockets/DOMWindowWebSocket.idl: Removed.
      * websockets/ThreadableWebSocketChannel.cpp: Removed.
      * websockets/ThreadableWebSocketChannel.h: Removed.
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp: Removed.
      * websockets/ThreadableWebSocketChannelClientWrapper.h: Removed.
      * websockets/WebSocket.cpp: Removed.
      * websockets/WebSocket.h: Removed.
      * websockets/WebSocket.idl: Removed.
      * websockets/WebSocketChannel.cpp: Removed.
      * websockets/WebSocketChannel.h: Removed.
      * websockets/WebSocketChannelClient.h: Removed.
      * websockets/WebSocketDeflater.cpp: Removed.
      * websockets/WebSocketDeflater.h: Removed.
      * websockets/WebSocketExtensionDispatcher.cpp: Removed.
      * websockets/WebSocketExtensionDispatcher.h: Removed.
      * websockets/WebSocketExtensionProcessor.h: Removed.
      * websockets/WebSocketFrame.h: Removed.
      * websockets/WebSocketHandshake.cpp: Removed.
      * websockets/WebSocketHandshake.h: Removed.
      * websockets/WebSocketHandshakeRequest.cpp: Removed.
      * websockets/WebSocketHandshakeRequest.h: Removed.
      * websockets/WebSocketHandshakeResponse.cpp: Removed.
      * websockets/WebSocketHandshakeResponse.h: Removed.
      * websockets/WorkerThreadableWebSocketChannel.cpp: Removed.
      * websockets/WorkerThreadableWebSocketChannel.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b18b622
  16. 14 Feb, 2012 1 commit
    • bashi@chromium.org's avatar
      [WebSocket] Add extension attribute support · afb40ae5
      bashi@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78557
      
      Source/WebCore:
      
      Implement WebSocket "extensions" attribute that holds a list of
      extension the server accepted. No change in behavior at this time
      because we don't send any extension on handshake.
      
      Reviewed by Kent Tamura.
      
      No new tests. http/tests/websocket/tests/hybi/extensions.html checks the value of this attribute.
      
      * websockets/ThreadableWebSocketChannel.h: Add extensions().
      (ThreadableWebSocketChannel):
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::extensions): Added.
      (WebCore):
      (WebCore::ThreadableWebSocketChannelClientWrapper::setExtensions): Added.
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      (ThreadableWebSocketChannelClientWrapper):
      * websockets/WebSocket.cpp: Added m_extensions member variable.
      (WebCore::WebSocket::WebSocket):
      (WebCore::WebSocket::extensions): Returns m_extensions.
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::extensions): Added.
      (WebCore):
      * websockets/WebSocketChannel.h:
      (WebSocketChannel):
      * websockets/WebSocketExtensionDispatcher.cpp:
      (WebCore::WebSocketExtensionDispatcher::fail): Added.
      (WebCore::WebSocketExtensionDispatcher::processHeaderValue): Stores accepted extensions.
      (WebCore::WebSocketExtensionDispatcher::acceptedExtensions): Added.
      (WebCore):
      (WebCore::WebSocketExtensionDispatcher::acceptedExtensions): Added.
      * websockets/WebSocketExtensionDispatcher.h:
      (WebSocketExtensionDispatcher):
      * websockets/WebSocketHandshake.cpp:
      (WebCore::WebSocketHandshake::acceptedExtensions): Added.
      (WebCore):
      * websockets/WebSocketHandshake.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::extensions): Added.
      (WebCore):
      (WebCore::workerContextDidConnect): Calls ThreadableWebSocketChannelClientWrapper::setExtensions().
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didConnect): Passes extensions as an argument.
      * websockets/WorkerThreadableWebSocketChannel.h:
      (WorkerThreadableWebSocketChannel):
      
      Source/WebKit/chromium:
      
      Add WebSocketExtensionDispatcher::acceptedExtensions() checks.
      
      Reviewed by Kent Tamura.
      
      * tests/WebSocketExtensionDispatcherTest.cpp:
      (WebCore::TEST_F):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107769 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      afb40ae5
  17. 30 Nov, 2011 2 commits
    • commit-queue@webkit.org's avatar
      Add OVERRIDE to WebSocket related sources for safe inheritances. · b221f113
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73308
      
      Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2011-11-30
      Reviewed by Kent Tamura.
      
      No new tests because this change contains no functional change.
      
      * platform/network/chromium/SocketStreamHandle.h:
      * websockets/CloseEvent.h:
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b221f113
    • commit-queue@webkit.org's avatar
      Add didUpdateBufferedAmount() callback to SocketStreamHandleClient · 742c1747
      commit-queue@webkit.org authored
      and WebSocketChannelClient.
      https://bugs.webkit.org/show_bug.cgi?id=73290
      
      Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2011-11-30
      Reviewed by Kent Tamura.
      
      No new tests because this callback is not used in WebCore.
      
      * platform/network/SocketStreamHandleBase.cpp: Invoke new callback.
      (WebCore::SocketStreamHandleBase::send):
      (WebCore::SocketStreamHandleBase::sendPendingData):
      * platform/network/SocketStreamHandleBase.h: Change returning value type.
      (WebCore::SocketStreamHandleBase::bufferedAmount):
      * platform/network/SocketStreamHandleClient.h: Add new callback definition.
      (WebCore::SocketStreamHandleClient::didUpdateBufferedAmount):
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp: Add new callback handling.
      (WebCore::ThreadableWebSocketChannelClientWrapper::didUpdateBufferedAmount):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didUpdateBufferedAmountCallback):
      * websockets/ThreadableWebSocketChannelClientWrapper.h: Add new callback inheritance and its helper method.
      * websockets/WebSocket.cpp: Add new callback handling.
      (WebCore::WebSocket::didUpdateBufferedAmount):
      * websockets/WebSocket.h: Add new callback inheritance.
      * websockets/WebSocketChannel.cpp: Add new callback handling.
      (WebCore::WebSocketChannel::didUpdateBufferedAmount):
      * websockets/WebSocketChannel.h: Add new callback inheritacne.
      * websockets/WebSocketChannelClient.h: Add new callback definition.
      (WebCore::WebSocketChannelClient::didUpdateBufferedAmount):
      * websockets/WorkerThreadableWebSocketChannel.cpp: Add new callback handling.
      (WebCore::workerContextDidUpdateBufferedAmount):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didUpdateBufferedAmount):
      * websockets/WorkerThreadableWebSocketChannel.h: Add new callback inheritance and its helper method.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      742c1747
  18. 03 Sep, 2011 1 commit
    • yutak@chromium.org's avatar
      WebSocket: Send ArrayBuffer as WebSocket binary message · 4b47d620
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67477
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Tests: http/tests/websocket/tests/hybi/send-arraybuffer.html
             http/tests/websocket/tests/hybi/workers/send-arraybuffer.html
             http/tests/websocket/tests/hybi/bufferedAmount-after-close.html (updated)
      
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocket::send):
      * bindings/v8/custom/V8WebSocketCustom.cpp:
      (WebCore::V8WebSocket::sendCallback):
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::sendRequestResult):
      (WebCore::ThreadableWebSocketChannelClientWrapper::setSendRequestResult):
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      Rename "sent" to "sendRequestResult" to clarify the meaning. Messages from the script may not
      be sent immediately, thus the return value of WebSocketChannel::send() indicates whether the
      message has been queued successfully, rather than whether the message has been sent or not.
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::send):
      Case of sending "[object ArrayBuffer]" is covered by an existing test
      http/tests/websocket/tests/{hybi,hixie76}/send-object.html.
      * websockets/WebSocket.h:
      * websockets/WebSocket.idl:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::send):
      (WebCore::workerContextDidSend):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
      (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendArrayBuffer):
      Construct an ArrayBuffer from the data on Vector<char>.
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
      Copy the content into temporary buffer of Vector<char>, and send it to the main thread.
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      LayoutTests:
      
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close-expected.txt:
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close.html:
      Add tests to send ArrayBuffers.
      * http/tests/websocket/tests/hybi/check-binary-messages_wsh.py:
      Renamed from LayoutTests/http/tests/websocket/tests/hybi/send-blob_wsh.py, because this handler
      is used from send-blob.html and send-arraybuffer.html.
      * http/tests/websocket/tests/hybi/send-arraybuffer-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-arraybuffer.html:
      Added. Send three small binary messages as ArrayBuffers.
      * http/tests/websocket/tests/hybi/send-blob.html:
      * http/tests/websocket/tests/hybi/workers/resources/check-binary-messages_wsh.py:
      Renamed from LayoutTests/http/tests/websocket/tests/hybi/workers/resources/send-blob_wsh.py.
      * http/tests/websocket/tests/hybi/workers/resources/send-arraybuffer.js:
      Added. Same as send-arraybuffer.html, except that this test is run on the worker.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob.js:
      Removed the definition of unnecessary function startsWith().
      * http/tests/websocket/tests/hybi/workers/send-arraybuffer-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/send-arraybuffer.html: Added
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b47d620
  19. 02 Sep, 2011 4 commits
    • yutak@chromium.org's avatar
      WebSocket: Send Blob as WebSocket binary message · 7fe8a733
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67465
      
      Reviewed by Kent Tamura.
      
      Re-lands r94399 with a fix for Leopard builds.
      
      Source/WebCore:
      
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocket::send):
      * bindings/v8/custom/V8WebSocketCustom.cpp:
      (WebCore::V8WebSocket::sendCallback):
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::send):
      * websockets/WebSocket.h:
      * websockets/WebSocket.idl:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::send):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
      (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendBlob):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      LayoutTests:
      
      * http/tests/websocket/tests/hixie76/send-empty-expected.txt: Added.
      * http/tests/websocket/tests/hixie76/send-empty.html: Added.
      * http/tests/websocket/tests/hixie76/send-object-expected.txt: Added.
      * http/tests/websocket/tests/hixie76/send-object.html: Added.
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close-expected.txt:
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close.html:
      * http/tests/websocket/tests/hybi/send-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-blob.html: Added.
      * http/tests/websocket/tests/hybi/send-blob_wsh.py: Added.
      * http/tests/websocket/tests/hybi/send-empty-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-empty.html: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-fail-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-fail.html: Added.
      * http/tests/websocket/tests/hybi/send-file-blob.html: Added.
      * http/tests/websocket/tests/hybi/send-file-blob_wsh.py: Added.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob.js: Added.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob_wsh.py: Added.
      * http/tests/websocket/tests/hybi/workers/send-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/send-blob.html: Added.
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fe8a733
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r94399. · df47c988
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/94399
      https://bugs.webkit.org/show_bug.cgi?id=67471
      
      Broke Leopard build (Requested by yutak on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-09-02
      
      Source/WebCore:
      
      * bindings/js/JSWebSocketCustom.cpp:
      * bindings/v8/custom/V8WebSocketCustom.cpp:
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/WebSocket.cpp:
      * websockets/WebSocket.h:
      * websockets/WebSocket.idl:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      LayoutTests:
      
      * http/tests/websocket/tests/hixie76/send-empty-expected.txt: Removed.
      * http/tests/websocket/tests/hixie76/send-empty.html: Removed.
      * http/tests/websocket/tests/hixie76/send-object-expected.txt: Removed.
      * http/tests/websocket/tests/hixie76/send-object.html: Removed.
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close-expected.txt:
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close.html:
      * http/tests/websocket/tests/hybi/send-blob-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-blob.html: Removed.
      * http/tests/websocket/tests/hybi/send-blob_wsh.py: Removed.
      * http/tests/websocket/tests/hybi/send-empty-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-empty.html: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob-fail-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob-fail.html: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob.html: Removed.
      * http/tests/websocket/tests/hybi/send-file-blob_wsh.py: Removed.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob.js: Removed.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob_wsh.py: Removed.
      * http/tests/websocket/tests/hybi/workers/send-blob-expected.txt: Removed.
      * http/tests/websocket/tests/hybi/workers/send-blob.html: Removed.
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df47c988
    • yutak@chromium.org's avatar
      WebSocket: Send Blob as WebSocket binary message · 729efea7
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67465
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Tests: http/tests/websocket/tests/hixie76/send-empty.html
             http/tests/websocket/tests/hixie76/send-object.html
             http/tests/websocket/tests/hybi/send-blob.html
             http/tests/websocket/tests/hybi/send-empty.html
             http/tests/websocket/tests/hybi/send-file-blob-fail.html
             http/tests/websocket/tests/hybi/send-file-blob.html
             http/tests/websocket/tests/hybi/workers/send-blob.html
             http/tests/websocket/tests/hybi/bufferedAmount-after-close.html (updated)
      
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocket::send):
      * bindings/v8/custom/V8WebSocketCustom.cpp:
      (WebCore::V8WebSocket::sendCallback):
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::send):
      * websockets/WebSocket.h:
      * websockets/WebSocket.idl:
      Fixing code generator did not sound easy, because there are some classes depending on
      broken behavior of current code generator (one such example is CanvasRenderingContext2D).
      As a temporary workaround, new custom handlers for send() are added.
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::send):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::send):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
      (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendBlob):
      A Blob can be deserialized from url, type and size.
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
      KURL, String and long long (corresponding to url, type and size, respectively) can be passed
      safely across threads.
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      LayoutTests:
      
      * http/tests/websocket/tests/hixie76/send-empty-expected.txt: Added.
      * http/tests/websocket/tests/hixie76/send-empty.html: Added.
      * http/tests/websocket/tests/hixie76/send-object-expected.txt: Added.
      * http/tests/websocket/tests/hixie76/send-object.html: Added.
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close-expected.txt:
      * http/tests/websocket/tests/hybi/bufferedAmount-after-close.html:
      Updated. Added tests to send Blobs.
      * http/tests/websocket/tests/hybi/send-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-blob.html:
      Added. Send three Blobs each of which contains a small binary message.
      * http/tests/websocket/tests/hybi/send-blob_wsh.py:
      Added. receive_message() returns a unicode value if the received message was text, or
      a str value if the message was binary.
      * http/tests/websocket/tests/hybi/send-empty-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-empty.html: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-fail-expected.txt: Added.
      * http/tests/websocket/tests/hybi/send-file-blob-fail.html:
      Added. If we delete a file before reading it, FileReaderLoader reliably fails.
      * http/tests/websocket/tests/hybi/send-file-blob.html:
      Added. Create a File and try to send it as a Blob.
      * http/tests/websocket/tests/hybi/send-file-blob_wsh.py: Added.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob.js:
      Added. Same as send-blob.html above.
      * http/tests/websocket/tests/hybi/workers/resources/send-blob_wsh.py:
      Added. Same as send-blob_wsh.py above.
      * http/tests/websocket/tests/hybi/workers/send-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/send-blob.html: Added.
      * platform/gtk/Skipped:
      send-file-blob.html and send-file-blob-fail.html depend on availability of File API.
      * platform/mac/Skipped: Ditto.
      * platform/qt/Skipped: Ditto.
      * platform/win/Skipped: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      729efea7
    • commit-queue@webkit.org's avatar
      [WebSocket] Implement WebSocket::close() code and reason handling. · a5226de7
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66925
      
      Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2011-09-01
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Tests: http/tests/websocket/tests/hybi/close.html
             http/tests/websocket/tests/hybi/workers/close.html
      
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocket::close):
      * bindings/v8/custom/V8WebSocketCustom.cpp:
      (WebCore::V8WebSocket::closeCallback):
      Add custom bridge for WebSocket::close().
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::close):
      * websockets/WebSocket.h:
      * websockets/WebSocket.idl:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::close):
      Add code and reason arguments handling.
      (WebCore::WebSocketChannel::startClosingHandshake):
      Send a close frame without code and reason on server initiated closing handshakes.
      (WebCore::WebSocketChannel::processFrame):
      (WebCore::WebSocketChannel::processFrameHixie76):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::close):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::close):
      (WebCore::WorkerThreadableWebSocketChannel::mainThreadClose):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::close):
      * websockets/WorkerThreadableWebSocketChannel.h:
      Add code and reason arguments handling.
      
      LayoutTests:
      
      * http/tests/websocket/tests/hybi/close-expected.txt: Added.
      * http/tests/websocket/tests/hybi/close.html: Added.
      * http/tests/websocket/tests/hybi/close_wsh.py: Added.
      * http/tests/websocket/tests/hybi/workers/close-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/close.html: Added.
      * http/tests/websocket/tests/hybi/workers/resources/close.js: Added.
      (postResult):
      (testFailed):
      (debug):
      (shouldBe):
      (shouldBeTrue):
      (shouldBeFalse):
      (handleOpen):
      (handleError):
      (handleClose):
      (handleMessage):
      (setDefaultHandlers):
      (runCodeTest.else.ws.onclose):
      (runCodeTest):
      (runInvalidStringTest):
      (runReasonTest.else.ws.onclose):
      (runReasonTest):
      (runCodeAndReasonTest.):
      (runCodeAndReasonTest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5226de7
  20. 29 Aug, 2011 1 commit
    • yutak@chromium.org's avatar
      WebSocket: Receive binary message as Blob · eadc20d4
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67115
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Make WebSocketChannel be able to receive WebSocket binary messages and deliver them via
      didReceiveBinaryData() callback of WebSocketChannelClient.
      
      Tests: http/tests/websocket/tests/hybi/fragmented-binary-frames.html
             http/tests/websocket/tests/hybi/receive-blob.html
             http/tests/websocket/tests/hybi/workers/receive-blob.html
      
      * bindings/js/JSMessageEventCustom.cpp:
      (WebCore::JSMessageEvent::data): Convert Blob to JSValue.
      * bindings/v8/custom/V8MessageEventCustom.cpp:
      (WebCore::V8MessageEvent::dataAccessorGetter): Convert Blob to v8::Value.
      * dom/MessageEvent.cpp:
      (WebCore::MessageEvent::MessageEvent):
      * dom/MessageEvent.h:
      Added DataTypeBlob and Blob-related functions.
      (WebCore::MessageEvent::create):
      (WebCore::MessageEvent::dataAsBlob):
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryData):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryDataCallback):
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::didReceiveBinaryData):
      If binaryType attribute is "blob", construct a Blob using BlobData filled with the given
      binary message.
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::processFrame):
      Create continuousFrameData as OwnPtr<> rather than stack-allocated value so we can easily
      pass it to didReceiveBinaryData() callback.
      Save the content of a fragmented message even if it is a binary opcode.
      * websockets/WebSocketChannelClient.h:
      (WebCore::WebSocketChannelClient::didReceiveBinaryData):
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::workerContextDidReceiveBinaryData):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveBinaryData):
      Pass binaryData as PassOwnPtr<Vector<char> > to deliver the value efficiently (without
      copying the content) across threads.
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      LayoutTests:
      
      * http/tests/websocket/tests/hybi/binary-frames_wsh.py: Added. Used from receive-blob.html.
      * http/tests/websocket/tests/hybi/fragmented-binary-frames-expected.txt: Added.
      * http/tests/websocket/tests/hybi/fragmented-binary-frames.html:
      Added. The content of this test is almost identical to receive-blob.html.
      * http/tests/websocket/tests/hybi/fragmented-binary-frames_wsh.py: Added.
      * http/tests/websocket/tests/hybi/receive-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/receive-blob.html:
      Added. It is a bit complicated to validate the content of a Blob, because a Blob must be read
      asynchronously. FileReader is used to read a blob as an ArrayBuffer, each byte of which is
      compared with the expected result.
      * http/tests/websocket/tests/hybi/workers/receive-blob-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/receive-blob.html: Added.
      * http/tests/websocket/tests/hybi/workers/resources/binary-frames_wsh.py:
      Added. Same as above binary-frames_wsh.py.
      * http/tests/websocket/tests/hybi/workers/resources/receive-blob.js: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eadc20d4
  21. 19 Aug, 2011 1 commit
    • commit-queue@webkit.org's avatar
      [WebSocket] CloseEvent's code and reason properties support. · f7b7ff75
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66362
      
      Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2011-08-19
      Reviewed by Kent Tamura.
      
      Current WebSocket implementation miss code and reason properties
      in CloseEvent. This change expose incoming closing frame's code
      and reason to JavaScript API.
      
      Source/WebCore:
      
      Tests: http/tests/websocket/tests/hybi/close-code-and-reason.html
             http/tests/websocket/tests/hybi/workers/close-code-and-reason.html
      
      * websockets/CloseEvent.h:
      (WebCore::CloseEvent::initCloseEvent):
      (WebCore::CloseEvent::code):
      (WebCore::CloseEvent::reason):
      (WebCore::CloseEvent::CloseEvent):
      * websockets/CloseEvent.idl:
      Add code and reason properies.
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::didConnect):
      (WebCore::WebSocket::didClose):
      * websockets/WebSocket.h:
      Add implement to handle code and reason.
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::WebSocketChannel):
      (WebCore::WebSocketChannel::didCloseSocketStream):
      (WebCore::WebSocketChannel::processFrame):
      * websockets/WebSocketChannel.h:
      Add closing frame payload parser.
      * websockets/WebSocketChannelClient.h:
      (WebCore::WebSocketChannelClient::didClose):
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::workerContextDidClose):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
      * websockets/WorkerThreadableWebSocketChannel.h:
      Add implement to handle code and reason.
      
      LayoutTests:
      
      * http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt: Added.
      * http/tests/websocket/tests/hybi/close-code-and-reason.html: Added.
      * http/tests/websocket/tests/hybi/close-code-and-reason_wsh.py: Added.
      * http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/close-code-and-reason.html: Added.
      * http/tests/websocket/tests/hybi/workers/resources/close-code-and-reason.js: Added.
      (postResult):
      (ws.onopen):
      (ws.onmessage):
      (ws.onclose):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f7b7ff75
  22. 12 Aug, 2011 1 commit
    • yutak@chromium.org's avatar
      WebSocket: Implement "protocol" attribute · 4d0c313f
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65248
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Tests: http/tests/websocket/tests/hybi/no-subprotocol.html (added)
             http/tests/websocket/tests/hybi/set-protocol.html (added)
             http/tests/websocket/tests/hybi/workers/no-subprotocol.html (added)
             http/tests/websocket/tests/hixie76/undefined-attributes.html (updated)
             http/tests/websocket/tests/hybi/multiple-subprotocols.html (updated)
             http/tests/websocket/tests/hybi/workers/multiple-subprotocols.html (updated)
      
      * websockets/ThreadableWebSocketChannel.h:
      Added subprotocol() function. This function is named differently from the counterpart of
      WebSocket class, because the name "protocol" can be confused with the WebSocket protocol.
      Added m_useHixie76Protocol and m_subprotocol, because these value may be used after
      m_channel has been released. Using bool should be fine, because boolean literals do not
      appear in ambiguous context.
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::subprotocol):
      (WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol):
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::WebSocket):
      (WebCore::WebSocket::connect):
      (WebCore::WebSocket::protocol):
      The "protocol" attribute is available only when the hybi-10 protocol is chosen.
      (WebCore::WebSocket::binaryType):
      (WebCore::WebSocket::setBinaryType):
      (WebCore::WebSocket::didConnect):
      * websockets/WebSocket.h:
      * websockets/WebSocket.idl:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::subprotocol):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::subprotocol):
      (WebCore::workerContextDidConnect):
      Subprotocol value is saved in the client wrapper object after the WebSocket connection is
      established.
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didConnect):
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      LayoutTests:
      
      * http/tests/websocket/tests/hixie76/undefined-attributes-expected.txt:
      * http/tests/websocket/tests/hixie76/undefined-attributes.html:
      Added a test to check "protocol" attribute.
      * http/tests/websocket/tests/hybi/multiple-subprotocols-expected.txt:
      * http/tests/websocket/tests/hybi/multiple-subprotocols.html:
      The attribute should return an empty string at first. After the connection is established,
      it should return the value of Sec-WebSocket-Protocol header in the server's handshake response.
      * http/tests/websocket/tests/hybi/no-subprotocol-expected.txt: Added.
      * http/tests/websocket/tests/hybi/no-subprotocol.html: Added.
      * http/tests/websocket/tests/hybi/set-protocol-expected.txt: Added.
      * http/tests/websocket/tests/hybi/set-protocol.html: Added.
      * http/tests/websocket/tests/hybi/workers/multiple-subprotocols-expected.txt:
      * http/tests/websocket/tests/hybi/workers/no-subprotocol-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/no-subprotocol.html: Added.
      * http/tests/websocket/tests/hybi/workers/resources/multiple-subprotocols.js:
      (ws.onopen):
      (ws.onclose):
      (checkAfterOnClose):
      * http/tests/websocket/tests/hybi/workers/resources/no-subprotocol.js: Added.
      (ws.onopen):
      (ws.onclose):
      (checkAfterOnClose):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92946 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4d0c313f
  23. 01 Aug, 2011 1 commit
    • yutak@chromium.org's avatar
      WebSocket: Receive URL and subprotocol in WebSocketChannel::connect() · 891dca6b
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65367
      
      Reviewed by Kent Tamura.
      
      To implement multiple subprotocols support (bug 65247), WebSocket::connect() will need to validate
      the value of subprotocols after constructing WebSocketChannel, because the result depends on which
      WebSocket protocol is used, which is obtained from WebSocketChannel::useHixie76Protocol(). This
      means the subprotocol value will not be available at the time of WebSocketChannel construction.
      
      This change moves URL and subprotocol arguments in WebSocketChannel constructor to
      WebSocketChannel::connect(), which allows WebSocket::connect() function to check the subprotocol
      value before the actual connection is established.
      
      Relocating URL argument is technically not necessary, but seemed legitimate in terms of functional
      correspondence between WebSocket and WebSocketChannel (constructor versus connect()).
      
      No change in behavior, thus no new tests.
      
      * websockets/ThreadableWebSocketChannel.cpp:
      Remove "url" and "protocol" arguments from constructor and add them in connect().
      (WebCore::ThreadableWebSocketChannel::create):
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::connect):
      * websockets/WebSocketChannel.cpp: Same as ThreadableWebSocketChannel.
      (WebCore::WebSocketChannel::WebSocketChannel):
      (WebCore::WebSocketChannel::connect):
      InspectorInstrumentation::didCreateWebSocket() call was moved to connect() because it needs URL.
      This does not change behavior, because connect() is guaranteed to be called immediately after
      WebSocketChannel is constructed.
      * websockets/WebSocketChannel.h:
      (WebCore::WebSocketChannel::create):
      * websockets/WorkerThreadableWebSocketChannel.cpp: Same as ThreadableWebSocketChannel.
      (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
      (WebCore::WorkerThreadableWebSocketChannel::connect):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::Peer):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::connect):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::Bridge):
      (WebCore::WorkerThreadableWebSocketChannel::mainThreadConnect):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::connect):
      * websockets/WorkerThreadableWebSocketChannel.h:
      (WebCore::WorkerThreadableWebSocketChannel::create):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::create):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      891dca6b
  24. 28 Jul, 2011 1 commit
    • yutak@chromium.org's avatar
      WebSocket: Pass the value of useHixie76Protocol flag to WebSocket object · 8812aabd
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65250
      
      Reviewed by Alexey Proskuryakov.
      
      Add useHixie76Protocol() method to WebSocketChannel and its family. To implement hybi-specific
      attributes in WebSocket object, WebSocket class needs to be able to get the value of
      useHixie76Protocol flag of WebSocketChannel.
      
      If the WebSocket object is created in a worker thread, the flag value must be obtained from
      WebSocketChannel which resides in the loader thread (through WorkerThreadableWebSocketChannel).
      Since the value does not change after creation of WebSocketChannel, it can be cached in
      the worker thread.
      
      There is no change in behavior, thus no new tests.
      
      * websockets/ThreadableWebSocketChannel.h:
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::useHixie76Protocol):
      (WebCore::ThreadableWebSocketChannelClientWrapper::setUseHixie76Protocol):
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::useHixie76Protocol):
      * websockets/WebSocketChannel.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::useHixie76Protocol):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::useHixie76Protocol):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::setWebSocketChannel):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
      * websockets/WorkerThreadableWebSocketChannel.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8812aabd
  25. 23 Jun, 2011 1 commit
    • darin@apple.com's avatar
      2011-06-23 Darin Adler <darin@apple.com> · ce0eaedc
      darin@apple.com authored
              Reviewed by Ryosuke Niwa.
      
              RefPtr misused as argument type in a few classes
              https://bugs.webkit.org/show_bug.cgi?id=62955
      
              * dom/DataTransferItem.cpp:
              (WebCore::DataTransferItem::DataTransferItem):
              * dom/DataTransferItem.h:
              * dom/DataTransferItems.cpp:
              (WebCore::DataTransferItems::DataTransferItems):
              * dom/DataTransferItems.h:
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::rebalanceWhitespaceOnTextSubstring):
              * editing/CompositeEditCommand.h:
              * page/WebKitAnimationList.cpp:
              (WebCore::WebKitAnimationList::append):
              (WebCore::WebKitAnimationList::insertAnimation):
              * page/WebKitAnimationList.h:
              * svg/graphics/filters/SVGFEImage.cpp:
              (WebCore::FEImage::FEImage):
              (WebCore::FEImage::create):
              * svg/graphics/filters/SVGFEImage.h:
              * svg/graphics/filters/SVGFilterBuilder.cpp:
              (WebCore::SVGFilterBuilder::SVGFilterBuilder):
              (WebCore::SVGFilterBuilder::add):
              (WebCore::SVGFilterBuilder::appendEffectToEffectReferences):
              * svg/graphics/filters/SVGFilterBuilder.h:
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
              (WebCore::ThreadableWebSocketChannelClientWrapper::didConnectCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshakeCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
              * websockets/WorkerThreadableWebSocketChannel.cpp:
              (WebCore::WorkerThreadableWebSocketChannel::Peer::Peer):
              (WebCore::WorkerThreadableWebSocketChannel::Bridge::setWebSocketChannel):
              (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
              * websockets/WorkerThreadableWebSocketChannel.h:
              Use PassRefPtr or raw pointer as appropriate for RefPtr arguments.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce0eaedc
  26. 22 Jun, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-06-22 Sheriff Bot <webkit.review.bot@gmail.com> · c145b067
      commit-queue@webkit.org authored
              Unreviewed, rolling out r89402.
              http://trac.webkit.org/changeset/89402
              https://bugs.webkit.org/show_bug.cgi?id=63129
      
              It made 6 tests crash (Requested by Ossy on #webkit).
      
              * dom/DataTransferItem.cpp:
              (WebCore::DataTransferItem::DataTransferItem):
              * dom/DataTransferItem.h:
              * dom/DataTransferItems.cpp:
              (WebCore::DataTransferItems::DataTransferItems):
              * dom/DataTransferItems.h:
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::rebalanceWhitespaceOnTextSubstring):
              * editing/CompositeEditCommand.h:
              * page/WebKitAnimationList.cpp:
              (WebCore::WebKitAnimationList::append):
              (WebCore::WebKitAnimationList::insertAnimation):
              * page/WebKitAnimationList.h:
              (WebCore::WebKitAnimationList::create):
              * svg/graphics/filters/SVGFEImage.cpp:
              (WebCore::FEImage::FEImage):
              (WebCore::FEImage::create):
              * svg/graphics/filters/SVGFEImage.h:
              * svg/graphics/filters/SVGFilterBuilder.cpp:
              (WebCore::SVGFilterBuilder::SVGFilterBuilder):
              (WebCore::SVGFilterBuilder::add):
              (WebCore::SVGFilterBuilder::appendEffectToEffectReferences):
              * svg/graphics/filters/SVGFilterBuilder.h:
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
              (WebCore::ThreadableWebSocketChannelClientWrapper::didConnectCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshakeCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
              * websockets/WorkerThreadableWebSocketChannel.cpp:
              (WebCore::WorkerThreadableWebSocketChannel::Peer::Peer):
              (WebCore::WorkerThreadableWebSocketChannel::Bridge::setWebSocketChannel):
              (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
              * websockets/WorkerThreadableWebSocketChannel.h:
              (WebCore::WorkerThreadableWebSocketChannel::Peer::create):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89420 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c145b067
  27. 21 Jun, 2011 1 commit
    • darin@apple.com's avatar
      2011-06-21 Darin Adler <darin@apple.com> · 18404ab4
      darin@apple.com authored
              Reviewed by Ryosuke Niwa.
      
              RefPtr misused as argument type in a few classes
              https://bugs.webkit.org/show_bug.cgi?id=62955
      
              * dom/DataTransferItem.cpp:
              (WebCore::DataTransferItem::DataTransferItem):
              * dom/DataTransferItem.h:
              * dom/DataTransferItems.cpp:
              (WebCore::DataTransferItems::DataTransferItems):
              * dom/DataTransferItems.h:
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::rebalanceWhitespaceOnTextSubstring):
              * editing/CompositeEditCommand.h:
              * page/WebKitAnimationList.cpp:
              (WebCore::WebKitAnimationList::append):
              (WebCore::WebKitAnimationList::insertAnimation):
              * page/WebKitAnimationList.h:
              * svg/graphics/filters/SVGFEImage.cpp:
              (WebCore::FEImage::FEImage):
              (WebCore::FEImage::create):
              * svg/graphics/filters/SVGFEImage.h:
              * svg/graphics/filters/SVGFilterBuilder.cpp:
              (WebCore::SVGFilterBuilder::SVGFilterBuilder):
              (WebCore::SVGFilterBuilder::add):
              (WebCore::SVGFilterBuilder::appendEffectToEffectReferences):
              * svg/graphics/filters/SVGFilterBuilder.h:
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
              (WebCore::ThreadableWebSocketChannelClientWrapper::didConnectCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshakeCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
              * websockets/WorkerThreadableWebSocketChannel.cpp:
              (WebCore::WorkerThreadableWebSocketChannel::Peer::Peer):
              (WebCore::WorkerThreadableWebSocketChannel::Bridge::setWebSocketChannel):
              (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
              * websockets/WorkerThreadableWebSocketChannel.h:
              Use PassRefPtr or raw pointer as appropriate for RefPtr arguments.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18404ab4
  28. 19 Jun, 2011 2 commits
    • mrowe@apple.com's avatar
      4ba97d68
    • darin@apple.com's avatar
      2011-06-19 Darin Adler <darin@apple.com> · 9f246f7e
      darin@apple.com authored
              Reviewed by Sam Weinig.
      
              RefPtr misused as argument type in a few classes
              https://bugs.webkit.org/show_bug.cgi?id=62955
      
              * dom/DataTransferItem.cpp:
              (WebCore::DataTransferItem::DataTransferItem):
              * dom/DataTransferItem.h:
              * dom/DataTransferItems.cpp:
              (WebCore::DataTransferItems::DataTransferItems):
              * dom/DataTransferItems.h:
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::rebalanceWhitespaceOnTextSubstring):
              * editing/CompositeEditCommand.h:
              * inspector/InspectorConsoleInstrumentation.h:
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::addProfileImpl):
              * inspector/InspectorInstrumentation.h:
              * inspector/InspectorProfilerAgent.h:
              * inspector/InspectorStyleSheet.cpp:
              (WebCore::InspectorStyleSheet::inspectorStyleForId):
              (WebCore::InspectorStyleSheet::rememberInspectorStyle):
              * inspector/InspectorStyleSheet.h:
              * page/WebKitAnimationList.cpp:
              (WebCore::WebKitAnimationList::append):
              (WebCore::WebKitAnimationList::insertAnimation):
              * page/WebKitAnimationList.h:
              * svg/graphics/filters/SVGFEImage.cpp:
              (WebCore::FEImage::FEImage):
              (WebCore::FEImage::create):
              * svg/graphics/filters/SVGFEImage.h:
              * svg/graphics/filters/SVGFilterBuilder.cpp:
              (WebCore::SVGFilterBuilder::SVGFilterBuilder):
              (WebCore::SVGFilterBuilder::add):
              (WebCore::SVGFilterBuilder::appendEffectToEffectReferences):
              * svg/graphics/filters/SVGFilterBuilder.h:
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
              (WebCore::ThreadableWebSocketChannelClientWrapper::didConnectCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshakeCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
              * websockets/WorkerThreadableWebSocketChannel.cpp:
              (WebCore::WorkerThreadableWebSocketChannel::Peer::Peer):
              (WebCore::WorkerThreadableWebSocketChannel::Bridge::setWebSocketChannel):
              (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
              * websockets/WorkerThreadableWebSocketChannel.h:
              Use PassRefPtr or raw pointer as appropriate for RefPtr arguments.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f246f7e
  29. 30 May, 2011 1 commit
    • yutak@chromium.org's avatar
      2011-05-29 Yuta Kitamura <yutak@chromium.org> · 1b50cd5e
      yutak@chromium.org authored
              Reviewed by Kent Tamura.
      
              WebSocket closing handshake
              https://bugs.webkit.org/show_bug.cgi?id=35721
      
              * http/tests/websocket/tests/client-close-expected.txt: Added.
              * http/tests/websocket/tests/client-close.html: Added. Test client-initiated close.
              * http/tests/websocket/tests/client-close_wsh.py: Added.
              * http/tests/websocket/tests/close-before-open-expected.txt: Add a new console message.
              * http/tests/websocket/tests/close-event-expected.txt:
              * http/tests/websocket/tests/close-event.html: Test if closeEvent.wasClean is true.
              * http/tests/websocket/tests/close-unref-websocket-expected.txt: Add a new console message.
              * http/tests/websocket/tests/frame-length-longer-than-buffer_wsh.py:
              We need to stop pywebsocket from starting the closing handshake. Otherwise, pywebsocket
              waits for a close frame to arrive and this test will time out.
              * http/tests/websocket/tests/server-close-expected.txt: Added.
              * http/tests/websocket/tests/server-close.html: Added. Test server-initiated close.
              * http/tests/websocket/tests/server-close_wsh.py: Added.
              * http/tests/websocket/tests/websocket-event-target-expected.txt: Add a new console message.
      2011-05-29  Yuta Kitamura  <yutak@chromium.org>
      
              Reviewed by Kent Tamura.
      
              WebSocket closing handshake
              https://bugs.webkit.org/show_bug.cgi?id=35721
      
              Implement WebSocket closing handshake based on Ian Hickson's
              WebSocket protocol draft 76.
      
              Tests: http/tests/websocket/tests/client-close.html
                     http/tests/websocket/tests/server-close.html
      
              * platform/network/SocketStreamHandleBase.cpp:
              (WebCore::SocketStreamHandleBase::send):
              Do not send a message if we are in Closing state.
              (WebCore::SocketStreamHandleBase::close):
              Do not disconnect if we have pending data which have not been sent yet.
              In this case, the actual disconnection will happen in sendPendingData().
              (WebCore::SocketStreamHandleBase::disconnect):
              Renamed from close(). Disconnect the connection immediately.
              (WebCore::SocketStreamHandleBase::sendPendingData):
              * platform/network/SocketStreamHandleBase.h:
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
              Add didStartClosingHandshake(). Add a function argument (ClosingHandshakeCompletionStatus)
              to didClose().
              (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshake):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshakeCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
              * websockets/WebSocket.cpp:
              (WebCore::WebSocket::send):
              (WebCore::WebSocket::close):
              Fail if close() is attempted before the connection is established.
              Otherwise, set the state to CLOSING and start the closing handshake.
              (WebCore::WebSocket::bufferedAmount):
              If the state is CLOSING, we need to consider buffered data in m_channel and sent after close().
              (WebCore::WebSocket::didConnect):
              (WebCore::WebSocket::didReceiveMessage):
              We need to invoke message event in CLOSING state as well as OPEN state.
              (WebCore::WebSocket::didReceiveMessageError):
              (WebCore::WebSocket::didStartClosingHandshake):
              (WebCore::WebSocket::didClose):
              * websockets/WebSocket.h:
              * websockets/WebSocketChannel.cpp:
              (WebCore::WebSocketChannel::WebSocketChannel):
              (WebCore::WebSocketChannel::close):
              Start the closing handshake.
              (WebCore::WebSocketChannel::disconnect):
              Disconnect the socket stream, instead of close.
              (WebCore::WebSocketChannel::didClose):
              (WebCore::WebSocketChannel::didReceiveData): Ditto.
              (WebCore::WebSocketChannel::didFail): Ditto.
              (WebCore::WebSocketChannel::processBuffer):
              Ditto.
              Handle 0xFF 0x00 byte sequence, and discard received data once the closing handshake has started.
              (WebCore::WebSocketChannel::startClosingHandshake):
              Send 0xFF 0x00 byte sequence.
              (WebCore::WebSocketChannel::closingTimerFired):
              Disconnect the socket stream if the closing handshake has timed out.
              * websockets/WebSocketChannel.h:
              m_closing is true if "the WebSocket closing handshake has started" (as stated in the protocol
              specification).
              * websockets/WebSocketChannelClient.h:
              (WebCore::WebSocketChannelClient::didStartClosingHandshake): Added.
              (WebCore::WebSocketChannelClient::didClose): Add closingHandshakeCompletion parameter.
              * websockets/WorkerThreadableWebSocketChannel.cpp:
              Add closingHandshakeCompletion parameter to didClose(), and add didStartClosingHandshake().
              (WebCore::WorkerThreadableWebSocketChannel::Peer::close):
              (WebCore::workerContextDidStartClosingHandshake):
              (WebCore::WorkerThreadableWebSocketChannel::Peer::didStartClosingHandshake):
              (WebCore::workerContextDidClose):
              (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
              * websockets/WorkerThreadableWebSocketChannel.h:
      2011-05-29  Yuta Kitamura  <yutak@chromium.org>
      
              Reviewed by Kent Tamura.
      
              WebSocket closing handshake
              https://bugs.webkit.org/show_bug.cgi?id=35721
      
              * Scripts/webkitpy/thirdparty/__init__.py:
              Pull in pywebsocket 0.6b1. We need to update pywebsocket
              to get the right behavior of closing handshake.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b50cd5e
  30. 27 May, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-05-27 Sheriff Bot <webkit.review.bot@gmail.com> · 4bc56128
      commit-queue@webkit.org authored
              Unreviewed, rolling out r87464.
              http://trac.webkit.org/changeset/87464
              https://bugs.webkit.org/show_bug.cgi?id=61643
      
              client-close/server-close tests are flaky on Chromium Mac and
              Windows (Requested by aklein on #webkit).
      
              * http/tests/websocket/tests/client-close-expected.txt: Removed.
              * http/tests/websocket/tests/client-close.html: Removed.
              * http/tests/websocket/tests/client-close_wsh.py: Removed.
              * http/tests/websocket/tests/close-before-open-expected.txt:
              * http/tests/websocket/tests/close-event-expected.txt:
              * http/tests/websocket/tests/close-event.html:
              * http/tests/websocket/tests/close-unref-websocket-expected.txt:
              * http/tests/websocket/tests/frame-length-longer-than-buffer_wsh.py:
              * http/tests/websocket/tests/server-close-expected.txt: Removed.
              * http/tests/websocket/tests/server-close.html: Removed.
              * http/tests/websocket/tests/server-close_wsh.py: Removed.
              * http/tests/websocket/tests/websocket-event-target-expected.txt:
      2011-05-27  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r87464.
              http://trac.webkit.org/changeset/87464
              https://bugs.webkit.org/show_bug.cgi?id=61643
      
              client-close/server-close tests are flaky on Chromium Mac and
              Windows (Requested by aklein on #webkit).
      
              * platform/network/SocketStreamHandleBase.cpp:
              (WebCore::SocketStreamHandleBase::send):
              (WebCore::SocketStreamHandleBase::close):
              (WebCore::SocketStreamHandleBase::sendPendingData):
              * platform/network/SocketStreamHandleBase.h:
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
              (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
              * websockets/WebSocket.cpp:
              (WebCore::WebSocket::send):
              (WebCore::WebSocket::close):
              (WebCore::WebSocket::bufferedAmount):
              (WebCore::WebSocket::didConnect):
              (WebCore::WebSocket::didReceiveMessage):
              (WebCore::WebSocket::didReceiveMessageError):
              (WebCore::WebSocket::didClose):
              * websockets/WebSocket.h:
              * websockets/WebSocketChannel.cpp:
              (WebCore::WebSocketChannel::WebSocketChannel):
              (WebCore::WebSocketChannel::close):
              (WebCore::WebSocketChannel::disconnect):
              (WebCore::WebSocketChannel::didClose):
              (WebCore::WebSocketChannel::didReceiveData):
              (WebCore::WebSocketChannel::didFail):
              (WebCore::WebSocketChannel::processBuffer):
              * websockets/WebSocketChannel.h:
              * websockets/WebSocketChannelClient.h:
              (WebCore::WebSocketChannelClient::didClose):
              * websockets/WorkerThreadableWebSocketChannel.cpp:
              (WebCore::WorkerThreadableWebSocketChannel::Peer::close):
              (WebCore::workerContextDidClose):
              (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
              * websockets/WorkerThreadableWebSocketChannel.h:
      2011-05-27  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r87464.
              http://trac.webkit.org/changeset/87464
              https://bugs.webkit.org/show_bug.cgi?id=61643
      
              client-close/server-close tests are flaky on Chromium Mac and
              Windows (Requested by aklein on #webkit).
      
              * Scripts/webkitpy/thirdparty/__init__.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4bc56128
  31. 26 May, 2011 1 commit
    • yutak@chromium.org's avatar
      2011-05-26 Yuta Kitamura <yutak@chromium.org> · 69cb9ece
      yutak@chromium.org authored
              Reviewed by Kent Tamura.
      
              WebSocket closing handshake
              https://bugs.webkit.org/show_bug.cgi?id=35721
      
              * http/tests/websocket/tests/client-close-expected.txt: Added.
              * http/tests/websocket/tests/client-close.html: Added. Test client-initiated close.
              * http/tests/websocket/tests/client-close_wsh.py: Added.
              * http/tests/websocket/tests/close-before-open-expected.txt: Add a new console message.
              * http/tests/websocket/tests/close-event-expected.txt:
              * http/tests/websocket/tests/close-event.html: Test if closeEvent.wasClean is true.
              * http/tests/websocket/tests/close-unref-websocket-expected.txt: Add a new console message.
              * http/tests/websocket/tests/frame-length-longer-than-buffer_wsh.py:
              We need to stop pywebsocket from starting the closing handshake. Otherwise, pywebsocket
              waits for a close frame to arrive and this test will time out.
              * http/tests/websocket/tests/server-close-expected.txt: Added.
              * http/tests/websocket/tests/server-close.html: Added. Test server-initiated close.
              * http/tests/websocket/tests/server-close_wsh.py: Added.
              * http/tests/websocket/tests/websocket-event-target-expected.txt: Add a new console message.
      2011-05-26  Yuta Kitamura  <yutak@chromium.org>
      
              Reviewed by Kent Tamura.
      
              WebSocket closing handshake
              https://bugs.webkit.org/show_bug.cgi?id=35721
      
              Implement WebSocket closing handshake based on Ian Hickson's
              WebSocket protocol draft 76.
      
              Tests: http/tests/websocket/tests/client-close.html
                     http/tests/websocket/tests/server-close.html
      
              * platform/network/SocketStreamHandleBase.cpp:
              (WebCore::SocketStreamHandleBase::send):
              Do not send a message if we are in Closing state.
              (WebCore::SocketStreamHandleBase::close):
              Do not disconnect if we have pending data which have not been sent yet.
              In this case, the actual disconnection will happen in sendPendingData().
              (WebCore::SocketStreamHandleBase::disconnect):
              Renamed from close(). Disconnect the connection immediately.
              (WebCore::SocketStreamHandleBase::sendPendingData):
              * platform/network/SocketStreamHandleBase.h:
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
              Add didStartClosingHandshake(). Add a function argument (ClosingHandshakeCompletionStatus)
              to didClose().
              (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshake):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshakeCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
              * websockets/WebSocket.cpp:
              (WebCore::WebSocket::send):
              (WebCore::WebSocket::close):
              Fail if close() is attempted before the connection is established.
              Otherwise, set the state to CLOSING and start the closing handshake.
              (WebCore::WebSocket::bufferedAmount):
              If the state is CLOSING, we need to consider buffered data in m_channel and sent after close().
              (WebCore::WebSocket::didConnect):
              (WebCore::WebSocket::didReceiveMessage):
              We need to invoke message event in CLOSING state as well as OPEN state.
              (WebCore::WebSocket::didReceiveMessageError):
              (WebCore::WebSocket::didStartClosingHandshake):
              (WebCore::WebSocket::didClose):
              * websockets/WebSocket.h:
              * websockets/WebSocketChannel.cpp:
              (WebCore::WebSocketChannel::WebSocketChannel):
              (WebCore::WebSocketChannel::close):
              Start the closing handshake.
              (WebCore::WebSocketChannel::disconnect):
              Disconnect the socket stream, instead of close.
              (WebCore::WebSocketChannel::didClose):
              (WebCore::WebSocketChannel::didReceiveData): Ditto.
              (WebCore::WebSocketChannel::didFail): Ditto.
              (WebCore::WebSocketChannel::processBuffer):
              Ditto.
              Handle 0xFF 0x00 byte sequence, and discard received data once the closing handshake has started.
              (WebCore::WebSocketChannel::startClosingHandshake):
              Send 0xFF 0x00 byte sequence.
              (WebCore::WebSocketChannel::closingTimerFired):
              Disconnect the socket stream if the closing handshake has timed out.
              * websockets/WebSocketChannel.h:
              m_closing is true if "the WebSocket closing handshake has started" (as stated in the protocol
              specification).
              * websockets/WebSocketChannelClient.h:
              (WebCore::WebSocketChannelClient::didStartClosingHandshake): Added.
              (WebCore::WebSocketChannelClient::didClose): Add closingHandshakeCompletion parameter.
              * websockets/WorkerThreadableWebSocketChannel.cpp:
              Add closingHandshakeCompletion parameter to didClose(), and add didStartClosingHandshake().
              (WebCore::WorkerThreadableWebSocketChannel::Peer::close):
              (WebCore::workerContextDidStartClosingHandshake):
              (WebCore::WorkerThreadableWebSocketChannel::Peer::didStartClosingHandshake):
              (WebCore::workerContextDidClose):
              (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
              * websockets/WorkerThreadableWebSocketChannel.h:
      2011-05-26  Yuta Kitamura  <yutak@chromium.org>
      
              Reviewed by Kent Tamura.
      
              WebSocket closing handshake
              https://bugs.webkit.org/show_bug.cgi?id=35721
      
              * Scripts/webkitpy/thirdparty/__init__.py:
              Pull in pywebsocket 0.6b1. We need to update pywebsocket
              to get the right behavior of closing handshake.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87464 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69cb9ece
  32. 24 May, 2011 1 commit
    • yutak@chromium.org's avatar
      2011-05-24 Yuta Kitamura <yutak@chromium.org> · 25f6e077
      yutak@chromium.org authored
              Reviewed by Kent Tamura.
      
              WebSocket: Add fail() to WebSocketChannel and its family
              https://bugs.webkit.org/show_bug.cgi?id=61277
      
              This is the first part of refactoring effort described in bug 61115.
              Existing error reports will be modified to use fail() in a later patch.
      
              No change in behavior, thus no new tests.
      
              * websockets/ThreadableWebSocketChannel.h:
              * websockets/WebSocketChannel.cpp:
              (WebCore::WebSocketChannel::fail):
              * websockets/WebSocketChannel.h:
              * websockets/WorkerThreadableWebSocketChannel.cpp:
              (WebCore::WorkerThreadableWebSocketChannel::fail):
              (WebCore::WorkerThreadableWebSocketChannel::Peer::fail):
              (WebCore::WorkerThreadableWebSocketChannel::mainThreadFail):
              (WebCore::WorkerThreadableWebSocketChannel::Bridge::fail):
              * websockets/WorkerThreadableWebSocketChannel.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87139 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25f6e077
  33. 20 Jan, 2011 1 commit
    • ossy@webkit.org's avatar
      Refactoring of the custom allocation framework · 95c1bc42
      ossy@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=49897
      
      Patch by Zoltan Horvath <zoltan@webkit.org> on 2011-01-20
      Reviewed by Csaba Osztrogonác.
      
      Source/JavaScriptCore:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      * wtf/FastAllocBase.h: Turn FastAllocBase's implementation into a macro.
      
      Source/WebCore:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      Source/WebKit:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      Source/WebKit2:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      Tools:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      95c1bc42
  34. 08 Jan, 2011 1 commit