Add WTF::move()
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Jul 2014 22:13:54 +0000 (22:13 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Jul 2014 22:13:54 +0000 (22:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=134500

Source/JavaScriptCore:
Rubber-stamped by Anders Carlsson.

Substitute WTF::move() for std::move().

* bytecode/CodeBlock.h:
* bytecode/UnlinkedCodeBlock.cpp:
* bytecompiler/BytecodeGenerator.cpp:
* dfg/DFGGraph.cpp:
* dfg/DFGJITCompiler.cpp:
* dfg/DFGStackLayoutPhase.cpp:
* dfg/DFGWorklist.cpp:
* heap/DelayedReleaseScope.h:
* heap/HeapInlines.h:
[...]

Source/WebCore:
Rubber-stamped by Anders Carlsson.

Substitute WTF::move() for std::move().

* Modules/battery/NavigatorBattery.cpp:
* Modules/encryptedmedia/MediaKeys.cpp:
* Modules/gamepad/NavigatorGamepad.cpp:
* Modules/gamepad/deprecated/NavigatorGamepad.cpp:
* Modules/geolocation/NavigatorGeolocation.cpp:
* Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
* Modules/indexeddb/IDBDatabaseBackend.cpp:
* Modules/indexeddb/IDBDatabaseBackend.h:
[...]

Source/WebKit/ios:
Rubber-stamped by Anders Carlsson.

Substitute WTF::move() for std::move().

* WebCoreSupport/WebFixedPositionContent.mm:
(-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
* WebCoreSupport/WebInspectorClientIOS.mm:
(WebInspectorFrontendClient::WebInspectorFrontendClient):

Source/WebKit/mac:
Rubber-stamped by Anders Carlsson.

Substitute WTF::move() for std::move().

* History/WebHistoryItem.mm:
(-[WebHistoryItem initFromDictionaryRepresentation:]):
* Plugins/Hosted/NetscapePluginInstanceProxy.h:
(WebKit::NetscapePluginInstanceProxy::setCurrentReply):
* Plugins/WebNetscapePluginView.mm:
(-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::dispatchDecidePolicyForResponse):
(WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
(WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
(WebFrameLoaderClient::dispatchWillSubmitForm):
* WebCoreSupport/WebInspectorClient.mm:
(WebInspectorClient::openInspectorFrontend):
(WebInspectorFrontendClient::WebInspectorFrontendClient):
* WebView/WebArchive.mm:
(-[WebArchive initWithMainResource:subresources:subframeArchives:]):

Source/WebKit/win:
Rubber-stamped by Anders Carlsson.

Substitute WTF::move() for std::move().

* WebCoreSupport/WebInspectorClient.cpp:
(WebInspectorClient::openInspectorFrontend):
(WebInspectorFrontendClient::WebInspectorFrontendClient):
* WebHistory.cpp:
(createUserInfoFromArray):
* WebHistoryItem.cpp:
(WebHistoryItem::initFromDictionaryRepresentation):
* WebView.cpp:
(WebView::addToDirtyRegion):
(WebView::scrollBackingStore):

Source/WebKit2:
Rubber-stamped by Anders Carlsson.

Substitute WTF::move() for std::move().

* DatabaseProcess/DatabaseProcess.cpp:
* DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
* NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm:
* NetworkProcess/FileAPI/NetworkBlobRegistry.cpp:
* NetworkProcess/NetworkConnectionToWebProcess.cpp:
* Platform/IPC/ArgumentCoders.h:
* Platform/IPC/ArgumentDecoder.cpp:
* Platform/IPC/Connection.cpp:
* Platform/IPC/Connection.h:
[...]

Source/WTF:
Reviewed by Darin Adler.

Substitution of WTF::move() for std::move() rubber-stamped by Anders Carlsson.

Implement WTF::move(), a replacement for std::move(). WTF::move() is less error
prone than std::move() as it compile asserts that its argument is a non-const
lvalue reference before ultimately casting it to a rvalue reference (via std::move).

* wtf/Deque.h: Substitute WTF::move() for std::move().
* wtf/HashMap.h: Ditto.
* wtf/HashSet.h: Ditto.
* wtf/HashTable.h: Ditto.
* wtf/IteratorAdaptors.h: Ditto.
* wtf/IteratorRange.h: Ditto.
* wtf/ListHashSet.h: Ditto.
* wtf/MainThread.cpp: Ditto.
[...]
* wtf/StdLibExtras.h:
(WTF::move): Added.
[...]

Tools:
Rubber-stamped by Anders Carlsson.

Substitute WTF::move() for std::move().

* DumpRenderTree/win/DRTDataObject.cpp:
* TestWebKitAPI/Tests/WTF/HashMap.cpp:
* TestWebKitAPI/Tests/WTF/HashSet.cpp:
* TestWebKitAPI/Tests/WTF/RefPtr.cpp:
* TestWebKitAPI/Tests/WTF/Vector.cpp:
* TestWebKitAPI/Tests/WTF/WTFString.cpp:
* TestWebKitAPI/Tests/WTF/ns/RetainPtr.mm: Added FIXME comments that explain that some of the sub-tests
aren't actually testing move semantics in tests: MoveAssignmentFromSameType, MoveAssignmentFromSimilarType,
ConstructionFromSameType, and ConstructionFromSimilarType.
* TestWebKitAPI/Tests/WebCore/CalculationValue.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170774 268f45cc-cd09-0410-ab3c-d52691b4dbfc

689 files changed:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/CodeBlock.h
Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp
Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
Source/JavaScriptCore/dfg/DFGGraph.cpp
Source/JavaScriptCore/dfg/DFGJITCompiler.cpp
Source/JavaScriptCore/dfg/DFGStackLayoutPhase.cpp
Source/JavaScriptCore/dfg/DFGWorklist.cpp
Source/JavaScriptCore/heap/DelayedReleaseScope.h
Source/JavaScriptCore/heap/HeapInlines.h
Source/JavaScriptCore/heap/WeakInlines.h
Source/JavaScriptCore/inspector/InspectorAgentRegistry.cpp
Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp
Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.cpp
Source/JavaScriptCore/jit/AccessorCallJITStubRoutine.cpp
Source/JavaScriptCore/jit/ArityCheckFailReturnThunks.cpp
Source/JavaScriptCore/jit/Repatch.cpp
Source/JavaScriptCore/parser/Nodes.cpp
Source/JavaScriptCore/parser/Parser.cpp
Source/JavaScriptCore/parser/Parser.h
Source/JavaScriptCore/parser/SourceProviderCache.cpp
Source/JavaScriptCore/replay/EncodedValue.h
Source/JavaScriptCore/replay/scripts/CodeGeneratorReplayInputs.py
Source/JavaScriptCore/replay/scripts/tests/expected/generate-enum-with-guard.json-TestReplayInputs.cpp
Source/JavaScriptCore/replay/scripts/tests/expected/generate-memoized-type-modes.json-TestReplayInputs.cpp
Source/JavaScriptCore/runtime/SymbolTable.h
Source/JavaScriptCore/runtime/WeakGCMap.h
Source/WTF/ChangeLog
Source/WTF/wtf/Deque.h
Source/WTF/wtf/HashMap.h
Source/WTF/wtf/HashSet.h
Source/WTF/wtf/HashTable.h
Source/WTF/wtf/IteratorAdaptors.h
Source/WTF/wtf/IteratorRange.h
Source/WTF/wtf/ListHashSet.h
Source/WTF/wtf/MainThread.cpp
Source/WTF/wtf/MallocPtr.h
Source/WTF/wtf/MessageQueue.h
Source/WTF/wtf/Optional.h
Source/WTF/wtf/OwnPtr.h
Source/WTF/wtf/RefPtr.h
Source/WTF/wtf/RefPtrHashMap.h
Source/WTF/wtf/RetainPtr.h
Source/WTF/wtf/RunLoop.cpp
Source/WTF/wtf/StdLibExtras.h
Source/WTF/wtf/Vector.h
Source/WTF/wtf/gobject/GMainLoopSource.cpp
Source/WTF/wtf/text/AtomicString.h
Source/WTF/wtf/text/WTFString.cpp
Source/WTF/wtf/win/GDIObject.h
Source/WebCore/ChangeLog
Source/WebCore/Modules/battery/NavigatorBattery.cpp
Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp
Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp
Source/WebCore/Modules/gamepad/deprecated/NavigatorGamepad.cpp
Source/WebCore/Modules/geolocation/NavigatorGeolocation.cpp
Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.cpp
Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.h
Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.cpp
Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp
Source/WebCore/Modules/mediasource/MediaSource.cpp
Source/WebCore/Modules/mediasource/SourceBuffer.cpp
Source/WebCore/Modules/mediastream/RTCDTMFSender.cpp
Source/WebCore/Modules/mediastream/RTCDataChannel.cpp
Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.cpp
Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h
Source/WebCore/Modules/notifications/DOMWindowNotifications.cpp
Source/WebCore/Modules/notifications/WorkerGlobalScopeNotifications.cpp
Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm
Source/WebCore/Modules/plugins/YouTubePluginReplacement.cpp
Source/WebCore/Modules/quota/DOMWindowQuota.cpp
Source/WebCore/Modules/quota/NavigatorStorageQuota.cpp
Source/WebCore/Modules/quota/WorkerNavigatorStorageQuota.cpp
Source/WebCore/Modules/speech/DOMWindowSpeechSynthesis.cpp
Source/WebCore/Modules/speech/SpeechSynthesis.cpp
Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp
Source/WebCore/Modules/webaudio/AudioNode.cpp
Source/WebCore/Modules/webaudio/ConvolverNode.cpp
Source/WebCore/Modules/webdatabase/Database.cpp
Source/WebCore/Modules/webdatabase/DatabaseBackend.cpp
Source/WebCore/Modules/webdatabase/DatabaseThread.cpp
Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp
Source/WebCore/Modules/webdatabase/SQLTransaction.cpp
Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp
Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp
Source/WebCore/Modules/websockets/WebSocket.cpp
Source/WebCore/accessibility/AXObjectCache.cpp
Source/WebCore/accessibility/AccessibilityNodeObject.cpp
Source/WebCore/accessibility/AccessibilityObject.h
Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp
Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp
Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
Source/WebCore/bindings/js/JSMessageEventCustom.cpp
Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp
Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp
Source/WebCore/bindings/js/SerializedScriptValue.cpp
Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp
Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
Source/WebCore/crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp
Source/WebCore/css/CSSCalculationValue.cpp
Source/WebCore/css/CSSCalculationValue.h
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSCrossfadeValue.cpp
Source/WebCore/css/CSSCursorImageValue.cpp
Source/WebCore/css/CSSCursorImageValue.h
Source/WebCore/css/CSSFilterImageValue.cpp
Source/WebCore/css/CSSFilterImageValue.h
Source/WebCore/css/CSSFontFace.cpp
Source/WebCore/css/CSSFontSelector.cpp
Source/WebCore/css/CSSGrammar.y.in
Source/WebCore/css/CSSParser.cpp
Source/WebCore/css/CSSParserValues.cpp
Source/WebCore/css/CSSParserValues.h
Source/WebCore/css/CSSPrimitiveValue.cpp
Source/WebCore/css/CSSSelector.cpp
Source/WebCore/css/CSSStyleSheet.cpp
Source/WebCore/css/DeprecatedStyleBuilder.cpp
Source/WebCore/css/DocumentRuleSets.cpp
Source/WebCore/css/MediaList.cpp
Source/WebCore/css/MediaQuery.cpp
Source/WebCore/css/RuleSet.cpp
Source/WebCore/css/RuleSet.h
Source/WebCore/css/SVGCSSStyleSelector.cpp
Source/WebCore/css/SourceSizeList.cpp
Source/WebCore/css/SourceSizeList.h
Source/WebCore/css/StyleResolver.cpp
Source/WebCore/css/StyleResolver.h
Source/WebCore/css/StyleRule.cpp
Source/WebCore/css/StyleRule.h
Source/WebCore/css/WebKitCSSKeyframeRule.cpp
Source/WebCore/css/WebKitCSSKeyframeRule.h
Source/WebCore/dom/ChildListMutationScope.cpp
Source/WebCore/dom/DOMImplementation.cpp
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/DocumentStyleSheetCollection.cpp
Source/WebCore/dom/Element.cpp
Source/WebCore/dom/ElementRareData.h
Source/WebCore/dom/MessageEvent.cpp
Source/WebCore/dom/MessageEvent.h
Source/WebCore/dom/MessagePort.cpp
Source/WebCore/dom/Node.cpp
Source/WebCore/dom/ProcessingInstruction.cpp
Source/WebCore/dom/PseudoElement.cpp
Source/WebCore/dom/ScopedEventQueue.cpp
Source/WebCore/dom/ScriptExecutionContext.cpp
Source/WebCore/dom/ScriptExecutionContext.h
Source/WebCore/dom/SecurityContext.cpp
Source/WebCore/dom/SelectorQuery.cpp
Source/WebCore/dom/default/PlatformMessagePortChannel.cpp
Source/WebCore/dom/default/PlatformMessagePortChannel.h
Source/WebCore/editing/TextCheckingHelper.cpp
Source/WebCore/editing/TextIterator.cpp
Source/WebCore/fileapi/Blob.cpp
Source/WebCore/fileapi/Blob.h
Source/WebCore/fileapi/FileList.h
Source/WebCore/fileapi/FileThread.cpp
Source/WebCore/fileapi/FileThread.h
Source/WebCore/fileapi/ThreadableBlobRegistry.cpp
Source/WebCore/fileapi/WebKitBlobBuilder.cpp
Source/WebCore/history/CachedFrame.cpp
Source/WebCore/history/HistoryItem.cpp
Source/WebCore/history/PageCache.cpp
Source/WebCore/html/BaseButtonInputType.cpp
Source/WebCore/html/FileInputType.cpp
Source/WebCore/html/FormController.cpp
Source/WebCore/html/HTMLAppletElement.cpp
Source/WebCore/html/HTMLBRElement.cpp
Source/WebCore/html/HTMLBodyElement.cpp
Source/WebCore/html/HTMLButtonElement.cpp
Source/WebCore/html/HTMLCanvasElement.cpp
Source/WebCore/html/HTMLCollection.cpp
Source/WebCore/html/HTMLCollection.h
Source/WebCore/html/HTMLDetailsElement.cpp
Source/WebCore/html/HTMLElement.cpp
Source/WebCore/html/HTMLFieldSetElement.cpp
Source/WebCore/html/HTMLFormControlsCollection.cpp
Source/WebCore/html/HTMLFrameElement.cpp
Source/WebCore/html/HTMLFrameSetElement.cpp
Source/WebCore/html/HTMLIFrameElement.cpp
Source/WebCore/html/HTMLImageElement.cpp
Source/WebCore/html/HTMLInputElement.cpp
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/html/HTMLMeterElement.cpp
Source/WebCore/html/HTMLPlugInElement.cpp
Source/WebCore/html/HTMLPlugInImageElement.cpp
Source/WebCore/html/HTMLProgressElement.cpp
Source/WebCore/html/HTMLSelectElement.cpp
Source/WebCore/html/HTMLSummaryElement.cpp
Source/WebCore/html/HTMLTextAreaElement.cpp
Source/WebCore/html/HTMLVideoElement.cpp
Source/WebCore/html/ImageInputType.cpp
Source/WebCore/html/InputType.cpp
Source/WebCore/html/RangeInputType.cpp
Source/WebCore/html/SearchInputType.cpp
Source/WebCore/html/TextFieldInputType.cpp
Source/WebCore/html/canvas/WebGLRenderingContext.cpp
Source/WebCore/html/parser/HTMLConstructionSite.cpp
Source/WebCore/html/parser/HTMLElementStack.cpp
Source/WebCore/html/parser/HTMLElementStack.h
Source/WebCore/html/parser/HTMLPreloadScanner.cpp
Source/WebCore/html/parser/HTMLResourcePreloader.cpp
Source/WebCore/html/parser/HTMLToken.h
Source/WebCore/html/shadow/DetailsMarkerControl.cpp
Source/WebCore/html/shadow/MediaControlElements.cpp
Source/WebCore/html/shadow/MeterShadowElement.cpp
Source/WebCore/html/shadow/ProgressShadowElement.cpp
Source/WebCore/html/shadow/SliderThumbElement.cpp
Source/WebCore/html/shadow/TextControlInnerElements.cpp
Source/WebCore/html/shadow/mac/ImageControlsButtonElementMac.cpp
Source/WebCore/html/shadow/mac/ImageControlsRootElementMac.cpp
Source/WebCore/html/track/VTTCue.cpp
Source/WebCore/inspector/CommandLineAPIHost.cpp
Source/WebCore/inspector/DOMEditor.cpp
Source/WebCore/inspector/DOMPatchSupport.cpp
Source/WebCore/inspector/InspectorCSSAgent.cpp
Source/WebCore/inspector/InspectorController.cpp
Source/WebCore/inspector/InspectorDOMAgent.cpp
Source/WebCore/inspector/InspectorFrontendClientLocal.cpp
Source/WebCore/inspector/InspectorHistory.cpp
Source/WebCore/inspector/InspectorOverlay.cpp
Source/WebCore/inspector/InspectorResourceAgent.cpp
Source/WebCore/inspector/InspectorStyleSheet.cpp
Source/WebCore/inspector/WorkerInspectorController.cpp
Source/WebCore/loader/CrossOriginPreflightResultCache.cpp
Source/WebCore/loader/DocumentLoader.cpp
Source/WebCore/loader/DocumentThreadableLoader.cpp
Source/WebCore/loader/NavigationScheduler.cpp
Source/WebCore/loader/PolicyCallback.cpp
Source/WebCore/loader/PolicyChecker.cpp
Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
Source/WebCore/loader/cache/CachedCSSStyleSheet.cpp
Source/WebCore/loader/icon/IconDatabase.cpp
Source/WebCore/mathml/MathMLInlineContainerElement.cpp
Source/WebCore/mathml/MathMLMathElement.cpp
Source/WebCore/mathml/MathMLMencloseElement.cpp
Source/WebCore/mathml/MathMLSelectElement.cpp
Source/WebCore/mathml/MathMLTextElement.cpp
Source/WebCore/page/DOMTimer.cpp
Source/WebCore/page/DOMWindow.cpp
Source/WebCore/page/Page.cpp
Source/WebCore/page/PageGroup.cpp
Source/WebCore/page/UserContentController.cpp
Source/WebCore/page/animation/AnimationController.cpp
Source/WebCore/page/animation/CSSPropertyAnimation.cpp
Source/WebCore/page/scrolling/ScrollingStateTree.cpp
Source/WebCore/page/scrolling/ScrollingThread.cpp
Source/WebCore/platform/CalculationValue.cpp
Source/WebCore/platform/CalculationValue.h
Source/WebCore/platform/KeyedCoding.h
Source/WebCore/platform/Length.cpp
Source/WebCore/platform/LengthBox.h
Source/WebCore/platform/LengthSize.h
Source/WebCore/platform/SharedBuffer.h
Source/WebCore/platform/Supplementable.h
Source/WebCore/platform/Timer.h
Source/WebCore/platform/audio/AudioBus.cpp
Source/WebCore/platform/audio/HRTFDatabase.cpp
Source/WebCore/platform/audio/HRTFElevation.cpp
Source/WebCore/platform/audio/HRTFElevation.h
Source/WebCore/platform/audio/HRTFKernel.cpp
Source/WebCore/platform/audio/HRTFKernel.h
Source/WebCore/platform/audio/ReverbConvolver.cpp
Source/WebCore/platform/efl/RenderThemeEfl.cpp
Source/WebCore/platform/graphics/FloatPolygon.cpp
Source/WebCore/platform/graphics/Font.cpp
Source/WebCore/platform/graphics/SimpleFontData.cpp
Source/WebCore/platform/graphics/SimpleFontData.h
Source/WebCore/platform/graphics/TiledBackingStore.cpp
Source/WebCore/platform/graphics/ca/TileController.cpp
Source/WebCore/platform/graphics/efl/CairoUtilitiesEfl.cpp
Source/WebCore/platform/graphics/efl/GraphicsContext3DEfl.cpp
Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp
Source/WebCore/platform/graphics/filters/Filter.h
Source/WebCore/platform/graphics/filters/FilterOperation.h
Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp
Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp
Source/WebCore/platform/graphics/win/FontCacheWin.cpp
Source/WebCore/platform/graphics/win/FontCustomPlatformData.cpp
Source/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp
Source/WebCore/platform/graphics/win/FontPlatformDataCGWin.cpp
Source/WebCore/platform/graphics/win/FontPlatformDataCairoWin.cpp
Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp
Source/WebCore/platform/graphics/win/SharedGDIObject.h
Source/WebCore/platform/graphics/win/SimpleFontDataWin.cpp
Source/WebCore/platform/gtk/GtkTouchContextHelper.cpp
Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
Source/WebCore/platform/mac/HIDGamepadProvider.cpp
Source/WebCore/platform/network/BlobData.h
Source/WebCore/platform/network/BlobPart.h
Source/WebCore/platform/network/HTTPHeaderMap.cpp
Source/WebCore/platform/network/NetworkStateNotifier.cpp
Source/WebCore/platform/network/ResourceHandle.h
Source/WebCore/platform/network/ResourceRequestBase.cpp
Source/WebCore/platform/network/ResourceResponseBase.cpp
Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp
Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp
Source/WebCore/platform/network/curl/CurlCacheManager.cpp
Source/WebCore/platform/network/ios/QuickLook.mm
Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp
Source/WebCore/platform/win/WCDataObject.cpp
Source/WebCore/plugins/PluginView.cpp
Source/WebCore/rendering/FloatingObjects.cpp
Source/WebCore/rendering/LayoutState.cpp
Source/WebCore/rendering/RenderBlock.cpp
Source/WebCore/rendering/RenderBlockFlow.cpp
Source/WebCore/rendering/RenderBlockFlow.h
Source/WebCore/rendering/RenderBlockLineLayout.cpp
Source/WebCore/rendering/RenderBox.cpp
Source/WebCore/rendering/RenderBoxModelObject.cpp
Source/WebCore/rendering/RenderButton.cpp
Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
Source/WebCore/rendering/RenderDetailsMarker.cpp
Source/WebCore/rendering/RenderElement.cpp
Source/WebCore/rendering/RenderElement.h
Source/WebCore/rendering/RenderEmbeddedObject.cpp
Source/WebCore/rendering/RenderFieldset.cpp
Source/WebCore/rendering/RenderFileUploadControl.cpp
Source/WebCore/rendering/RenderFlexibleBox.cpp
Source/WebCore/rendering/RenderFlowThread.cpp
Source/WebCore/rendering/RenderFrame.cpp
Source/WebCore/rendering/RenderFrameBase.cpp
Source/WebCore/rendering/RenderFrameSet.cpp
Source/WebCore/rendering/RenderFullScreen.cpp
Source/WebCore/rendering/RenderGrid.cpp
Source/WebCore/rendering/RenderHTMLCanvas.cpp
Source/WebCore/rendering/RenderIFrame.cpp
Source/WebCore/rendering/RenderImage.cpp
Source/WebCore/rendering/RenderInline.cpp
Source/WebCore/rendering/RenderLayerCompositor.cpp
Source/WebCore/rendering/RenderLayerModelObject.cpp
Source/WebCore/rendering/RenderLineBreak.cpp
Source/WebCore/rendering/RenderListBox.cpp
Source/WebCore/rendering/RenderListItem.cpp
Source/WebCore/rendering/RenderListMarker.cpp
Source/WebCore/rendering/RenderMedia.cpp
Source/WebCore/rendering/RenderMediaControlElements.cpp
Source/WebCore/rendering/RenderMenuList.cpp
Source/WebCore/rendering/RenderMeter.cpp
Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp
Source/WebCore/rendering/RenderMultiColumnSet.cpp
Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp
Source/WebCore/rendering/RenderNamedFlowFragment.cpp
Source/WebCore/rendering/RenderNamedFlowThread.cpp
Source/WebCore/rendering/RenderProgress.cpp
Source/WebCore/rendering/RenderPtr.h
Source/WebCore/rendering/RenderQuote.cpp
Source/WebCore/rendering/RenderRegion.cpp
Source/WebCore/rendering/RenderRegionSet.cpp
Source/WebCore/rendering/RenderReplaced.cpp
Source/WebCore/rendering/RenderReplica.cpp
Source/WebCore/rendering/RenderRuby.cpp
Source/WebCore/rendering/RenderRubyBase.cpp
Source/WebCore/rendering/RenderRubyRun.cpp
Source/WebCore/rendering/RenderRubyText.cpp
Source/WebCore/rendering/RenderScrollbarPart.cpp
Source/WebCore/rendering/RenderSearchField.cpp
Source/WebCore/rendering/RenderSlider.cpp
Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp
Source/WebCore/rendering/RenderTable.cpp
Source/WebCore/rendering/RenderTableCaption.cpp
Source/WebCore/rendering/RenderTableCell.cpp
Source/WebCore/rendering/RenderTableCol.cpp
Source/WebCore/rendering/RenderTableRow.cpp
Source/WebCore/rendering/RenderTableSection.cpp
Source/WebCore/rendering/RenderTextControl.cpp
Source/WebCore/rendering/RenderTextControl.h
Source/WebCore/rendering/RenderTextControlMultiLine.cpp
Source/WebCore/rendering/RenderTextControlSingleLine.cpp
Source/WebCore/rendering/RenderTextControlSingleLine.h
Source/WebCore/rendering/RenderVTTCue.cpp
Source/WebCore/rendering/RenderVideo.cpp
Source/WebCore/rendering/RenderView.cpp
Source/WebCore/rendering/RenderView.h
Source/WebCore/rendering/RenderWidget.cpp
Source/WebCore/rendering/RootInlineBox.cpp
Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp
Source/WebCore/rendering/mathml/RenderMathMLBlock.h
Source/WebCore/rendering/mathml/RenderMathMLFenced.cpp
Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
Source/WebCore/rendering/mathml/RenderMathMLMath.cpp
Source/WebCore/rendering/mathml/RenderMathMLMenclose.cpp
Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp
Source/WebCore/rendering/mathml/RenderMathMLRadicalOperator.cpp
Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp
Source/WebCore/rendering/mathml/RenderMathMLRoot.h
Source/WebCore/rendering/mathml/RenderMathMLRow.cpp
Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp
Source/WebCore/rendering/mathml/RenderMathMLScripts.h
Source/WebCore/rendering/mathml/RenderMathMLSpace.cpp
Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.cpp
Source/WebCore/rendering/mathml/RenderMathMLToken.cpp
Source/WebCore/rendering/mathml/RenderMathMLUnderOver.cpp
Source/WebCore/rendering/shapes/PolygonShape.h
Source/WebCore/rendering/shapes/RasterShape.h
Source/WebCore/rendering/shapes/Shape.cpp
Source/WebCore/rendering/style/BasicShapes.cpp
Source/WebCore/rendering/style/BasicShapes.h
Source/WebCore/rendering/style/ContentData.cpp
Source/WebCore/rendering/style/ContentData.h
Source/WebCore/rendering/style/DataRef.h
Source/WebCore/rendering/style/FillLayer.cpp
Source/WebCore/rendering/style/FillLayer.h
Source/WebCore/rendering/style/NinePieceImage.cpp
Source/WebCore/rendering/style/NinePieceImage.h
Source/WebCore/rendering/style/RenderStyle.cpp
Source/WebCore/rendering/style/RenderStyle.h
Source/WebCore/rendering/style/SVGRenderStyle.h
Source/WebCore/rendering/style/ShadowData.h
Source/WebCore/rendering/style/StyleGeneratedImage.cpp
Source/WebCore/rendering/style/StyleGeneratedImage.h
Source/WebCore/rendering/style/StyleReflection.h
Source/WebCore/rendering/svg/RenderSVGBlock.cpp
Source/WebCore/rendering/svg/RenderSVGContainer.cpp
Source/WebCore/rendering/svg/RenderSVGEllipse.cpp
Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp
Source/WebCore/rendering/svg/RenderSVGGradientStop.cpp
Source/WebCore/rendering/svg/RenderSVGHiddenContainer.cpp
Source/WebCore/rendering/svg/RenderSVGImage.cpp
Source/WebCore/rendering/svg/RenderSVGInline.cpp
Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
Source/WebCore/rendering/svg/RenderSVGModelObject.cpp
Source/WebCore/rendering/svg/RenderSVGPath.cpp
Source/WebCore/rendering/svg/RenderSVGRect.cpp
Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp
Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp
Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp
Source/WebCore/rendering/svg/RenderSVGResourceFilterPrimitive.cpp
Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
Source/WebCore/rendering/svg/RenderSVGResourceLinearGradient.cpp
Source/WebCore/rendering/svg/RenderSVGResourceMarker.cpp
Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
Source/WebCore/rendering/svg/RenderSVGResourceRadialGradient.cpp
Source/WebCore/rendering/svg/RenderSVGRoot.cpp
Source/WebCore/rendering/svg/RenderSVGShape.cpp
Source/WebCore/rendering/svg/RenderSVGTSpan.h
Source/WebCore/rendering/svg/RenderSVGText.cpp
Source/WebCore/rendering/svg/RenderSVGTextPath.cpp
Source/WebCore/rendering/svg/RenderSVGTransformableContainer.cpp
Source/WebCore/rendering/svg/RenderSVGViewportContainer.cpp
Source/WebCore/rendering/svg/SVGRenderingContext.cpp
Source/WebCore/rendering/svg/SVGResourcesCache.cpp
Source/WebCore/replay/CapturingInputCursor.cpp
Source/WebCore/replay/MemoizedDOMResult.cpp
Source/WebCore/replay/ReplayController.cpp
Source/WebCore/replay/SegmentedInputStorage.cpp
Source/WebCore/replay/SerializationMethods.cpp
Source/WebCore/replay/UserInputBridge.cpp
Source/WebCore/style/StyleResolveTree.cpp
Source/WebCore/svg/SVGAElement.cpp
Source/WebCore/svg/SVGAltGlyphElement.cpp
Source/WebCore/svg/SVGAnimatedPath.cpp
Source/WebCore/svg/SVGCircleElement.cpp
Source/WebCore/svg/SVGClipPathElement.cpp
Source/WebCore/svg/SVGDefsElement.cpp
Source/WebCore/svg/SVGDocumentExtensions.cpp
Source/WebCore/svg/SVGEllipseElement.cpp
Source/WebCore/svg/SVGFilterElement.cpp
Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
Source/WebCore/svg/SVGFontElement.cpp
Source/WebCore/svg/SVGForeignObjectElement.cpp
Source/WebCore/svg/SVGGElement.cpp
Source/WebCore/svg/SVGGraphicsElement.cpp
Source/WebCore/svg/SVGImageElement.cpp
Source/WebCore/svg/SVGLinearGradientElement.cpp
Source/WebCore/svg/SVGMarkerElement.cpp
Source/WebCore/svg/SVGMaskElement.cpp
Source/WebCore/svg/SVGPathElement.cpp
Source/WebCore/svg/SVGPatternElement.cpp
Source/WebCore/svg/SVGRadialGradientElement.cpp
Source/WebCore/svg/SVGRectElement.cpp
Source/WebCore/svg/SVGSVGElement.cpp
Source/WebCore/svg/SVGStopElement.cpp
Source/WebCore/svg/SVGSwitchElement.cpp
Source/WebCore/svg/SVGSymbolElement.cpp
Source/WebCore/svg/SVGTRefElement.cpp
Source/WebCore/svg/SVGTSpanElement.cpp
Source/WebCore/svg/SVGTextElement.cpp
Source/WebCore/svg/SVGTextPathElement.cpp
Source/WebCore/svg/SVGUseElement.cpp
Source/WebCore/svg/graphics/SVGImage.cpp
Source/WebCore/svg/properties/SVGAttributeToPropertyMap.cpp
Source/WebCore/testing/Internals.cpp
Source/WebCore/workers/DedicatedWorkerGlobalScope.cpp
Source/WebCore/workers/DedicatedWorkerThread.cpp
Source/WebCore/workers/DefaultSharedWorkerRepository.cpp
Source/WebCore/workers/SharedWorker.cpp
Source/WebCore/workers/SharedWorkerGlobalScope.cpp
Source/WebCore/workers/SharedWorkerRepository.cpp
Source/WebCore/workers/SharedWorkerThread.cpp
Source/WebCore/workers/Worker.cpp
Source/WebCore/workers/WorkerGlobalScope.cpp
Source/WebCore/workers/WorkerMessagingProxy.cpp
Source/WebCore/workers/WorkerRunLoop.cpp
Source/WebCore/workers/WorkerScriptLoader.cpp
Source/WebCore/workers/WorkerThread.cpp
Source/WebCore/xml/XMLHttpRequest.cpp
Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp
Source/WebCore/xml/XPathExpression.cpp
Source/WebCore/xml/XPathExpressionNode.cpp
Source/WebCore/xml/XPathExpressionNode.h
Source/WebCore/xml/XPathFunctions.cpp
Source/WebCore/xml/XPathGrammar.y
Source/WebCore/xml/XPathNodeSet.cpp
Source/WebCore/xml/XPathParser.cpp
Source/WebCore/xml/XPathParser.h
Source/WebCore/xml/XPathPath.cpp
Source/WebCore/xml/XPathPredicate.cpp
Source/WebCore/xml/XPathStep.cpp
Source/WebCore/xml/XPathStep.h
Source/WebCore/xml/XPathValue.h
Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
Source/WebKit/ios/ChangeLog
Source/WebKit/ios/WebCoreSupport/WebFixedPositionContent.mm
Source/WebKit/ios/WebCoreSupport/WebInspectorClientIOS.mm
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/History/WebHistoryItem.mm
Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.h
Source/WebKit/mac/Plugins/WebNetscapePluginView.mm
Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm
Source/WebKit/mac/WebView/WebArchive.mm
Source/WebKit/win/ChangeLog
Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp
Source/WebKit/win/WebHistory.cpp
Source/WebKit/win/WebHistoryItem.cpp
Source/WebKit/win/WebView.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/DatabaseProcess/DatabaseProcess.cpp
Source/WebKit2/DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp
Source/WebKit2/NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm
Source/WebKit2/NetworkProcess/FileAPI/NetworkBlobRegistry.cpp
Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.cpp
Source/WebKit2/Platform/IPC/ArgumentCoders.h
Source/WebKit2/Platform/IPC/ArgumentDecoder.cpp
Source/WebKit2/Platform/IPC/Connection.cpp
Source/WebKit2/Platform/IPC/Connection.h
Source/WebKit2/Platform/IPC/HandleMessage.h
Source/WebKit2/Platform/IPC/MessageDecoder.cpp
Source/WebKit2/Platform/IPC/MessageSender.cpp
Source/WebKit2/Platform/IPC/MessageSender.h
Source/WebKit2/Platform/IPC/mac/ConnectionMac.mm
Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp
Source/WebKit2/Platform/efl/DispatchQueueEfl.cpp
Source/WebKit2/Platform/efl/DispatchQueueWorkItemEfl.h
Source/WebKit2/Platform/efl/WorkQueueEfl.cpp
Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp
Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm
Source/WebKit2/PluginProcess/WebProcessConnection.cpp
Source/WebKit2/Scripts/webkit2/LegacyMessageReceiver-expected.cpp
Source/WebKit2/Scripts/webkit2/MessageReceiver-expected.cpp
Source/WebKit2/Scripts/webkit2/messages.py
Source/WebKit2/Shared/API/c/WKArray.cpp
Source/WebKit2/Shared/API/c/WKDictionary.cpp
Source/WebKit2/Shared/APIArray.cpp
Source/WebKit2/Shared/APIURL.h
Source/WebKit2/Shared/APIWebArchive.cpp
Source/WebKit2/Shared/AsyncRequest.cpp
Source/WebKit2/Shared/AsyncRequest.h
Source/WebKit2/Shared/BlockingResponseMap.h
Source/WebKit2/Shared/ChildProcessProxy.cpp
Source/WebKit2/Shared/ChildProcessProxy.h
Source/WebKit2/Shared/Cocoa/WKNSDictionary.mm
Source/WebKit2/Shared/Downloads/DownloadManager.cpp
Source/WebKit2/Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h
Source/WebKit2/Shared/ImmutableDictionary.cpp
Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp
Source/WebKit2/Shared/SecurityOriginData.cpp
Source/WebKit2/Shared/SessionTracker.cpp
Source/WebKit2/Shared/UserData.cpp
Source/WebKit2/Shared/UserMessageCoders.h
Source/WebKit2/Shared/WebBackForwardListItem.cpp
Source/WebKit2/Shared/WebBackForwardListItem.h
Source/WebKit2/Shared/WebConnection.cpp
Source/WebKit2/Shared/WebContextMenuItem.cpp
Source/WebKit2/Shared/WebCoreArgumentCoders.cpp
Source/WebKit2/Shared/WebPreferencesStore.h
Source/WebKit2/Shared/WebRenderLayer.cpp
Source/WebKit2/Shared/WebRenderObject.cpp
Source/WebKit2/Shared/cf/KeyedDecoder.cpp
Source/WebKit2/Shared/linux/SeccompFilters/OpenSyscall.cpp
Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm
Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.h
Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm
Source/WebKit2/UIProcess/API/APISessionState.cpp
Source/WebKit2/UIProcess/API/APIUIClient.h
Source/WebKit2/UIProcess/API/C/WKPage.cpp
Source/WebKit2/UIProcess/API/C/WKSessionStateRef.cpp
Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm
Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextGroup.mm
Source/WebKit2/UIProcess/API/Cocoa/WKProcessGroup.mm
Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm
Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
Source/WebKit2/UIProcess/API/gtk/WebKitContextMenuItem.cpp
Source/WebKit2/UIProcess/API/gtk/WebKitFileChooserRequest.cpp
Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp
Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp
Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp
Source/WebKit2/UIProcess/API/gtk/WebKitWebViewGroup.cpp
Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm
Source/WebKit2/UIProcess/API/mac/WKView.mm
Source/WebKit2/UIProcess/Cocoa/NavigationState.mm
Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm
Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp
Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.cpp
Source/WebKit2/UIProcess/GenericCallback.h
Source/WebKit2/UIProcess/InspectorServer/WebSocketServer.cpp
Source/WebKit2/UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp
Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.cpp
Source/WebKit2/UIProcess/Notifications/WebNotificationProvider.cpp
Source/WebKit2/UIProcess/PageLoadState.cpp
Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.cpp
Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp
Source/WebKit2/UIProcess/Plugins/WebPluginSiteDataManager.cpp
Source/WebKit2/UIProcess/StatisticsRequest.cpp
Source/WebKit2/UIProcess/Storage/StorageManager.cpp
Source/WebKit2/UIProcess/UserContent/WebScriptMessageHandler.cpp
Source/WebKit2/UIProcess/UserContent/WebUserContentControllerProxy.cpp
Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.cpp
Source/WebKit2/UIProcess/WebBackForwardList.cpp
Source/WebKit2/UIProcess/WebContext.cpp
Source/WebKit2/UIProcess/WebCookieManagerProxy.cpp
Source/WebKit2/UIProcess/WebDatabaseManagerProxy.cpp
Source/WebKit2/UIProcess/WebFormClient.cpp
Source/WebKit2/UIProcess/WebGrammarDetail.cpp
Source/WebKit2/UIProcess/WebKeyValueStorageManager.cpp
Source/WebKit2/UIProcess/WebMediaCacheManagerProxy.cpp
Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp
Source/WebKit2/UIProcess/WebPageContextMenuClient.cpp
Source/WebKit2/UIProcess/WebPageProxy.cpp
Source/WebKit2/UIProcess/WebProcessProxy.cpp
Source/WebKit2/UIProcess/WebResourceCacheManagerProxy.cpp
Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp
Source/WebKit2/UIProcess/efl/InputMethodContextEfl.h
Source/WebKit2/UIProcess/efl/WebUIPopupMenuClient.cpp
Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.mm
Source/WebKit2/UIProcess/ios/WKContentView.mm
Source/WebKit2/UIProcess/ios/WKGeolocationProviderIOS.mm
Source/WebKit2/UIProcess/ios/WebPageProxyIOS.mm
Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm
Source/WebKit2/UIProcess/mac/LegacySessionStateCoding.cpp
Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm
Source/WebKit2/UIProcess/mac/ViewGestureController.h
Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm
Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
Source/WebKit2/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp
Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp
Source/WebKit2/WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm
Source/WebKit2/WebProcess/ResourceCache/cf/WebResourceCacheManagerCFNet.cpp
Source/WebKit2/WebProcess/WebCoreSupport/SessionStateConversion.cpp
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
Source/WebKit2/WebProcess/WebCoreSupport/WebPasteboardOverrides.cpp
Source/WebKit2/WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp
Source/WebKit2/WebProcess/WebPage/EventDispatcher.cpp
Source/WebKit2/WebProcess/WebPage/FindController.cpp
Source/WebKit2/WebProcess/WebPage/PageOverlayController.cpp
Source/WebKit2/WebProcess/WebPage/WebFrame.cpp
Source/WebKit2/WebProcess/WebPage/WebInspector.cpp
Source/WebKit2/WebProcess/WebPage/WebPage.cpp
Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm
Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm
Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeContext.mm
Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm
Source/WebKit2/WebProcess/ios/WebVideoFullscreenManager.mm
Tools/ChangeLog
Tools/DumpRenderTree/win/DRTDataObject.cpp
Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp
Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp
Tools/TestWebKitAPI/Tests/WTF/RefPtr.cpp
Tools/TestWebKitAPI/Tests/WTF/Vector.cpp
Tools/TestWebKitAPI/Tests/WTF/WTFString.cpp
Tools/TestWebKitAPI/Tests/WTF/ns/RetainPtr.mm
Tools/TestWebKitAPI/Tests/WebCore/CalculationValue.cpp

index 1d293f3..4d6ac6a 100644 (file)
@@ -1,3 +1,23 @@
+2014-07-03  Daniel Bates  <dabates@apple.com>
+
+        Add WTF::move()
+        https://bugs.webkit.org/show_bug.cgi?id=134500
+
+        Rubber-stamped by Anders Carlsson.
+
+        Substitute WTF::move() for std::move().
+
+        * bytecode/CodeBlock.h:
+        * bytecode/UnlinkedCodeBlock.cpp:
+        * bytecompiler/BytecodeGenerator.cpp:
+        * dfg/DFGGraph.cpp:
+        * dfg/DFGJITCompiler.cpp:
+        * dfg/DFGStackLayoutPhase.cpp:
+        * dfg/DFGWorklist.cpp:
+        * heap/DelayedReleaseScope.h:
+        * heap/HeapInlines.h:
+        [...]
+
 2014-07-03  Filip Pizlo  <fpizlo@apple.com>
 
         SSA DCE should process blocks in forward order
index e63e5a4..2fc7f70 100644 (file)
@@ -687,7 +687,7 @@ public:
         {
             ConcurrentJITLocker locker(m_lock);
             if (!m_livenessAnalysis)
-                m_livenessAnalysis = std::move(analysis);
+                m_livenessAnalysis = WTF::move(analysis);
             return *m_livenessAnalysis;
         }
     }
index 3e7ead2..5c2cc5f 100644 (file)
@@ -441,7 +441,7 @@ void UnlinkedFunctionExecutable::destroy(JSCell* cell)
 
 void UnlinkedCodeBlock::setInstructions(std::unique_ptr<UnlinkedInstructionStream> instructions)
 {
-    m_unlinkedInstructions = std::move(instructions);
+    m_unlinkedInstructions = WTF::move(instructions);
 }
 
 const UnlinkedInstructionStream& UnlinkedCodeBlock::instructions() const
index dcda652..734546a 100644 (file)
@@ -303,7 +303,7 @@ BytecodeGenerator::BytecodeGenerator(VM& vm, FunctionBodyNode* functionBody, Unl
             slowArguments[i].status = SlowArgument::Captured;
             slowArguments[i].index = capturedArguments[i]->index();
         }
-        m_symbolTable->setSlowArguments(std::move(slowArguments));
+        m_symbolTable->setSlowArguments(WTF::move(slowArguments));
     }
 
     RegisterID* calleeRegister = resolveCallee(functionBody); // May push to the scope chain and/or add a captured var.
index 7a73220..0156c8b 100644 (file)
@@ -696,7 +696,7 @@ FullBytecodeLiveness& Graph::livenessFor(CodeBlock* codeBlock)
     std::unique_ptr<FullBytecodeLiveness> liveness = std::make_unique<FullBytecodeLiveness>();
     codeBlock->livenessAnalysis().computeFullLiveness(*liveness);
     FullBytecodeLiveness& result = *liveness;
-    m_bytecodeLiveness.add(codeBlock, std::move(liveness));
+    m_bytecodeLiveness.add(codeBlock, WTF::move(liveness));
     return result;
 }
 
index 068221c..35de0ec 100644 (file)
@@ -157,10 +157,10 @@ void JITCompiler::link(LinkBuffer& linkBuffer)
         m_jitCode->common.inlineCallFrames = m_graph.m_plan.inlineCallFrames;
     
     m_jitCode->common.machineCaptureStart = m_graph.m_machineCaptureStart;
-    m_jitCode->common.slowArguments = std::move(m_graph.m_slowArguments);
+    m_jitCode->common.slowArguments = WTF::move(m_graph.m_slowArguments);
 
 #if USE(JSVALUE32_64)
-    m_jitCode->common.doubleConstants = std::move(m_graph.m_doubleConstants);
+    m_jitCode->common.doubleConstants = WTF::move(m_graph.m_doubleConstants);
 #endif
 
     BitVector usedJumpTables;
index 16726bc..0f869c0 100644 (file)
@@ -228,7 +228,7 @@ public:
                         newSlowArguments[i].index = virtualRegisterForLocal(allocation[reg.toLocal()]).offset();
                 }
             
-                m_graph.m_slowArguments = std::move(newSlowArguments);
+                m_graph.m_slowArguments = WTF::move(newSlowArguments);
             }
         }
         
