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. 07 Oct, 2013 2 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r157061. · 45dd770d
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/157061
      https://bugs.webkit.org/show_bug.cgi?id=122479
      
      Broke worker tests (Requested by andersca on #webkit).
      
      * Modules/webdatabase/Database.cpp:
      (WebCore::DerefContextTask::create):
      (WebCore::DerefContextTask::DerefContextTask):
      (WebCore::Database::~Database):
      (WebCore::DeliverPendingCallbackTask::create):
      (WebCore::DeliverPendingCallbackTask::performTask):
      (WebCore::DeliverPendingCallbackTask::DeliverPendingCallbackTask):
      (WebCore::Database::scheduleTransactionCallback):
      * Modules/webdatabase/DatabaseManager.cpp:
      (WebCore::DatabaseCreationCallbackTask::create):
      (WebCore::DatabaseCreationCallbackTask::performTask):
      (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask):
      (WebCore::DatabaseManager::openDatabase):
      * Modules/webdatabase/SQLCallbackWrapper.h:
      (WebCore::SQLCallbackWrapper::clear):
      (WebCore::SQLCallbackWrapper::SafeReleaseTask::create):
      (WebCore::SQLCallbackWrapper::SafeReleaseTask::performTask):
      (WebCore::SQLCallbackWrapper::SafeReleaseTask::isCleanupTask):
      (WebCore::SQLCallbackWrapper::SafeReleaseTask::SafeReleaseTask):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasks):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::create):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::~WorkerGlobalScopeDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::WorkerGlobalScopeDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
      * bindings/js/JSCallbackData.h:
      (WebCore::DeleteCallbackDataTask::create):
      (WebCore::DeleteCallbackDataTask::performTask):
      (WebCore::DeleteCallbackDataTask::isCleanupTask):
      (WebCore::DeleteCallbackDataTask::DeleteCallbackDataTask):
      * bindings/js/JSDOMGlobalObjectTask.h:
      * bindings/js/JSDOMWindowBase.cpp:
      (WebCore::JSDOMWindowBase::queueTaskToEventLoop):
      * bindings/js/JSWorkerGlobalScopeBase.cpp:
      (WebCore::JSWorkerGlobalScopeBase::queueTaskToEventLoop):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateCallbackImplementation):
      * dom/CrossThreadTask.h:
      (WebCore::CrossThreadTask1::create):
      (WebCore::CrossThreadTask1::performTask):
      (WebCore::CrossThreadTask2::create):
      (WebCore::CrossThreadTask2::performTask):
      (WebCore::CrossThreadTask3::create):
      (WebCore::CrossThreadTask3::performTask):
      (WebCore::CrossThreadTask4::create):
      (WebCore::CrossThreadTask4::performTask):
      (WebCore::CrossThreadTask5::create):
      (WebCore::CrossThreadTask5::performTask):
      (WebCore::CrossThreadTask6::create):
      (WebCore::CrossThreadTask6::performTask):
      (WebCore::CrossThreadTask7::create):
      (WebCore::CrossThreadTask7::performTask):
      (WebCore::CrossThreadTask8::create):
      (WebCore::CrossThreadTask8::performTask):
      (WebCore::createCallbackTask):
      * dom/Document.cpp:
      (WebCore::Document::addConsoleMessage):
      (WebCore::Document::addMessage):
      (WebCore::PerformTaskContext::PerformTaskContext):
      (WebCore::Document::postTask):
      (WebCore::Document::pendingTasksTimerFired):
      * dom/Document.h:
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ProcessMessagesSoonTask::create):
      (WebCore::ProcessMessagesSoonTask::performTask):
      (WebCore::ScriptExecutionContext::processMessagePortMessagesSoon):
      * dom/ScriptExecutionContext.h:
      (WebCore::ScriptExecutionContext::AddConsoleMessageTask::create):
      (WebCore::ScriptExecutionContext::AddConsoleMessageTask::AddConsoleMessageTask):
      * dom/StringCallback.cpp:
      (WebCore::StringCallback::scheduleCallback):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::CallCacheListenerTask::create):
      (WebCore::CallCacheListenerTask::CallCacheListenerTask):
      (WebCore::ApplicationCacheGroup::postListenerTask):
      * workers/DefaultSharedWorkerRepository.cpp:
      (WebCore::SharedWorkerProxy::postTaskToLoader):
      (WebCore::SharedWorkerProxy::postTaskForModeToWorkerGlobalScope):
      (WebCore::SharedWorkerConnectTask::create):
      (WebCore::SharedWorkerConnectTask::performTask):
      (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
      (WebCore::DefaultSharedWorkerRepository::connectToWorker):
      * workers/WorkerEventQueue.cpp:
      (WebCore::WorkerEventQueue::enqueueEvent):
      * workers/WorkerGlobalScope.cpp:
      (WebCore::WorkerGlobalScope::close):
      (WebCore::WorkerGlobalScope::postTask):
      (WebCore::WorkerGlobalScope::addConsoleMessage):
      (WebCore::WorkerGlobalScope::addMessage):
      * workers/WorkerGlobalScope.h:
      * workers/WorkerLoaderProxy.h:
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::MessageWorkerGlobalScopeTask::create):
      (WebCore::MessageWorkerGlobalScopeTask::performTask):
      (WebCore::MessageWorkerTask::create):
      (WebCore::MessageWorkerTask::performTask):
      (WebCore::WorkerExceptionTask::create):
      (WebCore::WorkerExceptionTask::performTask):
      (WebCore::WorkerGlobalScopeDestroyedTask::create):
      (WebCore::WorkerGlobalScopeDestroyedTask::performTask):
      (WebCore::WorkerTerminateTask::create):
      (WebCore::WorkerTerminateTask::WorkerTerminateTask):
      (WebCore::WorkerTerminateTask::performTask):
      (WebCore::WorkerThreadActivityReportTask::create):
      (WebCore::WorkerThreadActivityReportTask::performTask):
      (WebCore::PostMessageToPageInspectorTask::create):
      (WebCore::PostMessageToPageInspectorTask::performTask):
      (WebCore::NotifyNetworkStateChangeTask::create):
      (WebCore::NotifyNetworkStateChangeTask::NotifyNetworkStateChangeTask):
      (WebCore::NotifyNetworkStateChangeTask::performTask):
      (WebCore::WorkerMessagingProxy::postMessageToWorkerObject):
      (WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::postTaskForModeToWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::postTaskToLoader):
      (WebCore::WorkerMessagingProxy::postExceptionToWorkerObject):
      (WebCore::WorkerMessagingProxy::workerThreadCreated):
      (WebCore::WorkerMessagingProxy::notifyNetworkStateChange):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeDestroyed):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeClosed):
      (WebCore::WorkerMessagingProxy::postMessageToPageInspector):
      (WebCore::WorkerMessagingProxy::confirmMessageFromWorkerObject):
      (WebCore::WorkerMessagingProxy::reportPendingActivity):
      * workers/WorkerMessagingProxy.h:
      * workers/WorkerRunLoop.cpp:
      (WebCore::WorkerRunLoop::postTask):
      (WebCore::WorkerRunLoop::postTaskAndTerminate):
      (WebCore::WorkerRunLoop::postTaskForMode):
      (WebCore::WorkerRunLoop::Task::create):
      (WebCore::WorkerRunLoop::Task::Task):
      * workers/WorkerRunLoop.h:
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadShutdownFinishTask::create):
      (WebCore::WorkerThreadShutdownFinishTask::performTask):
      (WebCore::WorkerThreadShutdownFinishTask::isCleanupTask):
      (WebCore::WorkerThreadShutdownStartTask::performTask):
      (WebCore::WorkerThread::stop):
      (WebCore::WorkerThread::releaseFastMallocFreeMemoryInAllThreads):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45dd770d
    • andersca@apple.com's avatar
      Clean up ScriptExecutionContext::Task and subclasses · c4af3790
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122469
      
      Reviewed by Andreas Kling.
      
      * Modules/webdatabase/Database.cpp:
      (WebCore::DerefContextTask::DerefContextTask):
      (WebCore::Database::~Database):
      (WebCore::DeliverPendingCallbackTask::DeliverPendingCallbackTask):
      (WebCore::Database::scheduleTransactionCallback):
      * Modules/webdatabase/DatabaseManager.cpp:
      (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask):
      (WebCore::DatabaseManager::openDatabase):
      * Modules/webdatabase/SQLCallbackWrapper.h:
      (WebCore::SQLCallbackWrapper::clear):
      (WebCore::SQLCallbackWrapper::SafeReleaseTask::SafeReleaseTask):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasks):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::WorkerGlobalScopeDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
      * bindings/js/JSCallbackData.h:
      (WebCore::DeleteCallbackDataTask::DeleteCallbackDataTask):
      * bindings/js/JSDOMGlobalObjectTask.h:
      * bindings/js/JSDOMWindowBase.cpp:
      (WebCore::JSDOMWindowBase::queueTaskToEventLoop):
      * bindings/js/JSWorkerGlobalScopeBase.cpp:
      (WebCore::JSWorkerGlobalScopeBase::queueTaskToEventLoop):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateCallbackImplementation):
      * dom/CrossThreadTask.h:
      (WebCore::createCallbackTask):
      * dom/Document.cpp:
      (WebCore::Document::addConsoleMessage):
      (WebCore::Document::addMessage):
      (WebCore::PerformTaskContext::PerformTaskContext):
      (WebCore::Document::postTask):
      (WebCore::Document::pendingTasksTimerFired):
      * dom/Document.h:
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ProcessMessagesSoonTask::ProcessMessagesSoonTask):
      (WebCore::ScriptExecutionContext::processMessagePortMessagesSoon):
      * dom/ScriptExecutionContext.h:
      * dom/StringCallback.cpp:
      (WebCore::StringCallback::scheduleCallback):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::CallCacheListenerTask::CallCacheListenerTask):
      (WebCore::ApplicationCacheGroup::postListenerTask):
      * workers/DefaultSharedWorkerRepository.cpp:
      (WebCore::SharedWorkerProxy::postTaskToLoader):
      (WebCore::SharedWorkerProxy::postTaskForModeToWorkerGlobalScope):
      (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
      (WebCore::DefaultSharedWorkerRepository::connectToWorker):
      * workers/WorkerEventQueue.cpp:
      (WebCore::WorkerEventQueue::enqueueEvent):
      * workers/WorkerGlobalScope.cpp:
      (WebCore::WorkerGlobalScope::close):
      (WebCore::WorkerGlobalScope::postTask):
      (WebCore::WorkerGlobalScope::addConsoleMessage):
      (WebCore::WorkerGlobalScope::addMessage):
      * workers/WorkerGlobalScope.h:
      * workers/WorkerLoaderProxy.h:
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerMessagingProxy::postMessageToWorkerObject):
      (WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::postTaskForModeToWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::postTaskToLoader):
      (WebCore::WorkerMessagingProxy::postExceptionToWorkerObject):
      (WebCore::WorkerMessagingProxy::workerThreadCreated):
      (WebCore::WorkerMessagingProxy::notifyNetworkStateChange):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeDestroyed):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeClosed):
      (WebCore::WorkerMessagingProxy::postMessageToPageInspector):
      (WebCore::WorkerMessagingProxy::confirmMessageFromWorkerObject):
      (WebCore::WorkerMessagingProxy::reportPendingActivity):
      * workers/WorkerMessagingProxy.h:
      * workers/WorkerRunLoop.cpp:
      (WebCore::WorkerRunLoop::postTask):
      (WebCore::WorkerRunLoop::postTaskAndTerminate):
      (WebCore::WorkerRunLoop::postTaskForMode):
      (WebCore::WorkerRunLoop::Task::Task):
      * workers/WorkerRunLoop.h:
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadShutdownFinishTask::WorkerThreadShutdownFinishTask):
      (WebCore::WorkerThreadShutdownStartTask::performTask):
      (WebCore::WorkerThread::stop):
      (WebCore::WorkerThread::releaseFastMallocFreeMemoryInAllThreads):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c4af3790
  4. 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
  5. 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
  6. 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
  7. 13 May, 2012 1 commit
    • rwlbuis@webkit.org's avatar
      Use emptyString instead of String("") · 920e779b
      rwlbuis@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=86305
      
      Reviewed by Darin Adler.
      
      Use emptyString() instead of String("") because it is better style and faster.
      
      No new tests. No change in behavior.
      
      * Modules/webdatabase/AbstractDatabase.cpp:
      (WebCore::AbstractDatabase::performOpenAndVerify):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::subprotocol):
      (WebCore::ThreadableWebSocketChannelClientWrapper::extensions):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::setValueFromRenderer):
      * platform/SharedBufferChunkReader.cpp:
      (WebCore::SharedBufferChunkReader::nextChunkAsUTF8StringWithLatin1Fallback):
      * platform/network/curl/ResourceHandleManager.cpp:
      (WebCore::ResourceHandleManager::setProxyInfo):
      * platform/text/LocaleICU.cpp:
      (WebCore::LocaleICU::initializeLocalizedDateFormatText):
      * rendering/RenderQuote.cpp:
      (WebCore::RenderQuote::originalText):
      * storage/StorageNamespaceImpl.cpp:
      (WebCore::StorageNamespaceImpl::localStorageNamespace):
      * svg/SVGStringList.cpp:
      (WebCore::SVGStringList::reset):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      920e779b
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 15 Feb, 2012 1 commit
    • yutak@chromium.org's avatar
      WebSocket: MessageEvent fired during send() on workers · 2315451b
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76521
      
      Reviewed by David Levin.
      
      Source/WebCore:
      
      WebSocket's message event should not be invoked while a synchronous operation
      (send() and bufferedAmount) is in progress.
      
      Test: http/tests/websocket/tests/hybi/workers/no-onmessage-in-sync-op.html
      
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      Added #if ENABLE(WORKERS) because ThreadableWebSocketChannelClientWrapper is not used
      if Web Workers is not available.
      Changed access label because private members were declared as protected with no good reason.
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      Receive ScriptExecutionContext so we can post a task that should be executed later.
      (WebCore::ThreadableWebSocketChannelClientWrapper::create):
      (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasksCallback):
      (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasks):
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
      
      LayoutTests:
      
      * http/tests/websocket/tests/hybi/workers/no-onmessage-in-sync-op-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/no-onmessage-in-sync-op.html: Added.
      * http/tests/websocket/tests/hybi/workers/resources/no-onmessage-in-sync-op.js:
      Added. The server sends messages immediately after the connection is established, but
      these messages should not be delivered until the script exits the current cycle of
      the event loop. The script calls a few synchronous operations to make sure we don't
      fire MessageEvents while we are waiting for these operations to finish.
      * http/tests/websocket/tests/hybi/workers/resources/no-onmessage-in-sync-op_wsh.py: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107788 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2315451b
  14. 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
  15. 30 Nov, 2011 2 commits
    • commit-queue@webkit.org's avatar
      Get rid of AllowCrossThreadAccess throughout ThreadableWebSocketChannelClientWrapper. · 0bb03b9c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73336
      
      Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2011-11-30
      Reviewed by David Levin.
      
      No new tests because it contains no functional change.
      
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::didConnect):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessage):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryData):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didUpdateBufferedAmount):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshake):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didConnectCallback):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageCallback):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryDataCallback):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didUpdateBufferedAmountCallback):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshakeCallback):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101583 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0bb03b9c
    • 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
  16. 15 Sep, 2011 1 commit
    • yutak@chromium.org's avatar
      ThreadableWebSocketChannelClientWrapper shouldn't have a String in it. · 0229330c
      yutak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67908
      
      Reviewed by David Levin.
      
      Replace a String member variable in ThreadableWebSocketChannelClientWrapper with Vector<UChar>.
      
      ThreadableWebSocketChannelClientWrapper is derived from ThreadSafeRefCounted. It may be
      destroyed on different threads, which will affect String's refcounting. Therefore, classes
      derived from ThreadSafeRefCounted must not have a String member variable.
      
      No change in functionality, thus no new tests. WebSocket worker tests
      (tests under http/tests/websocket/tests/{hixie76,hybi}/workers/) should keep passing.
      
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
      (WebCore::ThreadableWebSocketChannelClientWrapper::subprotocol):
      Create a String from Vector<UChar>. Note that String constructor taking an empty vector returns
      a null string, not an empty string. We want an empty string in that case, so I had to add
      special-case handling for an empty vector.
      (WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol):
      Copy the content of the given String into Vector.
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95176 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0229330c
  17. 13 Sep, 2011 2 commits
  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. 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
  20. 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
  21. 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
  22. 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
  23. 24 Jun, 2011 1 commit
    • tony@chromium.org's avatar
      2011-06-24 Tony Chang <tony@chromium.org> · c1443b7e
      tony@chromium.org authored
              Reviewed by Adam Barth.
      
              Pass Strings by const reference to functions
              https://bugs.webkit.org/show_bug.cgi?id=63341
      
              Note that since Strings hold a RefPtr to StringImpl, passing Strings
              by value isn't horrible, but it does cause ref count churn and using
              const references is more consistent with the rest of the code base.
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::addHTTPOriginIfNeeded): Rework the code to not
                  change the value of the passed in String.
              * loader/FrameLoader.h:
              * platform/win/ClipboardUtilitiesWin.cpp:
              (WebCore::setFileDescriptorData):
              * platform/win/ClipboardUtilitiesWin.h:
              * storage/DatabaseTracker.h:
              * storage/IDBLevelDBBackingStore.cpp:
              (WebCore::IDBLevelDBBackingStore::IDBLevelDBBackingStore):
              * storage/IDBLevelDBBackingStore.h:
              * storage/IDBSQLiteBackingStore.cpp:
              (WebCore::IDBSQLiteBackingStore::IDBSQLiteBackingStore):
              * storage/IDBSQLiteBackingStore.h:
              * storage/chromium/DatabaseTrackerChromium.cpp:
              (WebCore::DatabaseTracker::getOpenDatabases):
              * svg/SVGPaint.cpp:
              (WebCore::SVGPaint::SVGPaint):
              * svg/SVGPaint.h:
              * svg/animation/SMILTimeContainer.cpp:
              (WebCore::SMILTimeContainer::updateAnimations):
              * svg/animation/SMILTimeContainer.h:
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
              (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageCallback):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1443b7e
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 19 May, 2011 1 commit
    • yutak@chromium.org's avatar
      2011-05-19 Yuta Kitamura <yutak@chromium.org> · 4f6b42e2
      yutak@chromium.org authored
              Reviewed by Kent Tamura.
      
              WebSocket: Use ScriptContext::Task to hold pending events of ThreadableWebSocketChannelClientWrapper
              https://bugs.webkit.org/show_bug.cgi?id=61034
      
              Refactoring only. No new tests.
      
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
              (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didConnect):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessage):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
              (WebCore::ThreadableWebSocketChannelClientWrapper::resume):
              (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasks):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didConnectCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageCallback):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
              Remove m_pendingConnected, m_pendingMessages and m_pendingClosed, and use ScriptContext::Task
              to hold these pending events.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f6b42e2
  32. 17 May, 2011 1 commit
    • yutak@chromium.org's avatar
      2011-05-17 Yuta Kitamura <yutak@chromium.org> · 4db6aa87
      yutak@chromium.org authored
              Reviewed by Kent Tamura.
      
              WebSocket: Uninline methods in ThreadableWebSocketChannelClientWrapper
              https://bugs.webkit.org/show_bug.cgi?id=60945
      
              Add ThreadableWebSocketChannelClientWrapper.cpp. Uninline methods in this class and
              move these definitions into .cpp in order to allow further modifications in this class.
      
              No new tests, as this is just refactoring.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * websockets/ThreadableWebSocketChannelClientWrapper.cpp: Added.
              (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
              (WebCore::ThreadableWebSocketChannelClientWrapper::create):
              (WebCore::ThreadableWebSocketChannelClientWrapper::clearSyncMethodDone):
              (WebCore::ThreadableWebSocketChannelClientWrapper::setSyncMethodDone):
              (WebCore::ThreadableWebSocketChannelClientWrapper::syncMethodDone):
              (WebCore::ThreadableWebSocketChannelClientWrapper::sent):
              (WebCore::ThreadableWebSocketChannelClientWrapper::setSent):
              (WebCore::ThreadableWebSocketChannelClientWrapper::bufferedAmount):
              (WebCore::ThreadableWebSocketChannelClientWrapper::setBufferedAmount):
              (WebCore::ThreadableWebSocketChannelClientWrapper::clearClient):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didConnect):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessage):
              (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
              (WebCore::ThreadableWebSocketChannelClientWrapper::suspend):
              (WebCore::ThreadableWebSocketChannelClientWrapper::resume):
              (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingEvents):
              * websockets/ThreadableWebSocketChannelClientWrapper.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4db6aa87