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 1d293f3f529b5f5181ddec4bd0af0a7b2cd4a975..4d6ac6aca5aeeb5c991ee0341b8ca1897c6d5a02 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 e63e5a4566dd11fcf96a9ec4d5c3202164a8a510..2fc7f7002b98e9ba144d97e9eabc9b62b84f3424 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 3e7ead254b1e3f4de9ed88476cde12c7b16a7a44..5c2cc5f2c325209a07ab0b4bc062f3329693c17c 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 dcda652c09d215c76c3d3cb08414c91cde1a0036..734546ab98e187e0d0d8be1322763456599c9886 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 7a732207638662c7e62b844fb5d355bd06da3d0b..0156c8b361782e06fe1ddf3b1a197e5b4c5ceb0e 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 068221c3a19190142eded65a1cbc40e86e7700ab..35de0eceee781662ca4bc55f8a22b507f8f4ba16 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 16726bcd9260a964881e69470790a8117174da85..0f869c077de6a136f4d8c7259604080283e58b1a 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 bf241dfd1f557bc540f8a961f55113b0dc029901..4aa1428a6cdd6da0857ff3555c27f5d1d43263a1 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 e6d39c038a19527034666cd7c4175d363cd326e9..883c661db22dea69406819c3f2dadd7ef2d50747 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 ace45179b443eaf65ef8a4fe2360a0de0379b3de..56fb3d798395e2049760af08892e5855101667a3 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 8cfd5015358a55407cf90b50da6704d2287fdcb8..fe6144733063d3a0eabc0ef61fc9eef6a022eb4a 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 e0d9ede15e64922dbac5c7f89e6ba58a0b443704..4124cfe76317caf7a489105822701731b673aba5 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 c5a2f31a5965eb39be771d2abf4464bf7d2195bd..4b8301ad2a6d81bbd487f1dc4d89968543d08f86 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 37b2227f9914ccfc37f809ce957a751f90dc4bef..2ddec37108b8d6661daa12077276be8481dae364 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 f4a94b700d57ef9a1a51eedb906e0c20556de9f6..f57306113e93f994abe59bbb8214d5e98aa3d31e 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 90b605d6947733354ebedc46e8682b59ee06e7de..d271b4f54f9f6f573c50a968bc0864759e79bb6f 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 96b18c44d0df36e5c19cd32711cf840eb2de00d6..980d631cf71c091fd7bbfade142600f536352400 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 c3ae587caebd11418a70bb9afcd7c1cf06031070..bdc3bf8d8b4eea00e98d72823d7112615864b3d0 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 607b05844264cf28693323418bd0fb52ebb50c1f..d1d50b6a612901904ebb189e45906d40d9245304 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 11d2661afa6dab1b95d046cebab1724620b22f14..b88f209ce5f0bb618acd7d0052fec5d8c68441a3 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 c5e247fadb25389f2f4430f660b4c0f0c9528c3b..d5958e8c4cb8a66cb820dd3e7bbc8a6ca954de11 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 f1477aa535aefb3092bc05fb354286c1fafffbe5..de6bff7db54adf2312be91170e0127cd1aa0d0d3 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 e6c82e21cde3d846e49b6aa38ed19e25c741be98..d12e9eba9c9f26d32f864cbf9f69d45493b4240a 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 9a6d84a3c3e2467df05710f1a1c46c7fd50961f8..5a7c9079cadded49b3c9f75fa4a42a92b01a61b3 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 3e302f25fb8f8b5bdf8f8ae2ab9534abe8bb3243..025cf064affa2ab158292527f394bd65cb3da713 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 5ac2e414571120abca64a5ba214781fbc3b952f0..6b3bc7cb83b147c9b70cb8c5e955214cfe0942e4 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 e59ec033a8fef24dc1af72e52b2e18a9a576fcb2..cc0fb8f578be572d39f8c86b917846fbfdd471f5 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 d4ae4073d6ba7b27afc35a6b8a3bc47b603af81f..6a3b9b10c99724920cfa6db19206bcfde9a05bf7 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 b97286aa2e82154c38c949fbd9f7d97001d5c4ff..1717007996ad6bffd2ced36fb1cc35bb696c1aba 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 b170326811d32763f587bb32f62cb992a90f87aa..c9ea70d18db86484da7080c3c8ad7e7ce689e04a 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 3f38ced5c0579103b2436a7b35efaa54b70a2b42..98cf8cdbc9392571170a4bed06c6797af1b9fa59 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 3666fe8b46c3e9f577ae52b2287627d93bb03806..781bfdb7627abafead93a133c783e60dc353917f 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 c2d670396489e0fe06c54faea9de918a50b402b9..152411faebaff4a55faa79ee926706bca88d61d2 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 295c21422feda7b7187e617d2f3403f5a85a215e..92ec091c39a7d75b4651626ef2fa2f245b32309d 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 4e5454e1b82544dbed84d8b4601f88bb4be2911b..d353b438310b9c9558967ce1f4fa206eed7e9d7e 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 db5b881b9dcf11dcd5386e4dd5596d21964083e9..a25d847cd4e5bcd60ee51fc8bfa189ef9b82b172 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 712f9e33fe81e739514774dde09d054e49dfb83e..0f4024dec88b0e3e0df8ea3b4c6be0cc3574b071 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 7af6d8b1236952614b2a4ba184b4c1999662b14b..1a33d4c5e8e35073f7327ba7d7a1e8dbb85e9a51 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 64a68112a234b3af28a49f924d93ab5fa9693310..5862de6628edd7a7cf4f494b3dfe0b999f55bbdc 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 111375fbb9c5afc4d1ae44d4c6bc923f5f2b8064..48d0e68ced284f8b7903c30193c43a5cc6bfe896 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 d6222c993005e4991445dd6c0f7fc8410eec17ec..22df7a7fda0aaf23cbdf08184bd39318345d1163 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 152bdeece5e6b5217c6a2bc37c92041b7fb224f6..3377765995dcd7cc90e54f5c5753217bc26ff60e 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 989f404368cb76ed70f15f2cb2cf59533021bd2c..0453e583500e6aee0cadfd5c3a339a68474b51f1 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 ba0e04effc6869c1215effa53c51b99ea5737473..85ad6d858b43ba7694c48ebd42134976630b967f 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 891fa617c6072eef9a2b68eb001a764930f30799..c1f45e0771cc811d735533dd5c1faa3740093664 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 2e44a7fd6a59b87a0821bff8814a30ec36588859..28a49556586185cc367d51ef99d36edbdec9308a 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 f1af88c80e3fd43a6095327a7a858ccceba4d8fd..6d8c50b8928c50f1c8170e614b5994dd8136dcfe 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 56571a0beb5fdf3570fa2a5773d9ef8bf3ac03a3..345a48c2b994f07d990deb9263c495ec050bfe4a 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 834cb64b312a344a2eb0f3b333b5426a041d9772..c1d9439578d669295c4ccaa1dbf069f7324d89f5 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 e8b00bebfb66796c1bc5b294a3dec5325d9dee10..7e1d4cf1077f531bf463735418ae2de01df5e679 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 712d489af1e19f4d26d971a732a4ac35810f5269..741b038b2a58018435ca9090e4ed0ae6674bb480 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 739d40491166f3a18ca6bf51c1c12a14d2f1397d..14d7bf526a7d05aa3098fe6cc04efe68d8843d1c 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 286af20a59c2164bf2cee62597db601c23be2a7c..f3c212f541fcda8a3e636907cfcb13245d642a22 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 35b0323536510dc1889edffde512a3d47717b8a8..79fff2452e7c39c1ccb3461e0cbdd520df9e5b97 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 2c89866c491998f7f13dc08a5bdb1a6b54181b0b..fa8c55539414a9bb7a735900ad342e1c3a20ddcf 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 65f4fc5d65d85e08f444249c160d7c202069044a..7f95ec59f76ccc445e07d80d58f3291cd2d7b7c2 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 e705a2dd0f9bc0a7380637ee778d1a02874458e3..1bf0833634a94175d7f575670286931742522499 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 77af2679a86681c5bc8c9c873ea1a4ccbf2d4423..ee5381aa34a5edeeea0215d36a6472aaa8c7f2a4 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 214d2f5d7c56df8716e069e1251bb50af64abc5e..ec4350ab0d84f224cf75f817594bd92d7fca18de 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 189ca9ea2b69df12ecd2f831fd32c317d798510b..cfa990aae81b73920fa67abf9ae5756c297ca8d1 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 05ee8d68c01a818dd2f98f02a9b86f4c50e71ca0..91b043b13f1f547043cf62de9e3d864187fc2f1f 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 5e0010e6f9fbb7d4d76e19fa08a36e7b66c2becf..4045b76cdd7098ef85ec2351c68e35432aefedaa 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 5885df0fc9f4777f88ccd90cc6b80ded3389b388..ea856ac0918099b61f4bf4a3b1cb152bca3faba7 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 e2e4ac24d9a84bfc21ed99daf703b260c4bd2cc6..e2914a669496000209a9b6348b638778627e43c5 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 f6a6c2e5b8a861bd4dd4b91d84bf811fe9d9a30b..e5adcd667392139b6431323a7768e7c61287e48f 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 b4314dc6f0e3d2a912523ef03a3a5bc4ad469da1..de784741c92ae86dca1d2ce3d77c1902bb5bc296 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 6064dd47062c2781b4140fda85956801dc262dbd..29dc1926dd6a74abd5c4e76966458a1051dfdfec 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 c42e0ac083b001c620798036d5b4302eb80356ba..0cf34e77d593b5c287a143efeaa02071af700bf1 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 e8dd8648e72a4e0a617a23221d68d161a75764de..c455305c551cdc40716cd5c8ee3fefaf10d5ca62 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 0a89d06c0df064236bb16bdd855b9ad08865ce1e..bd2a1a3093f27c5b37103f6e9e88e2fdaed85644 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 a8cd0e4fc9c435883303c2cfe067580a51331ae1..4e1e675067badd41d14b3f23307cdbc7625ef666 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 56986ce879f632794b8ab9274bb515184bb806a2..eb3c27562931dd5ae027bd9439fb8c2186afa12e 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 da75c66227b4438c434b554c56af0102c8a17cf6..8a0e209b1243bd40d6bbdba59f423292e1e93682 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 286c31251d9063bb9b396ec34a58e1ebbe5e8761..005f51c37970ef61f0d65391ff3a2a214514dbee 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 f7b53bd1e551eaa87b8091cb301a93df61df408f..23be7fc0ab9895d89969add27134d28aae3e160d 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 68474aedb48c0275eccf6e85ae070cbff5a0395d..99b3cbd1a3292f47e4f43ac32286393e9446eb5f 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 ad247a57cf6ea065fbe633ff7190fa09e14ff214..c377b9b21bd7ab0c674b745b8d2eca5da96dd834 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 a70be1e577edb946af0f0048d00602134b02acb4..b6bb3cf71a8ed9dfcf8092a80117b0b2fde98010 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 3698bf5ef694ca97dfdc3580203867e49517b26f..449e3386eac1cc53b7e300fcc8d4b39510ec0b17 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 514ec7a3ea47e202180b496fb8f0e2619830b213..4c40725275ec95d08e161d7e6a9c620e027b2c54 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 c5ac5ea525e907f78bcd0fb8ccd0ec4b3cf687c3..5a100eb135448c23595da01e966de928d99eb453 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 fe6f3c7262be74fe1897b77a568e8aae524f0c7c..0aadab910a4d64497b58e77c10ec00746597a5cf 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 495e86a487b288fdc67d06c273c01cc6caadc177..c75bbd9540dfaf9b12ddf8c9d52d3e6d4eaa2c73 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 9320af9708c5e96417451c4ceee4bbb07b154f2d..8832caea67306764adb489fd8f93c9eee31b4366 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 14fe68f3c75d87e9e039e16664ae14fa810ffacf..f3dbf466cecc642914c9c02d7972a5c803dd0ce7 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 259319684c6c73ad95129b53aa68010645b260ec..c9ee20304d843a9dee5f24992384d29c2220cf31 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 00b00628a8b20978a662c4a21f70947d71c36833..28a3bf42e3d6b315b5748ba030be4d5be98f8b10 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 085d672d8eb704f274f94aac388f799909de7915..fed87c31478b8574730b62cc596319a4f6067b0f 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 52fbea82ef32cb0938d72acedf015a5ef9e142fc..0dcd38917dbf413387117172f3b1e128b029714d 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 fe87e70f02d80da142264ed29869b6d1fbbe6885..f194810e40dca7c21483b21f57e5620a1d13a05f 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 e669705de60187914551dc179a6f3c87388a817b..4ac32d38524b990dc1a12ed4b72358edc2495d27 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 c78bbca90942e194aab7f473864b2fccaee2f653..5c2b19d81d9fd1960f66435810a8d2d9336bdd23 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 77edb8c4328472d719bd830265474d7cd3835e65..d95c1731f67bad0135fd6a7ade3ba0bdfc32b873 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 263e5cbbe90c0cfd177273befe9d435d18109214..be6e1e01c9f89faa3a8515689bf26099090a624d 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 1b6ae7d520ca4cafbc2a1b61ca8cb4dcd764b48a..2cde12d8cc099ab102d4c6c78e45bb87fb4d2254 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 ea9c45fcaebd7c5222e74334a8b5104565a36f14..ba9e3cc8ed692e9403e678771a256e7fab18cd15 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 c15bccbbcda4ae111277e52d96e24007587ad15c..f405a03df6e301ee806acc86872631e6bdb489d8 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 a6dac26e8755f4e3ed0a844c8d26fabf89467366..857d4809a7d1caef4b8c61a569085e6b86d5201a 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 7ac0f1a78626e7a58bee9b3d9af2bf80316e60c4..28f22dab0df1be0aa7b5e2f16a44d13d6d776bf9 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 e7d8dba732b144bfcb490b917f235e36fffd120b..c51c6fd937ad12ffe82d8536eedfb9afda397e4c 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 c334fb0884e9ee8e463ec00ae83fff789de33d2e..c28903ae678c4ea2780179b25c9c54ec2517329d 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 9a82bdfd3f5abdecc5d1ff116493435263d77944..4767d2ec316ecb0fcf6e7697d3c3bc4e5b0da496 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 5b0c63212424fa2b258e5c89ab4bfedc3a1cc430..904433657a0d132e4001765596150511db0a6957 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 9e4710fb00e219bc5e4a4ca427be98d051e5628d..4f0f3cd131e0c3417601fbeb1b5bf7a7a3a1c15b 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 a19764a1fc616de2506e03af488d9fae49b56deb..e2dec85fc18f6b9dd66df1b65f7016bc33246120 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 4b8cfd4b2e7b9579a4ac3caad4cf929a006bfea2..5aaa77590aa64f671467a4ab039aa32b35ff49f4 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 d1f31bcb01a462d060cb46256df8d89cfe55d744..25a156dd2274b942f8640240e551cf8bd6e60076 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 635da83bdd8e3e3a1d61b3bbed2f45c46658a241..00ca35f0e455171080e988546d54d819d6f76fd7 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 df6867623dc6c337db94bb28820f40fb6c3da782..ce0cb5a6e0c62b0a2d791f6d2efd5a881b1cc21b 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 dbb8db6b0b459b6bd5f4ba085e594adbb40c54f6..3f38c8d07c67c29d0fec50442c89268814ce4f82 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 692f433903881a95b652599add701135efef4cb6..d43db1e6a4aae6c489ffe29fb47adb66c5c2e47b 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 aba6248976ab3a84f062d097c1a42db261f9bc6c..3144204e26f6af9d35e115b76367bb986f2d8872 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 63bc284f92f2458eac44fbae73e1417793238f29..651cd63300b4ca1056a3283689d91a044eba9180 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 d980e62ce46440407281abcc139b09e7b4561678..b0a7e69d9187df3896c4cbf4b224d7059d7fc503 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 42f22cd53f1597ad945a700fed8e0eeee36a9510..5b2402811c496e997271500b89efa7d7f3eff011 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 4b7a9ad3a97bd5be4feeb6ddb7bb7935df638166..b53463b88ae6b33ac0fa83ff735f14db81f153a6 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 012174846355f38abbe9c719837e0277967b19f3..f7815ef5ce0dd34965a2cb6688988174cf64db98 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 35d9abdd58575a7211f7a5bda6a3264671fda5ed..b1dbff77294398569682fb4257ab8ed321111ec8 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 7bc19726d21d11f2424159a3af3dd7f110f9d5d1..6835d66d81b1dfea84f16d83c961a5466b2edb41 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 c23d8b02f3e07cf30ec257690a7cf9f05a10a7d4..3cfd1d7e4970ad128d69bcf93741e2ffcabec8af 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 +252,7 @@ void CSSParserSelector::adoptSelectorVector(Vector<std::unique_ptr<CSSParserSele
 {
     auto selectorList = std::make_unique<CSSSelectorList>();
     selectorList->adoptSelectorVector(selectorVector);
-    m_selector->setSelectorList(std::move(selectorList));
+    m_selector->setSelectorList(WTF::move(selectorList));
 }
 
 void CSSParserSelector::setPseudoClassValue(const CSSParserString& pseudoClassString)
@@ -286,10 +286,10 @@ bool CSSParserSelector::isSimple() const
 void CSSParserSelector::insertTagHistory(CSSSelector::Relation before, std::unique_ptr<CSSParserSelector> selector, CSSSelector::Relation after)
 {
     if (m_tagHistory)
-        selector->setTagHistory(std::move(m_tagHistory));
+        selector->setTagHistory(WTF::move(m_tagHistory));
     setRelation(before);
     selector->setRelation(after);
-    m_tagHistory = std::move(selector);
+    m_tagHistory = WTF::move(selector);
 }
 
 void CSSParserSelector::appendTagHistory(CSSSelector::Relation relation, std::unique_ptr<CSSParserSelector> selector)
@@ -298,15 +298,15 @@ void CSSParserSelector::appendTagHistory(CSSSelector::Relation relation, std::un
     while (end->tagHistory())
         end = end->tagHistory();
     end->setRelation(relation);
-    end->setTagHistory(std::move(selector));
+    end->setTagHistory(WTF::move(selector));
 }
 
 void CSSParserSelector::prependTagSelector(const QualifiedName& tagQName, bool tagIsForNamespaceRule)
 {
     auto second = std::make_unique<CSSParserSelector>();
-    second->m_selector = std::move(m_selector);
-    second->m_tagHistory = std::move(m_tagHistory);
-    m_tagHistory = std::move(second);
+    second->m_selector = WTF::move(m_selector);
+    second->m_tagHistory = WTF::move(m_tagHistory);
+    m_tagHistory = WTF::move(second);
 
     m_selector = std::make_unique<CSSSelector>(tagQName, tagIsForNamespaceRule);
     m_selector->m_relation = CSSSelector::SubSelector;
index dd9f161e1ec5421078ef6e619f2c0bf1fb27f0b9..b4f926fefe1f542051f23364fe949df53201039a 100644 (file)
@@ -190,7 +190,7 @@ public:
     explicit CSSParserSelector(const QualifiedName&);
     ~CSSParserSelector();
 
-    std::unique_ptr<CSSSelector> releaseSelector() { return std::move(m_selector); }
+    std::unique_ptr<CSSSelector> releaseSelector() { return WTF::move(m_selector); }
 
     void setValue(const AtomicString& value) { m_selector->setValue(value); }
     void setAttribute(const QualifiedName& value, bool isCaseInsensitive) { m_selector->setAttribute(value, isCaseInsensitive); }
@@ -219,7 +219,7 @@ public:
     bool hasShadowDescendant() const;
 
     CSSParserSelector* tagHistory() const { return m_tagHistory.get(); }
-    void setTagHistory(std::unique_ptr<CSSParserSelector> selector) { m_tagHistory = std::move(selector); }
+    void setTagHistory(std::unique_ptr<CSSParserSelector> selector) { m_tagHistory = WTF::move(selector); }
     void clearTagHistory() { m_tagHistory.reset(); }
     void insertTagHistory(CSSSelector::Relation before, std::unique_ptr<CSSParserSelector>, CSSSelector::Relation after);
     void appendTagHistory(CSSSelector::Relation, std::unique_ptr<CSSParserSelector>);
index eae34437ee2b87e7e1fded2de4f0fc0ca1628e20..eff06aba5a2721b07af91273961f3773b666541c 100644 (file)
@@ -934,7 +934,7 @@ NEVER_INLINE PassRef<StringImpl> CSSPrimitiveValue::formatNumberValue(const char
     for (unsigned i = 0; i < suffixLength; ++i)
         buffer[length + i] = static_cast<LChar>(suffix[i]);
 
-    return std::move(string);
+    return WTF::move(string);
 }
 
 template <unsigned characterCount>
index b3ee73a138dc4b03c4376f4fe08b815028f24256..724c5dfba3ecdae4a47394d0dba44d8cc7f9395a 100644 (file)
@@ -562,7 +562,7 @@ void CSSSelector::setArgument(const AtomicString& value)
 void CSSSelector::setSelectorList(std::unique_ptr<CSSSelectorList> selectorList)
 {
     createRareData();
-    m_data.m_rareData->m_selectorList = std::move(selectorList);
+    m_data.m_rareData->m_selectorList = WTF::move(selectorList);
 }
 
 bool CSSSelector::parseNth() const
index 63ad016fc09f37013725828c486e13bc5886d981..b8383552c89b3ac11891ac6b1395059995148582 100644 (file)
@@ -76,12 +76,12 @@ static bool isAcceptableCSSStyleSheetParent(Node* parentNode)
 
 PassRef<CSSStyleSheet> CSSStyleSheet::create(PassRef<StyleSheetContents> sheet, CSSImportRule* ownerRule)
 { 
-    return adoptRef(*new CSSStyleSheet(std::move(sheet), ownerRule));
+    return adoptRef(*new CSSStyleSheet(WTF::move(sheet), ownerRule));
 }
 
 PassRef<CSSStyleSheet> CSSStyleSheet::create(PassRef<StyleSheetContents> sheet, Node* ownerNode)
 { 
-    return adoptRef(*new CSSStyleSheet(std::move(sheet), ownerNode, false));
+    return adoptRef(*new CSSStyleSheet(WTF::move(sheet), ownerNode, false));
 }
 
 PassRef<CSSStyleSheet> CSSStyleSheet::createInline(Node& ownerNode, const URL& baseURL, const String& encoding)
@@ -91,7 +91,7 @@ PassRef<CSSStyleSheet> CSSStyleSheet::createInline(Node& ownerNode, const URL& b
 }
 
 CSSStyleSheet::CSSStyleSheet(PassRef<StyleSheetContents> contents, CSSImportRule* ownerRule)
-    : m_contents(std::move(contents))
+    : m_contents(WTF::move(contents))
     , m_isInlineStylesheet(false)
     , m_isDisabled(false)
     , m_ownerNode(0)
@@ -101,7 +101,7 @@ CSSStyleSheet::CSSStyleSheet(PassRef<StyleSheetContents> contents, CSSImportRule
 }
 
 CSSStyleSheet::CSSStyleSheet(PassRef<StyleSheetContents> contents, Node* ownerNode, bool isInlineStylesheet)
-    : m_contents(std::move(contents))
+    : m_contents(WTF::move(contents))
     , m_isInlineStylesheet(isInlineStylesheet)
     , m_isDisabled(false)
     , m_ownerNode(ownerNode)
index c53887fcb7cd773205f61cf6012d24cd3932e617..3c60aa83fb03a9e1c19a16ef9725e97d1f6e0a3a 100644 (file)
@@ -354,7 +354,7 @@ template <const Length& (RenderStyle::*getterFunction)() const,
           LengthUndefined noneUndefined = UndefinedDisabled>
 class ApplyPropertyLength {
 public:
-    static void setValue(RenderStyle* style, Length value) { (style->*setterFunction)(std::move(value)); }
+    static void setValue(RenderStyle* style, Length value) { (style->*setterFunction)(WTF::move(value)); }
     static void applyValue(CSSPropertyID, StyleResolver* styleResolver, CSSValue* value)
     {
         if (!value->isPrimitiveValue())
@@ -429,7 +429,7 @@ public:
 template <const LengthSize& (RenderStyle::*getterFunction)() const, void (RenderStyle::*setterFunction)(LengthSize), LengthSize (*initialFunction)()>
 class ApplyPropertyBorderRadius {
 public:
-    static void setValue(RenderStyle* style, LengthSize value) { (style->*setterFunction)(std::move(value)); }
+    static void setValue(RenderStyle* style, LengthSize value) { (style->*setterFunction)(WTF::move(value)); }
     static void applyValue(CSSPropertyID, StyleResolver* styleResolver, CSSValue* value)
     {
         if (!value->isPrimitiveValue())
index 8fa272a6d748fdb074dbe956f5b6410a3217cd2b..292a9a6744edd1020cdadb4e1113b71545f00ecb 100644 (file)
@@ -54,7 +54,7 @@ void DocumentRuleSets::initUserStyle(DocumentStyleSheetCollection& styleSheetCol
     collectRulesFromUserStyleSheets(styleSheetCollection.injectedUserStyleSheets(), *tempUserStyle, medium, resolver);
     collectRulesFromUserStyleSheets(styleSheetCollection.documentUserStyleSheets(), *tempUserStyle, medium, resolver);
     if (tempUserStyle->ruleCount() > 0 || tempUserStyle->pageRules().size() > 0)
-        m_userStyle = std::move(tempUserStyle);
+        m_userStyle = WTF::move(tempUserStyle);
 }
 
 void DocumentRuleSets::collectRulesFromUserStyleSheets(const Vector<RefPtr<CSSStyleSheet>>& userSheets, RuleSet& userStyle, const MediaQueryEvaluator& medium, StyleResolver& resolver)
index 7d494bc4462fa63e2cd570bde47ee000061053b5..94450863f1b93ac6a735896b2ca92b1ffbdea4af 100644 (file)
@@ -143,7 +143,7 @@ bool MediaQuerySet::parse(const String& mediaString)
                 continue;
             mediaQuery = std::make_unique<MediaQuery>(MediaQuery::None, mediaDescriptor, nullptr);
         }
-        result.append(std::move(mediaQuery));
+        result.append(WTF::move(mediaQuery));
     }
     // ",,,," falls straight through, but is not valid unless fallback
     if (!m_fallbackToDescriptor && list.isEmpty()) {
@@ -151,7 +151,7 @@ bool MediaQuerySet::parse(const String& mediaString)
         if (!strippedMediaString.isEmpty())
             return false;
     }
-    m_queries = std::move(result);
+    m_queries = WTF::move(result);
     return true;
 }
 
@@ -168,7 +168,7 @@ bool MediaQuerySet::add(const String& queryString)
     if (!parsedQuery)
         return false;
 
-    m_queries.append(std::move(parsedQuery));
+    m_queries.append(WTF::move(parsedQuery));
     return true;
 }
 
@@ -197,7