index bf241df..4aa1428 100644 (file)
@@ -64,7 +64,7 @@ void Worklist::finishCreation(unsigned numberOfThreads, int relativePriority)
         data->m_identifier = createThread(threadFunction, data.get(), m_threadName.data());
         if (relativePriority)
             changeThreadPriority(data->m_identifier, relativePriority);
-        m_threads.append(std::move(data));
+        m_threads.append(WTF::move(data));
     }
 }
 
index e6d39c0..883c661 100644 (file)
@@ -62,7 +62,7 @@ public:
     template <typename T>
     void releaseSoon(RetainPtr<T>&& object)
     {
-        m_delayedReleaseObjects.append(std::move(object));
+        m_delayedReleaseObjects.append(WTF::move(object));
     }
 
     static bool isInEffectFor(MarkedSpace& markedSpace)
@@ -79,7 +79,7 @@ template <typename T>
 inline void MarkedSpace::releaseSoon(RetainPtr<T>&& object)
 {
     ASSERT(m_currentDelayedReleaseScope);
-    m_currentDelayedReleaseScope->releaseSoon(std::move(object));
+    m_currentDelayedReleaseScope->releaseSoon(WTF::move(object));
 }
 
 #else // USE(CF)
index ace4517..56fb3d7 100644 (file)
@@ -249,7 +249,7 @@ inline BlockAllocator& Heap::blockAllocator()
 template <typename T>
 inline void Heap::releaseSoon(RetainPtr<T>&& object)
 {
-    m_objectSpace.releaseSoon(std::move(object));
+    m_objectSpace.releaseSoon(WTF::move(object));
 }
 #endif
 
index 8cfd501..fe61447 100644 (file)
@@ -65,7 +65,7 @@ template<typename T> inline void Weak<T>::swap(Weak& other)
 
 template<typename T> inline auto Weak<T>::operator=(Weak&& other) -> Weak&
 {
-    Weak weak = std::move(other);
+    Weak weak = WTF::move(other);
     swap(weak);
     return *this;
 }
index e0d9ede..4124cfe 100644 (file)
@@ -39,7 +39,7 @@ InspectorAgentRegistry::InspectorAgentRegistry()
 
 void InspectorAgentRegistry::append(std::unique_ptr<InspectorAgentBase> agent)
 {
-    m_agents.append(std::move(agent));
+    m_agents.append(WTF::move(agent));
 }
 
 void InspectorAgentRegistry::didCreateFrontendAndBackend(InspectorFrontendChannel* frontendChannel, InspectorBackendDispatcher* backendDispatcher)
index c5a2f31..4b8301a 100644 (file)
@@ -70,9 +70,9 @@ JSGlobalObjectInspectorController::JSGlobalObjectInspectorController(JSGlobalObj
     profilerAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer());
 
     m_agents.append(std::make_unique<InspectorAgent>());
-    m_agents.append(std::move(runtimeAgent));
-    m_agents.append(std::move(consoleAgent));
-    m_agents.append(std::move(debuggerAgent));
+    m_agents.append(WTF::move(runtimeAgent));
+    m_agents.append(WTF::move(consoleAgent));
+    m_agents.append(WTF::move(debuggerAgent));
 }
 
 JSGlobalObjectInspectorController::~JSGlobalObjectInspectorController()
index 37b2227..2ddec37 100644 (file)
@@ -237,7 +237,7 @@ void InspectorConsoleAgent::addConsoleMessage(std::unique_ptr<ConsoleMessage> co
             m_previousMessage->updateRepeatCountInConsole(m_frontendDispatcher.get());
     } else {
         m_previousMessage = consoleMessage.get();
-        m_consoleMessages.append(std::move(consoleMessage));
+        m_consoleMessages.append(WTF::move(consoleMessage));
         if (m_frontendDispatcher && m_enabled)
             m_previousMessage->addToFrontend(m_frontendDispatcher.get(), m_injectedScriptManager, true);
     }
index f4a94b7..f573061 100644 (file)
@@ -35,7 +35,7 @@ namespace JSC {
 AccessorCallJITStubRoutine::AccessorCallJITStubRoutine(
     const MacroAssemblerCodeRef& code, VM& vm, std::unique_ptr<CallLinkInfo> info)
     : GCAwareJITStubRoutine(code, vm)
-    , m_callLinkInfo(std::move(info))
+    , m_callLinkInfo(WTF::move(info))
 {
 }
 
index 90b605d..d271b4f 100644 (file)
@@ -115,7 +115,7 @@ CodeLocationLabel* ArityCheckFailReturnThunks::returnPCsFor(
 
     {
         ConcurrentJITLocker locker(m_lock);
-        m_returnPCArrays.append(std::move(returnPCs));
+        m_returnPCArrays.append(WTF::move(returnPCs));
         m_refs.append(FINALIZE_CODE(linkBuffer, ("Arity check fail return thunks for up to numArgs = %u", numExpectedArgumentsIncludingThis)));
         m_nextSize = numExpectedArgumentsIncludingThis + stackAlignmentRegisters();
     }
index 96b18c4..980d631 100644 (file)
@@ -589,7 +589,7 @@ static void generateByIdStub(
             successLabel.executableAddress()));
     
     if (kind == CallGetter || kind == CallSetter)
-        stubRoutine = adoptRef(new AccessorCallJITStubRoutine(code, *vm, std::move(callLinkInfo)));
+        stubRoutine = adoptRef(new AccessorCallJITStubRoutine(code, *vm, WTF::move(callLinkInfo)));
     else
         stubRoutine = createJITStubRoutine(code, *vm, codeBlock->ownerExecutable(), true);
 }
index c3ae587..bdc3bf8 100644 (file)
@@ -135,7 +135,7 @@ PassRefPtr<ProgramNode> ProgramNode::create(VM* vm, const JSTokenLocation& start
 
 void ProgramNode::setClosedVariables(Vector<RefPtr<StringImpl>>&& closedVariables)
 {
-    m_closedVariables = std::move(closedVariables);
+    m_closedVariables = WTF::move(closedVariables);
 }
 
 // ------------------------------ EvalNode -----------------------------
index 607b058..d1d50b6 100644 (file)
@@ -296,7 +296,7 @@ String Parser<LexerType>::parseInner()
         }
     }
     didFinishParsing(sourceElements, context.varDeclarations(), context.funcDeclarations(), features,
-        context.numConstants(), capturedVariables, std::move(closedVariables));
+        context.numConstants(), capturedVariables, WTF::move(closedVariables));
 
     return parseError;
 }
@@ -1331,7 +1331,7 @@ template <class TreeBuilder> bool Parser<LexerType>::parseFunctionInfo(TreeBuild
     matchOrFail(CLOSEBRACE, "Expected a closing '}' after a ", stringForFunctionMode(mode), " body");
     
     if (newInfo)
-        m_functionCache->add(openBraceOffset, std::move(newInfo));
+        m_functionCache->add(openBraceOffset, WTF::move(newInfo));
     
     next();
     return true;
index 11d2661..b88f209 100644 (file)
@@ -401,7 +401,7 @@ public:
     PassRefPtr<ParsedNode> parse(ParserError&, bool needReparsingAdjustment);
 
     JSTextPosition positionBeforeLastNewline() const { return m_lexer->positionBeforeLastNewline(); }
-    Vector<RefPtr<StringImpl>>&& closedVariables() { return std::move(m_closedVariables); }
+    Vector<RefPtr<StringImpl>>&& closedVariables() { return WTF::move(m_closedVariables); }
 
 private:
     struct AllowInOverride {
index c5e247f..d5958e8 100644 (file)
@@ -42,7 +42,7 @@ void SourceProviderCache::clear()
 
 void SourceProviderCache::add(int sourcePosition, std::unique_ptr<SourceProviderCacheItem> item)
 {
-    m_map.add(sourcePosition, std::move(item));
+    m_map.add(sourcePosition, WTF::move(item));
 }
 
 }
index f1477aa..de6bff7 100644 (file)
@@ -115,7 +115,7 @@ struct EncodingTraits<Vector<T, inlineCapacity, OverflowHandler>> {
         for (const typename EncodingTraits<T>::DecodedType& value : vectorOfValues)
             encodedVector.append<typename EncodingTraits<T>::DecodedType>(value);
 
-        return std::move(encodedVector);
+        return WTF::move(encodedVector);
     }
 
     static bool decodeValue(EncodedValue& encodedVector, DecodedType& decodedValue)
index e6c82e2..d12e9eb 100644 (file)
@@ -940,7 +940,7 @@ class Generator:
     def generate_member_move_expression(self, _member):
         _type = self._model.get_type_for_member(_member)
         if _type.mode == TypeModes.OWNED:
-            return "std::move(%s)" % _member.memberName
+            return "WTF::move(%s)" % _member.memberName
         else:
             return _member.memberName
 
index 9a6d84a..5a7c907 100644 (file)
@@ -38,7 +38,7 @@
 namespace Test {
 HandleWheelEvent::HandleWheelEvent(std::unique_ptr<PlatformWheelEvent> platformEvent)
     : EventLoopInput<HandleWheelEvent>()
-    , m_platformEvent(std::move(platformEvent))
+    , m_platformEvent(WTF::move(platformEvent))
 {
 }
 
@@ -65,7 +65,7 @@ bool InputTraits<Test::HandleWheelEvent>::decode(EncodedValue& encodedValue, std
     if (!encodedValue.get<WebCore::PlatformWheelEvent>(ASCIILiteral("platformEvent"), platformEvent))
         return false;
 
-    input = std::make_unique<Test::HandleWheelEvent>(std::move(platformEvent));
+    input = std::make_unique<Test::HandleWheelEvent>(WTF::move(platformEvent));
     return true;
 }
 #if ENABLE(DUMMY_FEATURE)
index 3e302f2..025cf06 100644 (file)
@@ -47,7 +47,7 @@ ScalarInput::~ScalarInput()
 
 MapInput::MapInput(std::unique_ptr<MapType> data)
     : NondeterministicInput<MapInput>()
-    , m_data(std::move(data))
+    , m_data(WTF::move(data))
 {
 }
 
@@ -95,7 +95,7 @@ bool InputTraits<Test::MapInput>::decode(EncodedValue& encodedValue, std::unique
     if (!encodedValue.get<MapType>(ASCIILiteral("data"), data))
         return false;
 
-    input = std::make_unique<Test::MapInput>(std::move(data));
+    input = std::make_unique<Test::MapInput>(WTF::move(data));
     return true;
 }
 
index 5ac2e41..6b3bc7c 100644 (file)
@@ -466,7 +466,7 @@ public:
 
     // 0 if we don't capture any arguments; parameterCount() in length if we do.
     const SlowArgument* slowArguments() { return m_slowArguments.get(); }
-    void setSlowArguments(std::unique_ptr<SlowArgument[]> slowArguments) { m_slowArguments = std::move(slowArguments); }
+    void setSlowArguments(std::unique_ptr<SlowArgument[]> slowArguments) { m_slowArguments = WTF::move(slowArguments); }
     
     SymbolTable* cloneCapturedNames(VM&);
 
index e59ec03..cc0fb8f 100644 (file)
@@ -60,7 +60,7 @@ public:
     AddResult set(const KeyType& key, ValueType value)
     {
         gcMapIfNeeded();
-        return m_map.set(key, std::move(value));
+        return m_map.set(key, WTF::move(value));
     }
 
     ALWAYS_INLINE AddResult add(const KeyType& key, ValueType value)
@@ -69,7 +69,7 @@ public:
         AddResult addResult = m_map.fastAdd(key, nullptr);
         if (!addResult.iterator->value) { // New value or found a zombie value.
             addResult.isNewEntry = true;
-            addResult.iterator->value = std::move(value);
+            addResult.iterator->value = WTF::move(value);
         }
         return addResult;
     }
index d4ae407..6a3b9b1 100644 (file)
@@ -1,3 +1,29 @@
+2014-07-03  Daniel Bates  <dabates@apple.com>
+
+        Add WTF::move()
+        https://bugs.webkit.org/show_bug.cgi?id=134500
+
+        Reviewed by Darin Adler.
+
+        Substitution of WTF::move() for std::move() rubber-stamped by Anders Carlsson.
+
+        Implement WTF::move(), a replacement for std::move(). WTF::move() is less error
+        prone than std::move() as it compile asserts that its argument is a non-const
+        lvalue reference before ultimately casting it to a rvalue reference (via std::move).
+
+        * wtf/Deque.h: Substitute WTF::move() for std::move().
+        * wtf/HashMap.h: Ditto.
+        * wtf/HashSet.h: Ditto.
+        * wtf/HashTable.h: Ditto.
+        * wtf/IteratorAdaptors.h: Ditto.
+        * wtf/IteratorRange.h: Ditto.
+        * wtf/ListHashSet.h: Ditto.
+        * wtf/MainThread.cpp: Ditto.
+        [...]
+        * wtf/StdLibExtras.h:
+        (WTF::move): Added.
+        [...]
+
 2014-07-03  Anders Carlsson  <andersca@apple.com>
 
         Get rid of Encoder.h and Decoder.h from WTF
index b97286a..1717007 100644 (file)
@@ -393,7 +393,7 @@ namespace WTF {
     template<typename T, size_t inlineCapacity>
     inline auto Deque<T, inlineCapacity>::takeFirst() -> T
     {
-        T oldFirst = std::move(first());
+        T oldFirst = WTF::move(first());
         removeFirst();
         return oldFirst;
     }
@@ -401,7 +401,7 @@ namespace WTF {
     template<typename T, size_t inlineCapacity>
     inline auto Deque<T, inlineCapacity>::takeLast() -> T
     {
-        T oldLast = std::move(last());
+        T oldLast = WTF::move(last());
         removeLast();
         return oldLast;
     }
index b170326..c9ea70d 100644 (file)
@@ -296,7 +296,7 @@ template<typename KeyArg, typename MappedArg, typename HashArg, typename KeyTrai
 template<typename T>
 auto HashMap<KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg>::set(KeyType&& key, T&& mapped) -> AddResult
 {
-    return inlineSet(std::move(key), std::forward<T>(mapped));
+    return inlineSet(WTF::move(key), std::forward<T>(mapped));
 }
 
 template<typename KeyArg, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
@@ -317,7 +317,7 @@ template<typename KeyArg, typename MappedArg, typename HashArg, typename KeyTrai
 template<typename T>
 auto HashMap<KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg>::add(KeyType&& key, T&& mapped) -> AddResult
 {
-    return inlineAdd(std::move(key), std::forward<T>(mapped));
+    return inlineAdd(WTF::move(key), std::forward<T>(mapped));
 }
 
 template<typename KeyArg, typename MappedArg, typename HashArg, typename KeyTraitsArg, typename MappedTraitsArg>
@@ -331,7 +331,7 @@ template<typename KeyArg, typename MappedArg, typename HashArg, typename KeyTrai
 template<typename T>
 ALWAYS_INLINE auto HashMap<KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg>::fastAdd(KeyType&& key, T&& mapped) -> AddResult
 {
-    return inlineAdd(std::move(key), std::forward<T>(mapped));
+    return inlineAdd(WTF::move(key), std::forward<T>(mapped));
 }
 
 template<typename T, typename U, typename V, typename W, typename MappedTraits>
@@ -371,7 +371,7 @@ auto HashMap<T, U, V, W, MappedTraits>::take(const KeyType& key) -> MappedType
     iterator it = find(key);
     if (it == end())
         return MappedTraits::emptyValue();
-    MappedType value = std::move(it->value);
+    MappedType value = WTF::move(it->value);
     remove(it);
     return value;
 }
index 3f38ced..98cf8cd 100644 (file)
@@ -199,7 +199,7 @@ namespace WTF {
     template<typename T, typename U, typename V>
     inline auto HashSet<T, U, V>::add(ValueType&& value) -> AddResult
     {
-        return m_impl.add(std::move(value));
+        return m_impl.add(WTF::move(value));
     }
 
     template<typename Value, typename HashFunctions, typename Traits>
@@ -247,7 +247,7 @@ namespace WTF {
         if (it == end())
             return ValueTraits::emptyValue();
 
-        ValueType result = std::move(const_cast<ValueType&>(*it));
+        ValueType result = WTF::move(const_cast<ValueType&>(*it));
         remove(it);
         return result;
     }
index 3666fe8..781bfdb 100644 (file)
@@ -373,7 +373,7 @@ namespace WTF {
         bool isEmpty() const { return !m_keyCount; }
 
         AddResult add(const ValueType& value) { return add<IdentityTranslatorType>(Extractor::extract(value), value); }
-        AddResult add(ValueType&& value) { return add<IdentityTranslatorType>(Extractor::extract(value), std::move(value)); }
+        AddResult add(ValueType&& value) { return add<IdentityTranslatorType>(Extractor::extract(value), WTF::move(value)); }
 
         // A special version of add() that finds the object by hashing and comparing
         // with some other type, to avoid the cost of type conversion if the object is already
@@ -919,7 +919,7 @@ namespace WTF {
 
         Value* newEntry = lookupForWriting(Extractor::extract(entry)).first;
         newEntry->~Value();
-        new (NotNull, newEntry) ValueType(std::move(entry));
+        new (NotNull, newEntry) ValueType(WTF::move(entry));
 
         return newEntry;
     }
@@ -1096,7 +1096,7 @@ namespace WTF {
                 continue;
             }
 
-            Value* reinsertedEntry = reinsert(std::move(oldTable[i]));
+            Value* reinsertedEntry = reinsert(WTF::move(oldTable[i]));
             if (&oldTable[i] == entry) {
                 ASSERT(!newEntry);
                 newEntry = reinsertedEntry;
index c2d6703..152411f 100644 (file)
@@ -34,9 +34,9 @@ template<typename Predicate, typename Iterator>
 class FilterIterator {
 public:
     FilterIterator(Predicate pred, Iterator begin, Iterator end)
-        : m_pred(std::move(pred))
-        , m_iter(std::move(begin))
-        , m_end(std::move(end))
+        : m_pred(WTF::move(pred))
+        , m_iter(WTF::move(begin))
+        , m_end(WTF::move(end))
     {
         while (m_iter != m_end && !m_pred(*m_iter))
             ++m_iter;
@@ -78,8 +78,8 @@ template<typename Transform, typename Iterator>
 class TransformIterator {
 public:
     TransformIterator(Transform&& transform, Iterator&& iter)
-        : m_transform(std::move(transform))
-        , m_iter(std::move(iter))
+        : m_transform(WTF::move(transform))
+        , m_iter(WTF::move(iter))
     {
     }
 
@@ -105,7 +105,7 @@ private:
 template<typename Transform, typename Iterator>
 inline TransformIterator<Transform, Iterator> makeTransformIterator(Transform&& transform, Iterator&& iter)
 {
-    return TransformIterator<Transform, Iterator>(std::move(transform), std::move(iter));
+    return TransformIterator<Transform, Iterator>(WTF::move(transform), WTF::move(iter));
 }
 
 } // namespace WTF
index 295c214..92ec091 100644 (file)
@@ -32,8 +32,8 @@ template<typename Iterator>
 class IteratorRange {
 public:
     IteratorRange(Iterator begin, Iterator end)
-        : m_begin(std::move(begin))
-        , m_end(std::move(end))
+        : m_begin(WTF::move(begin))
+        , m_end(WTF::move(end))
     {
     }
 
index 4e5454e..d353b43 100644 (file)
@@ -477,7 +477,7 @@ inline T ListHashSet<T, inlineCapacity, U>::takeFirst()
     ASSERT(!isEmpty());
     auto it = m_impl.find(m_head);
 
-    T result = std::move((*it)->m_value);
+    T result = WTF::move((*it)->m_value);
     m_impl.remove(it);
     unlinkAndDelete(m_head);
 
@@ -517,7 +517,7 @@ inline T ListHashSet<T, inlineCapacity, U>::takeLast()
     ASSERT(!isEmpty());
     auto it = m_impl.find(m_tail);
 
-    T result = std::move((*it)->m_value);
+    T result = WTF::move((*it)->m_value);
     m_impl.remove(it);
     unlinkAndDelete(m_tail);
 
@@ -593,7 +593,7 @@ auto ListHashSet<T, inlineCapacity, U>::add(const ValueType& value) -> AddResult
 template<typename T, size_t inlineCapacity, typename U>
 auto ListHashSet<T, inlineCapacity, U>::add(ValueType&& value) -> AddResult
 {
-    auto result = m_impl.template add<BaseTranslator>(std::move(value), m_allocator.get());
+    auto result = m_impl.template add<BaseTranslator>(WTF::move(value), m_allocator.get());
     if (result.isNewEntry)
         appendNode(*result.iterator);
     return AddResult(makeIterator(*result.iterator), result.isNewEntry);
@@ -614,7 +614,7 @@ auto ListHashSet<T, inlineCapacity, U>::appendOrMoveToLast(const ValueType& valu
 template<typename T, size_t inlineCapacity, typename U>
 auto ListHashSet<T, inlineCapacity, U>::appendOrMoveToLast(ValueType&& value) -> AddResult
 {
-    auto result = m_impl.template add<BaseTranslator>(std::move(value), m_allocator.get());
+    auto result = m_impl.template add<BaseTranslator>(WTF::move(value), m_allocator.get());
     Node* node = *result.iterator;
     if (!result.isNewEntry)
         unlink(node);
@@ -638,7 +638,7 @@ auto ListHashSet<T, inlineCapacity, U>::prependOrMoveToFirst(const ValueType& va
 template<typename T, size_t inlineCapacity, typename U>
 auto ListHashSet<T, inlineCapacity, U>::prependOrMoveToFirst(ValueType&& value) -> AddResult
 {
-    auto result = m_impl.template add<BaseTranslator>(std::move(value), m_allocator.get());
+    auto result = m_impl.template add<BaseTranslator>(WTF::move(value), m_allocator.get());
     Node* node = *result.iterator;
     if (!result.isNewEntry)
         unlink(node);
@@ -656,7 +656,7 @@ auto ListHashSet<T, inlineCapacity, U>::insertBefore(const ValueType& beforeValu
 template<typename T, size_t inlineCapacity, typename U>
 auto ListHashSet<T, inlineCapacity, U>::insertBefore(const ValueType& beforeValue, ValueType&& newValue) -> AddResult
 {
-    return insertBefore(find(beforeValue), std::move(newValue));
+    return insertBefore(find(beforeValue), WTF::move(newValue));
 }
 
 template<typename T, size_t inlineCapacity, typename U>
@@ -671,7 +671,7 @@ auto ListHashSet<T, inlineCapacity, U>::insertBefore(iterator it, const ValueTyp
 template<typename T, size_t inlineCapacity, typename U>
 auto ListHashSet<T, inlineCapacity, U>::insertBefore(iterator it, ValueType&& newValue) -> AddResult
 {
-    auto result = m_impl.template add<BaseTranslator>(std::move(newValue), m_allocator.get());
+    auto result = m_impl.template add<BaseTranslator>(WTF::move(newValue), m_allocator.get());
     if (result.isNewEntry)
         insertNodeBefore(it.node(), *result.iterator);
     return AddResult(makeIterator(*result.iterator), result.isNewEntry);
index db5b881..a25d847 100644 (file)
@@ -214,7 +214,7 @@ static void callFunctionObject(void* context)
 
 void callOnMainThread(std::function<void ()> function)
 {
-    callOnMainThread(callFunctionObject, std::make_unique<std::function<void ()>>(std::move(function)).release());
+    callOnMainThread(callFunctionObject, std::make_unique<std::function<void ()>>(WTF::move(function)).release());
 }
 
 void setMainThreadCallbacksPaused(bool paused)
index 712f9e3..0f4024d 100644 (file)
@@ -73,7 +73,7 @@ public:
 
     MallocPtr& operator=(MallocPtr&& other)
     {
-        MallocPtr ptr = std::move(other);
+        MallocPtr ptr = WTF::move(other);
         swap(ptr);
 
         return *this;
index 7af6d8b..1a33d4c 100644 (file)
@@ -92,7 +92,7 @@ namespace WTF {
     inline void MessageQueue<DataType>::append(std::unique_ptr<DataType> message)
     {
         MutexLocker lock(m_mutex);
-        m_queue.append(std::move(message));
+        m_queue.append(WTF::move(message));
         m_condition.signal();
     }
 
@@ -100,7 +100,7 @@ namespace WTF {
     inline void MessageQueue<DataType>::appendAndKill(std::unique_ptr<DataType> message)
     {
         MutexLocker lock(m_mutex);
-        m_queue.append(std::move(message));
+        m_queue.append(WTF::move(message));
         m_killed = true;
         m_condition.broadcast();
     }
@@ -111,7 +111,7 @@ namespace WTF {
     {
         MutexLocker lock(m_mutex);
         bool wasEmpty = m_queue.isEmpty();
-        m_queue.append(std::move(message));
+        m_queue.append(WTF::move(message));
         m_condition.signal();
         return wasEmpty;
     }
@@ -120,7 +120,7 @@ namespace WTF {
     inline void MessageQueue<DataType>::prepend(std::unique_ptr<DataType> message)
     {
         MutexLocker lock(m_mutex);
-        m_queue.prepend(std::move(message));
+        m_queue.prepend(WTF::move(message));
         m_condition.signal();
     }
 
@@ -165,7 +165,7 @@ namespace WTF {
         }
 
         ASSERT(found != m_queue.end());
-        std::unique_ptr<DataType> message = std::move(*found);
+        std::unique_ptr<DataType> message = WTF::move(*found);
         m_queue.remove(found);
         result = MessageQueueMessageReceived;
         return message;
index 64a6811..5862de6 100644 (file)
@@ -69,12 +69,12 @@ public:
         : m_isEngaged(other.m_isEngaged)
     {
         if (m_isEngaged)
-            new (NotNull, std::addressof(m_value)) T(std::move(other.m_value));
+            new (NotNull, std::addressof(m_value)) T(WTF::move(other.m_value));
     }
 
     Optional(T&& value)
         : m_isEngaged(true)
-        , m_value(std::move(value))
+        , m_value(WTF::move(value))
     {
     }
 
@@ -121,14 +121,14 @@ public:
     {
         if (m_isEngaged == other.m_isEngaged) {
             if (m_isEngaged)
-                m_value = std::move(other.m_value);
+                m_value = WTF::move(other.m_value);
             return *this;
         }
 
         if (m_isEngaged)
             m_value.~T();
         else
-            new (NotNull, std::addressof(m_value)) T(std::move(other.m_value));
+            new (NotNull, std::addressof(m_value)) T(WTF::move(other.m_value));
         m_isEngaged = other.m_isEngaged;
 
         return *this;
index 111375f..48d0e68 100644 (file)
@@ -143,7 +143,7 @@ namespace WTF {
     template<typename T> inline auto OwnPtr<T>::operator=(OwnPtr&& o) -> OwnPtr&
     {
         ASSERT(!o || o != m_ptr);
-        OwnPtr ptr = std::move(o);
+        OwnPtr ptr = WTF::move(o);
         swap(ptr);
         return *this;
     }
@@ -151,7 +151,7 @@ namespace WTF {
     template<typename T> template<typename U> inline auto OwnPtr<T>::operator=(OwnPtr<U>&& o) -> OwnPtr&
     {
         ASSERT(!o || o != m_ptr);
-        OwnPtr ptr = std::move(o);
+        OwnPtr ptr = WTF::move(o);
         swap(ptr);
         return *this;
     }
index d6222c9..22df7a7 100644 (file)
@@ -140,21 +140,21 @@ namespace WTF {
 
     template<typename T> inline RefPtr<T>& RefPtr<T>::operator=(RefPtr&& o)
     {
-        RefPtr ptr = std::move(o);
+        RefPtr ptr = WTF::move(o);
         swap(ptr);
         return *this;
     }
 
     template<typename T> template<typename U> inline RefPtr<T>& RefPtr<T>::operator=(RefPtr<U>&& o)
     {
-        RefPtr ptr = std::move(o);
+        RefPtr ptr = WTF::move(o);
         swap(ptr);
         return *this;
     }
 
     template<typename T> template<typename U> inline RefPtr<T>& RefPtr<T>::operator=(PassRef<U> reference)
     {
-        RefPtr ptr = std::move(reference);
+        RefPtr ptr = WTF::move(reference);
         swap(ptr);
         return *this;
     }
index 152bdee..3377765 100644 (file)
@@ -313,7 +313,7 @@ namespace WTF {
         iterator it = find(key);
         if (it == end())
             return MappedTraits::emptyValue();
-        MappedType value = std::move(it->value);
+        MappedType value = WTF::move(it->value);
         remove(it);
         return value;
     }
@@ -324,7 +324,7 @@ namespace WTF {
         iterator it = find(key);
         if (it == end())
             return MappedTraits::emptyValue();
-        MappedType value = std::move(it->value);
+        MappedType value = WTF::move(it->value);
         remove(it);
         return value;
     }
index 989f404..0453e58 100644 (file)
@@ -197,14 +197,14 @@ namespace WTF {
 
     template<typename T> inline RetainPtr<T>& RetainPtr<T>::operator=(RetainPtr&& o)
     {
-        RetainPtr ptr = std::move(o);
+        RetainPtr ptr = WTF::move(o);
         swap(ptr);
         return *this;
     }
 
     template<typename T> template<typename U> inline RetainPtr<T>& RetainPtr<T>::operator=(RetainPtr<U>&& o)
     {
-        RetainPtr ptr = std::move(o);
+        RetainPtr ptr = WTF::move(o);
         swap(ptr);
         return *this;
     }
index ba0e04e..85ad6d8 100644 (file)
@@ -123,7 +123,7 @@ void RunLoop::performWork()
 void RunLoop::dispatch(std::function<void ()> function)
 {
     MutexLocker locker(m_functionQueueLock);
-    m_functionQueue.append(std::move(function));
+    m_functionQueue.append(WTF::move(function));
 
     wakeUp();
 }
index 891fa61..c1f45e0 100644 (file)
@@ -119,6 +119,16 @@ inline bool isPointerTypeAlignmentOkay(Type*)
 
 namespace WTF {
 
+template<typename T>
+ALWAYS_INLINE typename std::remove_reference<T>::type&& move(T&& value)
+{
+    static_assert(std::is_lvalue_reference<T>::value, "T is not an lvalue reference; move() is unnecessary.");
+
+    using NonRefQualifiedType = typename std::remove_reference<T>::type;
+    static_assert(!std::is_const<NonRefQualifiedType>::value, "T is const qualified.");
+    return std::move(value);
+}
+
 static const size_t KB = 1024;
 static const size_t MB = 1024 * 1024;
 
index 2e44a7f..28a4955 100644 (file)
@@ -94,7 +94,7 @@ struct VectorMover<false, T>
     static void move(T* src, T* srcEnd, T* dst)
     {
         while (src != srcEnd) {
-            new (NotNull, dst) T(std::move(*src));
+            new (NotNull, dst) T(WTF::move(*src));
             src->~T();
             ++dst;
             ++src;
@@ -109,7 +109,7 @@ struct VectorMover<false, T>
             while (src != srcEnd) {
                 --srcEnd;
                 --dstEnd;
-                new (NotNull, dstEnd) T(std::move(*srcEnd));
+                new (NotNull, dstEnd) T(WTF::move(*srcEnd));
                 srcEnd->~T();
             }
         }
@@ -661,7 +661,7 @@ public:
     
     T takeLast()
     {
-        T result = std::move(last());
+        T result = WTF::move(last());
         removeLast();
         return result;
     }
index f1af88c..6d8c50b 100644 (file)
@@ -105,16 +105,16 @@ void GMainLoopSource::scheduleIdleSource(const char* name, GSourceFunc sourceFun
 void GMainLoopSource::schedule(const char* name, std::function<void ()> function, int priority, std::function<void ()> destroyFunction, GMainContext* context)
 {
     cancel();
-    m_voidCallback = std::move(function);
-    m_destroyCallback = std::move(destroyFunction);
+    m_voidCallback = WTF::move(function);
+    m_destroyCallback = WTF::move(destroyFunction);
     scheduleIdleSource(name, reinterpret_cast<GSourceFunc>(voidSourceCallback), priority, context);
 }
 
 void GMainLoopSource::schedule(const char* name, std::function<bool ()> function, int priority, std::function<void ()> destroyFunction, GMainContext* context)
 {
     cancel();
-    m_boolCallback = std::move(function);
-    m_destroyCallback = std::move(destroyFunction);
+    m_boolCallback = WTF::move(function);
+    m_destroyCallback = WTF::move(destroyFunction);
     scheduleIdleSource(name, reinterpret_cast<GSourceFunc>(boolSourceCallback), priority, context);
 }
 
@@ -124,8 +124,8 @@ void GMainLoopSource::schedule(const char* name, std::function<bool (GIOConditio
     ASSERT(m_status == Ready);
     m_status = Scheduled;
 
-    m_socketCallback = std::move(function);
-    m_destroyCallback = std::move(destroyFunction);
+    m_socketCallback = WTF::move(function);
+    m_destroyCallback = WTF::move(destroyFunction);
     m_cancellable = adoptGRef(g_cancellable_new());
     m_source = adoptGRef(g_socket_create_source(socket, condition, m_cancellable.get()));
     g_source_set_name(m_source.get(), name);
@@ -150,8 +150,8 @@ void GMainLoopSource::scheduleAfterDelay(const char* name, std::function<void ()
 {
     cancel();
     m_source = adoptGRef(g_timeout_source_new(delay.count()));
-    m_voidCallback = std::move(function);
-    m_destroyCallback = std::move(destroyFunction);
+    m_voidCallback = WTF::move(function);
+    m_destroyCallback = WTF::move(destroyFunction);
     scheduleTimeoutSource(name, reinterpret_cast<GSourceFunc>(voidSourceCallback), priority, context);
 }
 
@@ -159,8 +159,8 @@ void GMainLoopSource::scheduleAfterDelay(const char* name, std::function<bool ()
 {
     cancel();
     m_source = adoptGRef(g_timeout_source_new(delay.count()));
-    m_boolCallback = std::move(function);
-    m_destroyCallback = std::move(destroyFunction);
+    m_boolCallback = WTF::move(function);
+    m_destroyCallback = WTF::move(destroyFunction);
     scheduleTimeoutSource(name, reinterpret_cast<GSourceFunc>(boolSourceCallback), priority, context);
 }
 
@@ -168,8 +168,8 @@ void GMainLoopSource::scheduleAfterDelay(const char* name, std::function<void ()
 {
     cancel();
     m_source = adoptGRef(g_timeout_source_new_seconds(delay.count()));
-    m_voidCallback = std::move(function);
-    m_destroyCallback = std::move(destroyFunction);
+    m_voidCallback = WTF::move(function);
+    m_destroyCallback = WTF::move(destroyFunction);
     scheduleTimeoutSource(name, reinterpret_cast<GSourceFunc>(voidSourceCallback), priority, context);
 }
 
@@ -177,8 +177,8 @@ void GMainLoopSource::scheduleAfterDelay(const char* name, std::function<bool ()
 {
     cancel();
     m_source = adoptGRef(g_timeout_source_new_seconds(delay.count()));
-    m_boolCallback = std::move(function);
-    m_destroyCallback = std::move(destroyFunction);
+    m_boolCallback = WTF::move(function);
+    m_destroyCallback = WTF::move(destroyFunction);
     scheduleTimeoutSource(name, reinterpret_cast<GSourceFunc>(boolSourceCallback), priority, context);
 }
 
@@ -238,7 +238,7 @@ bool GMainLoopSource::socketCallback(GIOCondition condition)
 
 void GMainLoopSource::destroy()
 {
-    auto destroyCallback = std::move(m_destroyCallback);
+    auto destroyCallback = WTF::move(m_destroyCallback);
     auto deleteOnDestroy = m_deleteOnDestroy;
     reset();
     if (destroyCallback)
index 56571a0..345a48c 100644 (file)
@@ -78,9 +78,9 @@ public:
     // We have to declare the copy constructor and copy assignment operator as well, otherwise
     // they'll be implicitly deleted by adding the move constructor and move assignment operator.
     AtomicString(const AtomicString& other) : m_string(other.m_string) { }
-    AtomicString(AtomicString&& other) : m_string(std::move(other.m_string)) { }
+    AtomicString(AtomicString&& other) : m_string(WTF::move(other.m_string)) { }
     AtomicString& operator=(const AtomicString& other) { m_string = other.m_string; return *this; }
-    AtomicString& operator=(AtomicString&& other) { m_string = std::move(other.m_string); return *this; }
+    AtomicString& operator=(AtomicString&& other) { m_string = WTF::move(other.m_string); return *this; }
 
     // Hash table deleted values, which are only constructed and never copied or destroyed.
     AtomicString(WTF::HashTableDeletedValueType) : m_string(WTF::HashTableDeletedValue) { }
index 834cb64..c1d9439 100644 (file)
@@ -693,7 +693,7 @@ String String::isolatedCopy() &&
     if (isSafeToSendToAnotherThread()) {
         // Since we know that our string is a temporary that will be destroyed
         // we can just steal the m_impl from it, thus avoiding a copy.
-        return String(std::move(*this));
+        return String(WTF::move(*this));
     }
 
     if (!m_impl)
index e8b00be..7e1d4cf 100644 (file)
@@ -95,7 +95,7 @@ template<typename T> inline GDIObject<T>::GDIObject(GDIObject<T>&& other)
 
 template<typename T> inline GDIObject<T>& GDIObject<T>::operator=(GDIObject<T>&& other)
 {
-    auto object = std::move(other);
+    auto object = WTF::move(other);
     swap(object);
     return *this;
 }
index 712d489..741b038 100644 (file)
@@ -1,3 +1,22 @@
+2014-07-03  Daniel Bates  <dabates@apple.com>
+
+        Add WTF::move()
+        https://bugs.webkit.org/show_bug.cgi?id=134500
+
+        Rubber-stamped by Anders Carlsson.
+
+        Substitute WTF::move() for std::move().
+
+        * Modules/battery/NavigatorBattery.cpp:
+        * Modules/encryptedmedia/MediaKeys.cpp:
+        * Modules/gamepad/NavigatorGamepad.cpp:
+        * Modules/gamepad/deprecated/NavigatorGamepad.cpp:
+        * Modules/geolocation/NavigatorGeolocation.cpp:
+        * Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
+        * Modules/indexeddb/IDBDatabaseBackend.cpp:
+        * Modules/indexeddb/IDBDatabaseBackend.h:
+        [...]
+
 2014-07-03  Benjamin Poulain  <bpoulain@apple.com>
 
         [iOS][WK2] Fix small bugs of dynamicViewportSizeUpdate that were causing inaccuracies in the computed target
index 739d404..14d7bf5 100644 (file)
@@ -58,7 +58,7 @@ NavigatorBattery* NavigatorBattery::from(Navigator* navigator)
     if (!supplement) {
         auto newSupplement = std::make_unique<NavigatorBattery>();
         supplement = newSupplement.get();
-        provideTo(navigator, supplementName(), std::move(newSupplement));
+        provideTo(navigator, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index 286af20..f3c212f 100644 (file)
@@ -62,13 +62,13 @@ PassRefPtr<MediaKeys> MediaKeys::create(const String& keySystem, ExceptionCode&
     // 5. Create a new MediaKeys object.
     // 5.1 Let the keySystem attribute be keySystem.
     // 6. Return the new object to the caller.
-    return adoptRef(new MediaKeys(keySystem, std::move(cdm)));
+    return adoptRef(new MediaKeys(keySystem, WTF::move(cdm)));
 }
 
 MediaKeys::MediaKeys(const String& keySystem, std::unique_ptr<CDM> cdm)
     : m_mediaElement(0)
     , m_keySystem(keySystem)
-    , m_cdm(std::move(cdm))
+    , m_cdm(WTF::move(cdm))
 {
     m_cdm->setClient(this);
 }
index 35b0323..79fff24 100644 (file)
@@ -62,7 +62,7 @@ NavigatorGamepad* NavigatorGamepad::from(Navigator* navigator)
     if (!supplement) {
         auto newSupplement = std::make_unique<NavigatorGamepad>();
         supplement = newSupplement.get();
-        provideTo(navigator, supplementName(), std::move(newSupplement));
+        provideTo(navigator, supplementName(), WTF::move(newSupplement));
 
         if (Frame* frame = navigator->frame()) {
             if (DocumentLoader* documentLoader = frame->loader().documentLoader())
index 2c89866..fa8c555 100644 (file)
@@ -53,7 +53,7 @@ NavigatorGamepad* NavigatorGamepad::from(Navigator* navigator)
     if (!supplement) {
         auto newSupplement = std::make_unique<NavigatorGamepad>();
         supplement = newSupplement.get();
-        provideTo(navigator, supplementName(), std::move(newSupplement));
+        provideTo(navigator, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index 65f4fc5..7f95ec5 100644 (file)
@@ -53,7 +53,7 @@ NavigatorGeolocation* NavigatorGeolocation::from(Navigator* navigator)
     if (!supplement) {
         auto newSupplement = std::make_unique<NavigatorGeolocation>(navigator->frame());
         supplement = newSupplement.get();
-        provideTo(navigator, supplementName(), std::move(newSupplement));
+        provideTo(navigator, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index e705a2d..1bf0833 100644 (file)
@@ -58,7 +58,7 @@ DOMWindowIndexedDatabase* DOMWindowIndexedDatabase::from(DOMWindow* window)
     if (!supplement) {
         auto newSupplement = std::make_unique<DOMWindowIndexedDatabase>(window);
         supplement = newSupplement.get();
-        provideTo(window, supplementName(), std::move(newSupplement));
+        provideTo(window, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index 77af267..ee5381a 100644 (file)
@@ -419,7 +419,7 @@ void IDBDatabaseBackend::processPendingOpenCalls(bool success)
             if (m_metadata.id == InvalidId) {
                 // This database was deleted then quickly re-opened.
                 // openInternalAsync() will recreate it in the backing store and then resume processing pending callbacks.
-                pendingOpenCalls.prepend(std::move(pendingOpenCall));
+                pendingOpenCalls.prepend(WTF::move(pendingOpenCall));
                 pendingOpenCalls.swap(m_pendingOpenCalls);
 
                 openInternalAsync();
index 214d2f5..ec4350a 100644 (file)
@@ -119,7 +119,7 @@ public:
     void setCurrentVersion(uint64_t version) { m_metadata.version = version; }
 
     bool hasPendingSecondHalfOpen() { return m_pendingSecondHalfOpen.get(); }
-    void setPendingSecondHalfOpen(std::unique_ptr<IDBPendingOpenCall> pendingOpenCall) { m_pendingSecondHalfOpen = std::move(pendingOpenCall); }
+    void setPendingSecondHalfOpen(std::unique_ptr<IDBPendingOpenCall> pendingOpenCall) { m_pendingSecondHalfOpen = WTF::move(pendingOpenCall); }
 
     IDBFactoryBackendInterface& factoryBackend() { return *m_factory; }
 
index 189ca9e..cfa990a 100644 (file)
@@ -54,7 +54,7 @@ PageGroupIndexedDatabase* PageGroupIndexedDatabase::from(PageGroup& group)
     if (!supplement) {
         auto newSupplement = std::make_unique<PageGroupIndexedDatabase>(group.groupSettings().indexedDBDatabasePath());
         supplement = newSupplement.get();
-        provideTo(&group, supplementName(), std::move(newSupplement));
+        provideTo(&group, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index 05ee8d6..91b043b 100644 (file)
@@ -63,7 +63,7 @@ WorkerGlobalScopeIndexedDatabase* WorkerGlobalScopeIndexedDatabase::from(ScriptE
 
         auto newSupplement = std::make_unique<WorkerGlobalScopeIndexedDatabase>(databaseDirectoryIdentifier);
         supplement = newSupplement.get();
-        provideTo(context, supplementName(), std::move(newSupplement));
+        provideTo(context, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index 5e0010e..4045b76 100644 (file)
@@ -330,8 +330,8 @@ public:
 
 IDBBackingStoreLevelDB::IDBBackingStoreLevelDB(const String& identifier, std::unique_ptr<LevelDBDatabase> db, std::unique_ptr<LevelDBComparator> comparator)
     : m_identifier(identifier)
-    , m_db(std::move(db))
-    , m_comparator(std::move(comparator))
+    , m_db(WTF::move(db))
+    , m_comparator(WTF::move(comparator))
     , m_weakFactory(this)
 {
 }
@@ -399,7 +399,7 @@ PassRefPtr<IDBBackingStoreLevelDB> IDBBackingStoreLevelDB::open(const SecurityOr
         return PassRefPtr<IDBBackingStoreLevelDB>();
     }
 
-    return create(fileIdentifier, std::move(db), std::move(comparator));
+    return create(fileIdentifier, WTF::move(db), WTF::move(comparator));
 }
 
 PassRefPtr<IDBBackingStoreLevelDB> IDBBackingStoreLevelDB::openInMemory(const String& identifier)
@@ -419,13 +419,13 @@ PassRefPtr<IDBBackingStoreLevelDB> IDBBackingStoreLevelDB::openInMemory(const St
         return PassRefPtr<IDBBackingStoreLevelDB>();
     }
 
-    return create(identifier, std::move(db), std::move(comparator));
+    return create(identifier, WTF::move(db), WTF::move(comparator));
 }
 
 PassRefPtr<IDBBackingStoreLevelDB> IDBBackingStoreLevelDB::create(const String& identifier, std::unique_ptr<LevelDBDatabase> db, std::unique_ptr<LevelDBComparator> comparator)
 {
     // FIXME: Handle comparator name changes.
-    RefPtr<IDBBackingStoreLevelDB> backingStore(adoptRef(new IDBBackingStoreLevelDB(identifier, std::move(db), std::move(comparator))));
+    RefPtr<IDBBackingStoreLevelDB> backingStore(adoptRef(new IDBBackingStoreLevelDB(identifier, WTF::move(db), WTF::move(comparator))));
 
     if (!setUpMetadata(backingStore->m_db.get(), identifier))
         return PassRefPtr<IDBBackingStoreLevelDB>();
index 5885df0..ea856ac 100644 (file)
@@ -112,7 +112,7 @@ void MediaSource::setPrivateAndOpen(PassRef<MediaSourcePrivate> mediaSourcePriva
 {
     ASSERT(!m_private);
     ASSERT(m_mediaElement);
-    m_private = std::move(mediaSourcePrivate);
+    m_private = WTF::move(mediaSourcePrivate);
     setReadyState(openKeyword());
 }
 
index e2e4ac2..e2914a6 100644 (file)
@@ -90,14 +90,14 @@ struct SourceBuffer::TrackBuffer {
 
 PassRef<SourceBuffer> SourceBuffer::create(PassRef<SourceBufferPrivate> sourceBufferPrivate, MediaSource* source)
 {
-    RefPtr<SourceBuffer> sourceBuffer(adoptRef(new SourceBuffer(std::move(sourceBufferPrivate), source)));
+    RefPtr<SourceBuffer> sourceBuffer(adoptRef(new SourceBuffer(WTF::move(sourceBufferPrivate), source)));
     sourceBuffer->suspendIfNeeded();
     return sourceBuffer.releaseNonNull();
 }
 
 SourceBuffer::SourceBuffer(PassRef<SourceBufferPrivate> sourceBufferPrivate, MediaSource* source)
     : ActiveDOMObject(source->scriptExecutionContext())
-    , m_private(std::move(sourceBufferPrivate))
+    , m_private(WTF::move(sourceBufferPrivate))
     , m_source(source)
     , m_asyncEventQueue(*this)
     , m_updating(false)
index f6a6c2e..e5adcd6 100644 (file)
@@ -53,7 +53,7 @@ PassRefPtr<RTCDTMFSender> RTCDTMFSender::create(ScriptExecutionContext* context,
         return nullptr;
     }
 
-    RefPtr<RTCDTMFSender> dtmfSender = adoptRef(new RTCDTMFSender(context, track, std::move(handler)));
+    RefPtr<RTCDTMFSender> dtmfSender = adoptRef(new RTCDTMFSender(context, track, WTF::move(handler)));
     dtmfSender->suspendIfNeeded();
     return dtmfSender.release();
 }
@@ -63,7 +63,7 @@ RTCDTMFSender::RTCDTMFSender(ScriptExecutionContext* context, PassRefPtr<MediaSt
     , m_track(track)
     , m_duration(defaultToneDurationMs)
     , m_interToneGap(defaultInterToneGapMs)
-    , m_handler(std::move(handler))
+    , m_handler(WTF::move(handler))
     , m_stopped(false)
     , m_scheduledEventTimer(this, &RTCDTMFSender::scheduledEventTimerFired)
 {
index b4314dc..de78474 100644 (file)
@@ -80,18 +80,18 @@ PassRefPtr<RTCDataChannel> RTCDataChannel::create(ScriptExecutionContext* contex
         ec = NOT_SUPPORTED_ERR;
         return nullptr;
     }
-    return adoptRef(new RTCDataChannel(context, std::move(handler)));
+    return adoptRef(new RTCDataChannel(context, WTF::move(handler)));
 }
 
 PassRefPtr<RTCDataChannel> RTCDataChannel::create(ScriptExecutionContext* context, std::unique_ptr<RTCDataChannelHandler> handler)
 {
     ASSERT(handler);
-    return adoptRef(new RTCDataChannel(context, std::move(handler)));
+    return adoptRef(new RTCDataChannel(context, WTF::move(handler)));
 }
 
 RTCDataChannel::RTCDataChannel(ScriptExecutionContext* context, std::unique_ptr<RTCDataChannelHandler> handler)
     : m_scriptExecutionContext(context)
-    , m_handler(std::move(handler))
+    , m_handler(WTF::move(handler))
     , m_stopped(false)
     , m_readyState(ReadyStateConnecting)
     , m_binaryType(BinaryTypeArrayBuffer)
index 6064dd4..29dc192 100644 (file)
@@ -670,7 +670,7 @@ void RTCPeerConnection::didAddRemoteDataChannel(std::unique_ptr<RTCDataChannelHa
     if (m_signalingState == SignalingStateClosed)
         return;
 
-    RefPtr<RTCDataChannel> channel = RTCDataChannel::create(scriptExecutionContext(), std::move(handler));
+    RefPtr<RTCDataChannel> channel = RTCDataChannel::create(scriptExecutionContext(), WTF::move(handler));
     m_dataChannels.append(channel);
 
     scheduleDispatchEvent(RTCDataChannelEvent::create(eventNames().datachannelEvent, false, false, channel.release()));
index c42e0ac..0cf34e7 100644 (file)
@@ -203,7 +203,7 @@ const char* NavigatorContentUtils::supplementName()
 
 void provideNavigatorContentUtilsTo(Page* page, std::unique_ptr<NavigatorContentUtilsClient> client)
 {
-    NavigatorContentUtils::provideTo(page, NavigatorContentUtils::supplementName(), std::make_unique<NavigatorContentUtils>(std::move(client)));
+    NavigatorContentUtils::provideTo(page, NavigatorContentUtils::supplementName(), std::make_unique<NavigatorContentUtils>(WTF::move(client)));
 }
 
 } // namespace WebCore
index e8dd864..c455305 100644 (file)
@@ -44,7 +44,7 @@ typedef int ExceptionCode;
 class NavigatorContentUtils final : public Supplement<Page> {
 public:
     explicit NavigatorContentUtils(std::unique_ptr<NavigatorContentUtilsClient> client)
-        : m_client(std::move(client))
+        : m_client(WTF::move(client))
     { }
 
     virtual ~NavigatorContentUtils();
index 0a89d06..bd2a1a3 100644 (file)
@@ -58,7 +58,7 @@ DOMWindowNotifications* DOMWindowNotifications::from(DOMWindow* window)
     if (!supplement) {
         auto newSupplement = std::make_unique<DOMWindowNotifications>(window);
         supplement = newSupplement.get();
-        provideTo(window, supplementName(), std::move(newSupplement));
+        provideTo(window, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index a8cd0e4..4e1e675 100644 (file)
@@ -56,7 +56,7 @@ WorkerGlobalScopeNotifications* WorkerGlobalScopeNotifications::from(WorkerGloba
     if (!supplement) {
         auto newSupplement = std::make_unique<WorkerGlobalScopeNotifications>(context);
         supplement = newSupplement.get();
-        provideTo(context, supplementName(), std::move(newSupplement));
+        provideTo(context, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index 56986ce..eb3c275 100644 (file)
@@ -138,7 +138,7 @@ RenderPtr<RenderElement> QuickTimePluginReplacement::createElementRenderer(HTMLP
     ASSERT_UNUSED(plugin, m_parentElement == &plugin);
 
     if (m_mediaElement)
-        return m_mediaElement->createElementRenderer(std::move(style));
+        return m_mediaElement->createElementRenderer(WTF::move(style));
 
     return nullptr;
 }
index da75c66..8a0e209 100644 (file)
@@ -73,7 +73,7 @@ RenderPtr<RenderElement> YouTubePluginReplacement::createElementRenderer(HTMLPlu
     if (!m_embedShadowElement)
         return nullptr;
     
-    return m_embedShadowElement->createElementRenderer(std::move(style));
+    return m_embedShadowElement->createElementRenderer(WTF::move(style));
 }
 
 bool YouTubePluginReplacement::installReplacement(ShadowRoot* root)
index 286c312..005f51c 100644 (file)
@@ -62,7 +62,7 @@ DOMWindowQuota* DOMWindowQuota::from(DOMWindow* window)
     if (!supplement) {
         auto newSupplement = std::make_unique<DOMWindowQuota>(window);
         supplement = newSupplement.get();
-        provideTo(window, supplementName(), std::move(newSupplement));
+        provideTo(window, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index f7b53bd..23be7fc 100644 (file)
@@ -59,7 +59,7 @@ NavigatorStorageQuota* NavigatorStorageQuota::from(Navigator* navigator)
     if (!supplement) {
         auto newSupplement = std::make_unique<NavigatorStorageQuota>(window);
         supplement = newSupplement.get();
-        provideTo(navigator, supplementName(), std::move(newSupplement));
+        provideTo(navigator, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index 68474ae..99b3cbd 100644 (file)
@@ -57,7 +57,7 @@ WorkerNavigatorStorageQuota* WorkerNavigatorStorageQuota::from(WorkerNavigator*
     if (!supplement) {
         auto newSupplement = std::make_unique<WorkerNavigatorStorageQuota>(window);
         supplement = newSupplement.get();
-        provideTo(navigator, supplementName(), std::move(newSupplement));
+        provideTo(navigator, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index ad247a5..c377b9b 100644 (file)
@@ -59,7 +59,7 @@ DOMWindowSpeechSynthesis* DOMWindowSpeechSynthesis::from(DOMWindow* window)
     if (!supplement) {
         auto newSupplement = std::make_unique<DOMWindowSpeechSynthesis>(window);
         supplement = newSupplement.get();
-        provideTo(window, supplementName(), std::move(newSupplement));
+        provideTo(window, supplementName(), WTF::move(newSupplement));
     }
     return supplement;
 }
index a70be1e..b6bb3cf 100644 (file)
@@ -53,7 +53,7 @@ SpeechSynthesis::SpeechSynthesis()
     
 void SpeechSynthesis::setPlatformSynthesizer(std::unique_ptr<PlatformSpeechSynthesizer> synthesizer)
 {
-    m_platformSpeechSynthesizer = std::move(synthesizer);
+    m_platformSpeechSynthesizer = WTF::move(synthesizer);
     m_voiceList.clear();
     m_currentSpeechUtterance = 0;
     m_utteranceQueue.clear();
index 3698bf5..449e338 100644 (file)
@@ -59,7 +59,7 @@ void AsyncAudioDecoder::decodeAsync(ArrayBuffer* audioData, float sampleRate, Pa
         return;
 
     auto decodingTask = DecodingTask::create(audioData, sampleRate, successCallback, errorCallback);
-    m_queue.append(std::move(decodingTask)); // note that ownership of the task is effectively taken by the queue.
+    m_queue.append(WTF::move(decodingTask)); // note that ownership of the task is effectively taken by the queue.
 }
 
 // Asynchronously decode in this thread.
index 514ec7a..4c40725 100644 (file)
@@ -100,12 +100,12 @@ void AudioNode::lazyInitialize()
 
 void AudioNode::addInput(std::unique_ptr<AudioNodeInput> input)
 {
-    m_inputs.append(std::move(input));
+    m_inputs.append(WTF::move(input));
 }
 
 void AudioNode::addOutput(std::unique_ptr<AudioNodeOutput> output)
 {
-    m_outputs.append(std::move(output));
+    m_outputs.append(WTF::move(output));
 }
 
 AudioNodeInput* AudioNode::input(unsigned i)
index c5ac5ea..5a100eb 100644 (file)
@@ -146,7 +146,7 @@ void ConvolverNode::setBuffer(AudioBuffer* buffer)
     {
         // Synchronize with process().
         std::lock_guard<std::mutex> lock(m_processMutex);
-        m_reverb = std::move(reverb);
+        m_reverb = WTF::move(reverb);
         m_buffer = buffer;
     }
 }
index fe6f3c7..0aadab9 100644 (file)
@@ -130,7 +130,7 @@ void Database::markAsDeletedAndClose()
     }
 
     auto task = DatabaseCloseTask::create(this, &synchronizer);
-    databaseContext()->databaseThread()->scheduleImmediateTask(std::move(task));
+    databaseContext()->databaseThread()->scheduleImmediateTask(WTF::move(task));
     synchronizer.waitForTaskCompletion();
 }
 
@@ -222,7 +222,7 @@ Vector<String> Database::tableNames()
         return result;
 
     auto task = DatabaseTableNamesTask::create(this, &synchronizer, result);
-    databaseContext()->databaseThread()->scheduleImmediateTask(std::move(task));
+    databaseContext()->databaseThread()->scheduleImmediateTask(WTF::move(task));
     synchronizer.waitForTaskCompletion();
 
     return result;
index 495e86a..c75bbd9 100644 (file)
@@ -57,7 +57,7 @@ bool DatabaseBackend::openAndVerifyVersion(bool setVersionInNewDatabase, Databas
 
     bool success = false;
     auto task = DatabaseOpenTask::create(this, setVersionInNewDatabase, &synchronizer, error, errorMessage, success);
-    databaseContext()->databaseThread()->scheduleImmediateTask(std::move(task));
+    databaseContext()->databaseThread()->scheduleImmediateTask(WTF::move(task));
     synchronizer.waitForTaskCompletion();
 
     return success;
@@ -147,7 +147,7 @@ void DatabaseBackend::scheduleTransaction()
         auto task = DatabaseTransactionTask::create(transaction);
         LOG(StorageAPI, "Scheduling DatabaseTransactionTask %p for transaction %p\n", task.get(), task->transaction());
         m_transactionInProgress = true;
-        databaseContext()->databaseThread()->scheduleTask(std::move(task));
+        databaseContext()->databaseThread()->scheduleTask(WTF::move(task));
     } else
         m_transactionInProgress = false;
 }
@@ -159,7 +159,7 @@ void DatabaseBackend::scheduleTransactionStep(SQLTransactionBackend* transaction
 
     auto task = DatabaseTransactionTask::create(transaction);
     LOG(StorageAPI, "Scheduling DatabaseTransactionTask %p for the transaction step\n", task.get());
-    databaseContext()->databaseThread()->scheduleTask(std::move(task));
+    databaseContext()->databaseThread()->scheduleTask(WTF::move(task));
 }
 
 SQLTransactionClient* DatabaseBackend::transactionClient() const
index 9320af9..8832cae 100644 (file)
@@ -155,7 +155,7 @@ void DatabaseThread::handlePausedQueue()
 {
     Vector<std::unique_ptr<DatabaseTask> > pausedTasks;
     while (auto task = m_pausedQueue.tryGetMessage())
-        pausedTasks.append(std::move(task));
+        pausedTasks.append(WTF::move(task));
 
     for (unsigned i = 0; i < pausedTasks.size(); ++i) {
         AutodrainedPool pool;
@@ -164,7 +164,7 @@ void DatabaseThread::handlePausedQueue()
         {
             MutexLocker pausedLocker(m_pausedMutex);
             if (m_paused) {
-                m_pausedQueue.append(std::move(task));
+                m_pausedQueue.append(WTF::move(task));
                 continue;
             }
         }
@@ -193,7 +193,7 @@ void DatabaseThread::databaseThread()
         if (!m_paused || task->shouldPerformWhilePaused())
             task->performTask();
         else
-            m_pausedQueue.append(std::move(task));
+            m_pausedQueue.append(WTF::move(task));
 #else
         task->performTask();
 #endif
@@ -246,13 +246,13 @@ void DatabaseThread::recordDatabaseClosed(DatabaseBackend* database)
 void DatabaseThread::scheduleTask(std::unique_ptr<DatabaseTask> task)
 {
     ASSERT(!task->hasSynchronizer() || task->hasCheckedForTermination());
-    m_queue.append(std::move(task));
+    m_queue.append(WTF::move(task));
 }
 
 void DatabaseThread::scheduleImmediateTask(std::unique_ptr<DatabaseTask> task)
 {
     ASSERT(!task->hasSynchronizer() || task->hasCheckedForTermination());
-    m_queue.prepend(std::move(task));
+    m_queue.prepend(WTF::move(task));
 }
 
 class SameDatabasePredicate {
index 14fe68f..f3dbf46 100644 (file)
@@ -77,12 +77,12 @@ namespace WebCore {
 PassRefPtr<SQLStatementBackend> SQLStatementBackend::create(std::unique_ptr<AbstractSQLStatement> frontend,
     const String& statement, const Vector<SQLValue>& arguments, int permissions)
 {
-    return adoptRef(new SQLStatementBackend(std::move(frontend), statement, arguments, permissions));
+    return adoptRef(new SQLStatementBackend(WTF::move(frontend), statement, arguments, permissions));
 }
 
 SQLStatementBackend::SQLStatementBackend(std::unique_ptr<AbstractSQLStatement> frontend,
     const String& statement, const Vector<SQLValue>& arguments, int permissions)
-    : m_frontend(std::move(frontend))
+    : m_frontend(WTF::move(frontend))
     , m_statement(statement.isolatedCopy())
     , m_arguments(arguments)
     , m_hasCallback(m_frontend->hasCallback())
index 2593196..c9ee203 100644 (file)
@@ -262,7 +262,7 @@ void SQLTransaction::executeSQL(const String& sqlStatement, const Vector<SQLValu
         permissions |= DatabaseAuthorizer::ReadOnlyMask;
 
     auto statement = std::make_unique<SQLStatement>(m_database.get(), callback, callbackError);
-    m_backend->executeSQL(std::move(statement), sqlStatement, arguments, permissions);
+    m_backend->executeSQL(WTF::move(statement), sqlStatement, arguments, permissions);
 }
 
 bool SQLTransaction::computeNextStateAndCleanupIfNeeded()
index 00b0062..28a3bf4 100644 (file)
@@ -530,7 +530,7 @@ void SQLTransactionBackend::executeSQL(std::unique_ptr<AbstractSQLStatement> sta
     const String& sqlStatement, const Vector<SQLValue>& arguments, int permissions)
 {
     RefPtr<SQLStatementBackend> statementBackend;
-    statementBackend = SQLStatementBackend::create(std::move(statement), sqlStatement, arguments, permissions);
+    statementBackend = SQLStatementBackend::create(WTF::move(statement), sqlStatement, arguments, permissions);
 
     if (Database::from(m_database.get())->deleted())
         statementBackend->setDatabaseDeletedError();
index 085d672..fed87c3 100644 (file)
@@ -231,7 +231,7 @@ void ThreadableWebSocketChannelClientWrapper::processPendingTasks()
         return;
     }
 
-    Vector<std::unique_ptr<ScriptExecutionContext::Task>> pendingTasks = std::move(m_pendingTasks);
+    Vector<std::unique_ptr<ScriptExecutionContext::Task>> pendingTasks = WTF::move(m_pendingTasks);
     for (auto& task : pendingTasks)
         task->performTask(*m_context);
 }
index 52fbea8..0dcd389 100644 (file)
@@ -519,7 +519,7 @@ void WebSocket::didReceiveBinaryData(PassOwnPtr<Vector<char>> binaryData)
     switch (m_binaryType) {
     case BinaryTypeBlob: {
         // FIXME: We just received the data from NetworkProcess, and are sending it back. This is inefficient.
-        RefPtr<Blob> blob = Blob::create(std::move(*binaryData), emptyString());
+        RefPtr<Blob> blob = Blob::create(WTF::move(*binaryData), emptyString());
         dispatchEvent(MessageEvent::create(blob.release(), SecurityOrigin::create(m_url)->toString()));
         break;
     }
index fe87e70..f194810 100644 (file)
@@ -704,7 +704,7 @@ void AXObjectCache::notificationPostTimerFired(Timer<AXObjectCache>&)
     
     // In DRT, posting notifications has a tendency to immediately queue up other notifications, which can lead to unexpected behavior
     // when the notification list is cleared at the end. Instead copy this list at the start.
-    auto notifications = std::move(m_notificationsToPost);
+    auto notifications = WTF::move(m_notificationsToPost);
     
     for (const auto& note : notifications) {
         AccessibilityObject* obj = note.first.get();
index e669705..4ac32d3 100644 (file)
@@ -1438,7 +1438,7 @@ void AccessibilityNodeObject::ariaLabeledByText(Vector<AccessibilityText>& textO
             axElements.append(axElement);
         }
         
-        textOrder.append(AccessibilityText(ariaLabeledBy, AlternativeText, std::move(axElements)));
+        textOrder.append(AccessibilityText(ariaLabeledBy, AlternativeText, WTF::move(axElements)));
     }
 }
     
index c78bbca..5c2b19d 100644 (file)
@@ -233,7 +233,7 @@ struct AccessibilityText {
     AccessibilityText(const String& t, const AccessibilityTextSource& s, Vector<RefPtr<AccessibilityObject>> elements)
     : text(t)
     , textSource(s)
-    , textElements(std::move(elements))
+    , textElements(WTF::move(elements))
     { }
 
     AccessibilityText(const String& t, const AccessibilityTextSource& s, const RefPtr<AccessibilityObject> element)
index 77edb8c..d95c173 100644 (file)
@@ -146,7 +146,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createAesCbcParams(ExecState*
 
     memcpy(result->iv.data(), ivData.first, ivData.second);
 
-    return std::move(result);
+    return WTF::move(result);
 }
 
 static std::unique_ptr<CryptoAlgorithmParameters> createAesKeyGenParams(ExecState* exec, JSValue value)
@@ -164,7 +164,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createAesKeyGenParams(ExecStat
 
     result->length = toUInt16(exec, lengthValue, EnforceRange);
 
-    return std::move(result);
+    return WTF::move(result);
 }
 
 static std::unique_ptr<CryptoAlgorithmParameters> createHmacParams(ExecState* exec, JSValue value)
@@ -182,7 +182,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createHmacParams(ExecState* ex
         return nullptr;
     }
 
-    return std::move(result);
+    return WTF::move(result);
 }
 
 static std::unique_ptr<CryptoAlgorithmParameters> createHmacKeyParams(ExecState* exec, JSValue value)
@@ -204,7 +204,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createHmacKeyParams(ExecState*
     if (exec->hadException())
         return nullptr;
 
-    return std::move(result);
+    return WTF::move(result);
 }
 
 static std::unique_ptr<CryptoAlgorithmParameters> createRsaKeyGenParams(ExecState* exec, JSValue value)
@@ -236,7 +236,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createRsaKeyGenParams(ExecStat
     }
     result->publicExponent.append(publicExponentArray->data(), publicExponentArray->byteLength());
 
-    return std::move(result);
+    return WTF::move(result);
 }
 
 static std::unique_ptr<CryptoAlgorithmParameters> createRsaKeyParamsWithHash(ExecState*, JSValue)
@@ -266,7 +266,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createRsaOaepParams(ExecState*
 
     result->hasLabel = !labelValue.isUndefinedOrNull();
     if (!result->hasLabel)
-        return std::move(result);
+        return WTF::move(result);
 
     CryptoOperationData labelData;
     if (!cryptoOperationDataFromJSValue(exec, labelValue, labelData)) {
@@ -276,7 +276,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createRsaOaepParams(ExecState*
 
     result->label.append(labelData.first, labelData.second);
 
-    return std::move(result);
+    return WTF::move(result);
 }
 
 static std::unique_ptr<CryptoAlgorithmParameters> createRsaSsaParams(ExecState* exec, JSValue value)
@@ -294,7 +294,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createRsaSsaParams(ExecState*
         return nullptr;
     }
 
-    return std::move(result);
+    return WTF::move(result);
 }
 
 std::unique_ptr<CryptoAlgorithmParameters> JSCryptoAlgorithmDictionary::createParametersForEncrypt(ExecState* exec, CryptoAlgorithmIdentifier algorithm, JSValue value)
index 263e5cb..be6e1e0 100644 (file)
@@ -152,7 +152,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createHMACParameters(CryptoAlg
 {
     std::unique_ptr<CryptoAlgorithmHmacParams> hmacParameters = std::make_unique<CryptoAlgorithmHmacParams>();
     hmacParameters->hash = hashFunction;
-    return std::move(hmacParameters);
+    return WTF::move(hmacParameters);
 }
 
 static std::unique_ptr<CryptoAlgorithmParameters> createRSAKeyParametersWithHash(CryptoAlgorithmIdentifier hashFunction)
@@ -160,7 +160,7 @@ static std::unique_ptr<CryptoAlgorithmParameters> createRSAKeyParametersWithHash
     std::unique_ptr<CryptoAlgorithmRsaKeyParamsWithHash> rsaKeyParameters = std::make_unique<CryptoAlgorithmRsaKeyParamsWithHash>();
     rsaKeyParameters->hasHash = true;
     rsaKeyParameters->hash = hashFunction;
-    return std::move(rsaKeyParameters);
+    return WTF::move(rsaKeyParameters);
 }
 
 bool JSCryptoKeySerializationJWK::reconcileAlgorithm(std::unique_ptr<CryptoAlgorithm>& suggestedAlgorithm, std::unique_ptr<CryptoAlgorithmParameters>& suggestedParameters) const
@@ -220,8 +220,8 @@ bool JSCryptoKeySerializationJWK::reconcileAlgorithm(std::unique_ptr<CryptoAlgor
     }
 
     if (!suggestedAlgorithm) {
-        suggestedAlgorithm = std::move(algorithm);
-        suggestedParameters =  std::move(parameters);
+        suggestedAlgorithm = WTF::move(algorithm);
+        suggestedParameters =  WTF::move(parameters);
         return true;
     }
 
index 1b6ae7d..2cde12d 100644 (file)
@@ -584,7 +584,7 @@ JSValue JSDOMWindow::setTimeout(ExecState* exec)
     int delay = exec->argument(1).toInt32(exec);
 
     ExceptionCode ec = 0;
-    int result = impl().setTimeout(std::move(action), delay, ec);
+    int result = impl().setTimeout(WTF::move(action), delay, ec);
     setDOMException(exec, ec);
 
     return jsNumber(result);
@@ -602,7 +602,7 @@ JSValue JSDOMWindow::setInterval(ExecState* exec)
         return jsNumber(0);
 
     ExceptionCode ec = 0;
-    int result = impl().setInterval(std::move(action), delay, ec);
+    int result = impl().setInterval(WTF::move(action), delay, ec);
     setDOMException(exec, ec);
 
     return jsNumber(result);
index ea9c45f..ba9e3cc 100644 (file)
@@ -110,7 +110,7 @@ static JSC::JSValue handleInitMessageEvent(JSMessageEvent* jsEvent, JSC::ExecSta
         return jsUndefined();
 
     MessageEvent& event = jsEvent->impl();
-    event.initMessageEvent(typeArg, canBubbleArg, cancelableArg, dataArg, originArg, lastEventIdArg, sourceArg, std::move(messagePorts));
+    event.initMessageEvent(typeArg, canBubbleArg, cancelableArg, dataArg, originArg, lastEventIdArg, sourceArg, WTF::move(messagePorts));
     jsEvent->m_data.set(exec->vm(), jsEvent, dataArg.jsValue());
     return jsUndefined();
 }
index c15bccb..f405a03 100644 (file)
@@ -171,7 +171,7 @@ JSValue JSSubtleCrypto::encrypt(ExecState* exec)
     };
 
     ExceptionCode ec = 0;
-    algorithm->encrypt(*parameters, *key, data, std::move(successCallback), std::move(failureCallback), ec);
+    algorithm->encrypt(*parameters, *key, data, WTF::move(successCallback), WTF::move(failureCallback), ec);
     if (ec) {
         setDOMException(exec, ec);
         return jsUndefined();
@@ -222,7 +222,7 @@ JSValue JSSubtleCrypto::decrypt(ExecState* exec)
     };
 
     ExceptionCode ec = 0;
-    algorithm->decrypt(*parameters, *key, data, std::move(successCallback), std::move(failureCallback), ec);
+    algorithm->decrypt(*parameters, *key, data, WTF::move(successCallback), WTF::move(failureCallback), ec);
     if (ec) {
         setDOMException(exec, ec);
         return jsUndefined();
@@ -273,7 +273,7 @@ JSValue JSSubtleCrypto::sign(ExecState* exec)
     };
 
     ExceptionCode ec = 0;
-    algorithm->sign(*parameters, *key, data, std::move(successCallback), std::move(failureCallback), ec);
+    algorithm->sign(*parameters, *key, data, WTF::move(successCallback), WTF::move(failureCallback), ec);
     if (ec) {
         setDOMException(exec, ec);
         return jsUndefined();
@@ -330,7 +330,7 @@ JSValue JSSubtleCrypto::verify(ExecState* exec)
     };
 
     ExceptionCode ec = 0;
-    algorithm->verify(*parameters, *key, signature, data, std::move(successCallback), std::move(failureCallback), ec);
+    algorithm->verify(*parameters, *key, signature, data, WTF::move(successCallback), WTF::move(failureCallback), ec);
     if (ec) {
         setDOMException(exec, ec);
         return jsUndefined();
@@ -371,7 +371,7 @@ JSValue JSSubtleCrypto::digest(ExecState* exec)
     };
 
     ExceptionCode ec = 0;
-    algorithm->digest(*parameters, data, std::move(successCallback), std::move(failureCallback), ec);
+    algorithm->digest(*parameters, data, WTF::move(successCallback), WTF::move(failureCallback), ec);
     if (ec) {
         setDOMException(exec, ec);
         return jsUndefined();
@@ -426,7 +426,7 @@ JSValue JSSubtleCrypto::generateKey(ExecState* exec)
     };
 
     ExceptionCode ec = 0;
-    algorithm->generateKey(*parameters, extractable, keyUsages, std::move(successCallback), std::move(failureCallback), ec);
+    algorithm->generateKey(*parameters, extractable, keyUsages, WTF::move(successCallback), WTF::move(failureCallback), ec);
     if (ec) {
         setDOMException(exec, ec);
         return jsUndefined();
@@ -490,7 +490,7 @@ static void importKey(ExecState* exec, CryptoKeyFormat keyFormat, CryptoOperatio
         return;
 
     ExceptionCode ec = 0;
-    algorithm->importKey(*parameters, *keyData, extractable, keyUsages, std::move(callback), std::move(failureCallback), ec);
+    algorithm->importKey(*parameters, *keyData, extractable, keyUsages, WTF::move(callback), WTF::move(failureCallback), ec);
     if (ec)
         setDOMException(exec, ec);
 }
@@ -550,7 +550,7 @@ JSValue JSSubtleCrypto::importKey(ExecState* exec)
         wrapper.reject(nullptr);
     };
 
-    WebCore::importKey(exec, keyFormat, data, algorithm.release(), parameters.release(), extractable, keyUsages, std::move(successCallback), std::move(failureCallback));
+    WebCore::importKey(exec, keyFormat, data, algorithm.release(), parameters.release(), extractable, keyUsages, WTF::move(successCallback), WTF::move(failureCallback));
     if (exec->hadException())
         return jsUndefined();
 
@@ -612,7 +612,7 @@ JSValue JSSubtleCrypto::exportKey(ExecState* exec)
         wrapper.reject(nullptr);
     };
 
-    WebCore::exportKey(exec, keyFormat, *key, std::move(successCallback), std::move(failureCallback));
+    WebCore::exportKey(exec, keyFormat, *key, WTF::move(successCallback), WTF::move(failureCallback));
     if (exec->hadException())
         return jsUndefined();
 
@@ -673,7 +673,7 @@ JSValue JSSubtleCrypto::wrapKey(ExecState* exec)
             wrapper.reject(nullptr);
         };
         ExceptionCode ec = 0;
-        algorithmPtr->encryptForWrapKey(*parametersPtr, *wrappingKey, std::make_pair(exportedKeyData.data(), exportedKeyData.size()), std::move(encryptSuccessCallback), std::move(encryptFailureCallback), ec);
+        algorithmPtr->encryptForWrapKey(*parametersPtr, *wrappingKey, std::make_pair(exportedKeyData.data(), exportedKeyData.size()), WTF::move(encryptSuccessCallback), WTF::move(encryptFailureCallback), ec);
         if (ec) {
             // FIXME: Report failure details to console, and possibly to calling script once there is a standardized way to pass errors to WebCrypto promise reject functions.
             encryptFailureCallback();
@@ -687,7 +687,7 @@ JSValue JSSubtleCrypto::wrapKey(ExecState* exec)
     };
 
     ExceptionCode ec = 0;
-    WebCore::exportKey(exec, keyFormat, *key, std::move(exportSuccessCallback), std::move(exportFailureCallback));
+    WebCore::exportKey(exec, keyFormat, *key, WTF::move(exportSuccessCallback), WTF::move(exportFailureCallback));
     if (ec) {
         setDOMException(exec, ec);
         return jsUndefined();
@@ -780,7 +780,7 @@ JSValue JSSubtleCrypto::unwrapKey(ExecState* exec)
             wrapper.reject(nullptr);
         };
         ExecState* exec = domGlobalObject->globalExec();
-        WebCore::importKey(exec, keyFormat, std::make_pair(result.data(), result.size()), unwrappedKeyAlgorithmPtr, unwrappedKeyAlgorithmParametersPtr, extractable, keyUsages, std::move(importSuccessCallback), std::move(importFailureCallback));
+        WebCore::importKey(exec, keyFormat, std::make_pair(result.data(), result.size()), unwrappedKeyAlgorithmPtr, unwrappedKeyAlgorithmParametersPtr, extractable, keyUsages, WTF::move(importSuccessCallback), WTF::move(importFailureCallback));
         if (exec->hadException()) {
             // FIXME: Report exception details to console, and possibly to calling script once there is a standardized way to pass errors to WebCrypto promise reject functions.
             exec->clearException();
@@ -795,7 +795,7 @@ JSValue JSSubtleCrypto::unwrapKey(ExecState* exec)
     };
 
     ExceptionCode ec = 0;
-    unwrapAlgorithm->decryptForUnwrapKey(*unwrapAlgorithmParameters, *unwrappingKey, wrappedKeyData, std::move(decryptSuccessCallback), std::move(decryptFailureCallback), ec);
+    unwrapAlgorithm->decryptForUnwrapKey(*unwrapAlgorithmParameters, *unwrappingKey, wrappedKeyData, WTF::move(decryptSuccessCallback), WTF::move(decryptFailureCallback), ec);
     if (ec) {
         setDOMException(exec, ec);
         return jsUndefined();
index a6dac26..857d480 100644 (file)
@@ -93,7 +93,7 @@ JSValue JSWorkerGlobalScope::setTimeout(ExecState* exec)
     if (!action)
         return jsNumber(0);
     int delay = exec->argument(1).toInt32(exec);
-    return jsNumber(impl().setTimeout(std::move(action), delay));
+    return jsNumber(impl().setTimeout(WTF::move(action), delay));
 }
 
 JSValue JSWorkerGlobalScope::setInterval(ExecState* exec)
@@ -104,7 +104,7 @@ JSValue JSWorkerGlobalScope::setInterval(ExecState* exec)
     if (!action)
         return jsNumber(0);
     int delay = exec->argument(1).toInt32(exec);
-    return jsNumber(impl().setInterval(std::move(action), delay));
+    return jsNumber(impl().setInterval(WTF::move(action), delay));
 }
 
 } // namespace WebCore
index 7ac0f1a..28f22da 100644 (file)
@@ -1991,7 +1991,7 @@ private:
             auto key = CryptoKeyRSA::create(algorithm, *keyData, extractable, usages);
             if (isRestrictedToHash)
                 key->restrictToHash(hash);
-            result = std::move(key);
+            result = WTF::move(key);
             return true;
         }
 
@@ -2008,7 +2008,7 @@ private:
             auto key = CryptoKeyRSA::create(algorithm, *keyData, extractable, usages);
             if (isRestrictedToHash)
                 key->restrictToHash(hash);
-            result = std::move(key);
+            result = WTF::move(key);
             return true;
         }
 
@@ -2042,7 +2042,7 @@ private:
         auto key = CryptoKeyRSA::create(algorithm, *keyData, extractable, usages);
         if (isRestrictedToHash)
             key->restrictToHash(hash);
-        result = std::move(key);
+        result = WTF::move(key);
         return true;
     }
 
@@ -2194,11 +2194,11 @@ private:
                 if (!readFile(file))
                     return JSValue();
                 if (m_isDOMGlobalObject)
-                    files.append(std::move(file));
+                    files.append(WTF::move(file));
             }
             if (!m_isDOMGlobalObject)
                 return jsNull();
-            return getJSValue(FileList::create(std::move(files)).get());
+            return getJSValue(FileList::create(WTF::move(files)).get());
         }
         case ImageDataTag: {
             int32_t width;
index e7d8dba..c51c6fd 100644 (file)
@@ -74,7 +74,7 @@ void CryptoAlgorithmAES_CBC::encrypt(const CryptoAlgorithmParameters& parameters
         return;
     }
 
-    platformEncrypt(aesCBCParameters, toCryptoKeyAES(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformEncrypt(aesCBCParameters, toCryptoKeyAES(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmAES_CBC::decrypt(const CryptoAlgorithmParameters& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode& ec)
@@ -86,7 +86,7 @@ void CryptoAlgorithmAES_CBC::decrypt(const CryptoAlgorithmParameters& parameters
         return;
     }
 
-    platformDecrypt(aesCBCParameters, toCryptoKeyAES(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformDecrypt(aesCBCParameters, toCryptoKeyAES(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmAES_CBC::generateKey(const CryptoAlgorithmParameters& parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&)
index c334fb0..c28903a 100644 (file)
@@ -71,7 +71,7 @@ void CryptoAlgorithmAES_KW::encryptForWrapKey(const CryptoAlgorithmParameters&,
         return;
     }
 
-    platformEncrypt(toCryptoKeyAES(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformEncrypt(toCryptoKeyAES(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmAES_KW::decryptForUnwrapKey(const CryptoAlgorithmParameters&, const CryptoKey& key, const CryptoOperationData& data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode& ec)
@@ -81,7 +81,7 @@ void CryptoAlgorithmAES_KW::decryptForUnwrapKey(const CryptoAlgorithmParameters&
         return;
     }
 
-    platformDecrypt(toCryptoKeyAES(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformDecrypt(toCryptoKeyAES(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmAES_KW::generateKey(const CryptoAlgorithmParameters& parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&)
index 9a82bdf..4767d2e 100644 (file)
@@ -77,7 +77,7 @@ void CryptoAlgorithmHMAC::sign(const CryptoAlgorithmParameters& parameters, cons
         return;
     }
 
-    platformSign(hmacParameters, toCryptoKeyHMAC(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformSign(hmacParameters, toCryptoKeyHMAC(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmHMAC::verify(const CryptoAlgorithmParameters& parameters, const CryptoKey& key, const CryptoOperationData& expectedSignature, const CryptoOperationData& data, BoolCallback callback, VoidCallback failureCallback, ExceptionCode& ec)
@@ -89,7 +89,7 @@ void CryptoAlgorithmHMAC::verify(const CryptoAlgorithmParameters& parameters, co
         return;
     }
 
-    platformVerify(hmacParameters, toCryptoKeyHMAC(key), expectedSignature, data, std::move(callback), std::move(failureCallback), ec);
+    platformVerify(hmacParameters, toCryptoKeyHMAC(key), expectedSignature, data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmHMAC::generateKey(const CryptoAlgorithmParameters& parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&)
index 5b0c632..9044336 100644 (file)
@@ -71,7 +71,7 @@ void CryptoAlgorithmRSAES_PKCS1_v1_5::encrypt(const CryptoAlgorithmParameters&,
         return;
     }
 
-    platformEncrypt(toCryptoKeyRSA(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformEncrypt(toCryptoKeyRSA(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmRSAES_PKCS1_v1_5::decrypt(const CryptoAlgorithmParameters&, const CryptoKey& key, const CryptoOperationData& data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode& ec)
@@ -81,7 +81,7 @@ void CryptoAlgorithmRSAES_PKCS1_v1_5::decrypt(const CryptoAlgorithmParameters&,
         return;
     }
 
-    platformDecrypt(toCryptoKeyRSA(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformDecrypt(toCryptoKeyRSA(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmRSAES_PKCS1_v1_5::generateKey(const CryptoAlgorithmParameters& parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&)
@@ -92,7 +92,7 @@ void CryptoAlgorithmRSAES_PKCS1_v1_5::generateKey(const CryptoAlgorithmParameter
         callback(nullptr, &pair);
     };
 
-    CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier::RSAES_PKCS1_v1_5, rsaParameters.modulusLength, rsaParameters.publicExponent, extractable, usages, std::move(keyPairCallback), std::move(failureCallback));
+    CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier::RSAES_PKCS1_v1_5, rsaParameters.modulusLength, rsaParameters.publicExponent, extractable, usages, WTF::move(keyPairCallback), WTF::move(failureCallback));
 }
 
 void CryptoAlgorithmRSAES_PKCS1_v1_5::importKey(const CryptoAlgorithmParameters&, const CryptoKeyData& keyData, bool extractable, CryptoKeyUsage usage, KeyCallback callback, VoidCallback failureCallback, ExceptionCode&)
index 9e4710f..4f0f3cd 100644 (file)
@@ -79,7 +79,7 @@ void CryptoAlgorithmRSASSA_PKCS1_v1_5::sign(const CryptoAlgorithmParameters& par
         return;
     }
 
-    platformSign(rsaSSAParameters, toCryptoKeyRSA(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformSign(rsaSSAParameters, toCryptoKeyRSA(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmRSASSA_PKCS1_v1_5::verify(const CryptoAlgorithmParameters& parameters, const CryptoKey& key, const CryptoOperationData& signature, const CryptoOperationData& data, BoolCallback callback, VoidCallback failureCallback, ExceptionCode& ec)
@@ -91,7 +91,7 @@ void CryptoAlgorithmRSASSA_PKCS1_v1_5::verify(const CryptoAlgorithmParameters& p
         return;
     }
 
-    platformVerify(rsaSSAParameters, toCryptoKeyRSA(key), signature, data, std::move(callback), std::move(failureCallback), ec);
+    platformVerify(rsaSSAParameters, toCryptoKeyRSA(key), signature, data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmRSASSA_PKCS1_v1_5::generateKey(const CryptoAlgorithmParameters& parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&)
@@ -102,7 +102,7 @@ void CryptoAlgorithmRSASSA_PKCS1_v1_5::generateKey(const CryptoAlgorithmParamete
         callback(nullptr, &pair);
     };
 
-    CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier::RSASSA_PKCS1_v1_5, rsaParameters.modulusLength, rsaParameters.publicExponent, extractable, usages, std::move(keyPairCallback), std::move(failureCallback));
+    CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier::RSASSA_PKCS1_v1_5, rsaParameters.modulusLength, rsaParameters.publicExponent, extractable, usages, WTF::move(keyPairCallback), WTF::move(failureCallback));
 }
 
 void CryptoAlgorithmRSASSA_PKCS1_v1_5::importKey(const CryptoAlgorithmParameters& parameters, const CryptoKeyData& keyData, bool extractable, CryptoKeyUsage usage, KeyCallback callback, VoidCallback failureCallback, ExceptionCode&)
index a19764a..e2dec85 100644 (file)
@@ -79,7 +79,7 @@ void CryptoAlgorithmRSA_OAEP::encrypt(const CryptoAlgorithmParameters& parameter
         return;
     }
 
-    platformEncrypt(rsaOAEPParameters, toCryptoKeyRSA(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformEncrypt(rsaOAEPParameters, toCryptoKeyRSA(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmRSA_OAEP::decrypt(const CryptoAlgorithmParameters& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode& ec)
@@ -91,7 +91,7 @@ void CryptoAlgorithmRSA_OAEP::decrypt(const CryptoAlgorithmParameters& parameter
         return;
     }
 
-    platformDecrypt(rsaOAEPParameters, toCryptoKeyRSA(key), data, std::move(callback), std::move(failureCallback), ec);
+    platformDecrypt(rsaOAEPParameters, toCryptoKeyRSA(key), data, WTF::move(callback), WTF::move(failureCallback), ec);
 }
 
 void CryptoAlgorithmRSA_OAEP::generateKey(const CryptoAlgorithmParameters& parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&)
@@ -102,7 +102,7 @@ void CryptoAlgorithmRSA_OAEP::generateKey(const CryptoAlgorithmParameters& param
         callback(nullptr, &pair);
     };
 
-    CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier::RSA_OAEP, rsaParameters.modulusLength, rsaParameters.publicExponent, extractable, usages, std::move(keyPairCallback), std::move(failureCallback));
+    CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier::RSA_OAEP, rsaParameters.modulusLength, rsaParameters.publicExponent, extractable, usages, WTF::move(keyPairCallback), WTF::move(failureCallback));
 }
 
 void CryptoAlgorithmRSA_OAEP::importKey(const CryptoAlgorithmParameters& parameters, const CryptoKeyData& keyData, bool extractable, CryptoKeyUsage usage, KeyCallback callback, VoidCallback failureCallback, ExceptionCode&)
index 4b8cfd4..5aaa775 100644 (file)
@@ -84,12 +84,12 @@ static void transformAES_CBC(CCOperation operation, const CryptoAlgorithmAesCbcP
 
 void CryptoAlgorithmAES_CBC::platformEncrypt(const CryptoAlgorithmAesCbcParams& parameters, const CryptoKeyAES& key, const CryptoOperationData& data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode&)
 {
-    transformAES_CBC(kCCEncrypt, parameters, key, data, std::move(callback), std::move(failureCallback));
+    transformAES_CBC(kCCEncrypt, parameters, key, data, WTF::move(callback), WTF::move(failureCallback));
 }
 
 void CryptoAlgorithmAES_CBC::platformDecrypt(const CryptoAlgorithmAesCbcParams& parameters, const CryptoKeyAES& key, const CryptoOperationData& data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode&)
 {
-    transformAES_CBC(kCCDecrypt, parameters, key, data, std::move(callback), std::move(failureCallback));
+    transformAES_CBC(kCCDecrypt, parameters, key, data, WTF::move(callback), WTF::move(failureCallback));
 }
 
 } // namespace WebCore
index d1f31bc..25a156d 100644 (file)
@@ -251,8 +251,8 @@ void CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier algorithm, unsigned mo
     }
 
     // We only use the callback functions when back on the main thread, but captured variables are copied on a secondary thread too.
-    KeyPairCallback* localCallback = new KeyPairCallback(std::move(callback));
-    VoidCallback* localFailureCallback = new VoidCallback(std::move(failureCallback));
+    KeyPairCallback* localCallback = new KeyPairCallback(WTF::move(callback));
+    VoidCallback* localFailureCallback = new VoidCallback(WTF::move(failureCallback));
 
     dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
         CCRSACryptorRef ccPublicKey;
index 635da83..00ca35f 100644 (file)
@@ -427,7 +427,7 @@ private:
         std::unique_ptr<CalcExpressionNode> right(m_rightSide->createCalcExpression(conversionData));
         if (!right)
             return nullptr;
-        return std::make_unique<CalcExpressionBinaryOperation>(std::move(left), std::move(right), m_operator);
+        return std::make_unique<CalcExpressionBinaryOperation>(WTF::move(left), WTF::move(right), m_operator);
     }
 
     virtual double doubleValue() const override
index df68676..ce0cb5a 100644 (file)
@@ -111,7 +111,7 @@ private:
 
 inline CSSCalcValue::CSSCalcValue(PassRef<CSSCalcExpressionNode> expression, bool shouldClampToNonNegative)
     : CSSValue(CalculationClass)
-    , m_expression(std::move(expression))
+    , m_expression(WTF::move(expression))
     , m_shouldClampToNonNegative(shouldClampToNonNegative)
 {
 }
index dbb8db6..3f38c8d 100644 (file)
@@ -831,7 +831,7 @@ static PassRef<CSSValue> computedTransform(RenderObject* renderer, const RenderS
     // FIXME: Need to print out individual functions (https://bugs.webkit.org/show_bug.cgi?id=23924)
     auto list = CSSValueList::createSpaceSeparated();
     list.get().append(matrixTransformValue(transform, style));
-    return std::move(list);
+    return WTF::move(list);
 }
 
 static inline PassRef<CSSPrimitiveValue> adjustLengthForZoom(double length, const RenderStyle* style, AdjustPixelValuesForComputedStyle adjust)
@@ -951,7 +951,7 @@ PassRef<CSSValue> ComputedStyleExtractor::valueForFilter(const RenderStyle* styl
         list.get().append(filterValue.release());
     }
 
-    return std::move(list);
+    return WTF::move(list);
 }
 #endif
 
@@ -1025,7 +1025,7 @@ static PassRef<CSSValue> valueForGridTrackList(GridTrackSizingDirection directio
 
     // Those are the trailing <ident>* allowed in the syntax.
     addValuesForNamedGridLinesAtIndex(orderedNamedGridLines, trackSizes.size(), list.get());
-    return std::move(list);
+    return WTF::move(list);
 }
 
 static PassRef<CSSValue> valueForGridPosition(const GridPosition& position)
@@ -1045,7 +1045,7 @@ static PassRef<CSSValue> valueForGridPosition(const GridPosition& position)
 
     if (!position.namedGridLine().isNull())
         list.get().append(cssValuePool().createValue(position.namedGridLine(), CSSPrimitiveValue::CSS_STRING));
-    return std::move(list);
+    return WTF::move(list);
 }
 #endif
 
@@ -1358,7 +1358,7 @@ static PassRef<CSSValue> fillRepeatToCSSValue(EFillRepeat xRepeat, EFillRepeat y
     auto list = CSSValueList::createSpaceSeparated();
     list.get().append(cssValuePool().createValue(xRepeat));
     list.get().append(cssValuePool().createValue(yRepeat));
-    return std::move(list);
+    return WTF::move(list);
 }
 
 static PassRefPtr<CSSValue> fillSourceTypeToCSSValue(EMaskSourceType type)
@@ -1389,7 +1389,7 @@ static PassRef<CSSValue> fillSizeToCSSValue(const FillSize& fillSize, const Rend
     auto list = CSSValueList::createSpaceSeparated();
     list.get().append(zoomAdjustedPixelValueForLength(fillSize.size.width(), style));
     list.get().append(zoomAdjustedPixelValueForLength(fillSize.size.height(), style));
-    return std::move(list);
+    return WTF::move(list);
 }
 
 static PassRef<CSSValue> altTextToCSSValue(const RenderStyle* style)
index 692f433..d43db1e 100644 (file)
@@ -192,7 +192,7 @@ PassRefPtr<CSSCrossfadeValue> CSSCrossfadeValue::blend(const CSSCrossfadeValue&
     auto fromImageValue = CSSImageValue::create(m_cachedFromImage->url(), fromStyledImage.get());
     auto toImageValue = CSSImageValue::create(m_cachedToImage->url(), toStyledImage.get());
 
-    RefPtr<CSSCrossfadeValue> crossfadeValue = CSSCrossfadeValue::create(std::move(fromImageValue), std::move(toImageValue));
+    RefPtr<CSSCrossfadeValue> crossfadeValue = CSSCrossfadeValue::create(WTF::move(fromImageValue), WTF::move(toImageValue));
 
     double fromPercentage = from.m_percentageValue->getDoubleValue();
     if (from.m_percentageValue->isPercentage())
index aba6248..3144204 100644 (file)
@@ -55,7 +55,7 @@ static inline SVGCursorElement* resourceReferencedByCursorElement(const String&
 
 CSSCursorImageValue::CSSCursorImageValue(PassRef<CSSValue> imageValue, bool hasHotSpot, const IntPoint& hotSpot)
     : CSSValue(CursorImageClass)
-    , m_imageValue(std::move(imageValue))
+    , m_imageValue(WTF::move(imageValue))
     , m_hasHotSpot(hasHotSpot)
     , m_hotSpot(hotSpot)
     , m_accessedImage(false)
index 63bc284..651cd63 100644 (file)
@@ -35,7 +35,7 @@ class CSSCursorImageValue : public CSSValue {
 public:
     static PassRef<CSSCursorImageValue> create(PassRef<CSSValue> imageValue, bool hasHotSpot, const IntPoint& hotSpot)
     {
-        return adoptRef(*new CSSCursorImageValue(std::move(imageValue), hasHotSpot, hotSpot));
+        return adoptRef(*new CSSCursorImageValue(WTF::move(imageValue), hasHotSpot, hotSpot));
     }
 
     ~CSSCursorImageValue();
index d980e62..b0a7e69 100644 (file)
@@ -120,7 +120,7 @@ PassRefPtr<Image> CSSFilterImageValue::image(RenderElement* renderer, const Floa
     texture->context()->drawImage(image, ColorSpaceDeviceRGB, IntPoint());
 
     RefPtr<FilterEffectRenderer> filterRenderer = FilterEffectRenderer::create();
-    filterRenderer->setSourceImage(std::move(texture));
+    filterRenderer->setSourceImage(WTF::move(texture));
     filterRenderer->setSourceImageRect(FloatRect(FloatPoint(), size));
     filterRenderer->setFilterRegion(FloatRect(FloatPoint(), size));
     if (!filterRenderer->build(renderer, m_filterOperations, FilterFunction))
index 42f22cd..5b24028 100644 (file)
@@ -50,7 +50,7 @@ class CSSFilterImageValue : public CSSImageGeneratorValue {
 public:
     static PassRef<CSSFilterImageValue> create(PassRef<CSSValue> imageValue, PassRef<CSSValue> filterValue)
     {
-        return adoptRef(*new CSSFilterImageValue(std::move(imageValue), std::move(filterValue)));
+        return adoptRef(*new CSSFilterImageValue(WTF::move(imageValue), WTF::move(filterValue)));
     }
 
     ~CSSFilterImageValue();
index 4b7a9ad..b53463b 100644 (file)
@@ -70,7 +70,7 @@ void CSSFontFace::removedFromSegmentedFontFace(CSSSegmentedFontFace* segmentedFo
 void CSSFontFace::addSource(std::unique_ptr<CSSFontFaceSource> source)
 {
     source->setFontFace(this);
-    m_sources.append(std::move(source));
+    m_sources.append(WTF::move(source));
 }
 
 void CSSFontFace::fontLoaded(CSSFontFaceSource* source)
index 0121748..f7815ef 100644 (file)
@@ -239,7 +239,7 @@ void CSSFontSelector::addFontFaceRule(const StyleRuleFontFace* fontFaceRule)
 #if ENABLE(SVG_FONTS)
             source->setSVGFontFaceElement(item->svgFontFaceElement());
 #endif
-            fontFace->addSource(std::move(source));
+            fontFace->addSource(WTF::move(source));
         }
     }
 
@@ -311,7 +311,7 @@ void CSSFontSelector::addFontFaceRule(const StyleRuleFontFace* fontFaceRule)
                     familyLocallyInstalledFaces->append(locallyInstalledFontFace);
                 }
 
-                m_locallyInstalledFontFaces.set(familyName, std::move(familyLocallyInstalledFaces));
+                m_locallyInstalledFontFaces.set(familyName, WTF::move(familyLocallyInstalledFaces));
             }
         }
 
index 35d9abd..b1dbff7 100644 (file)
@@ -656,7 +656,7 @@ media_list:
         $$ = $1;
         std::unique_ptr<MediaQuery> mediaQuery($4);
         if ($$) {
-            $$->addMediaQuery(std::move(mediaQuery));
+            $$->addMediaQuery(WTF::move(mediaQuery));
             parser->updateLastMediaLine($$);
         }
     }
@@ -753,7 +753,7 @@ supports_declaration_condition:
         CSSParser* p = static_cast<CSSParser*>(parser);
         std::unique_ptr<CSSParserValueList> propertyValue($6);
         if ($3 && propertyValue) {
-            p->m_valueList = std::move(propertyValue);
+            p->m_valueList = WTF::move(propertyValue);
             int oldParsedProperties = p->m_parsedProperties.size();
             $$ = p->parseValue($3, $7);
             // We just need to know if the declaration is supported as it is written. Rollback any additions.
@@ -1051,7 +1051,7 @@ selector_list:
         $$ = nullptr;
         if (selectorList && selector) {
             $$ = selectorList.release();
-            $$->append(std::move(selector));
+            $$->append(WTF::move(selector));
             parser->updateLastSelectorLineAndPosition();
         }
     }
@@ -1072,7 +1072,7 @@ selector:
         std::unique_ptr<CSSParserSelector> right($2);
         $$ = nullptr;
         if (left && right) {
-            right->appendTagHistory(CSSSelector::Descendant, std::move(left));
+            right->appendTagHistory(CSSSelector::Descendant, WTF::move(left));
             $$ = right.release();
         }
     }
@@ -1081,7 +1081,7 @@ selector:
         std::unique_ptr<CSSParserSelector> right($3);
         $$ = nullptr;
         if (left && right) {
-            right->appendTagHistory($2, std::move(left));
+            right->appendTagHistory($2, WTF::move(left));
             $$ = right.release();
         }
     }
@@ -1140,7 +1140,7 @@ simple_selector_list:
         $$ = nullptr;
         if (list && selector) {
             $$ = list.release();
-            $$->append(std::move(selector));
+            $$->append(WTF::move(selector));
         }
     }
     | simple_selector_list error {
@@ -1168,7 +1168,7 @@ specifier_list:
         std::unique_ptr<CSSParserSelector> specifier($2);
         $$ = nullptr;
         if (list && specifier)
-            $$ = parser->rewriteSpecifiers(std::move(list), std::move(specifier)).release();
+            $$ = parser->rewriteSpecifiers(WTF::move(list), WTF::move(specifier)).release();
     }
     | specifier_list error {
         $$ = nullptr;
@@ -1339,7 +1339,7 @@ pseudo:
             $$->setMatch(CSSSelector::PseudoClass);
 
             Vector<std::unique_ptr<CSSParserSelector>> selectorVector;
-            selectorVector.append(std::move(selector));
+            selectorVector.append(WTF::move(selector));
             $$->adoptSelectorVector(selectorVector);
             $$->setPseudoClassValue($2);
         }
@@ -1388,7 +1388,7 @@ declaration:
         bool isPropertyParsed = false;
         std::unique_ptr<CSSParserValueList> propertyValue($4);
         if ($1 && propertyValue) {
-            parser->m_valueList = std::move(propertyValue);
+            parser->m_valueList = WTF::move(propertyValue);
             int oldParsedProperties = parser->m_parsedProperties.size();
             $$ = parser->parseValue($1, $5);
             if (!$$)
index 7bc1972..6835d66 100644 (file)
@@ -1452,7 +1452,7 @@ std::unique_ptr<MediaQuery> CSSParser::parseMediaQuery(const String& string)
     setupParser("@-webkit-mediaquery ", string, "} ");
     cssyyparse(this);
 
-    return std::move(m_mediaQuery);
+    return WTF::move(m_mediaQuery);
 }
 
 #if ENABLE(PICTURE_SIZES)
@@ -1466,7 +1466,7 @@ std::unique_ptr<SourceSizeList> CSSParser::parseSizesAttribute(const String& str
     setupParser("@-webkit-sizesattr ", string, "}");
     cssyyparse(this);
 
-    return std::move(m_sourceSizeList);
+    return WTF::move(m_sourceSizeList);
 }
 #endif
 
@@ -11428,7 +11428,7 @@ void CSSParser::logError(const String& message, int lineNumber)
 
 PassRefPtr<StyleRuleKeyframes> CSSParser::createKeyframesRule(const String& name, std::unique_ptr<Vector<RefPtr<StyleKeyframe>>> popKeyframes)
 {
-    std::unique_ptr<Vector<RefPtr<StyleKeyframe>>> keyframes = std::move(popKeyframes);
+    std::unique_ptr<Vector<RefPtr<StyleKeyframe>>> keyframes = WTF::move(popKeyframes);
     m_allowImportRules = m_allowNamespaceDeclarations = false;
     RefPtr<StyleRuleKeyframes> rule = StyleRuleKeyframes::create();
     for (size_t i = 0; i < keyframes->size(); ++i)
@@ -11538,15 +11538,15 @@ std::unique_ptr<CSSParserSelector> CSSParser::rewriteSpecifiers(std::unique_ptr<
 {
     if (newSpecifier->isCustomPseudoElement() || newSpecifier->isPseudoElementCueFunction()) {
         // Unknown pseudo element always goes at the top of selector chain.
-        newSpecifier->appendTagHistory(CSSSelector::ShadowDescendant, std::move(specifiers));
+        newSpecifier->appendTagHistory(CSSSelector::ShadowDescendant, WTF::move(specifiers));
         return newSpecifier;
     }
     if (specifiers->isCustomPseudoElement()) {
         // Specifiers for unknown pseudo element go right behind it in the chain.
-        specifiers->insertTagHistory(CSSSelector::SubSelector, std::move(newSpecifier), CSSSelector::ShadowDescendant);
+        specifiers->insertTagHistory(CSSSelector::SubSelector, WTF::move(newSpecifier), CSSSelector::ShadowDescendant);
         return specifiers;
     }
-    specifiers->appendTagHistory(CSSSelector::SubSelector, std::move(newSpecifier));
+    specifiers->appendTagHistory(CSSSelector::SubSelector, WTF::move(newSpecifier));
     return specifiers;
 }
 
@@ -11558,7 +11558,7 @@ PassRefPtr<StyleRuleBase> CSSParser::createPageRule(std::unique_ptr<CSSParserSel
     if (pageSelector) {
         rule = StyleRulePage::create(createStyleProperties());
         Vector<std::unique_ptr<CSSParserSelector>> selectorVector;
-        selectorVector.append(std::move(pageSelector));
+        selectorVector.append(WTF::move(pageSelector));
         rule->parserAdoptSelectorVector(selectorVector);
         processAndAddNewRuleToSourceTreeIfNeeded();
     } else
@@ -11571,7 +11571,7 @@ std::unique_ptr<Vector<std::unique_ptr<CSSParserSelector>>> CSSParser::createSel
 {
     if (m_recycledSelectorVector) {
         m_recycledSelectorVector->shrink(0);
-        return std::move(m_recycledSelectorVector);
+        return WTF::move(m_recycledSelectorVector);
     }
     return std::make_unique<Vector<std::unique_ptr<CSSParserSelector>>>();
 }
@@ -11579,7 +11579,7 @@ std::unique_ptr<Vector<std::unique_ptr<CSSParserSelector>>> CSSParser::createSel
 void CSSParser::recycleSelectorVector(std::unique_ptr<Vector<std::unique_ptr<CSSParserSelector>>> vector)
 {
     if (vector && !m_recycledSelectorVector)
-        m_recycledSelectorVector = std::move(vector);
+        m_recycledSelectorVector = WTF::move(vector);
 }
 
 PassRefPtr<StyleRuleBase> CSSParser::createRegionRule(Vector<std::unique_ptr<CSSParserSelector>>* regionSelector, RuleList* rules)
index c23d8b0..3cfd1d7 100644 (file)
@@ -238,13 +238,13 @@ CSSParserSelector::~CSSParserSelector()
     if (!m_tagHistory)
         return;
     Vector<std::unique_ptr<CSSParserSelector>, 16> toDelete;
-    std::unique_ptr<CSSParserSelector> selector = std::move(m_tagHistory);
+    std::unique_ptr<CSSParserSelector> selector = WTF::move(m_tagHistory);
     while (true) {
-        std::unique_ptr<CSSParserSelector> next = std::move(selector->m_tagHistory);
-        toDelete.append(std::move(selector));
+        std::unique_ptr<CSSParserSelector> next = WTF::move(selector->m_tagHistory);
+        toDelete.append(WTF::move(selector));
         if (!next)
             break;
-        selector = std::move(next);
+        selector = WTF::move(next);
     }
 }
 
@@ -252,7