Add WTF::move()
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: http://svn.webkit.org/repository/webkit/trunk@170774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 712d489..741b038 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -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
diff --git a/Source/WebCore/Modules/battery/NavigatorBattery.cpp b/Source/WebCore/Modules/battery/NavigatorBattery.cpp
index 739d404..14d7bf5 100644
--- a/Source/WebCore/Modules/battery/NavigatorBattery.cpp
+++ b/Source/WebCore/Modules/battery/NavigatorBattery.cpp
@@ -58,7 +58,7 @@
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;
}
diff --git a/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp b/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp
index 286af20..f3c212f 100644
--- a/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp
+++ b/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp
@@ -62,13 +62,13 @@
// 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);
}
diff --git a/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp b/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp
index 35b0323..79fff24 100644
--- a/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp
+++ b/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp
@@ -62,7 +62,7 @@
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())
diff --git a/Source/WebCore/Modules/gamepad/deprecated/NavigatorGamepad.cpp b/Source/WebCore/Modules/gamepad/deprecated/NavigatorGamepad.cpp
index 2c89866..fa8c555 100644
--- a/Source/WebCore/Modules/gamepad/deprecated/NavigatorGamepad.cpp
+++ b/Source/WebCore/Modules/gamepad/deprecated/NavigatorGamepad.cpp
@@ -53,7 +53,7 @@
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;
}
diff --git a/Source/WebCore/Modules/geolocation/NavigatorGeolocation.cpp b/Source/WebCore/Modules/geolocation/NavigatorGeolocation.cpp
index 65f4fc5..7f95ec5 100644
--- a/Source/WebCore/Modules/geolocation/NavigatorGeolocation.cpp
+++ b/Source/WebCore/Modules/geolocation/NavigatorGeolocation.cpp
@@ -53,7 +53,7 @@
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;
}
diff --git a/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp b/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
index e705a2d..1bf0833 100644
--- a/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
+++ b/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
@@ -58,7 +58,7 @@
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;
}
diff --git a/Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.cpp b/Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.cpp
index 77af267..ee5381a 100644
--- a/Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.cpp
+++ b/Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.cpp
@@ -419,7 +419,7 @@
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();
diff --git a/Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.h b/Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.h
index 214d2f5..ec4350a 100644
--- a/Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.h
+++ b/Source/WebCore/Modules/indexeddb/IDBDatabaseBackend.h
@@ -119,7 +119,7 @@
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; }
diff --git a/Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.cpp b/Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.cpp
index 189ca9e..cfa990a 100644
--- a/Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.cpp
+++ b/Source/WebCore/Modules/indexeddb/PageGroupIndexedDatabase.cpp
@@ -54,7 +54,7 @@
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;
}
diff --git a/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp b/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
index 05ee8d6..91b043b 100644
--- a/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
+++ b/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
@@ -63,7 +63,7 @@
auto newSupplement = std::make_unique<WorkerGlobalScopeIndexedDatabase>(databaseDirectoryIdentifier);
supplement = newSupplement.get();
- provideTo(context, supplementName(), std::move(newSupplement));
+ provideTo(context, supplementName(), WTF::move(newSupplement));
}
return supplement;
}
diff --git a/Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp b/Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp
index 5e0010e..4045b76 100644
--- a/Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp
+++ b/Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp
@@ -330,8 +330,8 @@
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 @@
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 @@
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>();
diff --git a/Source/WebCore/Modules/mediasource/MediaSource.cpp b/Source/WebCore/Modules/mediasource/MediaSource.cpp
index 5885df0..ea856ac 100644
--- a/Source/WebCore/Modules/mediasource/MediaSource.cpp
+++ b/Source/WebCore/Modules/mediasource/MediaSource.cpp
@@ -112,7 +112,7 @@
{
ASSERT(!m_private);
ASSERT(m_mediaElement);
- m_private = std::move(mediaSourcePrivate);
+ m_private = WTF::move(mediaSourcePrivate);
setReadyState(openKeyword());
}
diff --git a/Source/WebCore/Modules/mediasource/SourceBuffer.cpp b/Source/WebCore/Modules/mediasource/SourceBuffer.cpp
index e2e4ac2..e2914a6 100644
--- a/Source/WebCore/Modules/mediasource/SourceBuffer.cpp
+++ b/Source/WebCore/Modules/mediasource/SourceBuffer.cpp
@@ -90,14 +90,14 @@
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)
diff --git a/Source/WebCore/Modules/mediastream/RTCDTMFSender.cpp b/Source/WebCore/Modules/mediastream/RTCDTMFSender.cpp
index f6a6c2e..e5adcd6 100644
--- a/Source/WebCore/Modules/mediastream/RTCDTMFSender.cpp
+++ b/Source/WebCore/Modules/mediastream/RTCDTMFSender.cpp
@@ -53,7 +53,7 @@
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 @@
, 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)
{
diff --git a/Source/WebCore/Modules/mediastream/RTCDataChannel.cpp b/Source/WebCore/Modules/mediastream/RTCDataChannel.cpp
index b4314dc..de78474 100644
--- a/Source/WebCore/Modules/mediastream/RTCDataChannel.cpp
+++ b/Source/WebCore/Modules/mediastream/RTCDataChannel.cpp
@@ -80,18 +80,18 @@
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)
diff --git a/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp b/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
index 6064dd4..29dc192 100644
--- a/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
+++ b/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
@@ -670,7 +670,7 @@
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()));
diff --git a/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.cpp b/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.cpp
index c42e0ac..0cf34e7 100644
--- a/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.cpp
+++ b/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.cpp
@@ -203,7 +203,7 @@
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
diff --git a/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h b/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h
index e8dd864..c455305 100644
--- a/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h
+++ b/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h
@@ -44,7 +44,7 @@
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();
diff --git a/Source/WebCore/Modules/notifications/DOMWindowNotifications.cpp b/Source/WebCore/Modules/notifications/DOMWindowNotifications.cpp
index 0a89d06..bd2a1a3 100644
--- a/Source/WebCore/Modules/notifications/DOMWindowNotifications.cpp
+++ b/Source/WebCore/Modules/notifications/DOMWindowNotifications.cpp
@@ -58,7 +58,7 @@
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;
}
diff --git a/Source/WebCore/Modules/notifications/WorkerGlobalScopeNotifications.cpp b/Source/WebCore/Modules/notifications/WorkerGlobalScopeNotifications.cpp
index a8cd0e4..4e1e675 100644
--- a/Source/WebCore/Modules/notifications/WorkerGlobalScopeNotifications.cpp
+++ b/Source/WebCore/Modules/notifications/WorkerGlobalScopeNotifications.cpp
@@ -56,7 +56,7 @@
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;
}
diff --git a/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm b/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm
index 56986ce..eb3c275 100644
--- a/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm
+++ b/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm
@@ -138,7 +138,7 @@
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;
}
diff --git a/Source/WebCore/Modules/plugins/YouTubePluginReplacement.cpp b/Source/WebCore/Modules/plugins/YouTubePluginReplacement.cpp
index da75c66..8a0e209 100644
--- a/Source/WebCore/Modules/plugins/YouTubePluginReplacement.cpp
+++ b/Source/WebCore/Modules/plugins/YouTubePluginReplacement.cpp
@@ -73,7 +73,7 @@
if (!m_embedShadowElement)
return nullptr;
- return m_embedShadowElement->createElementRenderer(std::move(style));
+ return m_embedShadowElement->createElementRenderer(WTF::move(style));
}
bool YouTubePluginReplacement::installReplacement(ShadowRoot* root)
diff --git a/Source/WebCore/Modules/quota/DOMWindowQuota.cpp b/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
index 286c312..005f51c 100644
--- a/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
+++ b/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
@@ -62,7 +62,7 @@
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;
}
diff --git a/Source/WebCore/Modules/quota/NavigatorStorageQuota.cpp b/Source/WebCore/Modules/quota/NavigatorStorageQuota.cpp
index f7b53bd..23be7fc 100644
--- a/Source/WebCore/Modules/quota/NavigatorStorageQuota.cpp
+++ b/Source/WebCore/Modules/quota/NavigatorStorageQuota.cpp
@@ -59,7 +59,7 @@
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;
}
diff --git a/Source/WebCore/Modules/quota/WorkerNavigatorStorageQuota.cpp b/Source/WebCore/Modules/quota/WorkerNavigatorStorageQuota.cpp
index 68474ae..99b3cbd 100644
--- a/Source/WebCore/Modules/quota/WorkerNavigatorStorageQuota.cpp
+++ b/Source/WebCore/Modules/quota/WorkerNavigatorStorageQuota.cpp
@@ -57,7 +57,7 @@
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;
}
diff --git a/Source/WebCore/Modules/speech/DOMWindowSpeechSynthesis.cpp b/Source/WebCore/Modules/speech/DOMWindowSpeechSynthesis.cpp
index ad247a5..c377b9b 100644
--- a/Source/WebCore/Modules/speech/DOMWindowSpeechSynthesis.cpp
+++ b/Source/WebCore/Modules/speech/DOMWindowSpeechSynthesis.cpp
@@ -59,7 +59,7 @@
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;
}
diff --git a/Source/WebCore/Modules/speech/SpeechSynthesis.cpp b/Source/WebCore/Modules/speech/SpeechSynthesis.cpp
index a70be1e..b6bb3cf 100644
--- a/Source/WebCore/Modules/speech/SpeechSynthesis.cpp
+++ b/Source/WebCore/Modules/speech/SpeechSynthesis.cpp
@@ -53,7 +53,7 @@
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();
diff --git a/Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp b/Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp
index 3698bf5..449e338 100644
--- a/Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp
+++ b/Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp
@@ -59,7 +59,7 @@
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.
diff --git a/Source/WebCore/Modules/webaudio/AudioNode.cpp b/Source/WebCore/Modules/webaudio/AudioNode.cpp
index 514ec7a..4c40725 100644
--- a/Source/WebCore/Modules/webaudio/AudioNode.cpp
+++ b/Source/WebCore/Modules/webaudio/AudioNode.cpp
@@ -100,12 +100,12 @@
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)
diff --git a/Source/WebCore/Modules/webaudio/ConvolverNode.cpp b/Source/WebCore/Modules/webaudio/ConvolverNode.cpp
index c5ac5ea..5a100eb 100644
--- a/Source/WebCore/Modules/webaudio/ConvolverNode.cpp
+++ b/Source/WebCore/Modules/webaudio/ConvolverNode.cpp
@@ -146,7 +146,7 @@
{
// Synchronize with process().
std::lock_guard<std::mutex> lock(m_processMutex);
- m_reverb = std::move(reverb);
+ m_reverb = WTF::move(reverb);
m_buffer = buffer;
}
}
diff --git a/Source/WebCore/Modules/webdatabase/Database.cpp b/Source/WebCore/Modules/webdatabase/Database.cpp
index fe6f3c7..0aadab9 100644
--- a/Source/WebCore/Modules/webdatabase/Database.cpp
+++ b/Source/WebCore/Modules/webdatabase/Database.cpp
@@ -130,7 +130,7 @@
}
auto task = DatabaseCloseTask::create(this, &synchronizer);
- databaseContext()->databaseThread()->scheduleImmediateTask(std::move(task));
+ databaseContext()->databaseThread()->scheduleImmediateTask(WTF::move(task));
synchronizer.waitForTaskCompletion();
}
@@ -222,7 +222,7 @@
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;
diff --git a/Source/WebCore/Modules/webdatabase/DatabaseBackend.cpp b/Source/WebCore/Modules/webdatabase/DatabaseBackend.cpp
index 495e86a..c75bbd9 100644
--- a/Source/WebCore/Modules/webdatabase/DatabaseBackend.cpp
+++ b/Source/WebCore/Modules/webdatabase/DatabaseBackend.cpp
@@ -57,7 +57,7 @@
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 @@
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 @@
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
diff --git a/Source/WebCore/Modules/webdatabase/DatabaseThread.cpp b/Source/WebCore/Modules/webdatabase/DatabaseThread.cpp
index 9320af9..8832cae 100644
--- a/Source/WebCore/Modules/webdatabase/DatabaseThread.cpp
+++ b/Source/WebCore/Modules/webdatabase/DatabaseThread.cpp
@@ -155,7 +155,7 @@
{
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 @@
{
MutexLocker pausedLocker(m_pausedMutex);
if (m_paused) {
- m_pausedQueue.append(std::move(task));
+ m_pausedQueue.append(WTF::move(task));
continue;
}
}
@@ -193,7 +193,7 @@
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::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 {
diff --git a/Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp b/Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp
index 14fe68f..f3dbf466 100644
--- a/Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp
+++ b/Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp
@@ -77,12 +77,12 @@
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())
diff --git a/Source/WebCore/Modules/webdatabase/SQLTransaction.cpp b/Source/WebCore/Modules/webdatabase/SQLTransaction.cpp
index 2593196..c9ee203 100644
--- a/Source/WebCore/Modules/webdatabase/SQLTransaction.cpp
+++ b/Source/WebCore/Modules/webdatabase/SQLTransaction.cpp
@@ -262,7 +262,7 @@
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()
diff --git a/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp b/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp
index 00b0062..28a3bf4 100644
--- a/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp
+++ b/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp
@@ -530,7 +530,7 @@
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();
diff --git a/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp b/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp
index 085d672..fed87c3 100644
--- a/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp
+++ b/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp
@@ -231,7 +231,7 @@
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);
}
diff --git a/Source/WebCore/Modules/websockets/WebSocket.cpp b/Source/WebCore/Modules/websockets/WebSocket.cpp
index 52fbea8..0dcd389 100644
--- a/Source/WebCore/Modules/websockets/WebSocket.cpp
+++ b/Source/WebCore/Modules/websockets/WebSocket.cpp
@@ -519,7 +519,7 @@
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;
}
diff --git a/Source/WebCore/accessibility/AXObjectCache.cpp b/Source/WebCore/accessibility/AXObjectCache.cpp
index fe87e70..f194810 100644
--- a/Source/WebCore/accessibility/AXObjectCache.cpp
+++ b/Source/WebCore/accessibility/AXObjectCache.cpp
@@ -704,7 +704,7 @@
// 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();
diff --git a/Source/WebCore/accessibility/AccessibilityNodeObject.cpp b/Source/WebCore/accessibility/AccessibilityNodeObject.cpp
index e669705..4ac32d3 100644
--- a/Source/WebCore/accessibility/AccessibilityNodeObject.cpp
+++ b/Source/WebCore/accessibility/AccessibilityNodeObject.cpp
@@ -1438,7 +1438,7 @@
axElements.append(axElement);
}
- textOrder.append(AccessibilityText(ariaLabeledBy, AlternativeText, std::move(axElements)));
+ textOrder.append(AccessibilityText(ariaLabeledBy, AlternativeText, WTF::move(axElements)));
}
}
diff --git a/Source/WebCore/accessibility/AccessibilityObject.h b/Source/WebCore/accessibility/AccessibilityObject.h
index c78bbca..5c2b19d 100644
--- a/Source/WebCore/accessibility/AccessibilityObject.h
+++ b/Source/WebCore/accessibility/AccessibilityObject.h
@@ -233,7 +233,7 @@
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)
diff --git a/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp b/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp
index 77edb8c..d95c173 100644
--- a/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp
+++ b/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp
@@ -146,7 +146,7 @@
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 @@
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 @@
return nullptr;
}
- return std::move(result);
+ return WTF::move(result);
}
static std::unique_ptr<CryptoAlgorithmParameters> createHmacKeyParams(ExecState* exec, JSValue value)
@@ -204,7 +204,7 @@
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 @@
}
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 @@
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 @@
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 @@
return nullptr;
}
- return std::move(result);
+ return WTF::move(result);
}
std::unique_ptr<CryptoAlgorithmParameters> JSCryptoAlgorithmDictionary::createParametersForEncrypt(ExecState* exec, CryptoAlgorithmIdentifier algorithm, JSValue value)
diff --git a/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp b/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp
index 263e5cb..be6e1e0 100644
--- a/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp
+++ b/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp
@@ -152,7 +152,7 @@
{
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 @@
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 @@
}
if (!suggestedAlgorithm) {
- suggestedAlgorithm = std::move(algorithm);
- suggestedParameters = std::move(parameters);
+ suggestedAlgorithm = WTF::move(algorithm);
+ suggestedParameters = WTF::move(parameters);
return true;
}
diff --git a/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp b/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
index 1b6ae7d..2cde12d 100644
--- a/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
+++ b/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
@@ -584,7 +584,7 @@
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 @@
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);
diff --git a/Source/WebCore/bindings/js/JSMessageEventCustom.cpp b/Source/WebCore/bindings/js/JSMessageEventCustom.cpp
index ea9c45f..ba9e3cc 100644
--- a/Source/WebCore/bindings/js/JSMessageEventCustom.cpp
+++ b/Source/WebCore/bindings/js/JSMessageEventCustom.cpp
@@ -110,7 +110,7 @@
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();
}
diff --git a/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp b/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp
index c15bccb..f405a03 100644
--- a/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp
+++ b/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp
@@ -171,7 +171,7 @@
};
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 @@
};
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 @@
};
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 @@
};
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 @@
};
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 @@
};
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 @@
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 @@
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 @@
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 @@
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 @@
};
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 @@
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 @@
};
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();
diff --git a/Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp b/Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp
index a6dac26..857d480 100644
--- a/Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp
+++ b/Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp
@@ -93,7 +93,7 @@
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 @@
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
diff --git a/Source/WebCore/bindings/js/SerializedScriptValue.cpp b/Source/WebCore/bindings/js/SerializedScriptValue.cpp
index 7ac0f1a..28f22da 100644
--- a/Source/WebCore/bindings/js/SerializedScriptValue.cpp
+++ b/Source/WebCore/bindings/js/SerializedScriptValue.cpp
@@ -1991,7 +1991,7 @@
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 @@
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 @@
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 @@
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;
diff --git a/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp b/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
index e7d8dba..c51c6fd 100644
--- a/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
+++ b/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
@@ -74,7 +74,7 @@
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 @@
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&)
diff --git a/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp b/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp
index c334fb0..c28903a 100644
--- a/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp
+++ b/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp
@@ -71,7 +71,7 @@
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 @@
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&)
diff --git a/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp b/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp
index 9a82bdf..4767d2e 100644
--- a/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp
+++ b/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp
@@ -77,7 +77,7 @@
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 @@
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&)
diff --git a/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp b/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
index 5b0c632..9044336 100644
--- a/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
+++ b/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
@@ -71,7 +71,7 @@
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 @@
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 @@
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&)
diff --git a/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp b/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
index 9e4710f..4f0f3cd 100644
--- a/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
+++ b/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
@@ -79,7 +79,7 @@
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 @@
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 @@
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&)
diff --git a/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp b/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
index a19764a..e2dec85 100644
--- a/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
+++ b/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
@@ -79,7 +79,7 @@
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 @@
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 @@
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&)
diff --git a/Source/WebCore/crypto/mac/CryptoAlgorithmAES_CBCMac.cpp b/Source/WebCore/crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
index 4b8cfd4..5aaa775 100644
--- a/Source/WebCore/crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
+++ b/Source/WebCore/crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
@@ -84,12 +84,12 @@
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
diff --git a/Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp b/Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp
index d1f31bc..25a156d 100644
--- a/Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp
+++ b/Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp
@@ -251,8 +251,8 @@
}
// 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;
diff --git a/Source/WebCore/css/CSSCalculationValue.cpp b/Source/WebCore/css/CSSCalculationValue.cpp
index 635da83..00ca35f 100644
--- a/Source/WebCore/css/CSSCalculationValue.cpp
+++ b/Source/WebCore/css/CSSCalculationValue.cpp
@@ -427,7 +427,7 @@
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
diff --git a/Source/WebCore/css/CSSCalculationValue.h b/Source/WebCore/css/CSSCalculationValue.h
index df68676..ce0cb5a 100644
--- a/Source/WebCore/css/CSSCalculationValue.h
+++ b/Source/WebCore/css/CSSCalculationValue.h
@@ -111,7 +111,7 @@
inline CSSCalcValue::CSSCalcValue(PassRef<CSSCalcExpressionNode> expression, bool shouldClampToNonNegative)
: CSSValue(CalculationClass)
- , m_expression(std::move(expression))
+ , m_expression(WTF::move(expression))
, m_shouldClampToNonNegative(shouldClampToNonNegative)
{
}
diff --git a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
index dbb8db6b..3f38c8d 100644
--- a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
+++ b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
@@ -831,7 +831,7 @@
// 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 @@
list.get().append(filterValue.release());
}
- return std::move(list);
+ return WTF::move(list);
}
#endif
@@ -1025,7 +1025,7 @@
// 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 @@
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 @@
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 @@
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)
diff --git a/Source/WebCore/css/CSSCrossfadeValue.cpp b/Source/WebCore/css/CSSCrossfadeValue.cpp
index 692f433..d43db1e 100644
--- a/Source/WebCore/css/CSSCrossfadeValue.cpp
+++ b/Source/WebCore/css/CSSCrossfadeValue.cpp
@@ -192,7 +192,7 @@
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())
diff --git a/Source/WebCore/css/CSSCursorImageValue.cpp b/Source/WebCore/css/CSSCursorImageValue.cpp
index aba6248..3144204 100644
--- a/Source/WebCore/css/CSSCursorImageValue.cpp
+++ b/Source/WebCore/css/CSSCursorImageValue.cpp
@@ -55,7 +55,7 @@
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)
diff --git a/Source/WebCore/css/CSSCursorImageValue.h b/Source/WebCore/css/CSSCursorImageValue.h
index 63bc284..651cd63 100644
--- a/Source/WebCore/css/CSSCursorImageValue.h
+++ b/Source/WebCore/css/CSSCursorImageValue.h
@@ -35,7 +35,7 @@
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();
diff --git a/Source/WebCore/css/CSSFilterImageValue.cpp b/Source/WebCore/css/CSSFilterImageValue.cpp
index d980e62..b0a7e69 100644
--- a/Source/WebCore/css/CSSFilterImageValue.cpp
+++ b/Source/WebCore/css/CSSFilterImageValue.cpp
@@ -120,7 +120,7 @@
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))
diff --git a/Source/WebCore/css/CSSFilterImageValue.h b/Source/WebCore/css/CSSFilterImageValue.h
index 42f22cd..5b24028 100644
--- a/Source/WebCore/css/CSSFilterImageValue.h
+++ b/Source/WebCore/css/CSSFilterImageValue.h
@@ -50,7 +50,7 @@
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();
diff --git a/Source/WebCore/css/CSSFontFace.cpp b/Source/WebCore/css/CSSFontFace.cpp
index 4b7a9ad..b53463b 100644
--- a/Source/WebCore/css/CSSFontFace.cpp
+++ b/Source/WebCore/css/CSSFontFace.cpp
@@ -70,7 +70,7 @@
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)
diff --git a/Source/WebCore/css/CSSFontSelector.cpp b/Source/WebCore/css/CSSFontSelector.cpp
index 0121748..f7815ef 100644
--- a/Source/WebCore/css/CSSFontSelector.cpp
+++ b/Source/WebCore/css/CSSFontSelector.cpp
@@ -239,7 +239,7 @@
#if ENABLE(SVG_FONTS)
source->setSVGFontFaceElement(item->svgFontFaceElement());
#endif
- fontFace->addSource(std::move(source));
+ fontFace->addSource(WTF::move(source));
}
}
@@ -311,7 +311,7 @@
familyLocallyInstalledFaces->append(locallyInstalledFontFace);
}
- m_locallyInstalledFontFaces.set(familyName, std::move(familyLocallyInstalledFaces));
+ m_locallyInstalledFontFaces.set(familyName, WTF::move(familyLocallyInstalledFaces));
}
}
diff --git a/Source/WebCore/css/CSSGrammar.y.in b/Source/WebCore/css/CSSGrammar.y.in
index 35d9abd..b1dbff7 100644
--- a/Source/WebCore/css/CSSGrammar.y.in
+++ b/Source/WebCore/css/CSSGrammar.y.in
@@ -656,7 +656,7 @@
$$ = $1;
std::unique_ptr<MediaQuery> mediaQuery($4);
if ($$) {
- $$->addMediaQuery(std::move(mediaQuery));
+ $$->addMediaQuery(WTF::move(mediaQuery));
parser->updateLastMediaLine($$);
}
}
@@ -753,7 +753,7 @@
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 @@
$$ = nullptr;
if (selectorList && selector) {
$$ = selectorList.release();
- $$->append(std::move(selector));
+ $$->append(WTF::move(selector));
parser->updateLastSelectorLineAndPosition();
}
}
@@ -1072,7 +1072,7 @@
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 @@
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 @@
$$ = nullptr;
if (list && selector) {
$$ = list.release();
- $$->append(std::move(selector));
+ $$->append(WTF::move(selector));
}
}
| simple_selector_list error {
@@ -1168,7 +1168,7 @@
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 @@
$$->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 @@
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 (!$$)
diff --git a/Source/WebCore/css/CSSParser.cpp b/Source/WebCore/css/CSSParser.cpp
index 7bc1972..6835d66 100644
--- a/Source/WebCore/css/CSSParser.cpp
+++ b/Source/WebCore/css/CSSParser.cpp
@@ -1452,7 +1452,7 @@
setupParser("@-webkit-mediaquery ", string, "} ");
cssyyparse(this);
- return std::move(m_mediaQuery);
+ return WTF::move(m_mediaQuery);
}
#if ENABLE(PICTURE_SIZES)
@@ -1466,7 +1466,7 @@
setupParser("@-webkit-sizesattr ", string, "}");
cssyyparse(this);
- return std::move(m_sourceSizeList);
+ return WTF::move(m_sourceSizeList);
}
#endif
@@ -11428,7 +11428,7 @@
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 @@
{
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 @@
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 @@
{
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 @@
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)
diff --git a/Source/WebCore/css/CSSParserValues.cpp b/Source/WebCore/css/CSSParserValues.cpp
index c23d8b0..3cfd1d7 100644
--- a/Source/WebCore/css/CSSParserValues.cpp
+++ b/Source/WebCore/css/CSSParserValues.cpp
@@ -238,13 +238,13 @@
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 @@
{
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 @@
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 @@
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;
diff --git a/Source/WebCore/css/CSSParserValues.h b/Source/WebCore/css/CSSParserValues.h
index dd9f161..b4f926f 100644
--- a/Source/WebCore/css/CSSParserValues.h
+++ b/Source/WebCore/css/CSSParserValues.h
@@ -190,7 +190,7 @@
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 @@
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>);
diff --git a/Source/WebCore/css/CSSPrimitiveValue.cpp b/Source/WebCore/css/CSSPrimitiveValue.cpp
index eae3443..eff06ab 100644
--- a/Source/WebCore/css/CSSPrimitiveValue.cpp
+++ b/Source/WebCore/css/CSSPrimitiveValue.cpp
@@ -934,7 +934,7 @@
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>
diff --git a/Source/WebCore/css/CSSSelector.cpp b/Source/WebCore/css/CSSSelector.cpp
index b3ee73a..724c5df 100644
--- a/Source/WebCore/css/CSSSelector.cpp
+++ b/Source/WebCore/css/CSSSelector.cpp
@@ -562,7 +562,7 @@
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
diff --git a/Source/WebCore/css/CSSStyleSheet.cpp b/Source/WebCore/css/CSSStyleSheet.cpp
index 63ad016..b838355 100644
--- a/Source/WebCore/css/CSSStyleSheet.cpp
+++ b/Source/WebCore/css/CSSStyleSheet.cpp
@@ -76,12 +76,12 @@
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 @@
}
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, Node* ownerNode, bool isInlineStylesheet)
- : m_contents(std::move(contents))
+ : m_contents(WTF::move(contents))
, m_isInlineStylesheet(isInlineStylesheet)
, m_isDisabled(false)
, m_ownerNode(ownerNode)
diff --git a/Source/WebCore/css/DeprecatedStyleBuilder.cpp b/Source/WebCore/css/DeprecatedStyleBuilder.cpp
index c53887f..3c60aa8 100644
--- a/Source/WebCore/css/DeprecatedStyleBuilder.cpp
+++ b/Source/WebCore/css/DeprecatedStyleBuilder.cpp
@@ -354,7 +354,7 @@
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 @@
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())
diff --git a/Source/WebCore/css/DocumentRuleSets.cpp b/Source/WebCore/css/DocumentRuleSets.cpp
index 8fa272a..292a9a6 100644
--- a/Source/WebCore/css/DocumentRuleSets.cpp
+++ b/Source/WebCore/css/DocumentRuleSets.cpp
@@ -54,7 +54,7 @@
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)
diff --git a/Source/WebCore/css/MediaList.cpp b/Source/WebCore/css/MediaList.cpp
index 7d494bc..9445086 100644
--- a/Source/WebCore/css/MediaList.cpp
+++ b/Source/WebCore/css/MediaList.cpp
@@ -143,7 +143,7 @@
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 @@
if (!strippedMediaString.isEmpty())
return false;
}
- m_queries = std::move(result);
+ m_queries = WTF::move(result);
return true;
}
@@ -168,7 +168,7 @@
if (!parsedQuery)
return false;
- m_queries.append(std::move(parsedQuery));
+ m_queries.append(WTF::move(parsedQuery));
return true;
}
@@ -197,7 +197,7 @@
void MediaQuerySet::addMediaQuery(std::unique_ptr<MediaQuery> mediaQuery)
{
- m_queries.append(std::move(mediaQuery));
+ m_queries.append(WTF::move(mediaQuery));
}
String MediaQuerySet::mediaText() const
diff --git a/Source/WebCore/css/MediaQuery.cpp b/Source/WebCore/css/MediaQuery.cpp
index f1db3bd..c6dd52a 100644
--- a/Source/WebCore/css/MediaQuery.cpp
+++ b/Source/WebCore/css/MediaQuery.cpp
@@ -75,7 +75,7 @@
MediaQuery::MediaQuery(Restrictor r, const String& mediaType, std::unique_ptr<ExpressionVector> exprs)
: m_restrictor(r)
, m_mediaType(mediaType.lower())
- , m_expressions(std::move(exprs))
+ , m_expressions(WTF::move(exprs))
, m_ignored(false)
{
if (!m_expressions) {
diff --git a/Source/WebCore/css/RuleSet.cpp b/Source/WebCore/css/RuleSet.cpp
index f33fd37..777e72e 100644
--- a/Source/WebCore/css/RuleSet.cpp
+++ b/Source/WebCore/css/RuleSet.cpp
@@ -267,7 +267,7 @@
// Update the "global" rule count so that proper order is maintained
m_ruleCount = regionRuleSet->m_ruleCount;
- m_regionSelectorsAndRuleSets.append(RuleSetSelectorPair(regionRule->selectorList().first(), std::move(regionRuleSet)));
+ m_regionSelectorsAndRuleSets.append(RuleSetSelectorPair(regionRule->selectorList().first(), WTF::move(regionRuleSet)));
}
void RuleSet::addChildRules(const Vector<RefPtr<StyleRuleBase>>& rules, const MediaQueryEvaluator& medium, StyleResolver* resolver, bool hasDocumentSecurityOrigin, AddRuleFlags addRuleFlags)
diff --git a/Source/WebCore/css/RuleSet.h b/Source/WebCore/css/RuleSet.h
index 720c47b..72017bb 100644
--- a/Source/WebCore/css/RuleSet.h
+++ b/Source/WebCore/css/RuleSet.h
@@ -128,7 +128,7 @@
WTF_MAKE_NONCOPYABLE(RuleSet); WTF_MAKE_FAST_ALLOCATED;
public:
struct RuleSetSelectorPair {
- RuleSetSelectorPair(const CSSSelector* selector, std::unique_ptr<RuleSet> ruleSet) : selector(selector), ruleSet(std::move(ruleSet)) { }
+ RuleSetSelectorPair(const CSSSelector* selector, std::unique_ptr<RuleSet> ruleSet) : selector(selector), ruleSet(WTF::move(ruleSet)) { }
RuleSetSelectorPair(const RuleSetSelectorPair& pair) : selector(pair.selector), ruleSet(const_cast<RuleSetSelectorPair*>(&pair)->ruleSet.release()) { }
const CSSSelector* selector;
diff --git a/Source/WebCore/css/SVGCSSStyleSelector.cpp b/Source/WebCore/css/SVGCSSStyleSelector.cpp
index 6e09caf..de985c1 100644
--- a/Source/WebCore/css/SVGCSSStyleSelector.cpp
+++ b/Source/WebCore/css/SVGCSSStyleSelector.cpp
@@ -605,7 +605,7 @@
ASSERT(!item->style);
auto shadowData = std::make_unique<ShadowData>(location, blur, 0, Normal, false, color.isValid() ? color : Color::transparent);
- svgStyle.setShadow(std::move(shadowData));
+ svgStyle.setShadow(WTF::move(shadowData));
return;
}
case CSSPropertyVectorEffect: {
diff --git a/Source/WebCore/css/SourceSizeList.cpp b/Source/WebCore/css/SourceSizeList.cpp
index 7fac9ac..7d862e1 100644
--- a/Source/WebCore/css/SourceSizeList.cpp
+++ b/Source/WebCore/css/SourceSizeList.cpp
@@ -41,7 +41,7 @@
expList->append(m_mediaExp.release());
RefPtr<MediaQuerySet> mediaQuerySet = MediaQuerySet::create();
- mediaQuerySet->addMediaQuery(std::make_unique<MediaQuery>(MediaQuery::None, "all", std::move(expList)));
+ mediaQuerySet->addMediaQuery(std::make_unique<MediaQuery>(MediaQuery::None, "all", WTF::move(expList)));
MediaQueryEvaluator mediaQueryEvaluator("screen", frame, &style);
return mediaQueryEvaluator.eval(mediaQuerySet.get());
diff --git a/Source/WebCore/css/SourceSizeList.h b/Source/WebCore/css/SourceSizeList.h
index 1d6a5c0..da1697b 100644
--- a/Source/WebCore/css/SourceSizeList.h
+++ b/Source/WebCore/css/SourceSizeList.h
@@ -35,7 +35,7 @@
class SourceSize {
public:
SourceSize(std::unique_ptr<MediaQueryExp> mediaExp, const CSSParserValue& length)
- : m_mediaExp(std::move(mediaExp))
+ : m_mediaExp(WTF::move(mediaExp))
, m_length(length)
{
}
@@ -52,7 +52,7 @@
public:
void append(std::unique_ptr<SourceSize> sourceSize)
{
- m_list.append(std::move(sourceSize));
+ m_list.append(WTF::move(sourceSize));
}
static unsigned parseSizesAttribute(const String& sizesAttribute, RenderView*, Frame*);
diff --git a/Source/WebCore/css/StyleResolver.cpp b/Source/WebCore/css/StyleResolver.cpp
index 5bd3471..79cfdc9 100644
--- a/Source/WebCore/css/StyleResolver.cpp
+++ b/Source/WebCore/css/StyleResolver.cpp
@@ -428,7 +428,7 @@
inline void StyleResolver::State::setStyle(PassRef<RenderStyle> style)
{
- m_style = std::move(style);
+ m_style = WTF::move(style);
updateConversionData();
}
@@ -1584,7 +1584,7 @@
// The RenderStyle in the cache is really just a holder for the substructures and never used as-is.
cacheItem.renderStyle = RenderStyle::clone(style);
cacheItem.parentRenderStyle = RenderStyle::clone(parentStyle);
- m_matchedPropertiesCache.add(hash, std::move(cacheItem));
+ m_matchedPropertiesCache.add(hash, WTF::move(cacheItem));
}
void StyleResolver::invalidateMatchedPropertiesCache()
@@ -2131,7 +2131,7 @@
if (listStyleIdent != CSSValueNone)
listStyleType = static_cast<EListStyleType>(listStyleIdent - CSSValueDisc);
auto counter = std::make_unique<CounterContent>(counterValue->identifier(), listStyleType, counterValue->separator());
- state.style()->setContent(std::move(counter), didSet);
+ state.style()->setContent(WTF::move(counter), didSet);
didSet = true;
} else {
switch (contentValue->getValueID()) {
@@ -2354,9 +2354,9 @@
auto shadowData = std::make_unique<ShadowData>(IntPoint(x, y), blur, spread, shadowStyle, id == CSSPropertyWebkitBoxShadow, color.isValid() ? color : Color::transparent);
if (id == CSSPropertyTextShadow)
- state.style()->setTextShadow(std::move(shadowData), i.index()); // add to the list if this is not the first entry
+ state.style()->setTextShadow(WTF::move(shadowData), i.index()); // add to the list if this is not the first entry
else
- state.style()->setBoxShadow(std::move(shadowData), i.index()); // add to the list if this is not the first entry
+ state.style()->setBoxShadow(WTF::move(shadowData), i.index()); // add to the list if this is not the first entry
}
return;
}
diff --git a/Source/WebCore/css/StyleResolver.h b/Source/WebCore/css/StyleResolver.h
index 723d0d2..cc94f68 100644
--- a/Source/WebCore/css/StyleResolver.h
+++ b/Source/WebCore/css/StyleResolver.h
@@ -363,7 +363,7 @@
RenderStyle* style() const { return m_style.get(); }
PassRef<RenderStyle> takeStyle() { return m_style.releaseNonNull(); }
- void setParentStyle(PassRef<RenderStyle> parentStyle) { m_parentStyle = std::move(parentStyle); }
+ void setParentStyle(PassRef<RenderStyle> parentStyle) { m_parentStyle = WTF::move(parentStyle); }
RenderStyle* parentStyle() const { return m_parentStyle.get(); }
RenderStyle* rootElementStyle() const { return m_rootElementStyle; }
diff --git a/Source/WebCore/css/StyleRule.cpp b/Source/WebCore/css/StyleRule.cpp
index 5f7b485..83741a7 100644
--- a/Source/WebCore/css/StyleRule.cpp
+++ b/Source/WebCore/css/StyleRule.cpp
@@ -203,7 +203,7 @@
StyleRule::StyleRule(int sourceLine, PassRef<StyleProperties> properties)
: StyleRuleBase(Style, sourceLine)
- , m_properties(std::move(properties))
+ , m_properties(WTF::move(properties))
{
}
@@ -232,7 +232,7 @@
for (unsigned i = 0; i < selectors.size(); ++i)
new (NotNull, &selectorListArray[i]) CSSSelector(*selectors.at(i));
selectorListArray[selectors.size() - 1].setLastInSelectorList();
- auto rule = StyleRule::create(sourceLine, std::move(properties));
+ auto rule = StyleRule::create(sourceLine, WTF::move(properties));
rule.get().parserAdoptSelectorArray(selectorListArray);
return rule;
}
@@ -265,7 +265,7 @@
StyleRulePage::StyleRulePage(PassRef<StyleProperties> properties)
: StyleRuleBase(Page)
- , m_properties(std::move(properties))
+ , m_properties(WTF::move(properties))
{
}
@@ -289,7 +289,7 @@
StyleRuleFontFace::StyleRuleFontFace(PassRef<StyleProperties> properties)
: StyleRuleBase(FontFace, 0)
- , m_properties(std::move(properties))
+ , m_properties(WTF::move(properties))
{
}
@@ -326,7 +326,7 @@
void StyleRuleGroup::wrapperInsertRule(unsigned index, PassRef<StyleRuleBase> rule)
{
- m_childRules.insert(index, std::move(rule));
+ m_childRules.insert(index, WTF::move(rule));
}
void StyleRuleGroup::wrapperRemoveRule(unsigned index)
@@ -381,7 +381,7 @@
#if ENABLE(CSS_DEVICE_ADAPTATION)
StyleRuleViewport::StyleRuleViewport(PassRef<StyleProperties> properties)
: StyleRuleBase(Viewport, 0)
- , m_properties(std::move(properties))
+ , m_properties(WTF::move(properties))
{
}
diff --git a/Source/WebCore/css/StyleRule.h b/Source/WebCore/css/StyleRule.h
index aa6b815..7e770b4 100644
--- a/Source/WebCore/css/StyleRule.h
+++ b/Source/WebCore/css/StyleRule.h
@@ -108,7 +108,7 @@
public:
static PassRef<StyleRule> create(int sourceLine, PassRef<StyleProperties> properties)
{
- return adoptRef(*new StyleRule(sourceLine, std::move(properties)));
+ return adoptRef(*new StyleRule(sourceLine, WTF::move(properties)));
}
~StyleRule();
@@ -118,7 +118,7 @@
MutableStyleProperties& mutableProperties();
void parserAdoptSelectorVector(Vector<std::unique_ptr<CSSParserSelector>>& selectors) { m_selectorList.adoptSelectorVector(selectors); }
- void wrapperAdoptSelectorList(CSSSelectorList& selectors) { m_selectorList = std::move(selectors); }
+ void wrapperAdoptSelectorList(CSSSelectorList& selectors) { m_selectorList = WTF::move(selectors); }
void parserAdoptSelectorArray(CSSSelector* selectors) { m_selectorList.adoptSelectorArray(selectors); }
PassRef<StyleRule> copy() const { return adoptRef(*new StyleRule(*this)); }
@@ -145,7 +145,7 @@
class StyleRuleFontFace : public StyleRuleBase {
public:
- static PassRef<StyleRuleFontFace> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRuleFontFace(std::move(properties))); }
+ static PassRef<StyleRuleFontFace> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRuleFontFace(WTF::move(properties))); }
~StyleRuleFontFace();
@@ -164,7 +164,7 @@
class StyleRulePage : public StyleRuleBase {
public:
- static PassRef<StyleRulePage> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRulePage(std::move(properties))); }
+ static PassRef<StyleRulePage> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRulePage(WTF::move(properties))); }
~StyleRulePage();
@@ -173,7 +173,7 @@
MutableStyleProperties& mutableProperties();
void parserAdoptSelectorVector(Vector<std::unique_ptr<CSSParserSelector>>& selectors) { m_selectorList.adoptSelectorVector(selectors); }
- void wrapperAdoptSelectorList(CSSSelectorList& selectors) { m_selectorList = std::move(selectors); }
+ void wrapperAdoptSelectorList(CSSSelectorList& selectors) { m_selectorList = WTF::move(selectors); }
PassRef<StyleRulePage> copy() const { return adoptRef(*new StyleRulePage(*this)); }
@@ -260,7 +260,7 @@
#if ENABLE(CSS_DEVICE_ADAPTATION)
class StyleRuleViewport : public StyleRuleBase {
public:
- static PassRef<StyleRuleViewport> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRuleViewport(std::move(properties))); }
+ static PassRef<StyleRuleViewport> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRuleViewport(WTF::move(properties))); }
~StyleRuleViewport();
diff --git a/Source/WebCore/css/WebKitCSSKeyframeRule.cpp b/Source/WebCore/css/WebKitCSSKeyframeRule.cpp
index ee429df..087107f 100644
--- a/Source/WebCore/css/WebKitCSSKeyframeRule.cpp
+++ b/Source/WebCore/css/WebKitCSSKeyframeRule.cpp
@@ -34,7 +34,7 @@
namespace WebCore {
StyleKeyframe::StyleKeyframe(PassRef<StyleProperties> properties)
- : m_properties(std::move(properties))
+ : m_properties(WTF::move(properties))
{
}
diff --git a/Source/WebCore/css/WebKitCSSKeyframeRule.h b/Source/WebCore/css/WebKitCSSKeyframeRule.h
index ae88b7c..30469f5 100644
--- a/Source/WebCore/css/WebKitCSSKeyframeRule.h
+++ b/Source/WebCore/css/WebKitCSSKeyframeRule.h
@@ -40,7 +40,7 @@
public:
static PassRefPtr<StyleKeyframe> create(PassRef<StyleProperties> properties)
{
- return adoptRef(new StyleKeyframe(std::move(properties)));
+ return adoptRef(new StyleKeyframe(WTF::move(properties)));
}
~StyleKeyframe();
diff --git a/Source/WebCore/dom/ChildListMutationScope.cpp b/Source/WebCore/dom/ChildListMutationScope.cpp
index 4b808d4..9b16c6b 100644
--- a/Source/WebCore/dom/ChildListMutationScope.cpp
+++ b/Source/WebCore/dom/ChildListMutationScope.cpp
@@ -50,7 +50,7 @@
ChildListMutationAccumulator::ChildListMutationAccumulator(ContainerNode& target, std::unique_ptr<MutationObserverInterestGroup> observers)
: m_target(target)
, m_lastAdded(nullptr)
- , m_observers(std::move(observers))
+ , m_observers(WTF::move(observers))
{
}
diff --git a/Source/WebCore/dom/DOMImplementation.cpp b/Source/WebCore/dom/DOMImplementation.cpp
index fd9dd7d..d922618 100644
--- a/Source/WebCore/dom/DOMImplementation.cpp
+++ b/Source/WebCore/dom/DOMImplementation.cpp
@@ -245,7 +245,7 @@
// FIXME: Media could have wrong syntax, in which case we should generate an exception.
auto sheet = CSSStyleSheet::create(StyleSheetContents::create());
sheet.get().setMediaQueries(MediaQuerySet::createAllowingDescriptionSyntax(media));
- return std::move(sheet);
+ return WTF::move(sheet);
}
static inline bool isValidXMLMIMETypeChar(UChar c)
diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
index 1830660..5b53aa3 100644
--- a/Source/WebCore/dom/Document.cpp
+++ b/Source/WebCore/dom/Document.cpp
@@ -4330,7 +4330,7 @@
void Document::setTransformSource(std::unique_ptr<TransformSource> source)
{
- m_transformSource = std::move(source);
+ m_transformSource = WTF::move(source);
}
#endif
@@ -4902,7 +4902,7 @@
void Document::postTask(Task task)
{
- Task* taskPtr = std::make_unique<Task>(std::move(task)).release();
+ Task* taskPtr = std::make_unique<Task>(WTF::move(task)).release();
WeakPtr<Document> documentReference(m_weakFactory.createWeakPtr());
callOnMainThread([=] {
@@ -4915,7 +4915,7 @@
Page* page = document->page();
if ((page && page->defersLoading()) || !document->m_pendingTasks.isEmpty())
- document->m_pendingTasks.append(std::move(*task.release()));
+ document->m_pendingTasks.append(WTF::move(*task.release()));
else
task->performTask(*document);
});
@@ -4923,7 +4923,7 @@
void Document::pendingTasksTimerFired(Timer<Document>&)
{
- Vector<Task> pendingTasks = std::move(m_pendingTasks);
+ Vector<Task> pendingTasks = WTF::move(m_pendingTasks);
for (auto& task : pendingTasks)
task.performTask(*this);
}
diff --git a/Source/WebCore/dom/DocumentStyleSheetCollection.cpp b/Source/WebCore/dom/DocumentStyleSheetCollection.cpp
index a949c1f..f310449 100644
--- a/Source/WebCore/dom/DocumentStyleSheetCollection.cpp
+++ b/Source/WebCore/dom/DocumentStyleSheetCollection.cpp
@@ -184,14 +184,14 @@
void DocumentStyleSheetCollection::addAuthorSheet(PassRef<StyleSheetContents> authorSheet)
{
ASSERT(!authorSheet.get().isUserStyleSheet());
- m_authorStyleSheets.append(CSSStyleSheet::create(std::move(authorSheet), &m_document));
+ m_authorStyleSheets.append(CSSStyleSheet::create(WTF::move(authorSheet), &m_document));
m_document.styleResolverChanged(RecalcStyleImmediately);
}
void DocumentStyleSheetCollection::addUserSheet(PassRef<StyleSheetContents> userSheet)
{
ASSERT(userSheet.get().isUserStyleSheet());
- m_userStyleSheets.append(CSSStyleSheet::create(std::move(userSheet), &m_document));
+ m_userStyleSheets.append(CSSStyleSheet::create(WTF::move(userSheet), &m_document));
m_document.styleResolverChanged(RecalcStyleImmediately);
}
diff --git a/Source/WebCore/dom/Element.cpp b/Source/WebCore/dom/Element.cpp
index 7537330..8717ec1 100644
--- a/Source/WebCore/dom/Element.cpp
+++ b/Source/WebCore/dom/Element.cpp
@@ -1328,7 +1328,7 @@
RenderPtr<RenderElement> Element::createElementRenderer(PassRef<RenderStyle> style)
{
- return RenderElement::createFor(*this, std::move(style));
+ return RenderElement::createFor(*this, WTF::move(style));
}
Node::InsertionNotificationRequest Element::insertedInto(ContainerNode& insertionPoint)
diff --git a/Source/WebCore/dom/ElementRareData.h b/Source/WebCore/dom/ElementRareData.h
index dea3acc..29e213c 100644
--- a/Source/WebCore/dom/ElementRareData.h
+++ b/Source/WebCore/dom/ElementRareData.h
@@ -95,10 +95,10 @@
void setAttributeMap(PassOwnPtr<NamedNodeMap> attributeMap) { m_attributeMap = attributeMap; }
RenderStyle* computedStyle() const { return m_computedStyle.get(); }
- void setComputedStyle(PassRef<RenderStyle> computedStyle) { m_computedStyle = std::move(computedStyle); }
+ void setComputedStyle(PassRef<RenderStyle> computedStyle) { m_computedStyle = WTF::move(computedStyle); }
ClassList* classList() const { return m_classList.get(); }
- void setClassList(std::unique_ptr<ClassList> classList) { m_classList = std::move(classList); }
+ void setClassList(std::unique_ptr<ClassList> classList) { m_classList = WTF::move(classList); }
void clearClassListValueForQuirksMode()
{
if (!m_classList)
@@ -107,7 +107,7 @@
}
DatasetDOMStringMap* dataset() const { return m_dataset.get(); }
- void setDataset(std::unique_ptr<DatasetDOMStringMap> dataset) { m_dataset = std::move(dataset); }
+ void setDataset(std::unique_ptr<DatasetDOMStringMap> dataset) { m_dataset = WTF::move(dataset); }
LayoutSize minimumSizeForResizing() const { return m_minimumSizeForResizing; }
void setMinimumSizeForResizing(LayoutSize size) { m_minimumSizeForResizing = size; }
diff --git a/Source/WebCore/dom/MessageEvent.cpp b/Source/WebCore/dom/MessageEvent.cpp
index 8f18d1a..11d2c52 100644
--- a/Source/WebCore/dom/MessageEvent.cpp
+++ b/Source/WebCore/dom/MessageEvent.cpp
@@ -64,7 +64,7 @@
, m_origin(origin)
, m_lastEventId(lastEventId)
, m_source(source)
- , m_ports(std::move(ports))
+ , m_ports(WTF::move(ports))
{
ASSERT(isValidSource(m_source.get()));
}
@@ -76,7 +76,7 @@
, m_origin(origin)
, m_lastEventId(lastEventId)
, m_source(source)
- , m_ports(std::move(ports))
+ , m_ports(WTF::move(ports))
{
ASSERT(isValidSource(m_source.get()));
}
@@ -121,7 +121,7 @@
m_origin = origin;
m_lastEventId = lastEventId;
m_source = source;
- m_ports = std::move(ports);
+ m_ports = WTF::move(ports);
}
void MessageEvent::initMessageEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId, DOMWindow* source, std::unique_ptr<MessagePortArray> ports)
@@ -136,7 +136,7 @@
m_origin = origin;
m_lastEventId = lastEventId;
m_source = source;
- m_ports = std::move(ports);
+ m_ports = WTF::move(ports);
}
// FIXME: Remove this when we have custom ObjC binding support.
@@ -162,7 +162,7 @@
ports = std::make_unique<MessagePortArray>();
ports->append(port);
}
- initMessageEvent(type, canBubble, cancelable, data, origin, lastEventId, source, std::move(ports));
+ initMessageEvent(type, canBubble, cancelable, data, origin, lastEventId, source, WTF::move(ports));
}
EventInterface MessageEvent::eventInterface() const
diff --git a/Source/WebCore/dom/MessageEvent.h b/Source/WebCore/dom/MessageEvent.h
index 887e1ce..c74ae0d 100644
--- a/Source/WebCore/dom/MessageEvent.h
+++ b/Source/WebCore/dom/MessageEvent.h
@@ -59,11 +59,11 @@
}
static PassRefPtr<MessageEvent> create(std::unique_ptr<MessagePortArray> ports, const Deprecated::ScriptValue& data = Deprecated::ScriptValue(), const String& origin = String(), const String& lastEventId = String(), PassRefPtr<EventTarget> source = 0)
{
- return adoptRef(new MessageEvent(data, origin, lastEventId, source, std::move(ports)));
+ return adoptRef(new MessageEvent(data, origin, lastEventId, source, WTF::move(ports)));
}
static PassRefPtr<MessageEvent> create(std::unique_ptr<MessagePortArray> ports, PassRefPtr<SerializedScriptValue> data, const String& origin = String(), const String& lastEventId = String(), PassRefPtr<EventTarget> source = 0)
{
- return adoptRef(new MessageEvent(data, origin, lastEventId, source, std::move(ports)));
+ return adoptRef(new MessageEvent(data, origin, lastEventId, source, WTF::move(ports)));
}
static PassRefPtr<MessageEvent> create(const String& data, const String& origin = String())
{
diff --git a/Source/WebCore/dom/MessagePort.cpp b/Source/WebCore/dom/MessagePort.cpp
index 2ca2b83..f24d6c8 100644
--- a/Source/WebCore/dom/MessagePort.cpp
+++ b/Source/WebCore/dom/MessagePort.cpp
@@ -80,7 +80,7 @@
if (ec)
return;
}
- m_entangledChannel->postMessageToRemote(message, std::move(channels));
+ m_entangledChannel->postMessageToRemote(message, WTF::move(channels));
}
std::unique_ptr<MessagePortChannel> MessagePort::disentangle()
@@ -94,7 +94,7 @@
m_scriptExecutionContext->destroyedMessagePort(*this);
m_scriptExecutionContext = nullptr;
- return std::move(m_entangledChannel);
+ return WTF::move(m_entangledChannel);
}
// Invoked to notify us that there are messages available for this port.
@@ -134,7 +134,7 @@
// Don't entangle the ports if the channel is closed.
if (remote->entangleIfOpen(this))
- m_entangledChannel = std::move(remote);
+ m_entangledChannel = WTF::move(remote);
}
void MessagePort::contextDestroyed()
@@ -160,8 +160,8 @@
if (m_scriptExecutionContext->isWorkerGlobalScope() && toWorkerGlobalScope(m_scriptExecutionContext)->isClosing())
return;
- std::unique_ptr<MessagePortArray> ports = MessagePort::entanglePorts(*m_scriptExecutionContext, std::move(channels));
- RefPtr<Event> evt = MessageEvent::create(std::move(ports), message.release());
+ std::unique_ptr<MessagePortArray> ports = MessagePort::entanglePorts(*m_scriptExecutionContext, WTF::move(channels));
+ RefPtr<Event> evt = MessageEvent::create(WTF::move(ports), message.release());
dispatchEvent(evt.release(), ASSERT_NO_EXCEPTION);
}
@@ -205,7 +205,7 @@
auto portArray = std::make_unique<MessagePortChannelArray>(ports->size());
for (unsigned int i = 0 ; i < ports->size() ; ++i) {
std::unique_ptr<MessagePortChannel> channel = (*ports)[i]->disentangle();
- (*portArray)[i] = std::move(channel);
+ (*portArray)[i] = WTF::move(channel);
}
return portArray;
}
@@ -218,7 +218,7 @@
auto portArray = std::make_unique<MessagePortArray>(channels->size());
for (unsigned int i = 0; i < channels->size(); ++i) {
RefPtr<MessagePort> port = MessagePort::create(context);
- port->entangle(std::move((*channels)[i]));
+ port->entangle(WTF::move((*channels)[i]));
(*portArray)[i] = port.release();
}
return portArray;
diff --git a/Source/WebCore/dom/Node.cpp b/Source/WebCore/dom/Node.cpp
index ad6b8b0d..28eaa2c 100644
--- a/Source/WebCore/dom/Node.cpp
+++ b/Source/WebCore/dom/Node.cpp
@@ -724,10 +724,10 @@
#if !ASSERT_DISABLED
m_inInvalidateNodeListAndCollectionCaches = true;
#endif
- HashSet<LiveNodeList*> lists = std::move(m_listsInvalidatedAtDocument);
+ HashSet<LiveNodeList*> lists = WTF::move(m_listsInvalidatedAtDocument);
for (auto* list : lists)
list->invalidateCacheForAttribute(attrName);
- HashSet<HTMLCollection*> collections = std::move(m_collectionsInvalidatedAtDocument);
+ HashSet<HTMLCollection*> collections = WTF::move(m_collectionsInvalidatedAtDocument);
for (auto* collection : collections)
collection->invalidateCache(attrName);
#if !ASSERT_DISABLED
diff --git a/Source/WebCore/dom/ProcessingInstruction.cpp b/Source/WebCore/dom/ProcessingInstruction.cpp
index d3542e0..d6dddcb 100644
--- a/Source/WebCore/dom/ProcessingInstruction.cpp
+++ b/Source/WebCore/dom/ProcessingInstruction.cpp
@@ -202,7 +202,7 @@
cssSheet.get().setTitle(m_title);
cssSheet.get().setMediaQueries(MediaQuerySet::create(m_media));
- m_sheet = std::move(cssSheet);
+ m_sheet = WTF::move(cssSheet);
// We don't need the cross-origin security check here because we are
// getting the sheet text in "strict" mode. This enforces a valid CSS MIME
diff --git a/Source/WebCore/dom/PseudoElement.cpp b/Source/WebCore/dom/PseudoElement.cpp
index 2ccebec..3b4a979 100644
--- a/Source/WebCore/dom/PseudoElement.cpp
+++ b/Source/WebCore/dom/PseudoElement.cpp
@@ -113,7 +113,7 @@
if (!child->isRenderImage() && !child->isQuote())
continue;
PassRef<RenderStyle> createdStyle = RenderStyle::createStyleInheritingFromPseudoStyle(renderer->style());
- toRenderElement(*child).setStyle(std::move(createdStyle));
+ toRenderElement(*child).setStyle(WTF::move(createdStyle));
}
}
diff --git a/Source/WebCore/dom/ScopedEventQueue.cpp b/Source/WebCore/dom/ScopedEventQueue.cpp
index 503843b..17d523d 100644
--- a/Source/WebCore/dom/ScopedEventQueue.cpp
+++ b/Source/WebCore/dom/ScopedEventQueue.cpp
@@ -72,7 +72,7 @@
void ScopedEventQueue::dispatchAllEvents()
{
- Vector<RefPtr<Event>> queuedEvents = std::move(m_queuedEvents);
+ Vector<RefPtr<Event>> queuedEvents = WTF::move(m_queuedEvents);
for (size_t i = 0; i < queuedEvents.size(); i++)
dispatchEvent(queuedEvents[i].release());
}
diff --git a/Source/WebCore/dom/ScriptExecutionContext.cpp b/Source/WebCore/dom/ScriptExecutionContext.cpp
index a968bbf..951c809 100644
--- a/Source/WebCore/dom/ScriptExecutionContext.cpp
+++ b/Source/WebCore/dom/ScriptExecutionContext.cpp
@@ -360,7 +360,7 @@
if (!m_pendingExceptions)
return;
- std::unique_ptr<Vector<std::unique_ptr<PendingException>>> pendingExceptions = std::move(m_pendingExceptions);
+ std::unique_ptr<Vector<std::unique_ptr<PendingException>>> pendingExceptions = WTF::move(m_pendingExceptions);
for (auto& exception : *pendingExceptions)
logExceptionToConsole(exception->m_errorMessage, exception->m_sourceURL, exception->m_lineNumber, exception->m_columnNumber, exception->m_callStack);
}
diff --git a/Source/WebCore/dom/ScriptExecutionContext.h b/Source/WebCore/dom/ScriptExecutionContext.h
index cd8bc37..269c3a5 100644
--- a/Source/WebCore/dom/ScriptExecutionContext.h
+++ b/Source/WebCore/dom/ScriptExecutionContext.h
@@ -119,20 +119,20 @@
template<typename T, typename = typename std::enable_if<!std::is_base_of<Task, T>::value && std::is_convertible<T, std::function<void (ScriptExecutionContext&)>>::value>::type>
Task(T task)
- : m_task(std::move(task))
+ : m_task(WTF::move(task))
, m_isCleanupTask(false)
{
}
template<typename T, typename = typename std::enable_if<std::is_convertible<T, std::function<void (ScriptExecutionContext&)>>::value>::type>
Task(CleanupTaskTag, T task)
- : m_task(std::move(task))
+ : m_task(WTF::move(task))
, m_isCleanupTask(true)
{
}
Task(Task&& other)
- : m_task(std::move(other.m_task))
+ : m_task(WTF::move(other.m_task))
, m_isCleanupTask(other.m_isCleanupTask)
{
}
diff --git a/Source/WebCore/dom/SecurityContext.cpp b/Source/WebCore/dom/SecurityContext.cpp
index 24778b0..9f394e69 100644
--- a/Source/WebCore/dom/SecurityContext.cpp
+++ b/Source/WebCore/dom/SecurityContext.cpp
@@ -52,7 +52,7 @@
void SecurityContext::setContentSecurityPolicy(std::unique_ptr<ContentSecurityPolicy> contentSecurityPolicy)
{
- m_contentSecurityPolicy = std::move(contentSecurityPolicy);
+ m_contentSecurityPolicy = WTF::move(contentSecurityPolicy);
}
bool SecurityContext::isSecureTransitionTo(const URL& url) const
diff --git a/Source/WebCore/dom/SelectorQuery.cpp b/Source/WebCore/dom/SelectorQuery.cpp
index 45e411d..b532293 100644
--- a/Source/WebCore/dom/SelectorQuery.cpp
+++ b/Source/WebCore/dom/SelectorQuery.cpp
@@ -490,7 +490,7 @@
if (m_entries.size() == maximumSelectorQueryCacheSize)
m_entries.remove(m_entries.begin());
- return m_entries.add(selectors, std::make_unique<SelectorQuery>(std::move(selectorList))).iterator->value.get();
+ return m_entries.add(selectors, std::make_unique<SelectorQuery>(WTF::move(selectorList))).iterator->value.get();
}
}
diff --git a/Source/WebCore/dom/default/PlatformMessagePortChannel.cpp b/Source/WebCore/dom/default/PlatformMessagePortChannel.cpp
index 342ef67..6cb0e15 100644
--- a/Source/WebCore/dom/default/PlatformMessagePortChannel.cpp
+++ b/Source/WebCore/dom/default/PlatformMessagePortChannel.cpp
@@ -39,7 +39,7 @@
PlatformMessagePortChannel::EventData::EventData(PassRefPtr<SerializedScriptValue> message, std::unique_ptr<MessagePortChannelArray> channels)
: m_message(message)
- , m_channels(std::move(channels))
+ , m_channels(WTF::move(channels))
{
}
@@ -54,8 +54,8 @@
channel1->m_channel->m_entangledChannel = channel2->m_channel;
channel2->m_channel->m_entangledChannel = channel1->m_channel;
- port1->entangle(std::move(channel2));
- port2->entangle(std::move(channel1));
+ port1->entangle(WTF::move(channel2));
+ port2->entangle(WTF::move(channel1));
}
MessagePortChannel::MessagePortChannel(PassRefPtr<PlatformMessagePortChannel> channel)
@@ -91,7 +91,7 @@
MutexLocker lock(m_channel->m_mutex);
if (!m_channel->m_outgoingQueue)
return;
- bool wasEmpty = m_channel->m_outgoingQueue->appendAndCheckEmpty(std::make_unique<PlatformMessagePortChannel::EventData>(message, std::move(channels)));
+ bool wasEmpty = m_channel->m_outgoingQueue->appendAndCheckEmpty(std::make_unique<PlatformMessagePortChannel::EventData>(message, WTF::move(channels)));
if (wasEmpty && m_channel->m_remotePort)
m_channel->m_remotePort->messageAvailable();
}
diff --git a/Source/WebCore/dom/default/PlatformMessagePortChannel.h b/Source/WebCore/dom/default/PlatformMessagePortChannel.h
index 50984f9..954eb88 100644
--- a/Source/WebCore/dom/default/PlatformMessagePortChannel.h
+++ b/Source/WebCore/dom/default/PlatformMessagePortChannel.h
@@ -52,7 +52,7 @@
EventData(PassRefPtr<SerializedScriptValue> message, std::unique_ptr<MessagePortChannelArray>);
PassRefPtr<SerializedScriptValue> message() { return m_message; }
- std::unique_ptr<MessagePortChannelArray> channels() { return std::move(m_channels); }
+ std::unique_ptr<MessagePortChannelArray> channels() { return WTF::move(m_channels); }
private:
RefPtr<SerializedScriptValue> m_message;
@@ -71,7 +71,7 @@
bool appendAndCheckEmpty(std::unique_ptr<PlatformMessagePortChannel::EventData> message)
{
- return m_queue.appendAndCheckEmpty(std::move(message));
+ return m_queue.appendAndCheckEmpty(WTF::move(message));
}
bool isEmpty()
diff --git a/Source/WebCore/editing/TextCheckingHelper.cpp b/Source/WebCore/editing/TextCheckingHelper.cpp
index ddc8e9e..42f7f51 100644
--- a/Source/WebCore/editing/TextCheckingHelper.cpp
+++ b/Source/WebCore/editing/TextCheckingHelper.cpp
@@ -63,7 +63,7 @@
badGrammar.type = TextCheckingTypeGrammar;
badGrammar.location = checkLocation + badGrammarLocation;
badGrammar.length = badGrammarLength;
- badGrammar.details = std::move(badGrammarDetails);
+ badGrammar.details = WTF::move(badGrammarDetails);
results.append(badGrammar);
checkLocation += badGrammarLocation + badGrammarLength;
@@ -669,11 +669,11 @@
findGrammaticalErrors(client, text.substring(0, grammarCheckLength), grammaticalErrors);
}
- results = std::move(grammaticalErrors);
+ results = WTF::move(grammaticalErrors);
#endif
if (results.isEmpty())
- results = std::move(mispellings);
+ results = WTF::move(mispellings);
else
results.appendVector(mispellings);
#endif // USE(UNIFIED_TEXT_CHECKING)
diff --git a/Source/WebCore/editing/TextIterator.cpp b/Source/WebCore/editing/TextIterator.cpp
index ba790c9..66f34e6 100644
--- a/Source/WebCore/editing/TextIterator.cpp
+++ b/Source/WebCore/editing/TextIterator.cpp
@@ -277,7 +277,7 @@
inline void TextIteratorCopyableText::set(String&& string)
{
m_singleCharacter = 0;
- m_string = std::move(string);
+ m_string = WTF::move(string);
m_offset = 0;
m_length = m_string.length();
}
@@ -289,7 +289,7 @@
ASSERT(length <= string.length() - offset);
m_singleCharacter = 0;
- m_string = std::move(string);
+ m_string = WTF::move(string);
m_offset = offset;
m_length = length;
}
@@ -762,7 +762,7 @@
String altText = toRenderImage(renderer).altText();
if (unsigned length = altText.length()) {
m_lastCharacter = altText[length - 1];
- m_copyableText.set(std::move(altText));
+ m_copyableText.set(WTF::move(altText));
m_text = m_copyableText.text();
return true;
}
@@ -1081,7 +1081,7 @@
m_positionEndOffset = textEndOffset;
m_lastCharacter = string[textEndOffset - 1];
- m_copyableText.set(std::move(string), textStartOffset, textEndOffset - textStartOffset);
+ m_copyableText.set(WTF::move(string), textStartOffset, textEndOffset - textStartOffset);
m_text = m_copyableText.text();
m_lastTextNodeEndedWithCollapsedSpace = false;
@@ -1289,7 +1289,7 @@
ASSERT(m_positionEndOffset - offsetInNode <= static_cast<int>(text.length()));
m_lastCharacter = text[m_positionEndOffset - offsetInNode - 1];
- m_copyableText.set(std::move(text), m_positionStartOffset - offsetInNode, m_positionEndOffset - m_positionStartOffset);
+ m_copyableText.set(WTF::move(text), m_positionStartOffset - offsetInNode, m_positionEndOffset - m_positionStartOffset);
m_text = m_copyableText.text();
return !m_shouldHandleFirstLetter;
diff --git a/Source/WebCore/fileapi/Blob.cpp b/Source/WebCore/fileapi/Blob.cpp
index f1f29b8..01d330e 100644
--- a/Source/WebCore/fileapi/Blob.cpp
+++ b/Source/WebCore/fileapi/Blob.cpp
@@ -82,9 +82,9 @@
, m_size(data.size())
{
Vector<BlobPart> blobParts;
- blobParts.append(BlobPart(std::move(data)));
+ blobParts.append(BlobPart(WTF::move(data)));
m_internalURL = BlobURL::createInternalURL();
- ThreadableBlobRegistry::registerBlobURL(m_internalURL, std::move(blobParts), contentType);
+ ThreadableBlobRegistry::registerBlobURL(m_internalURL, WTF::move(blobParts), contentType);
}
Blob::Blob(Vector<BlobPart> blobParts, const String& contentType)
@@ -92,7 +92,7 @@
, m_size(-1)
{
m_internalURL = BlobURL::createInternalURL();
- ThreadableBlobRegistry::registerBlobURL(m_internalURL, std::move(blobParts), contentType);
+ ThreadableBlobRegistry::registerBlobURL(m_internalURL, WTF::move(blobParts), contentType);
}
Blob::Blob(DeserializationContructor, const URL& srcURL, const String& type, long long size)
diff --git a/Source/WebCore/fileapi/Blob.h b/Source/WebCore/fileapi/Blob.h
index a2ab5af..dffcad6 100644
--- a/Source/WebCore/fileapi/Blob.h
+++ b/Source/WebCore/fileapi/Blob.h
@@ -51,12 +51,12 @@
static PassRefPtr<Blob> create(Vector<char> data, const String& contentType)
{
- return adoptRef(new Blob(std::move(data), contentType));
+ return adoptRef(new Blob(WTF::move(data), contentType));
}
static PassRefPtr<Blob> create(Vector<BlobPart> blobParts, const String& contentType)
{
- return adoptRef(new Blob(std::move(blobParts), contentType));
+ return adoptRef(new Blob(WTF::move(blobParts), contentType));
}
static PassRefPtr<Blob> deserialize(const URL& srcURL, const String& type, long long size)
diff --git a/Source/WebCore/fileapi/FileList.h b/Source/WebCore/fileapi/FileList.h
index 2d85cc0..bbe6deb 100644
--- a/Source/WebCore/fileapi/FileList.h
+++ b/Source/WebCore/fileapi/FileList.h
@@ -44,7 +44,7 @@
static PassRefPtr<FileList> create(Vector<RefPtr<File>>&& files)
{
- return adoptRef(new FileList(std::move(files)));
+ return adoptRef(new FileList(WTF::move(files)));
}
unsigned length() const { return m_files.size(); }
diff --git a/Source/WebCore/fileapi/FileThread.cpp b/Source/WebCore/fileapi/FileThread.cpp
index efc07df..34ea5d7 100644
--- a/Source/WebCore/fileapi/FileThread.cpp
+++ b/Source/WebCore/fileapi/FileThread.cpp
@@ -64,7 +64,7 @@
void FileThread::postTask(Task task)
{
- m_queue.append(std::make_unique<FileThread::Task>(std::move(task)));
+ m_queue.append(std::make_unique<FileThread::Task>(WTF::move(task)));
}
class SameInstancePredicate {
diff --git a/Source/WebCore/fileapi/FileThread.h b/Source/WebCore/fileapi/FileThread.h
index 63d1159..9de2fed 100644
--- a/Source/WebCore/fileapi/FileThread.h
+++ b/Source/WebCore/fileapi/FileThread.h
@@ -57,13 +57,13 @@
public:
template<typename T, typename U, typename = typename std::enable_if<!std::is_base_of<Task, U>::value && std::is_convertible<U, std::function<void ()>>::value>::type>
Task(T* instance, U method)
- : m_task(std::move(method))
+ : m_task(WTF::move(method))
, m_instance(instance)
{
}
Task(Task&& other)
- : m_task(std::move(other.m_task))
+ : m_task(WTF::move(other.m_task))
, m_instance(other.m_instance)
{
}
diff --git a/Source/WebCore/fileapi/ThreadableBlobRegistry.cpp b/Source/WebCore/fileapi/ThreadableBlobRegistry.cpp
index 79ef3e2..eaeedf2 100644
--- a/Source/WebCore/fileapi/ThreadableBlobRegistry.cpp
+++ b/Source/WebCore/fileapi/ThreadableBlobRegistry.cpp
@@ -54,7 +54,7 @@
BlobRegistryContext(const URL& url, Vector<BlobPart> blobParts, const String& contentType)
: url(url.copy())
, contentType(contentType.isolatedCopy())
- , blobParts(std::move(blobParts))
+ , blobParts(WTF::move(blobParts))
{
for (BlobPart& part : blobParts)
part.detachFromCurrentThread();
@@ -115,13 +115,13 @@
void ThreadableBlobRegistry::registerBlobURL(const URL& url, Vector<BlobPart> blobParts, const String& contentType)
{
if (isMainThread())
- blobRegistry().registerBlobURL(url, std::move(blobParts), contentType);
+ blobRegistry().registerBlobURL(url, WTF::move(blobParts), contentType);
else {
// BlobRegistryContext performs an isolated copy of data.
- BlobRegistryContext* context = new BlobRegistryContext(url, std::move(blobParts), contentType);
+ BlobRegistryContext* context = new BlobRegistryContext(url, WTF::move(blobParts), contentType);
callOnMainThread([context] {
std::unique_ptr<BlobRegistryContext> blobRegistryContext(context);
- blobRegistry().registerBlobURL(blobRegistryContext->url, std::move(blobRegistryContext->blobParts), blobRegistryContext->contentType);
+ blobRegistry().registerBlobURL(blobRegistryContext->url, WTF::move(blobRegistryContext->blobParts), blobRegistryContext->contentType);
});
}
}
diff --git a/Source/WebCore/fileapi/WebKitBlobBuilder.cpp b/Source/WebCore/fileapi/WebKitBlobBuilder.cpp
index 645eb91..efc29ac 100644
--- a/Source/WebCore/fileapi/WebKitBlobBuilder.cpp
+++ b/Source/WebCore/fileapi/WebKitBlobBuilder.cpp
@@ -90,15 +90,15 @@
if (!blob)
return;
if (!m_appendableData.isEmpty())
- m_items.append(BlobPart(std::move(m_appendableData)));
+ m_items.append(BlobPart(WTF::move(m_appendableData)));
m_items.append(BlobPart(blob->url()));
}
Vector<BlobPart> BlobBuilder::finalize()
{
if (!m_appendableData.isEmpty())
- m_items.append(BlobPart(std::move(m_appendableData)));
- return std::move(m_items);
+ m_items.append(BlobPart(WTF::move(m_appendableData)));
+ return WTF::move(m_items);
}
} // namespace WebCore
diff --git a/Source/WebCore/history/CachedFrame.cpp b/Source/WebCore/history/CachedFrame.cpp
index 348690a..764974b 100644
--- a/Source/WebCore/history/CachedFrame.cpp
+++ b/Source/WebCore/history/CachedFrame.cpp
@@ -278,7 +278,7 @@
void CachedFrame::setCachedFramePlatformData(std::unique_ptr<CachedFramePlatformData> data)
{
- m_cachedFramePlatformData = std::move(data);
+ m_cachedFramePlatformData = WTF::move(data);
}
CachedFramePlatformData* CachedFrame::cachedFramePlatformData()
diff --git a/Source/WebCore/history/HistoryItem.cpp b/Source/WebCore/history/HistoryItem.cpp
index eea2dc6..550ed91 100644
--- a/Source/WebCore/history/HistoryItem.cpp
+++ b/Source/WebCore/history/HistoryItem.cpp
@@ -569,7 +569,7 @@
void HistoryItem::setRedirectURLs(std::unique_ptr<Vector<String>> redirectURLs)
{
- m_redirectURLs = std::move(redirectURLs);
+ m_redirectURLs = WTF::move(redirectURLs);
}
#ifndef NDEBUG
diff --git a/Source/WebCore/history/PageCache.cpp b/Source/WebCore/history/PageCache.cpp
index eaff743..0835fa8 100644
--- a/Source/WebCore/history/PageCache.cpp
+++ b/Source/WebCore/history/PageCache.cpp
@@ -437,7 +437,7 @@
if (!item)
return nullptr;
- std::unique_ptr<CachedPage> cachedPage = std::move(item->m_cachedPage);
+ std::unique_ptr<CachedPage> cachedPage = WTF::move(item->m_cachedPage);
removeFromLRUList(item);
--m_size;
diff --git a/Source/WebCore/html/BaseButtonInputType.cpp b/Source/WebCore/html/BaseButtonInputType.cpp
index 0b18b4f..89b2540 100644
--- a/Source/WebCore/html/BaseButtonInputType.cpp
+++ b/Source/WebCore/html/BaseButtonInputType.cpp
@@ -54,7 +54,7 @@
RenderPtr<RenderElement> BaseButtonInputType::createInputRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderButton>(element(), std::move(style));
+ return createRenderer<RenderButton>(element(), WTF::move(style));
}
bool BaseButtonInputType::storesValueSeparateFromAttribute()
diff --git a/Source/WebCore/html/FileInputType.cpp b/Source/WebCore/html/FileInputType.cpp
index 2fbf878..da07be0 100644
--- a/Source/WebCore/html/FileInputType.cpp
+++ b/Source/WebCore/html/FileInputType.cpp
@@ -205,7 +205,7 @@
RenderPtr<RenderElement> FileInputType::createInputRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderFileUploadControl>(element(), std::move(style));
+ return createRenderer<RenderFileUploadControl>(element(), WTF::move(style));
}
bool FileInputType::canSetStringValue() const
@@ -268,7 +268,7 @@
for (const FileChooserFileInfo& info : files)
fileObjects.append(File::createWithName(info.path, info.displayName));
- return FileList::create(std::move(fileObjects));
+ return FileList::create(WTF::move(fileObjects));
}
bool FileInputType::isFileUpload() const
diff --git a/Source/WebCore/html/FormController.cpp b/Source/WebCore/html/FormController.cpp
index 32db489..45100d1 100644
--- a/Source/WebCore/html/FormController.cpp
+++ b/Source/WebCore/html/FormController.cpp
@@ -461,7 +461,7 @@
i = 0;
break;
}
- map.add(formKey.impl(), std::move(state));
+ map.add(formKey.impl(), WTF::move(state));
}
if (i != stateVector.size())
map.clear();
diff --git a/Source/WebCore/html/HTMLAppletElement.cpp b/Source/WebCore/html/HTMLAppletElement.cpp
index 934e35b..bbb8a17 100644
--- a/Source/WebCore/html/HTMLAppletElement.cpp
+++ b/Source/WebCore/html/HTMLAppletElement.cpp
@@ -78,9 +78,9 @@
RenderPtr<RenderElement> HTMLAppletElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (!canEmbedJava())
- return RenderElement::createFor(*this, std::move(style));
+ return RenderElement::createFor(*this, WTF::move(style));
- return RenderEmbeddedObject::createForApplet(*this, std::move(style));
+ return RenderEmbeddedObject::createForApplet(*this, WTF::move(style));
}
RenderWidget* HTMLAppletElement::renderWidgetForJSBindings() const
diff --git a/Source/WebCore/html/HTMLBRElement.cpp b/Source/WebCore/html/HTMLBRElement.cpp
index 5eea85a..6173730 100644
--- a/Source/WebCore/html/HTMLBRElement.cpp
+++ b/Source/WebCore/html/HTMLBRElement.cpp
@@ -74,9 +74,9 @@
RenderPtr<RenderElement> HTMLBRElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (style.get().hasContent())
- return RenderElement::createFor(*this, std::move(style));
+ return RenderElement::createFor(*this, WTF::move(style));
- return createRenderer<RenderLineBreak>(*this, std::move(style));
+ return createRenderer<RenderLineBreak>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/html/HTMLBodyElement.cpp b/Source/WebCore/html/HTMLBodyElement.cpp
index c1bcfbc..1a46169 100644
--- a/Source/WebCore/html/HTMLBodyElement.cpp
+++ b/Source/WebCore/html/HTMLBodyElement.cpp
@@ -75,7 +75,7 @@
if (!url.isEmpty()) {
auto imageValue = CSSImageValue::create(document().completeURL(url).string());
imageValue.get().setInitiator(localName());
- style.setProperty(CSSProperty(CSSPropertyBackgroundImage, std::move(imageValue)));
+ style.setProperty(CSSProperty(CSSPropertyBackgroundImage, WTF::move(imageValue)));
}
} else if (name == marginwidthAttr || name == leftmarginAttr) {
addHTMLLengthToStyle(style, CSSPropertyMarginRight, value);
diff --git a/Source/WebCore/html/HTMLButtonElement.cpp b/Source/WebCore/html/HTMLButtonElement.cpp
index b625d7e..947e71e 100644
--- a/Source/WebCore/html/HTMLButtonElement.cpp
+++ b/Source/WebCore/html/HTMLButtonElement.cpp
@@ -59,7 +59,7 @@
RenderPtr<RenderElement> HTMLButtonElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderButton>(*this, std::move(style));
+ return createRenderer<RenderButton>(*this, WTF::move(style));
}
const AtomicString& HTMLButtonElement::formControlType() const
diff --git a/Source/WebCore/html/HTMLCanvasElement.cpp b/Source/WebCore/html/HTMLCanvasElement.cpp
index cb0a427..13e3e93 100644
--- a/Source/WebCore/html/HTMLCanvasElement.cpp
+++ b/Source/WebCore/html/HTMLCanvasElement.cpp
@@ -118,11 +118,11 @@
Frame* frame = document().frame();
if (frame && frame->script().canExecuteScripts(NotAboutToExecuteScript)) {
m_rendererIsCanvas = true;
- return createRenderer<RenderHTMLCanvas>(*this, std::move(style));
+ return createRenderer<RenderHTMLCanvas>(*this, WTF::move(style));
}
m_rendererIsCanvas = false;
- return HTMLElement::createElementRenderer(std::move(style));
+ return HTMLElement::createElementRenderer(WTF::move(style));
}
void HTMLCanvasElement::willAttachRenderers()
diff --git a/Source/WebCore/html/HTMLCollection.cpp b/Source/WebCore/html/HTMLCollection.cpp
index 952a061..ec15167 100644
--- a/Source/WebCore/html/HTMLCollection.cpp
+++ b/Source/WebCore/html/HTMLCollection.cpp
@@ -451,7 +451,7 @@
}
cache->didPopulate();
- setNameItemCache(std::move(cache));
+ setNameItemCache(WTF::move(cache));
}
bool HTMLCollection::hasNamedItem(const AtomicString& name) const
diff --git a/Source/WebCore/html/HTMLCollection.h b/Source/WebCore/html/HTMLCollection.h
index 3d81a38..32bdbed 100644
--- a/Source/WebCore/html/HTMLCollection.h
+++ b/Source/WebCore/html/HTMLCollection.h
@@ -144,7 +144,7 @@
void setNameItemCache(std::unique_ptr<CollectionNamedElementCache> cache) const
{
ASSERT(!m_namedElementCache);
- m_namedElementCache = std::move(cache);
+ m_namedElementCache = WTF::move(cache);
document().collectionCachedIdNameMap(*this);
}
diff --git a/Source/WebCore/html/HTMLDetailsElement.cpp b/Source/WebCore/html/HTMLDetailsElement.cpp
index dbd7755..23d2193 100644
--- a/Source/WebCore/html/HTMLDetailsElement.cpp
+++ b/Source/WebCore/html/HTMLDetailsElement.cpp
@@ -113,7 +113,7 @@
RenderPtr<RenderElement> HTMLDetailsElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderBlockFlow>(*this, std::move(style));
+ return createRenderer<RenderBlockFlow>(*this, WTF::move(style));
}
void HTMLDetailsElement::didAddUserAgentShadowRoot(ShadowRoot* root)
diff --git a/Source/WebCore/html/HTMLElement.cpp b/Source/WebCore/html/HTMLElement.cpp
index ade69dc..f5e52e9 100644
--- a/Source/WebCore/html/HTMLElement.cpp
+++ b/Source/WebCore/html/HTMLElement.cpp
@@ -809,8 +809,8 @@
RenderPtr<RenderElement> HTMLElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (hasTagName(wbrTag))
- return createRenderer<RenderLineBreak>(*this, std::move(style));
- return RenderElement::createFor(*this, std::move(style));
+ return createRenderer<RenderLineBreak>(*this, WTF::move(style));
+ return RenderElement::createFor(*this, WTF::move(style));
}
HTMLFormElement* HTMLElement::virtualForm() const
diff --git a/Source/WebCore/html/HTMLFieldSetElement.cpp b/Source/WebCore/html/HTMLFieldSetElement.cpp
index d94c08e..681e553 100644
--- a/Source/WebCore/html/HTMLFieldSetElement.cpp
+++ b/Source/WebCore/html/HTMLFieldSetElement.cpp
@@ -141,7 +141,7 @@
RenderPtr<RenderElement> HTMLFieldSetElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderFieldset>(*this, std::move(style));
+ return createRenderer<RenderFieldset>(*this, WTF::move(style));
}
HTMLLegendElement* HTMLFieldSetElement::legend() const
diff --git a/Source/WebCore/html/HTMLFormControlsCollection.cpp b/Source/WebCore/html/HTMLFormControlsCollection.cpp
index e2c6bef..77ad742 100644
--- a/Source/WebCore/html/HTMLFormControlsCollection.cpp
+++ b/Source/WebCore/html/HTMLFormControlsCollection.cpp
@@ -175,7 +175,7 @@
}
cache->didPopulate();
- setNameItemCache(std::move(cache));
+ setNameItemCache(WTF::move(cache));
}
void HTMLFormControlsCollection::invalidateCache(Document& document) const
diff --git a/Source/WebCore/html/HTMLFrameElement.cpp b/Source/WebCore/html/HTMLFrameElement.cpp
index c961d2f..97babfb 100644
--- a/Source/WebCore/html/HTMLFrameElement.cpp
+++ b/Source/WebCore/html/HTMLFrameElement.cpp
@@ -56,7 +56,7 @@
RenderPtr<RenderElement> HTMLFrameElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderFrame>(*this, std::move(style));
+ return createRenderer<RenderFrame>(*this, WTF::move(style));
}
bool HTMLFrameElement::noResize() const
diff --git a/Source/WebCore/html/HTMLFrameSetElement.cpp b/Source/WebCore/html/HTMLFrameSetElement.cpp
index 667bf76..4d07bfc 100644
--- a/Source/WebCore/html/HTMLFrameSetElement.cpp
+++ b/Source/WebCore/html/HTMLFrameSetElement.cpp
@@ -158,9 +158,9 @@
RenderPtr<RenderElement> HTMLFrameSetElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (style.get().hasContent())
- return RenderElement::createFor(*this, std::move(style));
+ return RenderElement::createFor(*this, WTF::move(style));
- return createRenderer<RenderFrameSet>(*this, std::move(style));
+ return createRenderer<RenderFrameSet>(*this, WTF::move(style));
}
HTMLFrameSetElement* HTMLFrameSetElement::findContaining(Element* descendant)
diff --git a/Source/WebCore/html/HTMLIFrameElement.cpp b/Source/WebCore/html/HTMLIFrameElement.cpp
index d3eba40..35a56f3 100644
--- a/Source/WebCore/html/HTMLIFrameElement.cpp
+++ b/Source/WebCore/html/HTMLIFrameElement.cpp
@@ -92,7 +92,7 @@
RenderPtr<RenderElement> HTMLIFrameElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderIFrame>(*this, std::move(style));
+ return createRenderer<RenderIFrame>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/html/HTMLImageElement.cpp b/Source/WebCore/html/HTMLImageElement.cpp
index f54b717..60d04e4 100644
--- a/Source/WebCore/html/HTMLImageElement.cpp
+++ b/Source/WebCore/html/HTMLImageElement.cpp
@@ -211,9 +211,9 @@
RenderPtr<RenderElement> HTMLImageElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (style.get().hasContent())
- return RenderElement::createFor(*this, std::move(style));
+ return RenderElement::createFor(*this, WTF::move(style));
- return createRenderer<RenderImage>(*this, std::move(style), nullptr, m_imageDevicePixelRatio);
+ return createRenderer<RenderImage>(*this, WTF::move(style), nullptr, m_imageDevicePixelRatio);
}
bool HTMLImageElement::canStartSelection() const
diff --git a/Source/WebCore/html/HTMLInputElement.cpp b/Source/WebCore/html/HTMLInputElement.cpp
index a5629d6..d7ab109 100644
--- a/Source/WebCore/html/HTMLInputElement.cpp
+++ b/Source/WebCore/html/HTMLInputElement.cpp
@@ -467,7 +467,7 @@
m_inputType->destroyShadowSubtree();
- m_inputType = std::move(newType);
+ m_inputType = WTF::move(newType);
m_inputType->createShadowSubtree();
updateInnerTextElementEditability();
@@ -759,7 +759,7 @@
RenderPtr<RenderElement> HTMLInputElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return m_inputType->createInputRenderer(std::move(style));
+ return m_inputType->createInputRenderer(WTF::move(style));
}
void HTMLInputElement::willAttachRenderers()
diff --git a/Source/WebCore/html/HTMLMediaElement.cpp b/Source/WebCore/html/HTMLMediaElement.cpp
index 7387c00..7b29991 100644
--- a/Source/WebCore/html/HTMLMediaElement.cpp
+++ b/Source/WebCore/html/HTMLMediaElement.cpp
@@ -652,7 +652,7 @@
RenderPtr<RenderElement> HTMLMediaElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderMedia>(*this, std::move(style));
+ return createRenderer<RenderMedia>(*this, WTF::move(style));
}
bool HTMLMediaElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/html/HTMLMeterElement.cpp b/Source/WebCore/html/HTMLMeterElement.cpp
index fb9c1f7..f2aac1c 100644
--- a/Source/WebCore/html/HTMLMeterElement.cpp
+++ b/Source/WebCore/html/HTMLMeterElement.cpp
@@ -60,9 +60,9 @@
RenderPtr<RenderElement> HTMLMeterElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (!document().page()->theme().supportsMeter(style.get().appearance()))
- return RenderElement::createFor(*this, std::move(style));
+ return RenderElement::createFor(*this, WTF::move(style));
- return createRenderer<RenderMeter>(*this, std::move(style));
+ return createRenderer<RenderMeter>(*this, WTF::move(style));
}
bool HTMLMeterElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/html/HTMLPlugInElement.cpp b/Source/WebCore/html/HTMLPlugInElement.cpp
index c10de9d..4fd9d57 100644
--- a/Source/WebCore/html/HTMLPlugInElement.cpp
+++ b/Source/WebCore/html/HTMLPlugInElement.cpp
@@ -278,9 +278,9 @@
RenderPtr<RenderElement> HTMLPlugInElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (m_pluginReplacement && m_pluginReplacement->willCreateRenderer())
- return m_pluginReplacement->createElementRenderer(*this, std::move(style));
+ return m_pluginReplacement->createElementRenderer(*this, WTF::move(style));
- return createRenderer<RenderEmbeddedObject>(*this, std::move(style));
+ return createRenderer<RenderEmbeddedObject>(*this, WTF::move(style));
}
void HTMLPlugInElement::swapRendererTimerFired(Timer<HTMLPlugInElement>&)
diff --git a/Source/WebCore/html/HTMLPlugInImageElement.cpp b/Source/WebCore/html/HTMLPlugInImageElement.cpp
index d368186..e631ae2 100644
--- a/Source/WebCore/html/HTMLPlugInImageElement.cpp
+++ b/Source/WebCore/html/HTMLPlugInImageElement.cpp
@@ -196,7 +196,7 @@
ASSERT(!document().inPageCache());
if (displayState() >= PreparingPluginReplacement)
- return HTMLPlugInElement::createElementRenderer(std::move(style));
+ return HTMLPlugInElement::createElementRenderer(WTF::move(style));
// Once a PlugIn Element creates its renderer, it needs to be told when the Document goes
// inactive or reactivates so it can clear the renderer before going into the page cache.
@@ -206,21 +206,21 @@
}
if (displayState() == DisplayingSnapshot) {
- auto renderSnapshottedPlugIn = createRenderer<RenderSnapshottedPlugIn>(*this, std::move(style));
+ auto renderSnapshottedPlugIn = createRenderer<RenderSnapshottedPlugIn>(*this, WTF::move(style));
renderSnapshottedPlugIn->updateSnapshot(m_snapshotImage);
- return std::move(renderSnapshottedPlugIn);
+ return WTF::move(renderSnapshottedPlugIn);
}
// Fallback content breaks the DOM->Renderer class relationship of this
// class and all superclasses because createObject won't necessarily
// return a RenderEmbeddedObject or RenderWidget.
if (useFallbackContent())
- return RenderElement::createFor(*this, std::move(style));
+ return RenderElement::createFor(*this, WTF::move(style));
if (isImageType())
- return createRenderer<RenderImage>(*this, std::move(style));
+ return createRenderer<RenderImage>(*this, WTF::move(style));
- return HTMLPlugInElement::createElementRenderer(std::move(style));
+ return HTMLPlugInElement::createElementRenderer(WTF::move(style));
}
bool HTMLPlugInImageElement::willRecalcStyle(Style::Change)
diff --git a/Source/WebCore/html/HTMLProgressElement.cpp b/Source/WebCore/html/HTMLProgressElement.cpp
index 1185da7..b547579 100644
--- a/Source/WebCore/html/HTMLProgressElement.cpp
+++ b/Source/WebCore/html/HTMLProgressElement.cpp
@@ -60,9 +60,9 @@
RenderPtr<RenderElement> HTMLProgressElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (!style.get().hasAppearance())
- return RenderElement::createFor(*this, std::move(style));
+ return RenderElement::createFor(*this, WTF::move(style));
- return createRenderer<RenderProgress>(*this, std::move(style));
+ return createRenderer<RenderProgress>(*this, WTF::move(style));
}
bool HTMLProgressElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/html/HTMLSelectElement.cpp b/Source/WebCore/html/HTMLSelectElement.cpp
index 0bb25c5..867dd26 100644
--- a/Source/WebCore/html/HTMLSelectElement.cpp
+++ b/Source/WebCore/html/HTMLSelectElement.cpp
@@ -350,10 +350,10 @@
{
#if !PLATFORM(IOS)
if (usesMenuList())
- return createRenderer<RenderMenuList>(*this, std::move(style));
- return createRenderer<RenderListBox>(*this, std::move(style));
+ return createRenderer<RenderMenuList>(*this, WTF::move(style));
+ return createRenderer<RenderListBox>(*this, WTF::move(style));
#else
- return createRenderer<RenderMenuList>(*this, std::move(style));
+ return createRenderer<RenderMenuList>(*this, WTF::move(style));
#endif
}
diff --git a/Source/WebCore/html/HTMLSummaryElement.cpp b/Source/WebCore/html/HTMLSummaryElement.cpp
index d4c9e0b..f65cb00 100644
--- a/Source/WebCore/html/HTMLSummaryElement.cpp
+++ b/Source/WebCore/html/HTMLSummaryElement.cpp
@@ -66,7 +66,7 @@
RenderPtr<RenderElement> HTMLSummaryElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderBlockFlow>(*this, std::move(style));
+ return createRenderer<RenderBlockFlow>(*this, WTF::move(style));
}
bool HTMLSummaryElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/html/HTMLTextAreaElement.cpp b/Source/WebCore/html/HTMLTextAreaElement.cpp
index 01eda16..f46b9cd 100644
--- a/Source/WebCore/html/HTMLTextAreaElement.cpp
+++ b/Source/WebCore/html/HTMLTextAreaElement.cpp
@@ -212,7 +212,7 @@
RenderPtr<RenderElement> HTMLTextAreaElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderTextControlMultiLine>(*this, std::move(style));
+ return createRenderer<RenderTextControlMultiLine>(*this, WTF::move(style));
}
bool HTMLTextAreaElement::appendFormData(FormDataList& encoding, bool)
diff --git a/Source/WebCore/html/HTMLVideoElement.cpp b/Source/WebCore/html/HTMLVideoElement.cpp
index f5e4002..b8b9ee9 100644
--- a/Source/WebCore/html/HTMLVideoElement.cpp
+++ b/Source/WebCore/html/HTMLVideoElement.cpp
@@ -69,7 +69,7 @@
RenderPtr<RenderElement> HTMLVideoElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderVideo>(*this, std::move(style));
+ return createRenderer<RenderVideo>(*this, WTF::move(style));
}
void HTMLVideoElement::didAttachRenderers()
diff --git a/Source/WebCore/html/ImageInputType.cpp b/Source/WebCore/html/ImageInputType.cpp
index 01bd45a..d0e25be 100644
--- a/Source/WebCore/html/ImageInputType.cpp
+++ b/Source/WebCore/html/ImageInputType.cpp
@@ -103,7 +103,7 @@
RenderPtr<RenderElement> ImageInputType::createInputRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderImage>(element(), std::move(style));
+ return createRenderer<RenderImage>(element(), WTF::move(style));
}
void ImageInputType::altAttributeChanged()
diff --git a/Source/WebCore/html/InputType.cpp b/Source/WebCore/html/InputType.cpp
index b6e376e..f56c57c 100644
--- a/Source/WebCore/html/InputType.cpp
+++ b/Source/WebCore/html/InputType.cpp
@@ -481,7 +481,7 @@
RenderPtr<RenderElement> InputType::createInputRenderer(PassRef<RenderStyle> style)
{
- return RenderPtr<RenderElement>(RenderElement::createFor(element(), std::move(style)));
+ return RenderPtr<RenderElement>(RenderElement::createFor(element(), WTF::move(style)));
}
void InputType::blur()
diff --git a/Source/WebCore/html/RangeInputType.cpp b/Source/WebCore/html/RangeInputType.cpp
index d4a29bd..78d9e85 100644
--- a/Source/WebCore/html/RangeInputType.cpp
+++ b/Source/WebCore/html/RangeInputType.cpp
@@ -286,7 +286,7 @@
RenderPtr<RenderElement> RangeInputType::createInputRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSlider>(element(), std::move(style));
+ return createRenderer<RenderSlider>(element(), WTF::move(style));
}
Decimal RangeInputType::parseToNumber(const String& src, const Decimal& defaultValue) const
diff --git a/Source/WebCore/html/SearchInputType.cpp b/Source/WebCore/html/SearchInputType.cpp
index 7d46802..e3e3bd9 100644
--- a/Source/WebCore/html/SearchInputType.cpp
+++ b/Source/WebCore/html/SearchInputType.cpp
@@ -61,7 +61,7 @@
RenderPtr<RenderElement> SearchInputType::createInputRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSearchField>(element(), std::move(style));
+ return createRenderer<RenderSearchField>(element(), WTF::move(style));
}
const AtomicString& SearchInputType::formControlType() const
diff --git a/Source/WebCore/html/TextFieldInputType.cpp b/Source/WebCore/html/TextFieldInputType.cpp
index 0b88d03..b1d9c75 100644
--- a/Source/WebCore/html/TextFieldInputType.cpp
+++ b/Source/WebCore/html/TextFieldInputType.cpp
@@ -216,7 +216,7 @@
RenderPtr<RenderElement> TextFieldInputType::createInputRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderTextControlSingleLine>(element(), std::move(style));
+ return createRenderer<RenderTextControlSingleLine>(element(), WTF::move(style));
}
bool TextFieldInputType::needsContainer() const
diff --git a/Source/WebCore/html/canvas/WebGLRenderingContext.cpp b/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
index 41d465e..9345e18 100644
--- a/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
+++ b/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
@@ -6047,7 +6047,7 @@
if (!temp)
return nullptr;
i = std::min(m_capacity - 1, i);
- m_buffers[i] = std::move(temp);
+ m_buffers[i] = WTF::move(temp);
ImageBuffer* buf = m_buffers[i].get();
bubbleToFront(i);
diff --git a/Source/WebCore/html/parser/HTMLConstructionSite.cpp b/Source/WebCore/html/parser/HTMLConstructionSite.cpp
index cba6a5f..fe204ec 100644
--- a/Source/WebCore/html/parser/HTMLConstructionSite.cpp
+++ b/Source/WebCore/html/parser/HTMLConstructionSite.cpp
@@ -187,7 +187,7 @@
// Copy the task queue into a local variable in case executeTask
// re-enters the parser.
- TaskQueue queue = std::move(m_taskQueue);
+ TaskQueue queue = WTF::move(m_taskQueue);
for (size_t i = 0; i < size; ++i)
executeTask(queue[i]);
diff --git a/Source/WebCore/html/parser/HTMLElementStack.cpp b/Source/WebCore/html/parser/HTMLElementStack.cpp
index 2aaf6db..e581841 100644
--- a/Source/WebCore/html/parser/HTMLElementStack.cpp
+++ b/Source/WebCore/html/parser/HTMLElementStack.cpp
@@ -127,7 +127,7 @@
HTMLElementStack::ElementRecord::ElementRecord(PassRefPtr<HTMLStackItem> item, std::unique_ptr<ElementRecord> next)
: m_item(item)
- , m_next(std::move(next))
+ , m_next(WTF::move(next))
{
ASSERT(m_item);
}
@@ -567,7 +567,7 @@
ASSERT(m_rootNode);
m_stackDepth++;
- m_top = std::make_unique<ElementRecord>(item, std::move(m_top));
+ m_top = std::make_unique<ElementRecord>(item, WTF::move(m_top));
}
void HTMLElementStack::popCommon()
diff --git a/Source/WebCore/html/parser/HTMLElementStack.h b/Source/WebCore/html/parser/HTMLElementStack.h
index a2c4f54..377d114 100644
--- a/Source/WebCore/html/parser/HTMLElementStack.h
+++ b/Source/WebCore/html/parser/HTMLElementStack.h
@@ -65,8 +65,8 @@
private:
friend class HTMLElementStack;
- std::unique_ptr<ElementRecord> releaseNext() { return std::move(m_next); }
- void setNext(std::unique_ptr<ElementRecord> next) { m_next = std::move(next); }
+ std::unique_ptr<ElementRecord> releaseNext() { return WTF::move(m_next); }
+ void setNext(std::unique_ptr<ElementRecord> next) { m_next = WTF::move(next); }
RefPtr<HTMLStackItem> m_item;
std::unique_ptr<ElementRecord> m_next;
diff --git a/Source/WebCore/html/parser/HTMLPreloadScanner.cpp b/Source/WebCore/html/parser/HTMLPreloadScanner.cpp
index 01b338f..566ea62 100644
--- a/Source/WebCore/html/parser/HTMLPreloadScanner.cpp
+++ b/Source/WebCore/html/parser/HTMLPreloadScanner.cpp
@@ -340,7 +340,7 @@
#endif
);
if (auto request = scanner.createPreloadRequest(m_predictedBaseElementURL))
- requests.append(std::move(request));
+ requests.append(WTF::move(request));
return;
}
@@ -397,7 +397,7 @@
m_token.clear();
}
- preloader->preload(std::move(requests));
+ preloader->preload(WTF::move(requests));
}
}
diff --git a/Source/WebCore/html/parser/HTMLResourcePreloader.cpp b/Source/WebCore/html/parser/HTMLResourcePreloader.cpp
index cfd2342..16ea761 100644
--- a/Source/WebCore/html/parser/HTMLResourcePreloader.cpp
+++ b/Source/WebCore/html/parser/HTMLResourcePreloader.cpp
@@ -64,7 +64,7 @@
void HTMLResourcePreloader::preload(PreloadRequestStream requests)
{
for (auto& request : requests)
- preload(std::move(request));
+ preload(WTF::move(request));
}
static bool mediaAttributeMatches(Frame* frame, RenderStyle* renderStyle, const String& attributeValue)
diff --git a/Source/WebCore/html/parser/HTMLToken.h b/Source/WebCore/html/parser/HTMLToken.h
index 5b3c938..421af22 100644
--- a/Source/WebCore/html/parser/HTMLToken.h
+++ b/Source/WebCore/html/parser/HTMLToken.h
@@ -227,7 +227,7 @@
std::unique_ptr<DoctypeData> releaseDoctypeData()
{
- return std::move(m_doctypeData);
+ return WTF::move(m_doctypeData);
}
/* Start/End Tag Tokens */
diff --git a/Source/WebCore/html/shadow/DetailsMarkerControl.cpp b/Source/WebCore/html/shadow/DetailsMarkerControl.cpp
index c75cf9db..644faae 100644
--- a/Source/WebCore/html/shadow/DetailsMarkerControl.cpp
+++ b/Source/WebCore/html/shadow/DetailsMarkerControl.cpp
@@ -47,7 +47,7 @@
RenderPtr<RenderElement> DetailsMarkerControl::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderDetailsMarker>(*this, std::move(style));
+ return createRenderer<RenderDetailsMarker>(*this, WTF::move(style));
}
bool DetailsMarkerControl::rendererIsNeeded(const RenderStyle& style)
diff --git a/Source/WebCore/html/shadow/MediaControlElements.cpp b/Source/WebCore/html/shadow/MediaControlElements.cpp
index 533959a..b813c4e 100644
--- a/Source/WebCore/html/shadow/MediaControlElements.cpp
+++ b/Source/WebCore/html/shadow/MediaControlElements.cpp
@@ -337,7 +337,7 @@
RenderPtr<RenderElement> MediaControlTimelineContainerElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderMediaControlTimelineContainer>(*this, std::move(style));
+ return createRenderer<RenderMediaControlTimelineContainer>(*this, WTF::move(style));
}
// ----------------------------
@@ -357,7 +357,7 @@
RenderPtr<RenderElement> MediaControlVolumeSliderContainerElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderMediaVolumeSliderContainer>(*this, std::move(style));
+ return createRenderer<RenderMediaVolumeSliderContainer>(*this, WTF::move(style));
}
void MediaControlVolumeSliderContainerElement::defaultEventHandler(Event* event)
@@ -1241,7 +1241,7 @@
RenderPtr<RenderElement> MediaControlTextTrackContainerElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderTextTrackContainerElement>(*this, std::move(style));
+ return createRenderer<RenderTextTrackContainerElement>(*this, WTF::move(style));
}
const AtomicString& MediaControlTextTrackContainerElement::textTrackContainerElementShadowPseudoId()
diff --git a/Source/WebCore/html/shadow/MeterShadowElement.cpp b/Source/WebCore/html/shadow/MeterShadowElement.cpp
index 09663c9..a576334 100644
--- a/Source/WebCore/html/shadow/MeterShadowElement.cpp
+++ b/Source/WebCore/html/shadow/MeterShadowElement.cpp
@@ -75,7 +75,7 @@
RenderPtr<RenderElement> MeterInnerElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderMeter>(*this, std::move(style));
+ return createRenderer<RenderMeter>(*this, WTF::move(style));
}
const AtomicString& MeterValueElement::valuePseudoId() const
diff --git a/Source/WebCore/html/shadow/ProgressShadowElement.cpp b/Source/WebCore/html/shadow/ProgressShadowElement.cpp
index 4caf241..dcd228b 100644
--- a/Source/WebCore/html/shadow/ProgressShadowElement.cpp
+++ b/Source/WebCore/html/shadow/ProgressShadowElement.cpp
@@ -62,7 +62,7 @@
RenderPtr<RenderElement> ProgressInnerElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderProgress>(*this, std::move(style));
+ return createRenderer<RenderProgress>(*this, WTF::move(style));
}
bool ProgressInnerElement::rendererIsNeeded(const RenderStyle& style)
diff --git a/Source/WebCore/html/shadow/SliderThumbElement.cpp b/Source/WebCore/html/shadow/SliderThumbElement.cpp
index 7c60dbf..b992b2c 100644
--- a/Source/WebCore/html/shadow/SliderThumbElement.cpp
+++ b/Source/WebCore/html/shadow/SliderThumbElement.cpp
@@ -78,7 +78,7 @@
// --------------------------------
RenderSliderThumb::RenderSliderThumb(SliderThumbElement& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
@@ -112,7 +112,7 @@
class RenderSliderContainer : public RenderFlexibleBox {
public:
RenderSliderContainer(SliderContainerElement& element, PassRef<RenderStyle> style)
- : RenderFlexibleBox(element, std::move(style))
+ : RenderFlexibleBox(element, WTF::move(style))
{
}
@@ -216,7 +216,7 @@
RenderPtr<RenderElement> SliderThumbElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSliderThumb>(*this, std::move(style));
+ return createRenderer<RenderSliderThumb>(*this, WTF::move(style));
}
bool SliderThumbElement::isDisabledFormControl() const
@@ -617,7 +617,7 @@
RenderPtr<RenderElement> SliderContainerElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSliderContainer>(*this, std::move(style));
+ return createRenderer<RenderSliderContainer>(*this, WTF::move(style));
}
const AtomicString& SliderContainerElement::shadowPseudoId() const
diff --git a/Source/WebCore/html/shadow/TextControlInnerElements.cpp b/Source/WebCore/html/shadow/TextControlInnerElements.cpp
index 2399505..401032a 100644
--- a/Source/WebCore/html/shadow/TextControlInnerElements.cpp
+++ b/Source/WebCore/html/shadow/TextControlInnerElements.cpp
@@ -60,7 +60,7 @@
RenderPtr<RenderElement> TextControlInnerContainer::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderTextControlInnerContainer>(*this, std::move(style));
+ return createRenderer<RenderTextControlInnerContainer>(*this, WTF::move(style));
}
TextControlInnerElement::TextControlInnerElement(Document& document)
@@ -114,7 +114,7 @@
RenderPtr<RenderElement> TextControlInnerTextElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderTextControlInnerBlock>(*this, std::move(style));
+ return createRenderer<RenderTextControlInnerBlock>(*this, WTF::move(style));
}
RenderTextControlInnerBlock* TextControlInnerTextElement::renderer() const
diff --git a/Source/WebCore/html/shadow/mac/ImageControlsButtonElementMac.cpp b/Source/WebCore/html/shadow/mac/ImageControlsButtonElementMac.cpp
index ca854e2..a35a769 100644
--- a/Source/WebCore/html/shadow/mac/ImageControlsButtonElementMac.cpp
+++ b/Source/WebCore/html/shadow/mac/ImageControlsButtonElementMac.cpp
@@ -56,7 +56,7 @@
};
RenderImageControlsButton::RenderImageControlsButton(HTMLElement& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
@@ -127,7 +127,7 @@
RenderPtr<RenderElement> ImageControlsButtonElementMac::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderImageControlsButton>(*this, std::move(style));
+ return createRenderer<RenderImageControlsButton>(*this, WTF::move(style));
}
} // namespace WebCore
diff --git a/Source/WebCore/html/shadow/mac/ImageControlsRootElementMac.cpp b/Source/WebCore/html/shadow/mac/ImageControlsRootElementMac.cpp
index c84e370..10bf1ab 100644
--- a/Source/WebCore/html/shadow/mac/ImageControlsRootElementMac.cpp
+++ b/Source/WebCore/html/shadow/mac/ImageControlsRootElementMac.cpp
@@ -50,7 +50,7 @@
};
RenderImageControls::RenderImageControls(HTMLElement& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
@@ -104,7 +104,7 @@
RenderPtr<RenderElement> ImageControlsRootElementMac::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderImageControls>(*this, std::move(style));
+ return createRenderer<RenderImageControls>(*this, WTF::move(style));
}
} // namespace WebCore
diff --git a/Source/WebCore/html/track/VTTCue.cpp b/Source/WebCore/html/track/VTTCue.cpp
index bb133c5..869ed83 100644
--- a/Source/WebCore/html/track/VTTCue.cpp
+++ b/Source/WebCore/html/track/VTTCue.cpp
@@ -211,7 +211,7 @@
RenderPtr<RenderElement> VTTCueBox::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderVTTCue>(*this, std::move(style));
+ return createRenderer<RenderVTTCue>(*this, WTF::move(style));
}
// ----------------------------
diff --git a/Source/WebCore/inspector/CommandLineAPIHost.cpp b/Source/WebCore/inspector/CommandLineAPIHost.cpp
index 0291069..57b921a 100644
--- a/Source/WebCore/inspector/CommandLineAPIHost.cpp
+++ b/Source/WebCore/inspector/CommandLineAPIHost.cpp
@@ -126,7 +126,7 @@
void CommandLineAPIHost::addInspectedObject(std::unique_ptr<CommandLineAPIHost::InspectableObject> object)
{
- m_inspectedObjects.insert(0, std::move(object));
+ m_inspectedObjects.insert(0, WTF::move(object));
while (m_inspectedObjects.size() > 5)
m_inspectedObjects.removeLast();
}
diff --git a/Source/WebCore/inspector/DOMEditor.cpp b/Source/WebCore/inspector/DOMEditor.cpp
index b912d14..24e3bbb 100644
--- a/Source/WebCore/inspector/DOMEditor.cpp
+++ b/Source/WebCore/inspector/DOMEditor.cpp
@@ -374,7 +374,7 @@
{
auto action = std::make_unique<SetOuterHTMLAction>(node, html);
SetOuterHTMLAction* rawAction = action.get();
- bool result = m_history->perform(std::move(action), ec);
+ bool result = m_history->perform(WTF::move(action), ec);
if (result)
*newNode = rawAction->newNode();
return result;
diff --git a/Source/WebCore/inspector/DOMPatchSupport.cpp b/Source/WebCore/inspector/DOMPatchSupport.cpp
index f6a38c5..3f2fa9a 100644
--- a/Source/WebCore/inspector/DOMPatchSupport.cpp
+++ b/Source/WebCore/inspector/DOMPatchSupport.cpp
@@ -423,7 +423,7 @@
std::unique_ptr<Digest> childInfo = createDigest(child, unusedNodesMap);
addStringToSHA1(sha1, childInfo->m_sha1);
child = child->nextSibling();
- digest->m_children.append(std::move(childInfo));
+ digest->m_children.append(WTF::move(childInfo));
}
Element* element = toElement(node);
diff --git a/Source/WebCore/inspector/InspectorCSSAgent.cpp b/Source/WebCore/inspector/InspectorCSSAgent.cpp
index 06e54fb..305a9954 100644
--- a/Source/WebCore/inspector/InspectorCSSAgent.cpp
+++ b/Source/WebCore/inspector/InspectorCSSAgent.cpp
@@ -799,7 +799,7 @@
ExceptionCode ec = 0;
auto action = std::make_unique<AddRuleAction>(inspectorStyleSheet, selector);
AddRuleAction* rawAction = action.get();
- bool success = m_domAgent->history()->perform(std::move(action), ec);
+ bool success = m_domAgent->history()->perform(WTF::move(action), ec);
if (!success) {
*errorString = InspectorDOMAgent::toErrorString(ec);
return;
diff --git a/Source/WebCore/inspector/InspectorController.cpp b/Source/WebCore/inspector/InspectorController.cpp
index 8d1502f..c64f31e 100644
--- a/Source/WebCore/inspector/InspectorController.cpp
+++ b/Source/WebCore/inspector/InspectorController.cpp
@@ -97,28 +97,28 @@
auto inspectorAgentPtr = std::make_unique<InspectorAgent>();
m_inspectorAgent = inspectorAgentPtr.get();
m_instrumentingAgents->setInspectorAgent(m_inspectorAgent);
- m_agents.append(std::move(inspectorAgentPtr));
+ m_agents.append(WTF::move(inspectorAgentPtr));
auto pageAgentPtr = std::make_unique<InspectorPageAgent>(m_instrumentingAgents.get(), &page, inspectorClient, m_overlay.get());
InspectorPageAgent* pageAgent = pageAgentPtr.get();
m_pageAgent = pageAgentPtr.get();
- m_agents.append(std::move(pageAgentPtr));
+ m_agents.append(WTF::move(pageAgentPtr));
auto runtimeAgentPtr = std::make_unique<PageRuntimeAgent>(m_injectedScriptManager.get(), &page, pageAgent);
PageRuntimeAgent* runtimeAgent = runtimeAgentPtr.get();
m_instrumentingAgents->setPageRuntimeAgent(runtimeAgent);
- m_agents.append(std::move(runtimeAgentPtr));
+ m_agents.append(WTF::move(runtimeAgentPtr));
auto domAgentPtr = std::make_unique<InspectorDOMAgent>(m_instrumentingAgents.get(), pageAgent, m_injectedScriptManager.get(), m_overlay.get());
m_domAgent = domAgentPtr.get();
- m_agents.append(std::move(domAgentPtr));
+ m_agents.append(WTF::move(domAgentPtr));
m_agents.append(std::make_unique<InspectorCSSAgent>(m_instrumentingAgents.get(), m_domAgent));
#if ENABLE(SQL_DATABASE)
auto databaseAgentPtr = std::make_unique<InspectorDatabaseAgent>(m_instrumentingAgents.get());
InspectorDatabaseAgent* databaseAgent = databaseAgentPtr.get();
- m_agents.append(std::move(databaseAgentPtr));
+ m_agents.append(WTF::move(databaseAgentPtr));
#endif
#if ENABLE(INDEXED_DATABASE)
@@ -131,32 +131,32 @@
auto domStorageAgentPtr = std::make_unique<InspectorDOMStorageAgent>(m_instrumentingAgents.get(), m_pageAgent);
InspectorDOMStorageAgent* domStorageAgent = domStorageAgentPtr.get();
- m_agents.append(std::move(domStorageAgentPtr));
+ m_agents.append(WTF::move(domStorageAgentPtr));
auto timelineAgentPtr = std::make_unique<InspectorTimelineAgent>(m_instrumentingAgents.get(), pageAgent, InspectorTimelineAgent::PageInspector, inspectorClient);
InspectorTimelineAgent* timelineAgent = timelineAgentPtr.get();
- m_agents.append(std::move(timelineAgentPtr));
+ m_agents.append(WTF::move(timelineAgentPtr));
auto resourceAgentPtr = std::make_unique<InspectorResourceAgent>(m_instrumentingAgents.get(), pageAgent, inspectorClient);
m_resourceAgent = resourceAgentPtr.get();
- m_agents.append(std::move(resourceAgentPtr));
+ m_agents.append(WTF::move(resourceAgentPtr));
auto consoleAgentPtr = std::make_unique<PageConsoleAgent>(m_injectedScriptManager.get(), m_domAgent);
WebConsoleAgent* consoleAgent = consoleAgentPtr.get();
m_instrumentingAgents->setWebConsoleAgent(consoleAgentPtr.get());
- m_agents.append(std::move(consoleAgentPtr));
+ m_agents.append(WTF::move(consoleAgentPtr));
auto debuggerAgentPtr = std::make_unique<PageDebuggerAgent>(m_injectedScriptManager.get(), m_instrumentingAgents.get(), pageAgent, m_overlay.get());
m_debuggerAgent = debuggerAgentPtr.get();
- m_agents.append(std::move(debuggerAgentPtr));
+ m_agents.append(WTF::move(debuggerAgentPtr));
auto domDebuggerAgentPtr = std::make_unique<InspectorDOMDebuggerAgent>(m_instrumentingAgents.get(), m_domAgent, m_debuggerAgent);
m_domDebuggerAgent = domDebuggerAgentPtr.get();
- m_agents.append(std::move(domDebuggerAgentPtr));
+ m_agents.append(WTF::move(domDebuggerAgentPtr));
auto profilerAgentPtr = std::make_unique<PageProfilerAgent>(m_instrumentingAgents.get(), &page);
m_profilerAgent = profilerAgentPtr.get();
- m_agents.append(std::move(profilerAgentPtr));
+ m_agents.append(WTF::move(profilerAgentPtr));
m_agents.append(std::make_unique<InspectorApplicationCacheAgent>(m_instrumentingAgents.get(), pageAgent));
m_agents.append(std::make_unique<InspectorWorkerAgent>(m_instrumentingAgents.get()));
@@ -196,7 +196,7 @@
void InspectorController::setInspectorFrontendClient(std::unique_ptr<InspectorFrontendClient> inspectorFrontendClient)
{
- m_inspectorFrontendClient = std::move(inspectorFrontendClient);
+ m_inspectorFrontendClient = WTF::move(inspectorFrontendClient);
}
bool InspectorController::hasLocalFrontend() const
diff --git a/Source/WebCore/inspector/InspectorDOMAgent.cpp b/Source/WebCore/inspector/InspectorDOMAgent.cpp
index 8ff1a74..7d3fa77 100644
--- a/Source/WebCore/inspector/InspectorDOMAgent.cpp
+++ b/Source/WebCore/inspector/InspectorDOMAgent.cpp
@@ -1062,7 +1062,7 @@
void InspectorDOMAgent::highlightRect(ErrorString*, int x, int y, int width, int height, const RefPtr<InspectorObject>* color, const RefPtr<InspectorObject>* outlineColor, const bool* usePageCoordinates)
{
auto quad = std::make_unique<FloatQuad>(FloatRect(x, y, width, height));
- innerHighlightQuad(std::move(quad), color, outlineColor, usePageCoordinates);
+ innerHighlightQuad(WTF::move(quad), color, outlineColor, usePageCoordinates);
}
void InspectorDOMAgent::highlightQuad(ErrorString* errorString, const RefPtr<InspectorArray>& quadArray, const RefPtr<InspectorObject>* color, const RefPtr<InspectorObject>* outlineColor, const bool* usePageCoordinates)
@@ -1072,7 +1072,7 @@
*errorString = "Invalid Quad format";
return;
}
- innerHighlightQuad(std::move(quad), color, outlineColor, usePageCoordinates);
+ innerHighlightQuad(WTF::move(quad), color, outlineColor, usePageCoordinates);
}
void InspectorDOMAgent::innerHighlightQuad(std::unique_ptr<FloatQuad> quad, const RefPtr<InspectorObject>* color, const RefPtr<InspectorObject>* outlineColor, const bool* usePageCoordinates)
@@ -1081,7 +1081,7 @@
highlightConfig->content = parseColor(color);
highlightConfig->contentOutline = parseColor(outlineColor);
highlightConfig->usePageCoordinates = usePageCoordinates ? *usePageCoordinates : false;
- m_overlay->highlightQuad(std::move(quad), *highlightConfig);
+ m_overlay->highlightQuad(WTF::move(quad), *highlightConfig);
}
void InspectorDOMAgent::highlightNode(ErrorString* errorString, const RefPtr<InspectorObject>& highlightInspectorObject, const int* nodeId, const String* objectId)
diff --git a/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp b/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp
index 48a2617..5b89d8d57 100644
--- a/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp
+++ b/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp
@@ -119,7 +119,7 @@
InspectorFrontendClientLocal::InspectorFrontendClientLocal(InspectorController* inspectorController, Page* frontendPage, std::unique_ptr<Settings> settings)
: m_inspectorController(inspectorController)
, m_frontendPage(frontendPage)
- , m_settings(std::move(settings))
+ , m_settings(WTF::move(settings))
, m_frontendLoaded(false)
, m_dockSide(UNDOCKED)
{
diff --git a/Source/WebCore/inspector/InspectorHistory.cpp b/Source/WebCore/inspector/InspectorHistory.cpp
index 873a8f9..e38d892 100644
--- a/Source/WebCore/inspector/InspectorHistory.cpp
+++ b/Source/WebCore/inspector/InspectorHistory.cpp
@@ -93,10 +93,10 @@
return false;
if (!action->mergeId().isEmpty() && m_afterLastActionIndex > 0 && action->mergeId() == m_history[m_afterLastActionIndex - 1]->mergeId())
- m_history[m_afterLastActionIndex - 1]->merge(std::move(action));
+ m_history[m_afterLastActionIndex - 1]->merge(WTF::move(action));
else {
m_history.resize(m_afterLastActionIndex);
- m_history.append(std::move(action));
+ m_history.append(WTF::move(action));
++m_afterLastActionIndex;
}
return true;
diff --git a/Source/WebCore/inspector/InspectorOverlay.cpp b/Source/WebCore/inspector/InspectorOverlay.cpp
index 4d97fb2..6ff9281 100644
--- a/Source/WebCore/inspector/InspectorOverlay.cpp
+++ b/Source/WebCore/inspector/InspectorOverlay.cpp
@@ -301,7 +301,7 @@
*quad -= m_page.mainFrame().view()->scrollOffset();
m_quadHighlightConfig = highlightConfig;
- m_highlightQuad = std::move(quad);
+ m_highlightQuad = WTF::move(quad);
update();
}
diff --git a/Source/WebCore/inspector/InspectorResourceAgent.cpp b/Source/WebCore/inspector/InspectorResourceAgent.cpp
index 550bd99..a47030d 100644
--- a/Source/WebCore/inspector/InspectorResourceAgent.cpp
+++ b/Source/WebCore/inspector/InspectorResourceAgent.cpp
@@ -487,7 +487,7 @@
{
RefPtr<XHRReplayData> xhrReplayData = XHRReplayData::create(method, url, async, formData, headers, includeCredentials);
- m_pendingXHRReplayData.set(client, std::move(xhrReplayData));
+ m_pendingXHRReplayData.set(client, WTF::move(xhrReplayData));
}
void InspectorResourceAgent::didFailXHRLoading(ThreadableLoaderClient* client)
diff --git a/Source/WebCore/inspector/InspectorStyleSheet.cpp b/Source/WebCore/inspector/InspectorStyleSheet.cpp
index 89619b4..7688103 100644
--- a/Source/WebCore/inspector/InspectorStyleSheet.cpp
+++ b/Source/WebCore/inspector/InspectorStyleSheet.cpp
@@ -1271,7 +1271,7 @@
RefPtr<StyleSheetContents> newStyleSheet = StyleSheetContents::create();
auto ruleSourceDataResult = std::make_unique<RuleSourceDataList>();
createCSSParser(m_pageStyleSheet->ownerDocument())->parseSheet(newStyleSheet.get(), m_parsedStyleSheet->text(), 0, ruleSourceDataResult.get());
- m_parsedStyleSheet->setSourceData(std::move(ruleSourceDataResult));
+ m_parsedStyleSheet->setSourceData(WTF::move(ruleSourceDataResult));
return m_parsedStyleSheet->hasSourceData();
}
diff --git a/Source/WebCore/inspector/WorkerInspectorController.cpp b/Source/WebCore/inspector/WorkerInspectorController.cpp
index 042de25..8d37b6c 100644
--- a/Source/WebCore/inspector/WorkerInspectorController.cpp
+++ b/Source/WebCore/inspector/WorkerInspectorController.cpp
@@ -86,21 +86,21 @@
auto runtimeAgent = std::make_unique<WorkerRuntimeAgent>(m_injectedScriptManager.get(), &workerGlobalScope);
m_runtimeAgent = runtimeAgent.get();
m_instrumentingAgents->setWorkerRuntimeAgent(m_runtimeAgent);
- m_agents.append(std::move(runtimeAgent));
+ m_agents.append(WTF::move(runtimeAgent));
auto consoleAgent = std::make_unique<WorkerConsoleAgent>(m_injectedScriptManager.get());
m_instrumentingAgents->setWebConsoleAgent(consoleAgent.get());
auto debuggerAgent = std::make_unique<WorkerDebuggerAgent>(m_injectedScriptManager.get(), m_instrumentingAgents.get(), &workerGlobalScope);
m_runtimeAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer());
- m_agents.append(std::move(debuggerAgent));
+ m_agents.append(WTF::move(debuggerAgent));
auto profilerAgent = std::make_unique<WorkerProfilerAgent>(m_instrumentingAgents.get(), &workerGlobalScope);
profilerAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer());
- m_agents.append(std::move(profilerAgent));
+ m_agents.append(WTF::move(profilerAgent));
m_agents.append(std::make_unique<InspectorTimelineAgent>(m_instrumentingAgents.get(), nullptr, InspectorTimelineAgent::WorkerInspector, nullptr));
- m_agents.append(std::move(consoleAgent));
+ m_agents.append(WTF::move(consoleAgent));
if (CommandLineAPIHost* commandLineAPIHost = m_injectedScriptManager->commandLineAPIHost()) {
commandLineAPIHost->init(nullptr
diff --git a/Source/WebCore/loader/CrossOriginPreflightResultCache.cpp b/Source/WebCore/loader/CrossOriginPreflightResultCache.cpp
index d36c48e..516f11f 100644
--- a/Source/WebCore/loader/CrossOriginPreflightResultCache.cpp
+++ b/Source/WebCore/loader/CrossOriginPreflightResultCache.cpp
@@ -160,7 +160,7 @@
void CrossOriginPreflightResultCache::appendEntry(const String& origin, const URL& url, std::unique_ptr<CrossOriginPreflightResultCacheItem> preflightResult)
{
ASSERT(isMainThread());
- m_preflightHashMap.set(std::make_pair(origin, url), std::move(preflightResult));
+ m_preflightHashMap.set(std::make_pair(origin, url), WTF::move(preflightResult));
}
bool CrossOriginPreflightResultCache::canSkipPreflight(const String& origin, const URL& url, StoredCredentials includeCredentials, const String& method, const HTTPHeaderMap& requestHeaders)
diff --git a/Source/WebCore/loader/DocumentLoader.cpp b/Source/WebCore/loader/DocumentLoader.cpp
index 62cca75..62c33f0 100644
--- a/Source/WebCore/loader/DocumentLoader.cpp
+++ b/Source/WebCore/loader/DocumentLoader.cpp
@@ -1114,7 +1114,7 @@
for (auto& cachedResourceHandle : m_cachedResourceLoader->allCachedResources().values()) {
if (RefPtr<ArchiveResource> subresource = this->subresource(URL(ParsedURLString, cachedResourceHandle->url())))
- subresources.append(std::move(subresource));
+ subresources.append(WTF::move(subresource));
}
return subresources;
diff --git a/Source/WebCore/loader/DocumentThreadableLoader.cpp b/Source/WebCore/loader/DocumentThreadableLoader.cpp
index cc90893..58c5b9f 100644
--- a/Source/WebCore/loader/DocumentThreadableLoader.cpp
+++ b/Source/WebCore/loader/DocumentThreadableLoader.cpp
@@ -261,7 +261,7 @@
return;
}
- CrossOriginPreflightResultCache::shared().appendEntry(securityOrigin()->toString(), m_actualRequest->url(), std::move(preflightResult));
+ CrossOriginPreflightResultCache::shared().appendEntry(securityOrigin()->toString(), m_actualRequest->url(), WTF::move(preflightResult));
} else {
if (!m_sameOriginRequest && m_options.crossOriginRequestPolicy == UseAccessControl) {
if (!passesAccessControlCheck(response, m_options.allowCredentials(), securityOrigin(), accessControlErrorDescription)) {
diff --git a/Source/WebCore/loader/NavigationScheduler.cpp b/Source/WebCore/loader/NavigationScheduler.cpp
index 3931343..f5ef2d3 100644
--- a/Source/WebCore/loader/NavigationScheduler.cpp
+++ b/Source/WebCore/loader/NavigationScheduler.cpp
@@ -437,7 +437,7 @@
Ref<Frame> protect(m_frame);
- std::unique_ptr<ScheduledNavigation> redirect = std::move(m_redirect);
+ std::unique_ptr<ScheduledNavigation> redirect = WTF::move(m_redirect);
redirect->fire(m_frame);
InspectorInstrumentation::frameClearedScheduledNavigation(m_frame);
}
@@ -458,7 +458,7 @@
}
cancel();
- m_redirect = std::move(redirect);
+ m_redirect = WTF::move(redirect);
if (!m_frame.loader().isComplete() && m_redirect->isLocationChange())
m_frame.loader().completed();
@@ -492,7 +492,7 @@
InspectorInstrumentation::frameClearedScheduledNavigation(m_frame);
m_timer.stop();
- if (std::unique_ptr<ScheduledNavigation> redirect = std::move(m_redirect))
+ if (std::unique_ptr<ScheduledNavigation> redirect = WTF::move(m_redirect))
redirect->didStopTimer(m_frame, newLoadInProgress);
}
diff --git a/Source/WebCore/loader/PolicyCallback.cpp b/Source/WebCore/loader/PolicyCallback.cpp
index c12ac82..bdffbe9 100644
--- a/Source/WebCore/loader/PolicyCallback.cpp
+++ b/Source/WebCore/loader/PolicyCallback.cpp
@@ -61,7 +61,7 @@
m_formState = formState;
m_frameName = String();
- m_navigationFunction = std::move(function);
+ m_navigationFunction = WTF::move(function);
m_newWindowFunction = nullptr;
m_contentFunction = nullptr;
}
@@ -74,7 +74,7 @@
m_navigationAction = navigationAction;
m_navigationFunction = nullptr;
- m_newWindowFunction = std::move(function);
+ m_newWindowFunction = WTF::move(function);
m_contentFunction = nullptr;
}
@@ -86,7 +86,7 @@
m_navigationFunction = nullptr;
m_newWindowFunction = nullptr;
- m_contentFunction = std::move(function);
+ m_contentFunction = WTF::move(function);
}
void PolicyCallback::call(bool shouldContinue)
diff --git a/Source/WebCore/loader/PolicyChecker.cpp b/Source/WebCore/loader/PolicyChecker.cpp
index 347ef61..e77080e 100644
--- a/Source/WebCore/loader/PolicyChecker.cpp
+++ b/Source/WebCore/loader/PolicyChecker.cpp
@@ -62,7 +62,7 @@
void PolicyChecker::checkNavigationPolicy(const ResourceRequest& newRequest, NavigationPolicyDecisionFunction function)
{
- checkNavigationPolicy(newRequest, m_frame.loader().activeDocumentLoader(), nullptr, std::move(function));
+ checkNavigationPolicy(newRequest, m_frame.loader().activeDocumentLoader(), nullptr, WTF::move(function));
}
void PolicyChecker::checkNavigationPolicy(const ResourceRequest& request, DocumentLoader* loader, PassRefPtr<FormState> formState, NavigationPolicyDecisionFunction function)
@@ -99,7 +99,7 @@
loader->setLastCheckedRequest(request);
- m_callback.set(request, formState.get(), std::move(function));
+ m_callback.set(request, formState.get(), WTF::move(function));
#if USE(QUICK_LOOK)
// Always allow QuickLook-generated URLs based on the protocol scheme.
@@ -133,7 +133,7 @@
if (!DOMWindow::allowPopUp(&m_frame))
return continueAfterNavigationPolicy(PolicyIgnore);
- m_callback.set(request, formState, frameName, action, std::move(function));
+ m_callback.set(request, formState, frameName, action, WTF::move(function));
m_frame.loader().client().dispatchDecidePolicyForNewWindowAction(action, request, formState, frameName, [this](PolicyAction action) {
continueAfterNewWindowPolicy(action);
});
@@ -141,7 +141,7 @@
void PolicyChecker::checkContentPolicy(const ResourceResponse& response, ContentPolicyDecisionFunction function)
{
- m_callback.set(std::move(function));
+ m_callback.set(WTF::move(function));
m_frame.loader().client().dispatchDecidePolicyForResponse(response, m_frame.loader().activeDocumentLoader()->request(), [this](PolicyAction action) {
continueAfterContentPolicy(action);
});
diff --git a/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp b/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
index 0e5257d..e848e3b 100644
--- a/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
+++ b/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
@@ -247,10 +247,10 @@
archive->setMainResource(mainResource);
for (unsigned i = 0; i < subresources.size(); ++i)
- archive->addSubresource(std::move(subresources[i]));
+ archive->addSubresource(WTF::move(subresources[i]));
for (unsigned i = 0; i < subframeArchives.size(); ++i)
- archive->addSubframeArchive(std::move(subframeArchives[i]));
+ archive->addSubframeArchive(WTF::move(subframeArchives[i]));
return archive.release();
}
@@ -449,7 +449,7 @@
if (nodeType != Node::DOCUMENT_NODE && nodeType != Node::DOCUMENT_TYPE_NODE)
markupString = documentTypeString(node->document()) + markupString;
- return create(markupString, frame, nodeList, std::move(frameFilter));
+ return create(markupString, frame, nodeList, WTF::move(frameFilter));
}
PassRefPtr<LegacyWebArchive> LegacyWebArchive::create(Frame* frame)
@@ -465,11 +465,11 @@
for (unsigned i = 0; i < frame->tree().childCount(); ++i) {
if (RefPtr<LegacyWebArchive> childFrameArchive = create(frame->tree().child(i)))
- subframeArchives.append(std::move(childFrameArchive));
+ subframeArchives.append(WTF::move(childFrameArchive));
}
auto subresources = documentLoader->subresources();
- return create(documentLoader->mainResource(), std::move(subresources), std::move(subframeArchives));
+ return create(documentLoader->mainResource(), WTF::move(subresources), WTF::move(subframeArchives));
}
PassRefPtr<LegacyWebArchive> LegacyWebArchive::create(Range* range)
@@ -522,7 +522,7 @@
continue;
if (RefPtr<LegacyWebArchive> subframeArchive = create(childFrame->document(), frameFilter))
- subframeArchives.append(std::move(subframeArchive));
+ subframeArchives.append(WTF::move(subframeArchive));
else
LOG_ERROR("Unabled to archive subframe %s", childFrame->tree().uniqueName().string().utf8().data());
@@ -539,7 +539,7 @@
uniqueSubresources.add(subresourceURL);
if (RefPtr<ArchiveResource> resource = documentLoader->subresource(subresourceURL)) {
- subresources.append(std::move(resource));
+ subresources.append(WTF::move(resource));
continue;
}
@@ -552,7 +552,7 @@
ResourceBuffer* data = cachedResource->resourceBuffer();
if (RefPtr<ArchiveResource> resource = ArchiveResource::create(data ? data->sharedBuffer() : 0, subresourceURL, cachedResource->response())) {
- subresources.append(std::move(resource));
+ subresources.append(WTF::move(resource));
continue;
}
}
@@ -574,7 +574,7 @@
}
}
- return create(mainResource.release(), subresources, std::move(subframeArchives));
+ return create(mainResource.release(), subresources, WTF::move(subframeArchives));
}
PassRefPtr<LegacyWebArchive> LegacyWebArchive::createFromSelection(Frame* frame)
diff --git a/Source/WebCore/loader/cache/CachedCSSStyleSheet.cpp b/Source/WebCore/loader/cache/CachedCSSStyleSheet.cpp
index f964ce1..81d9822 100644
--- a/Source/WebCore/loader/cache/CachedCSSStyleSheet.cpp
+++ b/Source/WebCore/loader/cache/CachedCSSStyleSheet.cpp
@@ -181,7 +181,7 @@
if (m_parsedStyleSheetCache)
m_parsedStyleSheetCache->removedFromMemoryCache();
- m_parsedStyleSheetCache = std::move(sheet);
+ m_parsedStyleSheetCache = WTF::move(sheet);
m_parsedStyleSheetCache->addedToMemoryCache();
setDecodedSize(m_parsedStyleSheetCache->estimatedSizeInBytes());
diff --git a/Source/WebCore/loader/icon/IconDatabase.cpp b/Source/WebCore/loader/icon/IconDatabase.cpp
index fce9924..67dc0d9 100644
--- a/Source/WebCore/loader/icon/IconDatabase.cpp
+++ b/Source/WebCore/loader/icon/IconDatabase.cpp
@@ -1345,7 +1345,7 @@
m_syncLock.lock();
- std::unique_ptr<SuddenTerminationDisabler> disableSuddenTermination = std::move(m_disableSuddenTerminationWhileSyncThreadHasWorkToDo);
+ std::unique_ptr<SuddenTerminationDisabler> disableSuddenTermination = WTF::move(m_disableSuddenTerminationWhileSyncThreadHasWorkToDo);
// We'll either do any pending work on our first pass through the loop, or we'll terminate
// without doing any work. Either way we're dealing with any currently-pending work.
@@ -1433,7 +1433,7 @@
m_syncThreadHasWorkToDo = false;
ASSERT(m_disableSuddenTerminationWhileSyncThreadHasWorkToDo);
- disableSuddenTermination = std::move(m_disableSuddenTerminationWhileSyncThreadHasWorkToDo);
+ disableSuddenTermination = WTF::move(m_disableSuddenTerminationWhileSyncThreadHasWorkToDo);
}
m_syncLock.unlock();
diff --git a/Source/WebCore/mathml/MathMLInlineContainerElement.cpp b/Source/WebCore/mathml/MathMLInlineContainerElement.cpp
index a4144ec..e583035 100644
--- a/Source/WebCore/mathml/MathMLInlineContainerElement.cpp
+++ b/Source/WebCore/mathml/MathMLInlineContainerElement.cpp
@@ -72,35 +72,35 @@
RenderPtr<RenderElement> MathMLInlineContainerElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (hasTagName(annotation_xmlTag))
- return createRenderer<RenderMathMLRow>(*this, std::move(style));
+ return createRenderer<RenderMathMLRow>(*this, WTF::move(style));
if (hasTagName(merrorTag) || hasTagName(mphantomTag) || hasTagName(mrowTag) || hasTagName(mstyleTag))
- return createRenderer<RenderMathMLRow>(*this, std::move(style));
+ return createRenderer<RenderMathMLRow>(*this, WTF::move(style));
if (hasTagName(msubTag))
- return createRenderer<RenderMathMLScripts>(*this, std::move(style));
+ return createRenderer<RenderMathMLScripts>(*this, WTF::move(style));
if (hasTagName(msupTag))
- return createRenderer<RenderMathMLScripts>(*this, std::move(style));
+ return createRenderer<RenderMathMLScripts>(*this, WTF::move(style));
if (hasTagName(msubsupTag))
- return createRenderer<RenderMathMLScripts>(*this, std::move(style));
+ return createRenderer<RenderMathMLScripts>(*this, WTF::move(style));
if (hasTagName(mmultiscriptsTag))
- return createRenderer<RenderMathMLScripts>(*this, std::move(style));
+ return createRenderer<RenderMathMLScripts>(*this, WTF::move(style));
if (hasTagName(moverTag))
- return createRenderer<RenderMathMLUnderOver>(*this, std::move(style));
+ return createRenderer<RenderMathMLUnderOver>(*this, WTF::move(style));
if (hasTagName(munderTag))
- return createRenderer<RenderMathMLUnderOver>(*this, std::move(style));
+ return createRenderer<RenderMathMLUnderOver>(*this, WTF::move(style));
if (hasTagName(munderoverTag))
- return createRenderer<RenderMathMLUnderOver>(*this, std::move(style));
+ return createRenderer<RenderMathMLUnderOver>(*this, WTF::move(style));
if (hasTagName(mfracTag))
- return createRenderer<RenderMathMLFraction>(*this, std::move(style));
+ return createRenderer<RenderMathMLFraction>(*this, WTF::move(style));
if (hasTagName(msqrtTag))
- return createRenderer<RenderMathMLSquareRoot>(*this, std::move(style));
+ return createRenderer<RenderMathMLSquareRoot>(*this, WTF::move(style));
if (hasTagName(mrootTag))
- return createRenderer<RenderMathMLRoot>(*this, std::move(style));
+ return createRenderer<RenderMathMLRoot>(*this, WTF::move(style));
if (hasTagName(mfencedTag))
- return createRenderer<RenderMathMLFenced>(*this, std::move(style));
+ return createRenderer<RenderMathMLFenced>(*this, WTF::move(style));
if (hasTagName(mtableTag))
- return createRenderer<RenderMathMLTable>(*this, std::move(style));
+ return createRenderer<RenderMathMLTable>(*this, WTF::move(style));
- return createRenderer<RenderMathMLBlock>(*this, std::move(style));
+ return createRenderer<RenderMathMLBlock>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/mathml/MathMLMathElement.cpp b/Source/WebCore/mathml/MathMLMathElement.cpp
index 6f2f389..82b3cfd 100644
--- a/Source/WebCore/mathml/MathMLMathElement.cpp
+++ b/Source/WebCore/mathml/MathMLMathElement.cpp
@@ -53,7 +53,7 @@
RenderPtr<RenderElement> MathMLMathElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderMathMLMath>(*this, std::move(style));
+ return createRenderer<RenderMathMLMath>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/mathml/MathMLMencloseElement.cpp b/Source/WebCore/mathml/MathMLMencloseElement.cpp
index 4013d88..d2f9e4a 100755
--- a/Source/WebCore/mathml/MathMLMencloseElement.cpp
+++ b/Source/WebCore/mathml/MathMLMencloseElement.cpp
@@ -52,7 +52,7 @@
RenderPtr<RenderElement> MathMLMencloseElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderMathMLMenclose>(*this, std::move(style));
+ return createRenderer<RenderMathMLMenclose>(*this, WTF::move(style));
}
bool MathMLMencloseElement::isPresentationAttribute(const QualifiedName& name) const
diff --git a/Source/WebCore/mathml/MathMLSelectElement.cpp b/Source/WebCore/mathml/MathMLSelectElement.cpp
index 326ea12..b334f8b0 100644
--- a/Source/WebCore/mathml/MathMLSelectElement.cpp
+++ b/Source/WebCore/mathml/MathMLSelectElement.cpp
@@ -53,7 +53,7 @@
RenderPtr<RenderElement> MathMLSelectElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderMathMLRow>(*this, std::move(style));
+ return createRenderer<RenderMathMLRow>(*this, WTF::move(style));
}
// We recognize the following values for the encoding attribute of the <semantics> element:
diff --git a/Source/WebCore/mathml/MathMLTextElement.cpp b/Source/WebCore/mathml/MathMLTextElement.cpp
index 10e3087..22383c0 100644
--- a/Source/WebCore/mathml/MathMLTextElement.cpp
+++ b/Source/WebCore/mathml/MathMLTextElement.cpp
@@ -67,15 +67,15 @@
RenderPtr<RenderElement> MathMLTextElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (hasTagName(MathMLNames::moTag))
- return createRenderer<RenderMathMLOperator>(*this, std::move(style));
+ return createRenderer<RenderMathMLOperator>(*this, WTF::move(style));
if (hasTagName(MathMLNames::mspaceTag))
- return createRenderer<RenderMathMLSpace>(*this, std::move(style));
+ return createRenderer<RenderMathMLSpace>(*this, WTF::move(style));
if (hasTagName(MathMLNames::annotationTag))
- return MathMLElement::createElementRenderer(std::move(style));
+ return MathMLElement::createElementRenderer(WTF::move(style));
ASSERT(hasTagName(MathMLNames::miTag) || hasTagName(MathMLNames::mnTag) || hasTagName(MathMLNames::msTag) || hasTagName(MathMLNames::mtextTag));
- return createRenderer<RenderMathMLToken>(*this, std::move(style));
+ return createRenderer<RenderMathMLToken>(*this, WTF::move(style));
}
bool MathMLTextElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/page/DOMTimer.cpp b/Source/WebCore/page/DOMTimer.cpp
index 73f7207..0712556 100644
--- a/Source/WebCore/page/DOMTimer.cpp
+++ b/Source/WebCore/page/DOMTimer.cpp
@@ -61,7 +61,7 @@
DOMTimer::DOMTimer(ScriptExecutionContext* context, std::unique_ptr<ScheduledAction> action, int interval, bool singleShot)
: SuspendableTimer(context)
, m_nestingLevel(timerNestingLevel + 1)
- , m_action(std::move(action))
+ , m_action(WTF::move(action))
, m_originalInterval(interval)
, m_shouldForwardUserGesture(shouldForwardUserGesture(interval, m_nestingLevel))
{
@@ -88,7 +88,7 @@
// DOMTimer constructor links the new timer into a list of ActiveDOMObjects held by the 'context'.
// The timer is deleted when context is deleted (DOMTimer::contextDestroyed) or explicitly via DOMTimer::removeById(),
// or if it is a one-time timer and it has fired (DOMTimer::fired).
- DOMTimer* timer = new DOMTimer(context, std::move(action), timeout, singleShot);
+ DOMTimer* timer = new DOMTimer(context, WTF::move(action), timeout, singleShot);
#if PLATFORM(IOS)
if (context->isDocument()) {
Document& document = toDocument(*context);
@@ -157,7 +157,7 @@
}
// Delete timer before executing the action for one-shot timers.
- std::unique_ptr<ScheduledAction> action = std::move(m_action);
+ std::unique_ptr<ScheduledAction> action = WTF::move(m_action);
// No access to member variables after this point.
delete this;
diff --git a/Source/WebCore/page/DOMWindow.cpp b/Source/WebCore/page/DOMWindow.cpp
index 0e4e0e5..83aff85 100644
--- a/Source/WebCore/page/DOMWindow.cpp
+++ b/Source/WebCore/page/DOMWindow.cpp
@@ -142,7 +142,7 @@
, m_message(message)
, m_origin(sourceOrigin)
, m_source(source)
- , m_channels(std::move(channels))
+ , m_channels(WTF::move(channels))
, m_targetOrigin(targetOrigin)
, m_stackTrace(stackTrace)
{
@@ -150,8 +150,8 @@
PassRefPtr<MessageEvent> event(ScriptExecutionContext* context)
{
- std::unique_ptr<MessagePortArray> messagePorts = MessagePort::entanglePorts(*context, std::move(m_channels));
- return MessageEvent::create(std::move(messagePorts), m_message, m_origin, String(), m_source);
+ std::unique_ptr<MessagePortArray> messagePorts = MessagePort::entanglePorts(*context, WTF::move(m_channels));
+ return MessageEvent::create(WTF::move(messagePorts), m_message, m_origin, String(), m_source);
}
SecurityOrigin* targetOrigin() const { return m_targetOrigin.get(); }
ScriptCallStack* stackTrace() const { return m_stackTrace.get(); }
@@ -882,7 +882,7 @@
stackTrace = createScriptCallStack(JSMainThreadExecState::currentState(), ScriptCallStack::maxCallStackSizeToCapture);
// Schedule the message.
- PostMessageTimer* timer = new PostMessageTimer(this, message, sourceOrigin, &source, std::move(channels), target.get(), stackTrace.release());
+ PostMessageTimer* timer = new PostMessageTimer(this, message, sourceOrigin, &source, WTF::move(channels), target.get(), stackTrace.release());
timer->startOneShot(0);
}
@@ -1573,7 +1573,7 @@
ec = INVALID_ACCESS_ERR;
return -1;
}
- return DOMTimer::install(context, std::move(action), timeout, true);
+ return DOMTimer::install(context, WTF::move(action), timeout, true);
}
void DOMWindow::clearTimeout(int timeoutId)
@@ -1607,7 +1607,7 @@
ec = INVALID_ACCESS_ERR;
return -1;
}
- return DOMTimer::install(context, std::move(action), timeout, false);
+ return DOMTimer::install(context, WTF::move(action), timeout, false);
}
void DOMWindow::clearInterval(int timeoutId)
@@ -2158,7 +2158,7 @@
return;
WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_frame->view()));
- RefPtr<Frame> dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, activeWindow, firstFrame, m_frame, std::move(prepareDialogFunction));
+ RefPtr<Frame> dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, activeWindow, firstFrame, m_frame, WTF::move(prepareDialogFunction));
if (!dialogFrame)
return;
dialogFrame->page()->chrome().runModal();
diff --git a/Source/WebCore/page/Page.cpp b/Source/WebCore/page/Page.cpp
index cb72e6c..38bb451 100644
--- a/Source/WebCore/page/Page.cpp
+++ b/Source/WebCore/page/Page.cpp
@@ -197,8 +197,8 @@
#endif
, m_lastSpatialNavigationCandidatesCount(0) // NOTE: Only called from Internals for Spatial Navigation testing.
, m_framesHandlingBeforeUnloadEvent(0)
- , m_userContentController(std::move(pageClients.userContentController))
- , m_visitedLinkStore(std::move(pageClients.visitedLinkStore))
+ , m_userContentController(WTF::move(pageClients.userContentController))
+ , m_visitedLinkStore(WTF::move(pageClients.visitedLinkStore))
, m_sessionID(SessionID::defaultSessionID())
{
ASSERT(m_editorClient);
diff --git a/Source/WebCore/page/PageGroup.cpp b/Source/WebCore/page/PageGroup.cpp
index 37a6c98..0e71e2a 100644
--- a/Source/WebCore/page/PageGroup.cpp
+++ b/Source/WebCore/page/PageGroup.cpp
@@ -289,13 +289,13 @@
void PageGroup::addUserScriptToWorld(DOMWrapperWorld& world, const String& source, const URL& url, const Vector<String>& whitelist, const Vector<String>& blacklist, UserScriptInjectionTime injectionTime, UserContentInjectedFrames injectedFrames)
{
auto userScript = std::make_unique<UserScript>(source, url, whitelist, blacklist, injectionTime, injectedFrames);
- m_userContentController->addUserScript(world, std::move(userScript));
+ m_userContentController->addUserScript(world, WTF::move(userScript));
}
void PageGroup::addUserStyleSheetToWorld(DOMWrapperWorld& world, const String& source, const URL& url, const Vector<String>& whitelist, const Vector<String>& blacklist, UserContentInjectedFrames injectedFrames, UserStyleLevel level, UserStyleInjectionTime injectionTime)
{
auto userStyleSheet = std::make_unique<UserStyleSheet>(source, url, whitelist, blacklist, injectedFrames, level);
- m_userContentController->addUserStyleSheet(world, std::move(userStyleSheet), injectionTime);
+ m_userContentController->addUserStyleSheet(world, WTF::move(userStyleSheet), injectionTime);
}
diff --git a/Source/WebCore/page/UserContentController.cpp b/Source/WebCore/page/UserContentController.cpp
index 43fd94f..f6a9d5a 100644
--- a/Source/WebCore/page/UserContentController.cpp
+++ b/Source/WebCore/page/UserContentController.cpp
@@ -72,7 +72,7 @@
auto& scriptsInWorld = m_userScripts->add(&world, nullptr).iterator->value;
if (!scriptsInWorld)
scriptsInWorld = std::make_unique<UserScriptVector>();
- scriptsInWorld->append(std::move(userScript));
+ scriptsInWorld->append(WTF::move(userScript));
}
void UserContentController::removeUserScript(DOMWrapperWorld& world, const URL& url)
@@ -110,7 +110,7 @@
auto& styleSheetsInWorld = m_userStyleSheets->add(&world, nullptr).iterator->value;
if (!styleSheetsInWorld)
styleSheetsInWorld = std::make_unique<UserStyleSheetVector>();
- styleSheetsInWorld->append(std::move(userStyleSheet));
+ styleSheetsInWorld->append(WTF::move(userStyleSheet));
if (injectionTime == InjectInExistingDocuments)
invalidateInjectedStyleSheetCacheInAllFrames();
diff --git a/Source/WebCore/page/animation/AnimationController.cpp b/Source/WebCore/page/animation/AnimationController.cpp
index 746d5e5..9d2b544 100644
--- a/Source/WebCore/page/animation/AnimationController.cpp
+++ b/Source/WebCore/page/animation/AnimationController.cpp
@@ -167,7 +167,7 @@
bool updateStyle = !m_eventsToDispatch.isEmpty() || !m_elementChangesToDispatch.isEmpty();
// fire all the events
- Vector<EventToDispatch> eventsToDispatch = std::move(m_eventsToDispatch);
+ Vector<EventToDispatch> eventsToDispatch = WTF::move(m_eventsToDispatch);
Vector<EventToDispatch>::const_iterator eventsToDispatchEnd = eventsToDispatch.end();
for (Vector<EventToDispatch>::const_iterator it = eventsToDispatch.begin(); it != eventsToDispatchEnd; ++it) {
Element* element = it->element.get();
@@ -206,7 +206,7 @@
void AnimationControllerPrivate::addElementChangeToDispatch(PassRef<Element> element)
{
- m_elementChangesToDispatch.append(std::move(element));
+ m_elementChangesToDispatch.append(WTF::move(element));
ASSERT(!m_elementChangesToDispatch.last()->document().inPageCache());
startUpdateStyleIfNeededDispatcher();
}
@@ -508,7 +508,7 @@
// We don't support anonymous pseudo elements like :first-line or :first-letter.
ASSERT(renderer.element());
- Ref<RenderStyle> newStyleBeforeAnimation(std::move(newStyle));
+ Ref<RenderStyle> newStyleBeforeAnimation(WTF::move(newStyle));
CompositeAnimation& rendererAnimations = m_data->ensureCompositeAnimation(&renderer);
auto blendedStyle = rendererAnimations.animate(renderer, oldStyle, newStyleBeforeAnimation.get());
diff --git a/Source/WebCore/page/animation/CSSPropertyAnimation.cpp b/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
index f3685e1..5e6ef2a 100644
--- a/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
+++ b/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
@@ -220,9 +220,9 @@
auto imageValue = CSSImageValue::create(image->url(), styledImage.get());
auto filterValue = ComputedStyleExtractor::valueForFilter(&anim->renderer()->style(), filterResult, DoNotAdjustPixelValues);
- auto result = CSSFilterImageValue::create(std::move(imageValue), std::move(filterValue));
+ auto result = CSSFilterImageValue::create(WTF::move(imageValue), WTF::move(filterValue));
result.get().setFilterOperations(filterResult);
- return StyleGeneratedImage::create(std::move(result));
+ return StyleGeneratedImage::create(WTF::move(result));
}
#endif // ENABLE(CSS_FILTERS)
@@ -284,9 +284,9 @@
auto fromImageValue = CSSImageValue::create(fromStyleImage->cachedImage()->url(), fromStyleImage);
auto toImageValue = CSSImageValue::create(toStyleImage->cachedImage()->url(), toStyleImage);
- auto crossfadeValue = CSSCrossfadeValue::create(std::move(fromImageValue), std::move(toImageValue));
+ auto crossfadeValue = CSSCrossfadeValue::create(WTF::move(fromImageValue), WTF::move(toImageValue));
crossfadeValue.get().setPercentage(CSSPrimitiveValue::create(progress, CSSPrimitiveValue::CSS_NUMBER));
- return StyleGeneratedImage::create(std::move(crossfadeValue));
+ return StyleGeneratedImage::create(WTF::move(crossfadeValue));
}
static inline PassRefPtr<StyleImage> blendFunc(const AnimationBase* anim, StyleImage* from, StyleImage* to, double progress)
@@ -662,9 +662,9 @@
ShadowData* blendedShadowPtr = blendedShadow.get();
if (!lastShadow)
- newShadowData = std::move(blendedShadow);
+ newShadowData = WTF::move(blendedShadow);
else
- lastShadow->setNext(std::move(blendedShadow));
+ lastShadow->setNext(WTF::move(blendedShadow));
lastShadow = blendedShadowPtr;
@@ -703,8 +703,8 @@
std::unique_ptr<ShadowData> blendedShadow = blendFunc(anim, srcShadow, dstShadow, progress);
// Insert at the start of the list to preserve the order.
- blendedShadow->setNext(std::move(newShadowData));
- newShadowData = std::move(blendedShadow);
+ blendedShadow->setNext(WTF::move(newShadowData));
+ newShadowData = WTF::move(blendedShadow);
}
return newShadowData;
@@ -960,7 +960,7 @@
public:
ShorthandPropertyWrapper(CSSPropertyID property, Vector<AnimationPropertyWrapperBase*> longhandWrappers)
: AnimationPropertyWrapperBase(property)
- , m_propertyWrappers(std::move(longhandWrappers))
+ , m_propertyWrappers(WTF::move(longhandWrappers))
{
}
@@ -1335,7 +1335,7 @@
longhandWrappers.uncheckedAppend(m_propertyWrappers[wrapperIndex].get());
}
- m_propertyWrappers.uncheckedAppend(std::make_unique<ShorthandPropertyWrapper>(propertyID, std::move(longhandWrappers)));
+ m_propertyWrappers.uncheckedAppend(std::make_unique<ShorthandPropertyWrapper>(propertyID, WTF::move(longhandWrappers)));
indexFromPropertyID(propertyID) = animatableLonghandPropertiesCount + i;
}
}
diff --git a/Source/WebCore/page/scrolling/ScrollingStateTree.cpp b/Source/WebCore/page/scrolling/ScrollingStateTree.cpp
index d1700c13..9c76ffe 100644
--- a/Source/WebCore/page/scrolling/ScrollingStateTree.cpp
+++ b/Source/WebCore/page/scrolling/ScrollingStateTree.cpp
@@ -228,7 +228,7 @@
void ScrollingStateTree::setRemovedNodes(HashSet<ScrollingNodeID> nodes)
{
- m_nodesRemovedSinceLastCommit = std::move(nodes);
+ m_nodesRemovedSinceLastCommit = WTF::move(nodes);
}
ScrollingStateNode* ScrollingStateTree::stateNodeForID(ScrollingNodeID scrollLayerID)
diff --git a/Source/WebCore/page/scrolling/ScrollingThread.cpp b/Source/WebCore/page/scrolling/ScrollingThread.cpp
index bec4921..9c8e2d1 100644
--- a/Source/WebCore/page/scrolling/ScrollingThread.cpp
+++ b/Source/WebCore/page/scrolling/ScrollingThread.cpp
@@ -61,7 +61,7 @@
void ScrollingThread::dispatchBarrier(std::function<void ()> function)
{
dispatch([function]() mutable {
- callOnMainThread(std::move(function));
+ callOnMainThread(WTF::move(function));
});
}
@@ -108,7 +108,7 @@
{
std::lock_guard<std::mutex> lock(m_functionsMutex);
- functions = std::move(m_functions);
+ functions = WTF::move(m_functions);
}
for (auto& function : functions)
diff --git a/Source/WebCore/platform/CalculationValue.cpp b/Source/WebCore/platform/CalculationValue.cpp
index 8d965b0..b9dfca6 100644
--- a/Source/WebCore/platform/CalculationValue.cpp
+++ b/Source/WebCore/platform/CalculationValue.cpp
@@ -38,7 +38,7 @@
PassRef<CalculationValue> CalculationValue::create(std::unique_ptr<CalcExpressionNode> value, CalculationPermittedValueRange range)
{
- return adoptRef(*new CalculationValue(std::move(value), range));
+ return adoptRef(*new CalculationValue(WTF::move(value), range));
}
float CalcExpressionNumber::evaluate(float) const
diff --git a/Source/WebCore/platform/CalculationValue.h b/Source/WebCore/platform/CalculationValue.h
index 4417320..30ec780 100644
--- a/Source/WebCore/platform/CalculationValue.h
+++ b/Source/WebCore/platform/CalculationValue.h
@@ -155,7 +155,7 @@
}
inline CalculationValue::CalculationValue(std::unique_ptr<CalcExpressionNode> expression, CalculationPermittedValueRange range)
- : m_expression(std::move(expression))
+ : m_expression(WTF::move(expression))
, m_shouldClampToNonNegative(range == CalculationRangeNonNegative)
{
}
@@ -201,8 +201,8 @@
inline CalcExpressionBinaryOperation::CalcExpressionBinaryOperation(std::unique_ptr<CalcExpressionNode> leftSide, std::unique_ptr<CalcExpressionNode> rightSide, CalcOperator op)
: CalcExpressionNode(CalcExpressionNodeBinaryOperation)
- , m_leftSide(std::move(leftSide))
- , m_rightSide(std::move(rightSide))
+ , m_leftSide(WTF::move(leftSide))
+ , m_rightSide(WTF::move(rightSide))
, m_operator(op)
{
}
diff --git a/Source/WebCore/platform/KeyedCoding.h b/Source/WebCore/platform/KeyedCoding.h
index 2c4b178..9fa5c8f 100644
--- a/Source/WebCore/platform/KeyedCoding.h
+++ b/Source/WebCore/platform/KeyedCoding.h
@@ -117,7 +117,7 @@
result = false;
break;
}
- objects.append(std::move(element));
+ objects.append(WTF::move(element));
endArrayElement();
}
diff --git a/Source/WebCore/platform/Length.cpp b/Source/WebCore/platform/Length.cpp
index 66992ae..6d5a65c 100644
--- a/Source/WebCore/platform/Length.cpp
+++ b/Source/WebCore/platform/Length.cpp
@@ -248,7 +248,7 @@
, m_type(Calculated)
, m_isFloat(false)
{
- m_calculationValueHandle = calculationValues().insert(std::move(value));
+ m_calculationValueHandle = calculationValues().insert(WTF::move(value));
}
Length Length::blendMixedTypes(const Length& from, double progress) const
@@ -260,7 +260,7 @@
return *this;
auto blend = std::make_unique<CalcExpressionBlendLength>(from, *this, progress);
- return Length(CalculationValue::create(std::move(blend), CalculationRangeAll));
+ return Length(CalculationValue::create(WTF::move(blend), CalculationRangeAll));
}
CalculationValue& Length::calculationValue() const
diff --git a/Source/WebCore/platform/LengthBox.h b/Source/WebCore/platform/LengthBox.h
index 2655f6d..af9ecfb 100644
--- a/Source/WebCore/platform/LengthBox.h
+++ b/Source/WebCore/platform/LengthBox.h
@@ -50,10 +50,10 @@
}
LengthBox(Length top, Length right, Length bottom, Length left)
- : m_left(std::move(left))
- , m_right(std::move(right))
- , m_top(std::move(top))
- , m_bottom(std::move(bottom))
+ : m_left(WTF::move(left))
+ , m_right(WTF::move(right))
+ , m_top(WTF::move(top))
+ , m_bottom(WTF::move(bottom))
{
}
diff --git a/Source/WebCore/platform/LengthSize.h b/Source/WebCore/platform/LengthSize.h
index cbc2d78..a67bc88 100644
--- a/Source/WebCore/platform/LengthSize.h
+++ b/Source/WebCore/platform/LengthSize.h
@@ -32,8 +32,8 @@
}
LengthSize(Length width, Length height)
- : m_width(std::move(width))
- , m_height(std::move(height))
+ : m_width(WTF::move(width))
+ , m_height(WTF::move(height))
{
}
@@ -42,10 +42,10 @@
return m_width == o.m_width && m_height == o.m_height;
}
- void setWidth(Length width) { m_width = std::move(width); }
+ void setWidth(Length width) { m_width = WTF::move(width); }
const Length& width() const { return m_width; }
- void setHeight(Length height) { m_height = std::move(height); }
+ void setHeight(Length height) { m_height = WTF::move(height); }
const Length& height() const { return m_height; }
LengthSize blend(const LengthSize& from, double progress) const
diff --git a/Source/WebCore/platform/SharedBuffer.h b/Source/WebCore/platform/SharedBuffer.h
index b982059..3c8fa56 100644
--- a/Source/WebCore/platform/SharedBuffer.h
+++ b/Source/WebCore/platform/SharedBuffer.h
@@ -77,7 +77,7 @@
public:
template<typename T>
NSDataRetainPtrWithoutImplicitConversionOperator(RetainPtr<T*>&& other)
- : RetainPtr<NSData*>(std::move(other))
+ : RetainPtr<NSData*>(WTF::move(other))
{
}
diff --git a/Source/WebCore/platform/Supplementable.h b/Source/WebCore/platform/Supplementable.h
index 67ddf2f..61bf12f 100644
--- a/Source/WebCore/platform/Supplementable.h
+++ b/Source/WebCore/platform/Supplementable.h
@@ -86,7 +86,7 @@
static void provideTo(Supplementable<T>* host, const char* key, std::unique_ptr<Supplement<T>> supplement)
{
- host->provideSupplement(key, std::move(supplement));
+ host->provideSupplement(key, WTF::move(supplement));
}
static Supplement<T>* from(Supplementable<T>* host, const char* key)
@@ -102,7 +102,7 @@
{
ASSERT(canAccessThreadLocalDataForThread(m_threadId));
ASSERT(!m_supplements.get(key));
- m_supplements.set(key, std::move(supplement));
+ m_supplements.set(key, WTF::move(supplement));
}
void removeSupplement(const char* key)
diff --git a/Source/WebCore/platform/Timer.h b/Source/WebCore/platform/Timer.h
index b9efae2..843d676 100644
--- a/Source/WebCore/platform/Timer.h
+++ b/Source/WebCore/platform/Timer.h
@@ -156,7 +156,7 @@
}
DeferrableOneShotTimer(std::function<void ()> function, std::chrono::milliseconds delay)
- : m_function(std::move(function))
+ : m_function(WTF::move(function))
, m_delay(delay)
, m_shouldRestartWhenTimerFires(false)
{
diff --git a/Source/WebCore/platform/audio/AudioBus.cpp b/Source/WebCore/platform/audio/AudioBus.cpp
index cf5e685..9dac09e 100644
--- a/Source/WebCore/platform/audio/AudioBus.cpp
+++ b/Source/WebCore/platform/audio/AudioBus.cpp
@@ -65,7 +65,7 @@
for (unsigned i = 0; i < numberOfChannels; ++i) {
auto channel = allocate ? std::make_unique<AudioChannel>(length) : std::make_unique<AudioChannel>(nullptr, length);
- m_channels.append(std::move(channel));
+ m_channels.append(WTF::move(channel));
}
m_layout = LayoutCanonical; // for now this is the only layout we define
diff --git a/Source/WebCore/platform/audio/HRTFDatabase.cpp b/Source/WebCore/platform/audio/HRTFDatabase.cpp
index 48d3d33..934024a 100644
--- a/Source/WebCore/platform/audio/HRTFDatabase.cpp
+++ b/Source/WebCore/platform/audio/HRTFDatabase.cpp
@@ -54,7 +54,7 @@
if (!hrtfElevation.get())
return;
- m_elevations[elevationIndex] = std::move(hrtfElevation);
+ m_elevations[elevationIndex] = WTF::move(hrtfElevation);
elevationIndex += InterpolationFactor;
}
diff --git a/Source/WebCore/platform/audio/HRTFElevation.cpp b/Source/WebCore/platform/audio/HRTFElevation.cpp
index e5808b4..3e77478 100644
--- a/Source/WebCore/platform/audio/HRTFElevation.cpp
+++ b/Source/WebCore/platform/audio/HRTFElevation.cpp
@@ -273,7 +273,7 @@
}
}
- return std::make_unique<HRTFElevation>(std::move(kernelListL), std::move(kernelListR), elevation, sampleRate);
+ return std::make_unique<HRTFElevation>(WTF::move(kernelListL), WTF::move(kernelListR), elevation, sampleRate);
}
std::unique_ptr<HRTFElevation> HRTFElevation::createByInterpolatingSlices(HRTFElevation* hrtfElevation1, HRTFElevation* hrtfElevation2, float x, float sampleRate)
@@ -301,7 +301,7 @@
// Interpolate elevation angle.
double angle = (1.0 - x) * hrtfElevation1->elevationAngle() + x * hrtfElevation2->elevationAngle();
- return std::make_unique<HRTFElevation>(std::move(kernelListL), std::move(kernelListR), static_cast<int>(angle), sampleRate);
+ return std::make_unique<HRTFElevation>(WTF::move(kernelListL), WTF::move(kernelListR), static_cast<int>(angle), sampleRate);
}
void HRTFElevation::getKernelsFromAzimuth(double azimuthBlend, unsigned azimuthIndex, HRTFKernel* &kernelL, HRTFKernel* &kernelR, double& frameDelayL, double& frameDelayR)
diff --git a/Source/WebCore/platform/audio/HRTFElevation.h b/Source/WebCore/platform/audio/HRTFElevation.h
index 98a6c47..f1dc3c4 100644
--- a/Source/WebCore/platform/audio/HRTFElevation.h
+++ b/Source/WebCore/platform/audio/HRTFElevation.h
@@ -46,8 +46,8 @@
WTF_MAKE_NONCOPYABLE(HRTFElevation);
public:
HRTFElevation(std::unique_ptr<HRTFKernelList> kernelListL, std::unique_ptr<HRTFKernelList> kernelListR, int elevation, float sampleRate)
- : m_kernelListL(std::move(kernelListL))
- , m_kernelListR(std::move(kernelListR))
+ : m_kernelListL(WTF::move(kernelListL))
+ , m_kernelListR(WTF::move(kernelListR))
, m_elevationAngle(elevation)
, m_sampleRate(sampleRate)
{
diff --git a/Source/WebCore/platform/audio/HRTFKernel.cpp b/Source/WebCore/platform/audio/HRTFKernel.cpp
index 3185994..f689087 100644
--- a/Source/WebCore/platform/audio/HRTFKernel.cpp
+++ b/Source/WebCore/platform/audio/HRTFKernel.cpp
@@ -132,7 +132,7 @@
float frameDelay = (1 - x) * kernel1->frameDelay() + x * kernel2->frameDelay();
std::unique_ptr<FFTFrame> interpolatedFrame = FFTFrame::createInterpolatedFrame(*kernel1->fftFrame(), *kernel2->fftFrame(), x);
- return HRTFKernel::create(std::move(interpolatedFrame), frameDelay, sampleRate1);
+ return HRTFKernel::create(WTF::move(interpolatedFrame), frameDelay, sampleRate1);
}
} // namespace WebCore
diff --git a/Source/WebCore/platform/audio/HRTFKernel.h b/Source/WebCore/platform/audio/HRTFKernel.h
index 5f0678c..dd0ac4d 100644
--- a/Source/WebCore/platform/audio/HRTFKernel.h
+++ b/Source/WebCore/platform/audio/HRTFKernel.h
@@ -57,7 +57,7 @@
static PassRefPtr<HRTFKernel> create(std::unique_ptr<FFTFrame> fftFrame, float frameDelay, float sampleRate)
{
- return adoptRef(new HRTFKernel(std::move(fftFrame), frameDelay, sampleRate));
+ return adoptRef(new HRTFKernel(WTF::move(fftFrame), frameDelay, sampleRate));
}
// Given two HRTFKernels, and an interpolation factor x: 0 -> 1, returns an interpolated HRTFKernel.
@@ -79,7 +79,7 @@
HRTFKernel(AudioChannel*, size_t fftSize, float sampleRate);
HRTFKernel(std::unique_ptr<FFTFrame> fftFrame, float frameDelay, float sampleRate)
- : m_fftFrame(std::move(fftFrame))
+ : m_fftFrame(WTF::move(fftFrame))
, m_frameDelay(frameDelay)
, m_sampleRate(sampleRate)
{
diff --git a/Source/WebCore/platform/audio/ReverbConvolver.cpp b/Source/WebCore/platform/audio/ReverbConvolver.cpp
index 906ab01..ecf355e 100644
--- a/Source/WebCore/platform/audio/ReverbConvolver.cpp
+++ b/Source/WebCore/platform/audio/ReverbConvolver.cpp
@@ -107,10 +107,10 @@
bool isBackgroundStage = false;
if (this->useBackgroundThreads() && stageOffset > RealtimeFrameLimit) {
- m_backgroundStages.append(std::move(stage));
+ m_backgroundStages.append(WTF::move(stage));
isBackgroundStage = true;
} else
- m_stages.append(std::move(stage));
+ m_stages.append(WTF::move(stage));
stageOffset += stageSize;
++i;
diff --git a/Source/WebCore/platform/efl/RenderThemeEfl.cpp b/Source/WebCore/platform/efl/RenderThemeEfl.cpp
index 08d78dc..e8c5392 100755
--- a/Source/WebCore/platform/efl/RenderThemeEfl.cpp
+++ b/Source/WebCore/platform/efl/RenderThemeEfl.cpp
@@ -485,7 +485,7 @@
clearThemePartCache();
// Set new loaded theme, and apply it.
- m_edje = std::move(o);
+ m_edje = WTF::move(o);
const char* thickness = edje_object_data_get(m_edje.get(), "scrollbar.thickness");
if (thickness && !Settings::mockScrollbarsEnabled())
diff --git a/Source/WebCore/platform/graphics/FloatPolygon.cpp b/Source/WebCore/platform/graphics/FloatPolygon.cpp
index 781bd2d..75694dd 100644
--- a/Source/WebCore/platform/graphics/FloatPolygon.cpp
+++ b/Source/WebCore/platform/graphics/FloatPolygon.cpp
@@ -80,7 +80,7 @@
}
FloatPolygon::FloatPolygon(std::unique_ptr<Vector<FloatPoint>> vertices, WindRule fillRule)
- : m_vertices(std::move(vertices))
+ : m_vertices(WTF::move(vertices))
, m_fillRule(fillRule)
{
unsigned nVertices = numberOfVertices();
diff --git a/Source/WebCore/platform/graphics/Font.cpp b/Source/WebCore/platform/graphics/Font.cpp
index 739a5b3..036cfd9 100644
--- a/Source/WebCore/platform/graphics/Font.cpp
+++ b/Source/WebCore/platform/graphics/Font.cpp
@@ -215,7 +215,7 @@
struct FontGlyphsCacheEntry {
WTF_MAKE_FAST_ALLOCATED;
public:
- FontGlyphsCacheEntry(FontGlyphsCacheKey&& k, PassRef<FontGlyphs> g) : key(std::move(k)), glyphs(std::move(g)) { }
+ FontGlyphsCacheEntry(FontGlyphsCacheKey&& k, PassRef<FontGlyphs> g) : key(WTF::move(k)), glyphs(WTF::move(g)) { }
FontGlyphsCacheKey key;
Ref<FontGlyphs> glyphs;
};
@@ -307,7 +307,7 @@
return addResult.iterator->value->glyphs.get();
OwnPtr<FontGlyphsCacheEntry>& newEntry = addResult.iterator->value;
- newEntry = adoptPtr(new FontGlyphsCacheEntry(std::move(key), FontGlyphs::create(fontSelector)));
+ newEntry = adoptPtr(new FontGlyphsCacheEntry(WTF::move(key), FontGlyphs::create(fontSelector)));
PassRef<FontGlyphs> glyphs = newEntry->glyphs.get();
static const unsigned unreferencedPruneInterval = 50;
diff --git a/Source/WebCore/platform/graphics/SimpleFontData.cpp b/Source/WebCore/platform/graphics/SimpleFontData.cpp
index bae6acc..2cbc3b8 100644
--- a/Source/WebCore/platform/graphics/SimpleFontData.cpp
+++ b/Source/WebCore/platform/graphics/SimpleFontData.cpp
@@ -72,7 +72,7 @@
SimpleFontData::SimpleFontData(std::unique_ptr<AdditionalFontData> fontData, float fontSize, bool syntheticBold, bool syntheticItalic)
: m_platformData(FontPlatformData(fontSize, syntheticBold, syntheticItalic))
- , m_fontData(std::move(fontData))
+ , m_fontData(WTF::move(fontData))
, m_treatAsFixedPitch(false)
, m_isCustomFont(true)
, m_isLoading(false)
diff --git a/Source/WebCore/platform/graphics/SimpleFontData.h b/Source/WebCore/platform/graphics/SimpleFontData.h
index 86b95b1..2bded5b 100644
--- a/Source/WebCore/platform/graphics/SimpleFontData.h
+++ b/Source/WebCore/platform/graphics/SimpleFontData.h
@@ -101,7 +101,7 @@
// Used to create SVG Fonts.
static PassRefPtr<SimpleFontData> create(std::unique_ptr<AdditionalFontData> fontData, float fontSize, bool syntheticBold, bool syntheticItalic)
{
- return adoptRef(new SimpleFontData(std::move(fontData), fontSize, syntheticBold, syntheticItalic));
+ return adoptRef(new SimpleFontData(WTF::move(fontData), fontSize, syntheticBold, syntheticItalic));
}
virtual ~SimpleFontData();
diff --git a/Source/WebCore/platform/graphics/TiledBackingStore.cpp b/Source/WebCore/platform/graphics/TiledBackingStore.cpp
index 0bd9458..2537d1a 100644
--- a/Source/WebCore/platform/graphics/TiledBackingStore.cpp
+++ b/Source/WebCore/platform/graphics/TiledBackingStore.cpp
@@ -37,7 +37,7 @@
TiledBackingStore::TiledBackingStore(TiledBackingStoreClient* client, std::unique_ptr<TiledBackingStoreBackend> backend)
: m_client(client)
- , m_backend(std::move(backend))
+ , m_backend(WTF::move(backend))
, m_tileBufferUpdateTimer(this, &TiledBackingStore::tileBufferUpdateTimerFired)
, m_backingStoreUpdateTimer(this, &TiledBackingStore::backingStoreUpdateTimerFired)
, m_tileSize(defaultTileDimension, defaultTileDimension)
diff --git a/Source/WebCore/platform/graphics/ca/TileController.cpp b/Source/WebCore/platform/graphics/ca/TileController.cpp
index f793db6..91d3940 100644
--- a/Source/WebCore/platform/graphics/ca/TileController.cpp
+++ b/Source/WebCore/platform/graphics/ca/TileController.cpp
@@ -116,13 +116,13 @@
m_coverageMap->setDeviceScaleFactor(deviceScaleFactor);
if (m_zoomedOutTileGrid && m_zoomedOutTileGrid->scale() == scale) {
- m_tileGrid = std::move(m_zoomedOutTileGrid);
+ m_tileGrid = WTF::move(m_zoomedOutTileGrid);
m_tileGrid->revalidateTiles(0);
return;
}
if (m_zoomedOutContentsScale && m_zoomedOutContentsScale == tileGrid().scale() && tileGrid().scale() != scale && !m_hasTilesWithTemporaryScaleFactor) {
- m_zoomedOutTileGrid = std::move(m_tileGrid);
+ m_zoomedOutTileGrid = WTF::move(m_tileGrid);
m_tileGrid = std::make_unique<TileGrid>(*this);
}
diff --git a/Source/WebCore/platform/graphics/efl/CairoUtilitiesEfl.cpp b/Source/WebCore/platform/graphics/efl/CairoUtilitiesEfl.cpp
index c71d078..51ac690 100644
--- a/Source/WebCore/platform/graphics/efl/CairoUtilitiesEfl.cpp
+++ b/Source/WebCore/platform/graphics/efl/CairoUtilitiesEfl.cpp
@@ -82,7 +82,7 @@
evas_object_image_data_copy_set(image.get(), data);
- return std::move(image);
+ return WTF::move(image);
}
PassRefPtr<cairo_surface_t> createSurfaceForBackingStore(Ecore_Evas* ee)
diff --git a/Source/WebCore/platform/graphics/efl/GraphicsContext3DEfl.cpp b/Source/WebCore/platform/graphics/efl/GraphicsContext3DEfl.cpp
index df7b71c..6cdd5e2 100644
--- a/Source/WebCore/platform/graphics/efl/GraphicsContext3DEfl.cpp
+++ b/Source/WebCore/platform/graphics/efl/GraphicsContext3DEfl.cpp
@@ -199,7 +199,7 @@
void GraphicsContext3D::setContextLostCallback(std::unique_ptr<ContextLostCallback> callBack)
{
- m_private->setContextLostCallback(std::move(callBack));
+ m_private->setContextLostCallback(WTF::move(callBack));
}
void GraphicsContext3D::setErrorMessageCallback(std::unique_ptr<ErrorMessageCallback>)
diff --git a/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp b/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp
index aa0f85f..fa06d97 100644
--- a/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp
+++ b/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp
@@ -107,7 +107,7 @@
void GraphicsContext3DPrivate::setContextLostCallback(std::unique_ptr<GraphicsContext3D::ContextLostCallback> callBack)
{
- m_contextLostCallback = std::move(callBack);
+ m_contextLostCallback = WTF::move(callBack);
}
PlatformGraphicsContext3D GraphicsContext3DPrivate::platformGraphicsContext3D() const
diff --git a/Source/WebCore/platform/graphics/filters/Filter.h b/Source/WebCore/platform/graphics/filters/Filter.h
index 190c2bd..b2057a1 100644
--- a/Source/WebCore/platform/graphics/filters/Filter.h
+++ b/Source/WebCore/platform/graphics/filters/Filter.h
@@ -40,7 +40,7 @@
{ }
virtual ~Filter() { }
- void setSourceImage(std::unique_ptr<ImageBuffer> sourceImage) { m_sourceImage = std::move(sourceImage); }
+ void setSourceImage(std::unique_ptr<ImageBuffer> sourceImage) { m_sourceImage = WTF::move(sourceImage); }
ImageBuffer* sourceImage() { return m_sourceImage.get(); }
FloatSize filterResolution() const { return m_filterResolution; }
diff --git a/Source/WebCore/platform/graphics/filters/FilterOperation.h b/Source/WebCore/platform/graphics/filters/FilterOperation.h
index 5f73f0a..9903751 100644
--- a/Source/WebCore/platform/graphics/filters/FilterOperation.h
+++ b/Source/WebCore/platform/graphics/filters/FilterOperation.h
@@ -287,7 +287,7 @@
public:
static PassRefPtr<BlurFilterOperation> create(Length stdDeviation)
{
- return adoptRef(new BlurFilterOperation(std::move(stdDeviation)));
+ return adoptRef(new BlurFilterOperation(WTF::move(stdDeviation)));
}
virtual PassRefPtr<FilterOperation> clone() const override
@@ -307,7 +307,7 @@
BlurFilterOperation(Length stdDeviation)
: FilterOperation(BLUR)
- , m_stdDeviation(std::move(stdDeviation))
+ , m_stdDeviation(WTF::move(stdDeviation))
{
}
diff --git a/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp b/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp
index 68af140..8a327d3 100644
--- a/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp
+++ b/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp
@@ -187,7 +187,7 @@
void Extensions3DOpenGLES::setEXTContextLostCallback(std::unique_ptr<GraphicsContext3D::ContextLostCallback> callback)
{
- m_contextLostCallback = std::move(callback);
+ m_contextLostCallback = WTF::move(callback);
}
void Extensions3DOpenGLES::readnPixelsEXT(int x, int y, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, GC3Dsizei bufSize, void *data)
diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp b/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp
index 52b1e1d..4cb415e 100644
--- a/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp
+++ b/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp
@@ -412,7 +412,7 @@
bool usableForRootContentsLayer = !atlas->supportsAlpha();
if (atlas->isInactive()) {
if (!foundActiveAtlasForRootContentsLayer && !atlasToKeepAnyway && usableForRootContentsLayer)
- atlasToKeepAnyway = std::move(m_updateAtlases[i]);
+ atlasToKeepAnyway = WTF::move(m_updateAtlases[i]);
m_updateAtlases.remove(i);
} else if (usableForRootContentsLayer)
foundActiveAtlasForRootContentsLayer = true;
diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
index 29f018c..f64fef2 100644
--- a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
+++ b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
@@ -885,7 +885,7 @@
// we do not want to drop the previous one as that might result in
// briefly seeing flickering as the old tiles may be dropped before
// something replaces them.
- m_previousBackingStore = std::move(m_mainBackingStore);
+ m_previousBackingStore = WTF::move(m_mainBackingStore);
// No reason to save the previous backing store for non-visible areas.
m_previousBackingStore->removeAllNonVisibleTiles();
diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp
index 3577fa8..6ccea88 100644
--- a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp
+++ b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp
@@ -39,7 +39,7 @@
if (isMainThread())
function();
else
- callOnMainThread(std::move(function));
+ callOnMainThread(WTF::move(function));
}
static bool layerShouldHaveBackingStore(TextureMapperLayer* layer)
@@ -341,7 +341,7 @@
std::unique_ptr<TextureMapperLayer> newLayer = std::make_unique<TextureMapperLayer>();
newLayer->setID(id);
newLayer->setScrollClient(this);
- m_layers.add(id, std::move(newLayer));
+ m_layers.add(id, WTF::move(newLayer));
}
void CoordinatedGraphicsScene::deleteLayers(const Vector<CoordinatedLayerID>& layerIDs)
@@ -625,7 +625,7 @@
bool calledOnMainThread = WTF::isMainThread();
if (!calledOnMainThread)
m_renderQueueMutex.lock();
- renderQueue = std::move(m_renderQueue);
+ renderQueue = WTF::move(m_renderQueue);
if (!calledOnMainThread)
m_renderQueueMutex.unlock();
@@ -699,7 +699,7 @@
ASSERT(isMainThread());
MutexLocker locker(m_renderQueueMutex);
- m_renderQueue.append(std::move(function));
+ m_renderQueue.append(WTF::move(function));
}
void CoordinatedGraphicsScene::setActive(bool active)
diff --git a/Source/WebCore/platform/graphics/win/FontCacheWin.cpp b/Source/WebCore/platform/graphics/win/FontCacheWin.cpp
index 41023a8..845c77f 100644
--- a/Source/WebCore/platform/graphics/win/FontCacheWin.cpp
+++ b/Source/WebCore/platform/graphics/win/FontCacheWin.cpp
@@ -569,7 +569,7 @@
bool synthesizeBold = isGDIFontWeightBold(weight) && !isGDIFontWeightBold(logFont.lfWeight);
bool synthesizeItalic = fontDescription.italic() && !logFont.lfItalic;
- FontPlatformData* result = new FontPlatformData(std::move(hfont), fontDescription.computedPixelSize(), synthesizeBold, synthesizeItalic, useGDI);
+ FontPlatformData* result = new FontPlatformData(WTF::move(hfont), fontDescription.computedPixelSize(), synthesizeBold, synthesizeItalic, useGDI);
#if USE(CG)
bool fontCreationFailed = !result->cgFont();
diff --git a/Source/WebCore/platform/graphics/win/FontCustomPlatformData.cpp b/Source/WebCore/platform/graphics/win/FontCustomPlatformData.cpp
index 2cf3784..098e09b3 100644
--- a/Source/WebCore/platform/graphics/win/FontCustomPlatformData.cpp
+++ b/Source/WebCore/platform/graphics/win/FontCustomPlatformData.cpp
@@ -65,7 +65,7 @@
auto hfont = adoptGDIObject(::CreateFontIndirect(&logFont));
RetainPtr<CGFontRef> cgFont = adoptCF(CGFontCreateWithPlatformFont(&logFont));
- return FontPlatformData(std::move(hfont), cgFont.get(), size, bold, italic, renderingMode == AlternateRenderingMode);
+ return FontPlatformData(WTF::move(hfont), cgFont.get(), size, bold, italic, renderingMode == AlternateRenderingMode);
}
// Creates a unique and unpredictable font name, in order to avoid collisions and to
diff --git a/Source/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp b/Source/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp
index ff63449..9e66cbd 100644
--- a/Source/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp
+++ b/Source/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp
@@ -63,7 +63,7 @@
cairo_font_face_t* fontFace = cairo_win32_font_face_create_for_hfont(hfont.get());
- FontPlatformData fontPlatformData(std::move(hfont), fontFace, size, bold, italic);
+ FontPlatformData fontPlatformData(WTF::move(hfont), fontFace, size, bold, italic);
cairo_font_face_destroy(fontFace);
diff --git a/Source/WebCore/platform/graphics/win/FontPlatformDataCGWin.cpp b/Source/WebCore/platform/graphics/win/FontPlatformDataCGWin.cpp
index 286be08..ed9551b 100644
--- a/Source/WebCore/platform/graphics/win/FontPlatformDataCGWin.cpp
+++ b/Source/WebCore/platform/graphics/win/FontPlatformDataCGWin.cpp
@@ -121,7 +121,7 @@
, m_orientation(Horizontal)
, m_size(size)
, m_widthVariant(RegularWidth)
- , m_font(SharedGDIObject<HFONT>::create(std::move(hfont)))
+ , m_font(SharedGDIObject<HFONT>::create(WTF::move(hfont)))
, m_cgFont(font)
, m_isColorBitmapFont(false)
, m_isCompositeFontReference(false)
diff --git a/Source/WebCore/platform/graphics/win/FontPlatformDataCairoWin.cpp b/Source/WebCore/platform/graphics/win/FontPlatformDataCairoWin.cpp
index d8f8177..339c14d 100644
--- a/Source/WebCore/platform/graphics/win/FontPlatformDataCairoWin.cpp
+++ b/Source/WebCore/platform/graphics/win/FontPlatformDataCairoWin.cpp
@@ -57,7 +57,7 @@
}
FontPlatformData::FontPlatformData(GDIObject<HFONT> font, cairo_font_face_t* fontFace, float size, bool bold, bool oblique)
- : m_font(SharedGDIObject<HFONT>::create(std::move(font)))
+ : m_font(SharedGDIObject<HFONT>::create(WTF::move(font)))
, m_size(size)
, m_orientation(Horizontal)
, m_widthVariant(RegularWidth)
diff --git a/Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp b/Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp
index 8519427..09332e4 100644
--- a/Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp
+++ b/Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp
@@ -38,7 +38,7 @@
namespace WebCore {
FontPlatformData::FontPlatformData(GDIObject<HFONT> font, float size, bool bold, bool oblique, bool useGDI)
- : m_font(SharedGDIObject<HFONT>::create(std::move(font)))
+ : m_font(SharedGDIObject<HFONT>::create(WTF::move(font)))
, m_size(size)
, m_orientation(Horizontal)
, m_widthVariant(RegularWidth)
diff --git a/Source/WebCore/platform/graphics/win/SharedGDIObject.h b/Source/WebCore/platform/graphics/win/SharedGDIObject.h
index dd2683a..2ae48a7 100644
--- a/Source/WebCore/platform/graphics/win/SharedGDIObject.h
+++ b/Source/WebCore/platform/graphics/win/SharedGDIObject.h
@@ -36,7 +36,7 @@
public:
static PassRefPtr<SharedGDIObject> create(GDIObject<T> object)
{
- return adoptRef(new SharedGDIObject<T>(std::move(object)));
+ return adoptRef(new SharedGDIObject<T>(WTF::move(object)));
}
T get() const
@@ -51,7 +51,7 @@
private:
explicit SharedGDIObject(GDIObject<T> object)
- : m_object(std::move(object))
+ : m_object(WTF::move(object))
{
}
diff --git a/Source/WebCore/platform/graphics/win/SimpleFontDataWin.cpp b/Source/WebCore/platform/graphics/win/SimpleFontDataWin.cpp
index fedd3ed..6c14866 100644
--- a/Source/WebCore/platform/graphics/win/SimpleFontDataWin.cpp
+++ b/Source/WebCore/platform/graphics/win/SimpleFontDataWin.cpp
@@ -140,7 +140,7 @@
GetObject(m_platformData.hfont(), sizeof(LOGFONT), &winfont);
winfont.lfHeight = -lroundf(scaledSize * (m_platformData.useGDI() ? 1 : 32));
auto hfont = adoptGDIObject(::CreateFontIndirect(&winfont));
- return SimpleFontData::create(FontPlatformData(std::move(hfont), scaledSize, m_platformData.syntheticBold(), m_platformData.syntheticOblique(), m_platformData.useGDI()), isCustomFont(), false);
+ return SimpleFontData::create(FontPlatformData(WTF::move(hfont), scaledSize, m_platformData.syntheticBold(), m_platformData.syntheticOblique(), m_platformData.useGDI()), isCustomFont(), false);
}
bool SimpleFontData::containsCharacters(const UChar* characters, int length) const
diff --git a/Source/WebCore/platform/gtk/GtkTouchContextHelper.cpp b/Source/WebCore/platform/gtk/GtkTouchContextHelper.cpp
index 5585861..57f2f80 100644
--- a/Source/WebCore/platform/gtk/GtkTouchContextHelper.cpp
+++ b/Source/WebCore/platform/gtk/GtkTouchContextHelper.cpp
@@ -39,7 +39,7 @@
case GDK_TOUCH_BEGIN: {
ASSERT(!m_touchEvents.contains(sequence));
GUniquePtr<GdkEvent> event(gdk_event_copy(touchEvent));
- m_touchEvents.add(sequence, std::move(event));
+ m_touchEvents.add(sequence, WTF::move(event));
break;
}
case GDK_TOUCH_UPDATE: {
diff --git a/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp b/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
index 93603f6..7296860 100644
--- a/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
+++ b/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
@@ -149,7 +149,7 @@
auto result = std::make_unique<LevelDBDatabase>();
result->m_db = std::unique_ptr<leveldb::DB>(db);
- result->m_comparatorAdapter = std::move(comparatorAdapter);
+ result->m_comparatorAdapter = WTF::move(comparatorAdapter);
result->m_comparator = comparator;
return result;
@@ -169,9 +169,9 @@
}
auto result = std::make_unique<LevelDBDatabase>();
- result->m_env = std::move(inMemoryEnv);
+ result->m_env = WTF::move(inMemoryEnv);
result->m_db = std::unique_ptr<leveldb::DB>(db);
- result->m_comparatorAdapter = std::move(comparatorAdapter);
+ result->m_comparatorAdapter = WTF::move(comparatorAdapter);
result->m_comparator = comparator;
return result;
@@ -258,7 +258,7 @@
}
IteratorImpl::IteratorImpl(std::unique_ptr<leveldb::Iterator> it)
- : m_iterator(std::move(it))
+ : m_iterator(WTF::move(it))
{
}
@@ -320,7 +320,7 @@
std::unique_ptr<leveldb::Iterator> i(m_db->NewIterator(readOptions));
if (!i) // FIXME: Double check if we actually need to check this.
return nullptr;
- return std::make_unique<IteratorImpl>(std::move(i));
+ return std::make_unique<IteratorImpl>(WTF::move(i));
}
const LevelDBComparator* LevelDBDatabase::comparator() const
diff --git a/Source/WebCore/platform/mac/HIDGamepadProvider.cpp b/Source/WebCore/platform/mac/HIDGamepadProvider.cpp
index 7a304ce..825cd37 100644
--- a/Source/WebCore/platform/mac/HIDGamepadProvider.cpp
+++ b/Source/WebCore/platform/mac/HIDGamepadProvider.cpp
@@ -176,7 +176,7 @@
m_gamepadVector.resize(index + 1);
m_gamepadVector[index] = gamepad.get();
- m_gamepadMap.set(device, std::move(gamepad));
+ m_gamepadMap.set(device, WTF::move(gamepad));
if (!m_shouldDispatchCallbacks) {
// This added device is the result of us starting to monitor gamepads.
diff --git a/Source/WebCore/platform/network/BlobData.h b/Source/WebCore/platform/network/BlobData.h
index f76bdee..0d0b3b7 100644
--- a/Source/WebCore/platform/network/BlobData.h
+++ b/Source/WebCore/platform/network/BlobData.h
@@ -44,14 +44,14 @@
public:
static PassRefPtr<RawData> create(Vector<char>&& data)
{
- return adoptRef(new RawData(std::move(data)));
+ return adoptRef(new RawData(WTF::move(data)));
}
static PassRefPtr<RawData> create(const char* data, size_t size)
{
Vector<char> dataVector(size);
memcpy(dataVector.data(), data, size);
- return adoptRef(new RawData(std::move(dataVector)));
+ return adoptRef(new RawData(WTF::move(dataVector)));
}
const char* data() const { return m_data.data(); }
@@ -59,7 +59,7 @@
private:
RawData(Vector<char>&& data)
- : m_data(std::move(data))
+ : m_data(WTF::move(data))
{
}
diff --git a/Source/WebCore/platform/network/BlobPart.h b/Source/WebCore/platform/network/BlobPart.h
index 93e79b4..03b4acf 100644
--- a/Source/WebCore/platform/network/BlobPart.h
+++ b/Source/WebCore/platform/network/BlobPart.h
@@ -44,7 +44,7 @@
BlobPart(Vector<char> data)
: m_type(Data)
- , m_data(std::move(data))
+ , m_data(WTF::move(data))
{
}
@@ -65,7 +65,7 @@
Vector<char> moveData()
{
ASSERT(m_type == Data);
- return std::move(m_data);
+ return WTF::move(m_data);
}
const URL& url() const
diff --git a/Source/WebCore/platform/network/HTTPHeaderMap.cpp b/Source/WebCore/platform/network/HTTPHeaderMap.cpp
index cc3ecc3..b2f5e0c 100644
--- a/Source/WebCore/platform/network/HTTPHeaderMap.cpp
+++ b/Source/WebCore/platform/network/HTTPHeaderMap.cpp
@@ -61,7 +61,7 @@
m_headers.clear();
for (auto& header : *data)
- m_headers.add(std::move(header.first), std::move(header.second));
+ m_headers.add(WTF::move(header.first), WTF::move(header.second));
}
static String internHTTPHeaderNameString(const String& nameString)
diff --git a/Source/WebCore/platform/network/NetworkStateNotifier.cpp b/Source/WebCore/platform/network/NetworkStateNotifier.cpp
index 7540a78..bdaca18 100644
--- a/Source/WebCore/platform/network/NetworkStateNotifier.cpp
+++ b/Source/WebCore/platform/network/NetworkStateNotifier.cpp
@@ -57,7 +57,7 @@
registerObserverIfNecessary();
#endif
- m_listeners.append(std::move(listener));
+ m_listeners.append(WTF::move(listener));
}
void NetworkStateNotifier::notifyNetworkStateChange() const
diff --git a/Source/WebCore/platform/network/ResourceHandle.h b/Source/WebCore/platform/network/ResourceHandle.h
index 8bdaf25..bdf42e9 100644
--- a/Source/WebCore/platform/network/ResourceHandle.h
+++ b/Source/WebCore/platform/network/ResourceHandle.h
@@ -164,7 +164,7 @@
#if USE(QUICK_LOOK)
QuickLookHandle* quickLookHandle() { return m_quickLook.get(); }
- void setQuickLookHandle(std::unique_ptr<QuickLookHandle> handle) { m_quickLook = std::move(handle); }
+ void setQuickLookHandle(std::unique_ptr<QuickLookHandle> handle) { m_quickLook = WTF::move(handle); }
#endif
#if PLATFORM(WIN) && USE(CURL)
diff --git a/Source/WebCore/platform/network/ResourceRequestBase.cpp b/Source/WebCore/platform/network/ResourceRequestBase.cpp
index 7ad05c5..09d8fb1 100644
--- a/Source/WebCore/platform/network/ResourceRequestBase.cpp
+++ b/Source/WebCore/platform/network/ResourceRequestBase.cpp
@@ -60,7 +60,7 @@
request->setPriority(data->m_priority);
request->updateResourceRequest();
- request->m_httpHeaderFields.adopt(std::move(data->m_httpHeaders));
+ request->m_httpHeaderFields.adopt(WTF::move(data->m_httpHeaders));
size_t encodingCount = data->m_responseContentDispositionEncodingFallbackArray.size();
if (encodingCount > 0) {
@@ -467,7 +467,7 @@
{
updateResourceRequest();
- m_httpHeaderFields = std::move(headerFields);
+ m_httpHeaderFields = WTF::move(headerFields);
if (url().protocolIsInHTTPFamily())
m_platformRequestUpdated = false;
diff --git a/Source/WebCore/platform/network/ResourceResponseBase.cpp b/Source/WebCore/platform/network/ResourceResponseBase.cpp
index 01ee53b..79d4d76 100644
--- a/Source/WebCore/platform/network/ResourceResponseBase.cpp
+++ b/Source/WebCore/platform/network/ResourceResponseBase.cpp
@@ -107,7 +107,7 @@
response->setHTTPStatusText(data->m_httpStatusText);
response->lazyInit(CommonAndUncommonFields);
- response->m_httpHeaderFields.adopt(std::move(data->m_httpHeaders));
+ response->m_httpHeaderFields.adopt(WTF::move(data->m_httpHeaders));
response->m_resourceLoadTiming = data->m_resourceLoadTiming;
response->doPlatformAdopt(data);
return response.release();
diff --git a/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp b/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp
index 3ed8276..20c7510 100644
--- a/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp
+++ b/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp
@@ -139,7 +139,7 @@
size_t size = nextInput.m_data.size();
MallocPtr<char> data = nextInput.m_data.releaseBuffer();
form->currentStream = CFReadStreamCreateWithBytesNoCopy(0, reinterpret_cast<const UInt8*>(data.get()), size, kCFAllocatorNull);
- form->currentData = std::move(data);
+ form->currentData = WTF::move(data);
} else {
// Check if the file has been changed or not if required.
if (isValidFileTime(nextInput.m_expectedFileModificationTime)) {
diff --git a/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp b/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp
index b6f6a38..66b42d6 100644
--- a/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp
+++ b/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp
@@ -494,7 +494,7 @@
RetainPtr<CFURLConnectionRef> ResourceHandle::releaseConnectionForDownload()
{
LOG(Network, "CFNet - Job %p releasing connection %p for download", this, d->m_connection.get());
- return std::move(d->m_connection);
+ return WTF::move(d->m_connection);
}
CFStringRef ResourceHandle::synchronousLoadRunLoopMode()
diff --git a/Source/WebCore/platform/network/curl/CurlCacheManager.cpp b/Source/WebCore/platform/network/curl/CurlCacheManager.cpp
index 7fb0051..6b26d52 100644
--- a/Source/WebCore/platform/network/curl/CurlCacheManager.cpp
+++ b/Source/WebCore/platform/network/curl/CurlCacheManager.cpp
@@ -145,7 +145,7 @@
m_currentStorageSize += cacheEntry->entrySize();
makeRoomForNewEntry();
m_LRUEntryList.prependOrMoveToFirst(url);
- m_index.set(url, std::move(cacheEntry));
+ m_index.set(url, WTF::move(cacheEntry));
} else
cacheEntry->invalidate();
@@ -217,7 +217,7 @@
bool cacheable = cacheEntry->parseResponseHeaders(response);
if (cacheable) {
m_LRUEntryList.prependOrMoveToFirst(url);
- m_index.set(url, std::move(cacheEntry));
+ m_index.set(url, WTF::move(cacheEntry));
saveResponseHeaders(url, response);
}
} else
diff --git a/Source/WebCore/platform/network/ios/QuickLook.mm b/Source/WebCore/platform/network/ios/QuickLook.mm
index 89df408..96c8715 100644
--- a/Source/WebCore/platform/network/ios/QuickLook.mm
+++ b/Source/WebCore/platform/network/ios/QuickLook.mm
@@ -428,7 +428,7 @@
std::unique_ptr<QuickLookHandle> quickLookHandle(new QuickLookHandle([handle->firstRequest().nsURLRequest(DoNotUpdateHTTPBody) URL], connection, nsResponse, delegate));
handle->client()->didCreateQuickLookHandle(*quickLookHandle);
- return std::move(quickLookHandle);
+ return WTF::move(quickLookHandle);
}
#if USE(CFNETWORK)
@@ -442,7 +442,7 @@
WebQuickLookHandleAsDelegate *delegate = [[[WebQuickLookHandleAsDelegate alloc] initWithConnectionDelegate:connectionDelegate] autorelease];
std::unique_ptr<QuickLookHandle> quickLookHandle(new QuickLookHandle([handle->firstRequest().nsURLRequest(DoNotUpdateHTTPBody) URL], nil, nsResponse, delegate));
handle->client()->didCreateQuickLookHandle(*quickLookHandle);
- return std::move(quickLookHandle);
+ return WTF::move(quickLookHandle);
}
CFURLResponseRef QuickLookHandle::cfResponse()
@@ -460,7 +460,7 @@
RetainPtr<WebResourceLoaderQuickLookDelegate> delegate = adoptNS([[WebResourceLoaderQuickLookDelegate alloc] initWithResourceLoader:loader]);
std::unique_ptr<QuickLookHandle> quickLookHandle(new QuickLookHandle([loader->originalRequest().nsURLRequest(DoNotUpdateHTTPBody) URL], nil, response, delegate.get()));
loader->didCreateQuickLookHandle(*quickLookHandle);
- return std::move(quickLookHandle);
+ return WTF::move(quickLookHandle);
}
NSURLResponse *QuickLookHandle::nsResponse()
diff --git a/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp b/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp
index cbd74b46..0dda5b5 100644
--- a/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp
+++ b/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp
@@ -37,7 +37,7 @@
namespace WebCore {
NetworkStorageSession::NetworkStorageSession(std::unique_ptr<SoupNetworkSession> session)
- : m_session(std::move(session))
+ : m_session(WTF::move(session))
, m_isPrivate(false)
{
}
@@ -79,7 +79,7 @@
void NetworkStorageSession::setSoupNetworkSession(std::unique_ptr<SoupNetworkSession> session)
{
- m_session = std::move(session);
+ m_session = WTF::move(session);
}
}
diff --git a/Source/WebCore/platform/win/WCDataObject.cpp b/Source/WebCore/platform/win/WCDataObject.cpp
index 25dee14..c7937b8 100644
--- a/Source/WebCore/platform/win/WCDataObject.cpp
+++ b/Source/WebCore/platform/win/WCDataObject.cpp
@@ -264,13 +264,13 @@
ZeroMemory(pStgMed.get(), sizeof(STGMEDIUM));
*fetc = *pformatetc;
- m_formats.append(std::move(fetc));
+ m_formats.append(WTF::move(fetc));
if(fRelease)
*pStgMed = *pmedium;
else
CopyMedium(pStgMed.get(), pmedium, pformatetc);
- m_medium.append(std::move(pStgMed));
+ m_medium.append(WTF::move(pStgMed));
return S_OK;
}
diff --git a/Source/WebCore/plugins/PluginView.cpp b/Source/WebCore/plugins/PluginView.cpp
index 6bb40a5..a88adf9 100644
--- a/Source/WebCore/plugins/PluginView.cpp
+++ b/Source/WebCore/plugins/PluginView.cpp
@@ -1178,7 +1178,7 @@
frameLoadRequest.resourceRequest().setHTTPMethod("POST");
frameLoadRequest.resourceRequest().setURL(makeURL(m_parentFrame->document()->baseURL(), url));
- frameLoadRequest.resourceRequest().setHTTPHeaderFields(std::move(headerFields));
+ frameLoadRequest.resourceRequest().setHTTPHeaderFields(WTF::move(headerFields));
frameLoadRequest.resourceRequest().setHTTPBody(FormData::create(postData, postDataLength));
frameLoadRequest.setFrameName(target);
diff --git a/Source/WebCore/rendering/FloatingObjects.cpp b/Source/WebCore/rendering/FloatingObjects.cpp
index 1b7daa8..5b5bf06 100644
--- a/Source/WebCore/rendering/FloatingObjects.cpp
+++ b/Source/WebCore/rendering/FloatingObjects.cpp
@@ -286,7 +286,7 @@
// FIXME: The only reason it is safe to move these out of the set is that
// we are about to clear it. Otherwise it would break the hash table invariant.
// A clean way to do this would be to add a takeAll function to HashSet.
- map.add(&renderer, std::move(*it));
+ map.add(&renderer, WTF::move(*it));
}
clear();
}
@@ -349,7 +349,7 @@
increaseObjectsCount(floatingObject->type());
if (floatingObject->isPlaced())
addPlacedObject(floatingObject.get());
- return m_set.add(std::move(floatingObject)).iterator->get();
+ return m_set.add(WTF::move(floatingObject)).iterator->get();
}
void FloatingObjects::remove(FloatingObject* floatingObject)
diff --git a/Source/WebCore/rendering/LayoutState.cpp b/Source/WebCore/rendering/LayoutState.cpp
index 1046b88..2dd1422 100644
--- a/Source/WebCore/rendering/LayoutState.cpp
+++ b/Source/WebCore/rendering/LayoutState.cpp
@@ -36,7 +36,7 @@
LayoutState::LayoutState(std::unique_ptr<LayoutState> next, RenderBox* renderer, const LayoutSize& offset, LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged)
: m_lineGrid(0)
- , m_next(std::move(next))
+ , m_next(WTF::move(next))
#ifndef NDEBUG
, m_renderer(renderer)
#endif
diff --git a/Source/WebCore/rendering/RenderBlock.cpp b/Source/WebCore/rendering/RenderBlock.cpp
index 8636d3b..d14db03 100644
--- a/Source/WebCore/rendering/RenderBlock.cpp
+++ b/Source/WebCore/rendering/RenderBlock.cpp
@@ -173,7 +173,7 @@
};
RenderBlock::RenderBlock(Element& element, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderBox(element, std::move(style), baseTypeFlags | RenderBlockFlag)
+ : RenderBox(element, WTF::move(style), baseTypeFlags | RenderBlockFlag)
, m_lineHeight(-1)
, m_hasMarginBeforeQuirk(false)
, m_hasMarginAfterQuirk(false)
@@ -185,7 +185,7 @@
}
RenderBlock::RenderBlock(Document& document, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderBox(document, std::move(style), baseTypeFlags | RenderBlockFlag)
+ : RenderBox(document, WTF::move(style), baseTypeFlags | RenderBlockFlag)
, m_lineHeight(-1)
, m_hasMarginBeforeQuirk(false)
, m_hasMarginAfterQuirk(false)
@@ -448,7 +448,7 @@
RenderBlock* blockCurr = toRenderBlock(curr);
// Create a new clone.
- RenderPtr<RenderBlock> cloneChild = std::move(cloneBlock);
+ RenderPtr<RenderBlock> cloneChild = WTF::move(cloneBlock);
cloneBlock = blockCurr->clone();
// Insert our child clone as the first child.
diff --git a/Source/WebCore/rendering/RenderBlockFlow.cpp b/Source/WebCore/rendering/RenderBlockFlow.cpp
index 1bc80cc..ea66ae7 100644
--- a/Source/WebCore/rendering/RenderBlockFlow.cpp
+++ b/Source/WebCore/rendering/RenderBlockFlow.cpp
@@ -92,7 +92,7 @@
}
RenderBlockFlow::RenderBlockFlow(Element& element, PassRef<RenderStyle> style)
- : RenderBlock(element, std::move(style), RenderBlockFlowFlag)
+ : RenderBlock(element, WTF::move(style), RenderBlockFlowFlag)
#if ENABLE(IOS_TEXT_AUTOSIZING)
, m_widthForTextAutosizing(-1)
, m_lineCountForTextAutosizing(NOT_SET)
@@ -102,7 +102,7 @@
}
RenderBlockFlow::RenderBlockFlow(Document& document, PassRef<RenderStyle> style)
- : RenderBlock(document, std::move(style), RenderBlockFlowFlag)
+ : RenderBlock(document, WTF::move(style), RenderBlockFlowFlag)
#if ENABLE(IOS_TEXT_AUTOSIZING)
, m_widthForTextAutosizing(-1)
, m_lineCountForTextAutosizing(NOT_SET)
@@ -1916,7 +1916,7 @@
VerticalPositionCache verticalPositionCache;
lineGridBox->alignBoxesInBlockDirection(logicalHeight(), textBoxDataMap, verticalPositionCache);
- setLineGridBox(std::move(lineGridBox));
+ setLineGridBox(WTF::move(lineGridBox));
// FIXME: If any of the characteristics of the box change compared to the old one, then we need to do a deep dirtying
// (similar to what happens when the page height changes). Ideally, though, we only do this if someone is actually snapping
@@ -2222,7 +2222,7 @@
setLogicalWidthForFloat(floatingObject.get(), logicalWidthForChild(floatBox) + marginStartForChild(floatBox) + marginEndForChild(floatBox));
- return m_floatingObjects->add(std::move(floatingObject));
+ return m_floatingObjects->add(WTF::move(floatingObject));
}
void RenderBlockFlow::removeFloatingObject(RenderBox& floatBox)
diff --git a/Source/WebCore/rendering/RenderBlockFlow.h b/Source/WebCore/rendering/RenderBlockFlow.h
index 6bf25d6..ded9223 100644
--- a/Source/WebCore/rendering/RenderBlockFlow.h
+++ b/Source/WebCore/rendering/RenderBlockFlow.h
@@ -269,7 +269,7 @@
RootInlineBox* lineGridBox() const { return hasRareBlockFlowData() ? rareBlockFlowData()->m_lineGridBox.get() : nullptr; }
void setLineGridBox(std::unique_ptr<RootInlineBox> box)
{
- ensureRareBlockFlowData().m_lineGridBox = std::move(box);
+ ensureRareBlockFlowData().m_lineGridBox = WTF::move(box);
}
void layoutLineGridBox();
diff --git a/Source/WebCore/rendering/RenderBlockLineLayout.cpp b/Source/WebCore/rendering/RenderBlockLineLayout.cpp
index f76b370..13904e7 100644
--- a/Source/WebCore/rendering/RenderBlockLineLayout.cpp
+++ b/Source/WebCore/rendering/RenderBlockLineLayout.cpp
@@ -126,7 +126,7 @@
{
auto newRootBox = createRootInlineBox();
RootInlineBox* rootBox = newRootBox.get();
- m_lineBoxes.appendLineBox(std::move(newRootBox));
+ m_lineBoxes.appendLineBox(WTF::move(newRootBox));
if (UNLIKELY(AXObjectCache::accessibilityEnabled()) && firstRootBox() == rootBox) {
if (AXObjectCache* cache = document().existingAXObjectCache())
@@ -1312,7 +1312,7 @@
LayoutUnit bottomLayoutOverflow = lastRootBox()->logicalBottomLayoutOverflow();
auto newLineBox = std::make_unique<TrailingFloatsRootInlineBox>(*this);
auto trailingFloatsLineBox = newLineBox.get();
- m_lineBoxes.appendLineBox(std::move(newLineBox));
+ m_lineBoxes.appendLineBox(WTF::move(newLineBox));
trailingFloatsLineBox->setConstructed();
GlyphOverflowAndFallbackFontsMap textBoxDataMap;
VerticalPositionCache verticalPositionCache;
diff --git a/Source/WebCore/rendering/RenderBox.cpp b/Source/WebCore/rendering/RenderBox.cpp
index bc5c97d..281324a 100644
--- a/Source/WebCore/rendering/RenderBox.cpp
+++ b/Source/WebCore/rendering/RenderBox.cpp
@@ -109,7 +109,7 @@
}
RenderBox::RenderBox(Element& element, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderBoxModelObject(element, std::move(style), baseTypeFlags)
+ : RenderBoxModelObject(element, WTF::move(style), baseTypeFlags)
, m_minPreferredLogicalWidth(-1)
, m_maxPreferredLogicalWidth(-1)
, m_inlineBoxWrapper(0)
@@ -118,7 +118,7 @@
}
RenderBox::RenderBox(Document& document, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderBoxModelObject(document, std::move(style), baseTypeFlags)
+ : RenderBoxModelObject(document, WTF::move(style), baseTypeFlags)
, m_minPreferredLogicalWidth(-1)
, m_maxPreferredLogicalWidth(-1)
, m_inlineBoxWrapper(0)
diff --git a/Source/WebCore/rendering/RenderBoxModelObject.cpp b/Source/WebCore/rendering/RenderBoxModelObject.cpp
index 34a6771..0f28cc7 100644
--- a/Source/WebCore/rendering/RenderBoxModelObject.cpp
+++ b/Source/WebCore/rendering/RenderBoxModelObject.cpp
@@ -161,12 +161,12 @@
}
RenderBoxModelObject::RenderBoxModelObject(Element& element, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderLayerModelObject(element, std::move(style), baseTypeFlags | RenderBoxModelObjectFlag)
+ : RenderLayerModelObject(element, WTF::move(style), baseTypeFlags | RenderBoxModelObjectFlag)
{
}
RenderBoxModelObject::RenderBoxModelObject(Document& document, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderLayerModelObject(document, std::move(style), baseTypeFlags | RenderBoxModelObjectFlag)
+ : RenderLayerModelObject(document, WTF::move(style), baseTypeFlags | RenderBoxModelObjectFlag)
{
}
diff --git a/Source/WebCore/rendering/RenderButton.cpp b/Source/WebCore/rendering/RenderButton.cpp
index ab6c9f8..e067884 100644
--- a/Source/WebCore/rendering/RenderButton.cpp
+++ b/Source/WebCore/rendering/RenderButton.cpp
@@ -38,7 +38,7 @@
using namespace HTMLNames;
RenderButton::RenderButton(HTMLFormControlElement& element, PassRef<RenderStyle> style)
- : RenderFlexibleBox(element, std::move(style))
+ : RenderFlexibleBox(element, WTF::move(style))
, m_buttonText(0)
, m_inner(0)
, m_default(false)
diff --git a/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp b/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
index bb5d14c..7606ad9 100644
--- a/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
+++ b/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
@@ -118,7 +118,7 @@
};
RenderDeprecatedFlexibleBox::RenderDeprecatedFlexibleBox(Element& element, PassRef<RenderStyle> style)
- : RenderBlock(element, std::move(style), 0)
+ : RenderBlock(element, WTF::move(style), 0)
{
setChildrenInline(false); // All of our children must be block-level
m_stretchingChildren = false;
diff --git a/Source/WebCore/rendering/RenderDetailsMarker.cpp b/Source/WebCore/rendering/RenderDetailsMarker.cpp
index 455d797..a76e7fd 100644
--- a/Source/WebCore/rendering/RenderDetailsMarker.cpp
+++ b/Source/WebCore/rendering/RenderDetailsMarker.cpp
@@ -33,7 +33,7 @@
using namespace HTMLNames;
RenderDetailsMarker::RenderDetailsMarker(DetailsMarkerControl& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderElement.cpp b/Source/WebCore/rendering/RenderElement.cpp
index 9d3d83d..251dd4f 100644
--- a/Source/WebCore/rendering/RenderElement.cpp
+++ b/Source/WebCore/rendering/RenderElement.cpp
@@ -86,17 +86,17 @@
, m_hasPausedImageAnimations(false)
, m_firstChild(nullptr)
, m_lastChild(nullptr)
- , m_style(std::move(style))
+ , m_style(WTF::move(style))
{
}
RenderElement::RenderElement(Element& element, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderElement(static_cast<ContainerNode&>(element), std::move(style), baseTypeFlags)
+ : RenderElement(static_cast<ContainerNode&>(element), WTF::move(style), baseTypeFlags)
{
}
RenderElement::RenderElement(Document& document, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderElement(static_cast<ContainerNode&>(document), std::move(style), baseTypeFlags)
+ : RenderElement(static_cast<ContainerNode&>(document), WTF::move(style), baseTypeFlags)
{
}
@@ -138,58 +138,58 @@
const ContentData* contentData = style.get().contentData();
if (contentData && !contentData->next() && contentData->isImage() && !element.isPseudoElement()) {
auto& styleImage = toImageContentData(contentData)->image();
- auto image = createRenderer<RenderImage>(element, std::move(style), const_cast<StyleImage*>(&styleImage));
+ auto image = createRenderer<RenderImage>(element, WTF::move(style), const_cast<StyleImage*>(&styleImage));
image->setIsGeneratedContent();
- return std::move(image);
+ return WTF::move(image);
}
if (element.hasTagName(HTMLNames::rubyTag)) {
if (style.get().display() == INLINE)
- return createRenderer<RenderRubyAsInline>(element, std::move(style));
+ return createRenderer<RenderRubyAsInline>(element, WTF::move(style));
if (style.get().display() == BLOCK)
- return createRenderer<RenderRubyAsBlock>(element, std::move(style));
+ return createRenderer<RenderRubyAsBlock>(element, WTF::move(style));
}
// treat <rt> as ruby text ONLY if it still has its default treatment of block
if (element.hasTagName(HTMLNames::rtTag) && style.get().display() == BLOCK)
- return createRenderer<RenderRubyText>(element, std::move(style));
+ return createRenderer<RenderRubyText>(element, WTF::move(style));
switch (style.get().display()) {
case NONE:
style.dropRef();
return nullptr;
case INLINE:
- return createRenderer<RenderInline>(element, std::move(style));
+ return createRenderer<RenderInline>(element, WTF::move(style));
case BLOCK:
case INLINE_BLOCK:
case COMPACT:
- return createRenderer<RenderBlockFlow>(element, std::move(style));
+ return createRenderer<RenderBlockFlow>(element, WTF::move(style));
case LIST_ITEM:
- return createRenderer<RenderListItem>(element, std::move(style));
+ return createRenderer<RenderListItem>(element, WTF::move(style));
case TABLE:
case INLINE_TABLE:
- return createRenderer<RenderTable>(element, std::move(style));
+ return createRenderer<RenderTable>(element, WTF::move(style));
case TABLE_ROW_GROUP:
case TABLE_HEADER_GROUP:
case TABLE_FOOTER_GROUP:
- return createRenderer<RenderTableSection>(element, std::move(style));
+ return createRenderer<RenderTableSection>(element, WTF::move(style));
case TABLE_ROW:
- return createRenderer<RenderTableRow>(element, std::move(style));
+ return createRenderer<RenderTableRow>(element, WTF::move(style));
case TABLE_COLUMN_GROUP:
case TABLE_COLUMN:
- return createRenderer<RenderTableCol>(element, std::move(style));
+ return createRenderer<RenderTableCol>(element, WTF::move(style));
case TABLE_CELL:
- return createRenderer<RenderTableCell>(element, std::move(style));
+ return createRenderer<RenderTableCell>(element, WTF::move(style));
case TABLE_CAPTION:
- return createRenderer<RenderTableCaption>(element, std::move(style));
+ return createRenderer<RenderTableCaption>(element, WTF::move(style));
case BOX:
case INLINE_BOX:
- return createRenderer<RenderDeprecatedFlexibleBox>(element, std::move(style));
+ return createRenderer<RenderDeprecatedFlexibleBox>(element, WTF::move(style));
case FLEX:
case INLINE_FLEX:
- return createRenderer<RenderFlexibleBox>(element, std::move(style));
+ return createRenderer<RenderFlexibleBox>(element, WTF::move(style));
#if ENABLE(CSS_GRID_LAYOUT)
case GRID:
case INLINE_GRID:
- return createRenderer<RenderGrid>(element, std::move(style));
+ return createRenderer<RenderGrid>(element, WTF::move(style));
#endif
}
ASSERT_NOT_REACHED();
@@ -407,7 +407,7 @@
styleWillChange(diff, style.get());
- Ref<RenderStyle> oldStyle(m_style.replace(std::move(style)));
+ Ref<RenderStyle> oldStyle(m_style.replace(WTF::move(style)));
updateFillImages(oldStyle.get().backgroundLayers(), m_style->backgroundLayers());
updateFillImages(oldStyle.get().maskLayers(), m_style->maskLayers());
@@ -786,7 +786,7 @@
if (elementChild.isInFlowPositioned() && toRenderBlock(elementChild).isAnonymousBlockContinuation())
newStyle.get().setPosition(elementChild.style().position());
- elementChild.setStyle(std::move(newStyle));
+ elementChild.setStyle(WTF::move(newStyle));
}
}
diff --git a/Source/WebCore/rendering/RenderElement.h b/Source/WebCore/rendering/RenderElement.h
index ceb1e2b..d438099 100644
--- a/Source/WebCore/rendering/RenderElement.h
+++ b/Source/WebCore/rendering/RenderElement.h
@@ -110,7 +110,7 @@
// Updates only the local style ptr of the object. Does not update the state of the object,
// and so only should be called when the style is known not to have changed (or from setStyle).
- void setStyleInternal(PassRef<RenderStyle> style) { m_style = std::move(style); }
+ void setStyleInternal(PassRef<RenderStyle> style) { m_style = WTF::move(style); }
// Repaint only if our old bounds and new bounds are different. The caller may pass in newBounds and newOutlineBox if they are known.
bool repaintAfterLayoutIfNeeded(const RenderLayerModelObject* repaintContainer, const LayoutRect& oldBounds, const LayoutRect& oldOutlineBox, const LayoutRect* newBoundsPtr = nullptr, const LayoutRect* newOutlineBoxPtr = nullptr);
@@ -247,7 +247,7 @@
inline void RenderElement::setAnimatableStyle(PassRef<RenderStyle> style)
{
- setStyle(animation().updateAnimations(*this, std::move(style)));
+ setStyle(animation().updateAnimations(*this, WTF::move(style)));
}
inline RenderStyle& RenderElement::firstLineStyle() const
diff --git a/Source/WebCore/rendering/RenderEmbeddedObject.cpp b/Source/WebCore/rendering/RenderEmbeddedObject.cpp
index 6f03aa1..cbc2caf 100644
--- a/Source/WebCore/rendering/RenderEmbeddedObject.cpp
+++ b/Source/WebCore/rendering/RenderEmbeddedObject.cpp
@@ -97,7 +97,7 @@
}
RenderEmbeddedObject::RenderEmbeddedObject(HTMLFrameOwnerElement& element, PassRef<RenderStyle> style)
- : RenderWidget(element, std::move(style))
+ : RenderWidget(element, WTF::move(style))
, m_isPluginUnavailable(false)
, m_isUnavailablePluginIndicatorHidden(false)
, m_unavailablePluginIndicatorIsPressed(false)
@@ -114,7 +114,7 @@
RenderPtr<RenderEmbeddedObject> RenderEmbeddedObject::createForApplet(HTMLAppletElement& applet, PassRef<RenderStyle> style)
{
- auto renderer = createRenderer<RenderEmbeddedObject>(applet, std::move(style));
+ auto renderer = createRenderer<RenderEmbeddedObject>(applet, WTF::move(style));
renderer->setInline(true);
return renderer;
}
diff --git a/Source/WebCore/rendering/RenderFieldset.cpp b/Source/WebCore/rendering/RenderFieldset.cpp
index 69d0788..4ddb5e2 100644
--- a/Source/WebCore/rendering/RenderFieldset.cpp
+++ b/Source/WebCore/rendering/RenderFieldset.cpp
@@ -35,7 +35,7 @@
using namespace HTMLNames;
RenderFieldset::RenderFieldset(HTMLFieldSetElement& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderFileUploadControl.cpp b/Source/WebCore/rendering/RenderFileUploadControl.cpp
index 82ee07a..55e6e62 100644
--- a/Source/WebCore/rendering/RenderFileUploadControl.cpp
+++ b/Source/WebCore/rendering/RenderFileUploadControl.cpp
@@ -59,7 +59,7 @@
const int buttonShadowHeight = 2;
RenderFileUploadControl::RenderFileUploadControl(HTMLInputElement& input, PassRef<RenderStyle> style)
- : RenderBlockFlow(input, std::move(style))
+ : RenderBlockFlow(input, WTF::move(style))
, m_canReceiveDroppedFiles(input.canReceiveDroppedFiles())
{
}
diff --git a/Source/WebCore/rendering/RenderFlexibleBox.cpp b/Source/WebCore/rendering/RenderFlexibleBox.cpp
index daecbfd..7f81dbd 100644
--- a/Source/WebCore/rendering/RenderFlexibleBox.cpp
+++ b/Source/WebCore/rendering/RenderFlexibleBox.cpp
@@ -67,7 +67,7 @@
RenderFlexibleBox::RenderFlexibleBox(Element& element, PassRef<RenderStyle> style)
- : RenderBlock(element, std::move(style), 0)
+ : RenderBlock(element, WTF::move(style), 0)
, m_orderIterator(*this)
, m_numberOfInFlowChildrenOnFirstLine(-1)
{
@@ -75,7 +75,7 @@
}
RenderFlexibleBox::RenderFlexibleBox(Document& document, PassRef<RenderStyle> style)
- : RenderBlock(document, std::move(style), 0)
+ : RenderBlock(document, WTF::move(style), 0)
, m_orderIterator(*this)
, m_numberOfInFlowChildrenOnFirstLine(-1)
{
diff --git a/Source/WebCore/rendering/RenderFlowThread.cpp b/Source/WebCore/rendering/RenderFlowThread.cpp
index 0f45a2b..262e3e7 100644
--- a/Source/WebCore/rendering/RenderFlowThread.cpp
+++ b/Source/WebCore/rendering/RenderFlowThread.cpp
@@ -52,7 +52,7 @@
namespace WebCore {
RenderFlowThread::RenderFlowThread(Document& document, PassRef<RenderStyle> style)
- : RenderBlockFlow(document, std::move(style))
+ : RenderBlockFlow(document, WTF::move(style))
, m_previousRegionCount(0)
, m_autoLogicalHeightRegionsCount(0)
, m_currentRegionMaintainer(nullptr)
diff --git a/Source/WebCore/rendering/RenderFrame.cpp b/Source/WebCore/rendering/RenderFrame.cpp
index 186e0f4..d8ba31a 100644
--- a/Source/WebCore/rendering/RenderFrame.cpp
+++ b/Source/WebCore/rendering/RenderFrame.cpp
@@ -29,7 +29,7 @@
namespace WebCore {
RenderFrame::RenderFrame(HTMLFrameElement& frame, PassRef<RenderStyle> style)
- : RenderFrameBase(frame, std::move(style))
+ : RenderFrameBase(frame, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderFrameBase.cpp b/Source/WebCore/rendering/RenderFrameBase.cpp
index 547fdac..3ae44ba 100644
--- a/Source/WebCore/rendering/RenderFrameBase.cpp
+++ b/Source/WebCore/rendering/RenderFrameBase.cpp
@@ -34,7 +34,7 @@
namespace WebCore {
RenderFrameBase::RenderFrameBase(HTMLFrameElementBase& element, PassRef<RenderStyle> style)
- : RenderWidget(element, std::move(style))
+ : RenderWidget(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderFrameSet.cpp b/Source/WebCore/rendering/RenderFrameSet.cpp
index d8aeb42..ced112e 100644
--- a/Source/WebCore/rendering/RenderFrameSet.cpp
+++ b/Source/WebCore/rendering/RenderFrameSet.cpp
@@ -46,7 +46,7 @@
namespace WebCore {
RenderFrameSet::RenderFrameSet(HTMLFrameSetElement& frameSet, PassRef<RenderStyle> style)
- : RenderBox(frameSet, std::move(style), 0)
+ : RenderBox(frameSet, WTF::move(style), 0)
, m_isResizing(false)
, m_isChildResizing(false)
{
diff --git a/Source/WebCore/rendering/RenderFullScreen.cpp b/Source/WebCore/rendering/RenderFullScreen.cpp
index e352a51..64433fc 100644
--- a/Source/WebCore/rendering/RenderFullScreen.cpp
+++ b/Source/WebCore/rendering/RenderFullScreen.cpp
@@ -37,7 +37,7 @@
class RenderFullScreenPlaceholder final : public RenderBlockFlow {
public:
RenderFullScreenPlaceholder(RenderFullScreen& owner, PassRef<RenderStyle> style)
- : RenderBlockFlow(owner.document(), std::move(style))
+ : RenderBlockFlow(owner.document(), WTF::move(style))
, m_owner(owner)
{
}
@@ -55,7 +55,7 @@
}
RenderFullScreen::RenderFullScreen(Document& document, PassRef<RenderStyle> style)
- : RenderFlexibleBox(document, std::move(style))
+ : RenderFlexibleBox(document, WTF::move(style))
, m_placeholder(0)
{
setReplaced(false);
@@ -193,11 +193,11 @@
style.get().setHeight(Length(frameRect.height(), Fixed));
if (m_placeholder) {
- m_placeholder->setStyle(std::move(style));
+ m_placeholder->setStyle(WTF::move(style));
return;
}
- m_placeholder = new RenderFullScreenPlaceholder(*this, std::move(style));
+ m_placeholder = new RenderFullScreenPlaceholder(*this, WTF::move(style));
m_placeholder->initializeStyle();
if (parent()) {
parent()->addChild(m_placeholder, this);
diff --git a/Source/WebCore/rendering/RenderGrid.cpp b/Source/WebCore/rendering/RenderGrid.cpp
index c61b4c1..b65c406 100644
--- a/Source/WebCore/rendering/RenderGrid.cpp
+++ b/Source/WebCore/rendering/RenderGrid.cpp
@@ -185,7 +185,7 @@
};
RenderGrid::RenderGrid(Element& element, PassRef<RenderStyle> style)
- : RenderBlock(element, std::move(style), 0)
+ : RenderBlock(element, WTF::move(style), 0)
, m_orderIterator(*this)
{
// All of our children must be block level.
diff --git a/Source/WebCore/rendering/RenderHTMLCanvas.cpp b/Source/WebCore/rendering/RenderHTMLCanvas.cpp
index 8a9f9c3..69239c2 100644
--- a/Source/WebCore/rendering/RenderHTMLCanvas.cpp
+++ b/Source/WebCore/rendering/RenderHTMLCanvas.cpp
@@ -42,7 +42,7 @@
using namespace HTMLNames;
RenderHTMLCanvas::RenderHTMLCanvas(HTMLCanvasElement& element, PassRef<RenderStyle> style)
- : RenderReplaced(element, std::move(style), element.size())
+ : RenderReplaced(element, WTF::move(style), element.size())
{
// Actual size is not known yet, report the default intrinsic size.
view().frameView().incrementVisuallyNonEmptyPixelCount(roundedIntSize(intrinsicSize()));
diff --git a/Source/WebCore/rendering/RenderIFrame.cpp b/Source/WebCore/rendering/RenderIFrame.cpp
index d655e71..0edce2d 100644
--- a/Source/WebCore/rendering/RenderIFrame.cpp
+++ b/Source/WebCore/rendering/RenderIFrame.cpp
@@ -40,7 +40,7 @@
using namespace HTMLNames;
RenderIFrame::RenderIFrame(HTMLIFrameElement& element, PassRef<RenderStyle> style)
- : RenderFrameBase(element, std::move(style))
+ : RenderFrameBase(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderImage.cpp b/Source/WebCore/rendering/RenderImage.cpp
index 04b1b37..9d1ff0c 100644
--- a/Source/WebCore/rendering/RenderImage.cpp
+++ b/Source/WebCore/rendering/RenderImage.cpp
@@ -119,7 +119,7 @@
using namespace HTMLNames;
RenderImage::RenderImage(Element& element, PassRef<RenderStyle> style, StyleImage* styleImage, const float imageDevicePixelRatio)
- : RenderReplaced(element, std::move(style), IntSize())
+ : RenderReplaced(element, WTF::move(style), IntSize())
, m_imageResource(styleImage ? std::make_unique<RenderImageResourceStyleImage>(*styleImage) : std::make_unique<RenderImageResource>())
, m_needsToSetSizeForAltText(false)
, m_didIncrementVisuallyNonEmptyPixelCount(false)
@@ -135,7 +135,7 @@
}
RenderImage::RenderImage(Document& document, PassRef<RenderStyle> style, StyleImage* styleImage)
- : RenderReplaced(document, std::move(style), IntSize())
+ : RenderReplaced(document, WTF::move(style), IntSize())
, m_imageResource(styleImage ? std::make_unique<RenderImageResourceStyleImage>(*styleImage) : std::make_unique<RenderImageResource>())
, m_needsToSetSizeForAltText(false)
, m_didIncrementVisuallyNonEmptyPixelCount(false)
diff --git a/Source/WebCore/rendering/RenderInline.cpp b/Source/WebCore/rendering/RenderInline.cpp
index 3c8a172..3028a4d 100644
--- a/Source/WebCore/rendering/RenderInline.cpp
+++ b/Source/WebCore/rendering/RenderInline.cpp
@@ -50,13 +50,13 @@
namespace WebCore {
RenderInline::RenderInline(Element& element, PassRef<RenderStyle> style)
- : RenderBoxModelObject(element, std::move(style), RenderInlineFlag)
+ : RenderBoxModelObject(element, WTF::move(style), RenderInlineFlag)
{
setChildrenInline(true);
}
RenderInline::RenderInline(Document& document, PassRef<RenderStyle> style)
- : RenderBoxModelObject(document, std::move(style), RenderInlineFlag)
+ : RenderBoxModelObject(document, WTF::move(style), RenderInlineFlag)
{
setChildrenInline(true);
}
@@ -167,7 +167,7 @@
continue;
auto blockStyle = RenderStyle::createAnonymousStyleWithDisplay(&block->style(), BLOCK);
blockStyle.get().setPosition(newStyle->position());
- block->setStyle(std::move(blockStyle));
+ block->setStyle(WTF::move(blockStyle));
}
}
@@ -326,7 +326,7 @@
if (auto positionedAncestor = inFlowPositionedInlineAncestor(this))
newStyle.get().setPosition(positionedAncestor->style().position());
- RenderBlock* newBox = new RenderBlockFlow(document(), std::move(newStyle));
+ RenderBlock* newBox = new RenderBlockFlow(document(), WTF::move(newStyle));
newBox->initializeStyle();
RenderBoxModelObject* oldContinuation = continuation();
setContinuation(newBox);
@@ -397,7 +397,7 @@
ASSERT(curr->isRenderInline());
if (splitDepth < cMaxSplitDepth) {
// Create a new clone.
- RenderPtr<RenderInline> cloneChild = std::move(cloneInline);
+ RenderPtr<RenderInline> cloneChild = WTF::move(cloneInline);
cloneInline = toRenderInline(curr)->clone();
// Insert our child clone as the first child.
@@ -1388,7 +1388,7 @@
setAlwaysCreateLineBoxes();
auto newFlowBox = createInlineFlowBox();
auto flowBox = newFlowBox.get();
- m_lineBoxes.appendLineBox(std::move(newFlowBox));
+ m_lineBoxes.appendLineBox(WTF::move(newFlowBox));
return flowBox;
}
diff --git a/Source/WebCore/rendering/RenderLayerCompositor.cpp b/Source/WebCore/rendering/RenderLayerCompositor.cpp
index da7f31f..746a07d 100644
--- a/Source/WebCore/rendering/RenderLayerCompositor.cpp
+++ b/Source/WebCore/rendering/RenderLayerCompositor.cpp
@@ -3785,7 +3785,7 @@
else
continue;
- layerMap.add(layer.backing()->graphicsLayer()->platformLayer(), std::move(constraints));
+ layerMap.add(layer.backing()->graphicsLayer()->platformLayer(), WTF::move(constraints));
}
if (ChromeClient* client = this->chromeClient())
diff --git a/Source/WebCore/rendering/RenderLayerModelObject.cpp b/Source/WebCore/rendering/RenderLayerModelObject.cpp
index bedf632..a9290ba 100644
--- a/Source/WebCore/rendering/RenderLayerModelObject.cpp
+++ b/Source/WebCore/rendering/RenderLayerModelObject.cpp
@@ -36,12 +36,12 @@
bool RenderLayerModelObject::s_layerWasSelfPainting = false;
RenderLayerModelObject::RenderLayerModelObject(Element& element, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderElement(element, std::move(style), baseTypeFlags | RenderLayerModelObjectFlag)
+ : RenderElement(element, WTF::move(style), baseTypeFlags | RenderLayerModelObjectFlag)
{
}
RenderLayerModelObject::RenderLayerModelObject(Document& document, PassRef<RenderStyle> style, unsigned baseTypeFlags)
- : RenderElement(document, std::move(style), baseTypeFlags | RenderLayerModelObjectFlag)
+ : RenderElement(document, WTF::move(style), baseTypeFlags | RenderLayerModelObjectFlag)
{
}
diff --git a/Source/WebCore/rendering/RenderLineBreak.cpp b/Source/WebCore/rendering/RenderLineBreak.cpp
index 0a27cd5..5e5e555 100644
--- a/Source/WebCore/rendering/RenderLineBreak.cpp
+++ b/Source/WebCore/rendering/RenderLineBreak.cpp
@@ -40,7 +40,7 @@
static const int invalidLineHeight = -1;
RenderLineBreak::RenderLineBreak(HTMLElement& element, PassRef<RenderStyle> style)
- : RenderBoxModelObject(element, std::move(style), 0)
+ : RenderBoxModelObject(element, WTF::move(style), 0)
, m_inlineBoxWrapper(nullptr)
, m_cachedLineHeight(invalidLineHeight)
, m_isWBR(element.hasTagName(HTMLNames::wbrTag))
diff --git a/Source/WebCore/rendering/RenderListBox.cpp b/Source/WebCore/rendering/RenderListBox.cpp
index 3c431e8..d72fe6a 100644
--- a/Source/WebCore/rendering/RenderListBox.cpp
+++ b/Source/WebCore/rendering/RenderListBox.cpp
@@ -81,7 +81,7 @@
const int baselineAdjustment = 7;
RenderListBox::RenderListBox(HTMLSelectElement& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
, m_optionsChanged(true)
, m_scrollToRevealSelectionAfterLayout(false)
, m_inAutoscroll(false)
diff --git a/Source/WebCore/rendering/RenderListItem.cpp b/Source/WebCore/rendering/RenderListItem.cpp
index f9e2110..f9d844a 100644
--- a/Source/WebCore/rendering/RenderListItem.cpp
+++ b/Source/WebCore/rendering/RenderListItem.cpp
@@ -42,7 +42,7 @@
using namespace HTMLNames;
RenderListItem::RenderListItem(Element& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
, m_hasExplicitValue(false)
, m_isValueUpToDate(false)
, m_notInList(false)
@@ -64,10 +64,10 @@
// up (e.g., in some deeply nested line box). See CSS3 spec.
newStyle.get().inheritFrom(&style());
if (!m_marker) {
- m_marker = createRenderer<RenderListMarker>(*this, std::move(newStyle));
+ m_marker = createRenderer<RenderListMarker>(*this, WTF::move(newStyle));
m_marker->initializeStyle();
} else
- m_marker->setStyle(std::move(newStyle));
+ m_marker->setStyle(WTF::move(newStyle));
}
void RenderListItem::willBeDestroyed()
diff --git a/Source/WebCore/rendering/RenderListMarker.cpp b/Source/WebCore/rendering/RenderListMarker.cpp
index 672f390..28a058e 100644
--- a/Source/WebCore/rendering/RenderListMarker.cpp
+++ b/Source/WebCore/rendering/RenderListMarker.cpp
@@ -1118,7 +1118,7 @@
}
RenderListMarker::RenderListMarker(RenderListItem& listItem, PassRef<RenderStyle> style)
- : RenderBox(listItem.document(), std::move(style), 0)
+ : RenderBox(listItem.document(), WTF::move(style), 0)
, m_listItem(listItem)
{
// init RenderObject attributes
diff --git a/Source/WebCore/rendering/RenderMedia.cpp b/Source/WebCore/rendering/RenderMedia.cpp
index e7c2f62..00546a0 100644
--- a/Source/WebCore/rendering/RenderMedia.cpp
+++ b/Source/WebCore/rendering/RenderMedia.cpp
@@ -35,13 +35,13 @@
namespace WebCore {
RenderMedia::RenderMedia(HTMLMediaElement& element, PassRef<RenderStyle> style)
- : RenderImage(element, std::move(style))
+ : RenderImage(element, WTF::move(style))
{
setHasShadowControls(true);
}
RenderMedia::RenderMedia(HTMLMediaElement& element, PassRef<RenderStyle> style, const IntSize& intrinsicSize)
- : RenderImage(element, std::move(style))
+ : RenderImage(element, WTF::move(style))
{
setIntrinsicSize(intrinsicSize);
setHasShadowControls(true);
diff --git a/Source/WebCore/rendering/RenderMediaControlElements.cpp b/Source/WebCore/rendering/RenderMediaControlElements.cpp
index 7de982a..da892b0 100644
--- a/Source/WebCore/rendering/RenderMediaControlElements.cpp
+++ b/Source/WebCore/rendering/RenderMediaControlElements.cpp
@@ -36,7 +36,7 @@
namespace WebCore {
RenderMediaVolumeSliderContainer::RenderMediaVolumeSliderContainer(Element& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
@@ -60,7 +60,7 @@
// ----------------------------
RenderMediaControlTimelineContainer::RenderMediaControlTimelineContainer(Element& element, PassRef<RenderStyle> style)
- : RenderFlexibleBox(element, std::move(style))
+ : RenderFlexibleBox(element, WTF::move(style))
{
}
@@ -82,7 +82,7 @@
#if ENABLE(VIDEO_TRACK)
RenderTextTrackContainerElement::RenderTextTrackContainerElement(Element& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderMenuList.cpp b/Source/WebCore/rendering/RenderMenuList.cpp
index c6070c0..9aab14b 100644
--- a/Source/WebCore/rendering/RenderMenuList.cpp
+++ b/Source/WebCore/rendering/RenderMenuList.cpp
@@ -72,7 +72,7 @@
#endif
RenderMenuList::RenderMenuList(HTMLSelectElement& element, PassRef<RenderStyle> style)
- : RenderFlexibleBox(element, std::move(style))
+ : RenderFlexibleBox(element, WTF::move(style))
, m_buttonText(nullptr)
, m_innerBlock(nullptr)
, m_needsOptionsWidthUpdate(true)
diff --git a/Source/WebCore/rendering/RenderMeter.cpp b/Source/WebCore/rendering/RenderMeter.cpp
index 97742e8..3c16fc4 100644
--- a/Source/WebCore/rendering/RenderMeter.cpp
+++ b/Source/WebCore/rendering/RenderMeter.cpp
@@ -31,7 +31,7 @@
using namespace HTMLNames;
RenderMeter::RenderMeter(HTMLElement& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp b/Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp
index a5ffd92..7c92085 100644
--- a/Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp
+++ b/Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp
@@ -39,7 +39,7 @@
bool RenderMultiColumnFlowThread::gShiftingSpanner = false;
RenderMultiColumnFlowThread::RenderMultiColumnFlowThread(Document& document, PassRef<RenderStyle> style)
- : RenderFlowThread(document, std::move(style))
+ : RenderFlowThread(document, WTF::move(style))
, m_lastSetWorkedOn(nullptr)
, m_columnCount(1)
, m_columnWidth(0)
diff --git a/Source/WebCore/rendering/RenderMultiColumnSet.cpp b/Source/WebCore/rendering/RenderMultiColumnSet.cpp
index 22d8101..30f926d 100644
--- a/Source/WebCore/rendering/RenderMultiColumnSet.cpp
+++ b/Source/WebCore/rendering/RenderMultiColumnSet.cpp
@@ -37,7 +37,7 @@
namespace WebCore {
RenderMultiColumnSet::RenderMultiColumnSet(RenderFlowThread& flowThread, PassRef<RenderStyle> style)
- : RenderRegionSet(flowThread.document(), std::move(style), flowThread)
+ : RenderRegionSet(flowThread.document(), WTF::move(style), flowThread)
, m_computedColumnCount(1)
, m_computedColumnWidth(0)
, m_computedColumnHeight(0)
diff --git a/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp b/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp
index ad1f01b..eaa1f37 100644
--- a/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp
+++ b/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp
@@ -44,7 +44,7 @@
}
RenderMultiColumnSpannerPlaceholder::RenderMultiColumnSpannerPlaceholder(RenderMultiColumnFlowThread* flowThread, RenderBox* spanner, PassRef<RenderStyle> style)
- : RenderBox(flowThread->document(), std::move(style), RenderBoxModelObjectFlag)
+ : RenderBox(flowThread->document(), WTF::move(style), RenderBoxModelObjectFlag)
, m_spanner(spanner)
, m_flowThread(flowThread)
{
diff --git a/Source/WebCore/rendering/RenderNamedFlowFragment.cpp b/Source/WebCore/rendering/RenderNamedFlowFragment.cpp
index 9728383..61362ee 100644
--- a/Source/WebCore/rendering/RenderNamedFlowFragment.cpp
+++ b/Source/WebCore/rendering/RenderNamedFlowFragment.cpp
@@ -44,7 +44,7 @@
namespace WebCore {
RenderNamedFlowFragment::RenderNamedFlowFragment(Document& document, PassRef<RenderStyle> style)
- : RenderRegion(document, std::move(style), nullptr)
+ : RenderRegion(document, WTF::move(style), nullptr)
, m_hasCustomRegionStyle(false)
, m_hasAutoLogicalHeight(false)
, m_hasComputedAutoHeight(false)
diff --git a/Source/WebCore/rendering/RenderNamedFlowThread.cpp b/Source/WebCore/rendering/RenderNamedFlowThread.cpp
index 7807ee9..cd039d6 100644
--- a/Source/WebCore/rendering/RenderNamedFlowThread.cpp
+++ b/Source/WebCore/rendering/RenderNamedFlowThread.cpp
@@ -46,10 +46,10 @@
namespace WebCore {
RenderNamedFlowThread::RenderNamedFlowThread(Document& document, PassRef<RenderStyle> style, PassRef<WebKitNamedFlow> namedFlow)
- : RenderFlowThread(document, std::move(style))
+ : RenderFlowThread(document, WTF::move(style))
, m_hasRegionsWithStyling(false)
, m_dispatchRegionOversetChangeEvent(false)
- , m_namedFlow(std::move(namedFlow))
+ , m_namedFlow(WTF::move(namedFlow))
, m_regionOversetChangeEventTimer(this, &RenderNamedFlowThread::regionOversetChangeEventTimerFired)
{
}
@@ -93,7 +93,7 @@
// The first region defines the principal writing mode for the entire flow.
auto newStyle = RenderStyle::clone(&style());
newStyle.get().setWritingMode(firstFragment->style().writingMode());
- setStyle(std::move(newStyle));
+ setStyle(WTF::move(newStyle));
}
RenderElement* RenderNamedFlowThread::nextRendererForElement(Element& element) const
diff --git a/Source/WebCore/rendering/RenderProgress.cpp b/Source/WebCore/rendering/RenderProgress.cpp
index 87faf3b..cb8b1ba 100644
--- a/Source/WebCore/rendering/RenderProgress.cpp
+++ b/Source/WebCore/rendering/RenderProgress.cpp
@@ -31,7 +31,7 @@
namespace WebCore {
RenderProgress::RenderProgress(HTMLElement& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
, m_position(HTMLProgressElement::InvalidPosition)
, m_animationStartTime(0)
, m_animationRepeatInterval(0)
diff --git a/Source/WebCore/rendering/RenderPtr.h b/Source/WebCore/rendering/RenderPtr.h
index ef06922..81c13f2 100644
--- a/Source/WebCore/rendering/RenderPtr.h
+++ b/Source/WebCore/rendering/RenderPtr.h
@@ -109,7 +109,7 @@
template<typename T> inline auto RenderPtr<T>::operator=(RenderPtr&& o) -> RenderPtr&
{
ASSERT(!o || o != m_ptr);
- RenderPtr ptr = std::move(o);
+ RenderPtr ptr = WTF::move(o);
swap(ptr);
return *this;
}
@@ -117,7 +117,7 @@
template<typename T> template<typename U> inline auto RenderPtr<T>::operator=(RenderPtr<U>&& o) -> RenderPtr&
{
ASSERT(!o || o != m_ptr);
- RenderPtr ptr = std::move(o);
+ RenderPtr ptr = WTF::move(o);
swap(ptr);
return *this;
}
diff --git a/Source/WebCore/rendering/RenderQuote.cpp b/Source/WebCore/rendering/RenderQuote.cpp
index a11d9ca..420eb48 100644
--- a/Source/WebCore/rendering/RenderQuote.cpp
+++ b/Source/WebCore/rendering/RenderQuote.cpp
@@ -32,7 +32,7 @@
namespace WebCore {
RenderQuote::RenderQuote(Document& document, PassRef<RenderStyle> style, QuoteType quote)
- : RenderInline(document, std::move(style))
+ : RenderInline(document, WTF::move(style))
, m_type(quote)
, m_depth(-1)
, m_next(0)
diff --git a/Source/WebCore/rendering/RenderRegion.cpp b/Source/WebCore/rendering/RenderRegion.cpp
index 92590cd..de36228 100644
--- a/Source/WebCore/rendering/RenderRegion.cpp
+++ b/Source/WebCore/rendering/RenderRegion.cpp
@@ -49,7 +49,7 @@
namespace WebCore {
RenderRegion::RenderRegion(Element& element, PassRef<RenderStyle> style, RenderFlowThread* flowThread)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
, m_flowThread(flowThread)
, m_parentNamedFlowThread(nullptr)
, m_isValid(false)
@@ -57,7 +57,7 @@
}
RenderRegion::RenderRegion(Document& document, PassRef<RenderStyle> style, RenderFlowThread* flowThread)
- : RenderBlockFlow(document, std::move(style))
+ : RenderBlockFlow(document, WTF::move(style))
, m_flowThread(flowThread)
, m_parentNamedFlowThread(nullptr)
, m_isValid(false)
diff --git a/Source/WebCore/rendering/RenderRegionSet.cpp b/Source/WebCore/rendering/RenderRegionSet.cpp
index 3fb3dfd..ae073b1 100644
--- a/Source/WebCore/rendering/RenderRegionSet.cpp
+++ b/Source/WebCore/rendering/RenderRegionSet.cpp
@@ -31,7 +31,7 @@
namespace WebCore {
RenderRegionSet::RenderRegionSet(Document& document, PassRef<RenderStyle> style, RenderFlowThread& flowThread)
- : RenderRegion(document, std::move(style), &flowThread)
+ : RenderRegion(document, WTF::move(style), &flowThread)
{
}
diff --git a/Source/WebCore/rendering/RenderReplaced.cpp b/Source/WebCore/rendering/RenderReplaced.cpp
index 82e9c14..974e772 100644
--- a/Source/WebCore/rendering/RenderReplaced.cpp
+++ b/Source/WebCore/rendering/RenderReplaced.cpp
@@ -47,21 +47,21 @@
const int cDefaultHeight = 150;
RenderReplaced::RenderReplaced(Element& element, PassRef<RenderStyle> style)
- : RenderBox(element, std::move(style), RenderReplacedFlag)
+ : RenderBox(element, WTF::move(style), RenderReplacedFlag)
, m_intrinsicSize(cDefaultWidth, cDefaultHeight)
{
setReplaced(true);
}
RenderReplaced::RenderReplaced(Element& element, PassRef<RenderStyle> style, const LayoutSize& intrinsicSize)
- : RenderBox(element, std::move(style), RenderReplacedFlag)
+ : RenderBox(element, WTF::move(style), RenderReplacedFlag)
, m_intrinsicSize(intrinsicSize)
{
setReplaced(true);
}
RenderReplaced::RenderReplaced(Document& document, PassRef<RenderStyle> style, const LayoutSize& intrinsicSize)
- : RenderBox(document, std::move(style), RenderReplacedFlag)
+ : RenderBox(document, WTF::move(style), RenderReplacedFlag)
, m_intrinsicSize(intrinsicSize)
{
setReplaced(true);
diff --git a/Source/WebCore/rendering/RenderReplica.cpp b/Source/WebCore/rendering/RenderReplica.cpp
index 367d2c3..36ad9d5 100644
--- a/Source/WebCore/rendering/RenderReplica.cpp
+++ b/Source/WebCore/rendering/RenderReplica.cpp
@@ -35,7 +35,7 @@
namespace WebCore {
RenderReplica::RenderReplica(Document& document, PassRef<RenderStyle> style)
- : RenderBox(document, std::move(style), 0)
+ : RenderBox(document, WTF::move(style), 0)
{
// This is a hack. Replicas are synthetic, and don't pick up the attributes of the
// renderers being replicated, so they always report that they are inline, non-replaced.
diff --git a/Source/WebCore/rendering/RenderRuby.cpp b/Source/WebCore/rendering/RenderRuby.cpp
index 373fcc6..51b0d1c 100644
--- a/Source/WebCore/rendering/RenderRuby.cpp
+++ b/Source/WebCore/rendering/RenderRuby.cpp
@@ -108,7 +108,7 @@
//=== ruby as inline object ===
RenderRubyAsInline::RenderRubyAsInline(Element& element, PassRef<RenderStyle> style)
- : RenderInline(element, std::move(style))
+ : RenderInline(element, WTF::move(style))
{
}
@@ -212,7 +212,7 @@
//=== ruby as block object ===
RenderRubyAsBlock::RenderRubyAsBlock(Element& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderRubyBase.cpp b/Source/WebCore/rendering/RenderRubyBase.cpp
index 426be9f..7dbe145 100644
--- a/Source/WebCore/rendering/RenderRubyBase.cpp
+++ b/Source/WebCore/rendering/RenderRubyBase.cpp
@@ -37,7 +37,7 @@
namespace WebCore {
RenderRubyBase::RenderRubyBase(Document& document, PassRef<RenderStyle> style)
- : RenderBlockFlow(document, std::move(style))
+ : RenderBlockFlow(document, WTF::move(style))
{
setInline(false);
}
diff --git a/Source/WebCore/rendering/RenderRubyRun.cpp b/Source/WebCore/rendering/RenderRubyRun.cpp
index f038a77..b2b1f75 100644
--- a/Source/WebCore/rendering/RenderRubyRun.cpp
+++ b/Source/WebCore/rendering/RenderRubyRun.cpp
@@ -42,7 +42,7 @@
namespace WebCore {
RenderRubyRun::RenderRubyRun(Document& document, PassRef<RenderStyle> style)
- : RenderBlockFlow(document, std::move(style))
+ : RenderBlockFlow(document, WTF::move(style))
{
setReplaced(true);
setInline(true);
@@ -203,7 +203,7 @@
{
auto newStyle = RenderStyle::createAnonymousStyleWithDisplay(&style(), BLOCK);
newStyle.get().setTextAlign(CENTER); // FIXME: use WEBKIT_CENTER?
- auto renderer = new RenderRubyBase(document(), std::move(newStyle));
+ auto renderer = new RenderRubyBase(document(), WTF::move(newStyle));
renderer->initializeStyle();
return renderer;
}
diff --git a/Source/WebCore/rendering/RenderRubyText.cpp b/Source/WebCore/rendering/RenderRubyText.cpp
index 24c7222..a841ed3 100644
--- a/Source/WebCore/rendering/RenderRubyText.cpp
+++ b/Source/WebCore/rendering/RenderRubyText.cpp
@@ -36,7 +36,7 @@
namespace WebCore {
RenderRubyText::RenderRubyText(Element& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderScrollbarPart.cpp b/Source/WebCore/rendering/RenderScrollbarPart.cpp
index e6acda5..107c5c1 100644
--- a/Source/WebCore/rendering/RenderScrollbarPart.cpp
+++ b/Source/WebCore/rendering/RenderScrollbarPart.cpp
@@ -35,7 +35,7 @@
namespace WebCore {
RenderScrollbarPart::RenderScrollbarPart(Document& document, PassRef<RenderStyle> style, RenderScrollbar* scrollbar, ScrollbarPart part)
- : RenderBlock(document, std::move(style), 0)
+ : RenderBlock(document, WTF::move(style), 0)
, m_scrollbar(scrollbar)
, m_part(part)
{
diff --git a/Source/WebCore/rendering/RenderSearchField.cpp b/Source/WebCore/rendering/RenderSearchField.cpp
index 23ac5a0..8f0899f 100644
--- a/Source/WebCore/rendering/RenderSearchField.cpp
+++ b/Source/WebCore/rendering/RenderSearchField.cpp
@@ -51,7 +51,7 @@
using namespace HTMLNames;
RenderSearchField::RenderSearchField(HTMLInputElement& element, PassRef<RenderStyle> style)
- : RenderTextControlSingleLine(element, std::move(style))
+ : RenderTextControlSingleLine(element, WTF::move(style))
, m_searchPopupIsVisible(false)
, m_searchPopup(0)
{
@@ -181,7 +181,7 @@
auto cancelButtonStyle = RenderStyle::clone(&curStyle);
cancelButtonStyle.get().setVisibility(buttonVisibility);
- cancelButtonRenderer->setStyle(std::move(cancelButtonStyle));
+ cancelButtonRenderer->setStyle(WTF::move(cancelButtonStyle));
}
EVisibility RenderSearchField::visibilityForCancelButton() const
diff --git a/Source/WebCore/rendering/RenderSlider.cpp b/Source/WebCore/rendering/RenderSlider.cpp
index 0fc440a..aeb88be 100644
--- a/Source/WebCore/rendering/RenderSlider.cpp
+++ b/Source/WebCore/rendering/RenderSlider.cpp
@@ -48,7 +48,7 @@
const int RenderSlider::defaultTrackLength = 129;
RenderSlider::RenderSlider(HTMLInputElement& element, PassRef<RenderStyle> style)
- : RenderFlexibleBox(element, std::move(style))
+ : RenderFlexibleBox(element, WTF::move(style))
{
// We assume RenderSlider works only with <input type=range>.
ASSERT(element.isRangeControl());
diff --git a/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp b/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp
index e08767a..76c6b07 100644
--- a/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp
+++ b/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp
@@ -49,7 +49,7 @@
namespace WebCore {
RenderSnapshottedPlugIn::RenderSnapshottedPlugIn(HTMLPlugInImageElement& element, PassRef<RenderStyle> style)
- : RenderEmbeddedObject(element, std::move(style))
+ : RenderEmbeddedObject(element, WTF::move(style))
, m_snapshotResource(std::make_unique<RenderImageResource>())
, m_isPotentialMouseActivation(false)
{
diff --git a/Source/WebCore/rendering/RenderTable.cpp b/Source/WebCore/rendering/RenderTable.cpp
index 4e483fc..5b61867 100644
--- a/Source/WebCore/rendering/RenderTable.cpp
+++ b/Source/WebCore/rendering/RenderTable.cpp
@@ -51,7 +51,7 @@
using namespace HTMLNames;
RenderTable::RenderTable(Element& element, PassRef<RenderStyle> style)
- : RenderBlock(element, std::move(style), 0)
+ : RenderBlock(element, WTF::move(style), 0)
, m_head(nullptr)
, m_foot(nullptr)
, m_firstBody(nullptr)
@@ -74,7 +74,7 @@
}
RenderTable::RenderTable(Document& document, PassRef<RenderStyle> style)
- : RenderBlock(document, std::move(style), 0)
+ : RenderBlock(document, WTF::move(style), 0)
, m_head(nullptr)
, m_foot(nullptr)
, m_firstBody(nullptr)
diff --git a/Source/WebCore/rendering/RenderTableCaption.cpp b/Source/WebCore/rendering/RenderTableCaption.cpp
index 38c4d7c..ca18c4c 100644
--- a/Source/WebCore/rendering/RenderTableCaption.cpp
+++ b/Source/WebCore/rendering/RenderTableCaption.cpp
@@ -25,7 +25,7 @@
namespace WebCore {
RenderTableCaption::RenderTableCaption(Element& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderTableCell.cpp b/Source/WebCore/rendering/RenderTableCell.cpp
index 342dcc6..aae55a6 100644
--- a/Source/WebCore/rendering/RenderTableCell.cpp
+++ b/Source/WebCore/rendering/RenderTableCell.cpp
@@ -55,7 +55,7 @@
COMPILE_ASSERT(sizeof(CollapsedBorderValue) == 8, CollapsedBorderValue_should_stay_small);
RenderTableCell::RenderTableCell(Element& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
, m_column(unsetColumnIndex)
, m_cellWidthChanged(false)
, m_intrinsicPaddingBefore(0)
@@ -67,7 +67,7 @@
}
RenderTableCell::RenderTableCell(Document& document, PassRef<RenderStyle> style)
- : RenderBlockFlow(document, std::move(style))
+ : RenderBlockFlow(document, WTF::move(style))
, m_column(unsetColumnIndex)
, m_cellWidthChanged(false)
, m_hasColSpan(false)
diff --git a/Source/WebCore/rendering/RenderTableCol.cpp b/Source/WebCore/rendering/RenderTableCol.cpp
index 49c6d67..6fde494 100644
--- a/Source/WebCore/rendering/RenderTableCol.cpp
+++ b/Source/WebCore/rendering/RenderTableCol.cpp
@@ -37,7 +37,7 @@
using namespace HTMLNames;
RenderTableCol::RenderTableCol(Element& element, PassRef<RenderStyle> style)
- : RenderBox(element, std::move(style), 0)
+ : RenderBox(element, WTF::move(style), 0)
, m_span(1)
{
// init RenderObject attributes
diff --git a/Source/WebCore/rendering/RenderTableRow.cpp b/Source/WebCore/rendering/RenderTableRow.cpp
index 741aaac..6970eb3 100644
--- a/Source/WebCore/rendering/RenderTableRow.cpp
+++ b/Source/WebCore/rendering/RenderTableRow.cpp
@@ -39,14 +39,14 @@
using namespace HTMLNames;
RenderTableRow::RenderTableRow(Element& element, PassRef<RenderStyle> style)
- : RenderBox(element, std::move(style), 0)
+ : RenderBox(element, WTF::move(style), 0)
, m_rowIndex(unsetRowIndex)
{
setInline(false);
}
RenderTableRow::RenderTableRow(Document& document, PassRef<RenderStyle> style)
- : RenderBox(document, std::move(style), 0)
+ : RenderBox(document, WTF::move(style), 0)
, m_rowIndex(unsetRowIndex)
{
setInline(false);
diff --git a/Source/WebCore/rendering/RenderTableSection.cpp b/Source/WebCore/rendering/RenderTableSection.cpp
index c9288e9..af847d6 100644
--- a/Source/WebCore/rendering/RenderTableSection.cpp
+++ b/Source/WebCore/rendering/RenderTableSection.cpp
@@ -82,7 +82,7 @@
}
RenderTableSection::RenderTableSection(Element& element, PassRef<RenderStyle> style)
- : RenderBox(element, std::move(style), 0)
+ : RenderBox(element, WTF::move(style), 0)
, m_cCol(0)
, m_cRow(0)
, m_outerBorderStart(0)
@@ -96,7 +96,7 @@
}
RenderTableSection::RenderTableSection(Document& document, PassRef<RenderStyle> style)
- : RenderBox(document, std::move(style), 0)
+ : RenderBox(document, WTF::move(style), 0)
, m_cCol(0)
, m_cRow(0)
, m_outerBorderStart(0)
diff --git a/Source/WebCore/rendering/RenderTextControl.cpp b/Source/WebCore/rendering/RenderTextControl.cpp
index e17184b7..bc71d04 100644
--- a/Source/WebCore/rendering/RenderTextControl.cpp
+++ b/Source/WebCore/rendering/RenderTextControl.cpp
@@ -38,7 +38,7 @@
namespace WebCore {
RenderTextControl::RenderTextControl(HTMLTextFormControlElement& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderTextControl.h b/Source/WebCore/rendering/RenderTextControl.h
index f8e772e..1c574a7 100644
--- a/Source/WebCore/rendering/RenderTextControl.h
+++ b/Source/WebCore/rendering/RenderTextControl.h
@@ -96,7 +96,7 @@
class RenderTextControlInnerContainer final : public RenderFlexibleBox {
public:
explicit RenderTextControlInnerContainer(Element& element, PassRef<RenderStyle> style)
- : RenderFlexibleBox(element, std::move(style))
+ : RenderFlexibleBox(element, WTF::move(style))
{ }
virtual ~RenderTextControlInnerContainer() { }
diff --git a/Source/WebCore/rendering/RenderTextControlMultiLine.cpp b/Source/WebCore/rendering/RenderTextControlMultiLine.cpp
index c5a1b38..91db53d 100644
--- a/Source/WebCore/rendering/RenderTextControlMultiLine.cpp
+++ b/Source/WebCore/rendering/RenderTextControlMultiLine.cpp
@@ -33,7 +33,7 @@
namespace WebCore {
RenderTextControlMultiLine::RenderTextControlMultiLine(HTMLTextAreaElement& element, PassRef<RenderStyle> style)
- : RenderTextControl(element, std::move(style))
+ : RenderTextControl(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderTextControlSingleLine.cpp b/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
index 2fd441b..7a58687e 100644
--- a/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
+++ b/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
@@ -54,7 +54,7 @@
using namespace HTMLNames;
RenderTextControlSingleLine::RenderTextControlSingleLine(HTMLInputElement& element, PassRef<RenderStyle> style)
- : RenderTextControl(element, std::move(style))
+ : RenderTextControl(element, WTF::move(style))
, m_shouldDrawCapsLockIndicator(false)
, m_desiredInnerTextLogicalHeight(-1)
{
diff --git a/Source/WebCore/rendering/RenderTextControlSingleLine.h b/Source/WebCore/rendering/RenderTextControlSingleLine.h
index 79c6026..feb8051 100644
--- a/Source/WebCore/rendering/RenderTextControlSingleLine.h
+++ b/Source/WebCore/rendering/RenderTextControlSingleLine.h
@@ -104,7 +104,7 @@
class RenderTextControlInnerBlock final : public RenderBlockFlow {
public:
RenderTextControlInnerBlock(Element& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/RenderVTTCue.cpp b/Source/WebCore/rendering/RenderVTTCue.cpp
index 883f136..2e26cca 100644
--- a/Source/WebCore/rendering/RenderVTTCue.cpp
+++ b/Source/WebCore/rendering/RenderVTTCue.cpp
@@ -37,7 +37,7 @@
namespace WebCore {
RenderVTTCue::RenderVTTCue(VTTCueBox& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
, m_cue(element.getCue())
{
}
diff --git a/Source/WebCore/rendering/RenderVideo.cpp b/Source/WebCore/rendering/RenderVideo.cpp
index 9d29e0c..7715d04 100644
--- a/Source/WebCore/rendering/RenderVideo.cpp
+++ b/Source/WebCore/rendering/RenderVideo.cpp
@@ -49,7 +49,7 @@
using namespace HTMLNames;
RenderVideo::RenderVideo(HTMLVideoElement& element, PassRef<RenderStyle> style)
- : RenderMedia(element, std::move(style))
+ : RenderMedia(element, WTF::move(style))
{
setIntrinsicSize(calculateIntrinsicSize());
}
diff --git a/Source/WebCore/rendering/RenderView.cpp b/Source/WebCore/rendering/RenderView.cpp
index f7e6e45..04444a2 100644
--- a/Source/WebCore/rendering/RenderView.cpp
+++ b/Source/WebCore/rendering/RenderView.cpp
@@ -94,7 +94,7 @@
};
RenderView::RenderView(Document& document, PassRef<RenderStyle> style)
- : RenderBlockFlow(document, std::move(style))
+ : RenderBlockFlow(document, WTF::move(style))
, m_frameView(*document.view())
, m_selectionStart(0)
, m_selectionEnd(0)
@@ -996,7 +996,7 @@
m_selectionRectGatherer.addRect(rect);
#endif
- newSelectedObjects.set(o, std::move(selectionInfo));
+ newSelectedObjects.set(o, WTF::move(selectionInfo));
RenderBlock* cb = o->containingBlock();
while (cb && !cb->isRenderView()) {
diff --git a/Source/WebCore/rendering/RenderView.h b/Source/WebCore/rendering/RenderView.h
index bb82112..0c26b68 100644
--- a/Source/WebCore/rendering/RenderView.h
+++ b/Source/WebCore/rendering/RenderView.h
@@ -269,7 +269,7 @@
// We push LayoutState even if layoutState is disabled because it stores layoutDelta too.
if (!doingFullRepaint() || m_layoutState->isPaginated() || renderer.flowThreadContainingBlock()
|| m_layoutState->lineGrid() || (renderer.style().lineGrid() != RenderStyle::initialLineGrid() && renderer.isRenderBlockFlow())) {
- m_layoutState = std::make_unique<LayoutState>(std::move(m_layoutState), &renderer, offset, pageHeight, pageHeightChanged);
+ m_layoutState = std::make_unique<LayoutState>(WTF::move(m_layoutState), &renderer, offset, pageHeight, pageHeightChanged);
pushLayoutStateForCurrentFlowThread(renderer);
return true;
}
@@ -279,7 +279,7 @@
void popLayoutState()
{
popLayoutStateForCurrentFlowThread();
- m_layoutState = std::move(m_layoutState->m_next);
+ m_layoutState = WTF::move(m_layoutState->m_next);
}
// Suspends the LayoutState optimization. Used under transforms that cannot be represented by
diff --git a/Source/WebCore/rendering/RenderWidget.cpp b/Source/WebCore/rendering/RenderWidget.cpp
index 75ba5b1..1ff83a8 100644
--- a/Source/WebCore/rendering/RenderWidget.cpp
+++ b/Source/WebCore/rendering/RenderWidget.cpp
@@ -81,7 +81,7 @@
}
RenderWidget::RenderWidget(HTMLFrameOwnerElement& element, PassRef<RenderStyle> style)
- : RenderReplaced(element, std::move(style))
+ : RenderReplaced(element, WTF::move(style))
, m_weakPtrFactory(this)
{
setInline(false);
diff --git a/Source/WebCore/rendering/RootInlineBox.cpp b/Source/WebCore/rendering/RootInlineBox.cpp
index 0ae0a09..f3f87c7 100644
--- a/Source/WebCore/rendering/RootInlineBox.cpp
+++ b/Source/WebCore/rendering/RootInlineBox.cpp
@@ -135,7 +135,7 @@
auto newEllipsisBox = std::make_unique<EllipsisBox>(blockFlow(), ellipsisStr, this, ellipsisWidth - (markupBox ? markupBox->logicalWidth() : 0), logicalHeight(), y(), !prevRootBox(), isHorizontal(), markupBox);
auto ellipsisBox = newEllipsisBox.get();
- gEllipsisBoxMap->add(this, std::move(newEllipsisBox));
+ gEllipsisBoxMap->add(this, WTF::move(newEllipsisBox));
setHasEllipsisBox(true);
// FIXME: Do we need an RTL version of this?
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp b/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp
index 1bcaf40..0af9160 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp
@@ -44,12 +44,12 @@
using namespace MathMLNames;
RenderMathMLBlock::RenderMathMLBlock(Element& container, PassRef<RenderStyle> style)
- : RenderFlexibleBox(container, std::move(style))
+ : RenderFlexibleBox(container, WTF::move(style))
{
}
RenderMathMLBlock::RenderMathMLBlock(Document& document, PassRef<RenderStyle> style)
- : RenderFlexibleBox(document, std::move(style))
+ : RenderFlexibleBox(document, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLBlock.h b/Source/WebCore/rendering/mathml/RenderMathMLBlock.h
index 97eba36..f41500e 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLBlock.h
+++ b/Source/WebCore/rendering/mathml/RenderMathMLBlock.h
@@ -74,7 +74,7 @@
class RenderMathMLTable final : public RenderTable {
public:
explicit RenderMathMLTable(Element& element, PassRef<RenderStyle> style)
- : RenderTable(element, std::move(style))
+ : RenderTable(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLFenced.cpp b/Source/WebCore/rendering/mathml/RenderMathMLFenced.cpp
index eb6197b..31deff1 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLFenced.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLFenced.cpp
@@ -44,7 +44,7 @@
static const char* gClosingBraceChar = ")";
RenderMathMLFenced::RenderMathMLFenced(MathMLInlineContainerElement& element, PassRef<RenderStyle> style)
- : RenderMathMLRow(element, std::move(style))
+ : RenderMathMLRow(element, WTF::move(style))
, m_closeFenceRenderer(nullptr)
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp b/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
index 0655289..ccec41e 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
@@ -44,7 +44,7 @@
static const float gFractionBarWidth = 0.05f;
RenderMathMLFraction::RenderMathMLFraction(MathMLInlineContainerElement& element, PassRef<RenderStyle> style)
- : RenderMathMLBlock(element, std::move(style))
+ : RenderMathMLBlock(element, WTF::move(style))
, m_lineThickness(gLineMedium)
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLMath.cpp b/Source/WebCore/rendering/mathml/RenderMathMLMath.cpp
index e6e1a88..47e00c2 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLMath.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLMath.cpp
@@ -36,7 +36,7 @@
using namespace MathMLNames;
RenderMathMLMath::RenderMathMLMath(Element& element, PassRef<RenderStyle> style)
- : RenderMathMLRow(element, std::move(style))
+ : RenderMathMLRow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLMenclose.cpp b/Source/WebCore/rendering/mathml/RenderMathMLMenclose.cpp
index 8aa0549..b2ccb9e 100755
--- a/Source/WebCore/rendering/mathml/RenderMathMLMenclose.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLMenclose.cpp
@@ -40,7 +40,7 @@
using namespace MathMLNames;
RenderMathMLMenclose::RenderMathMLMenclose(Element& element, PassRef<RenderStyle> style)
- : RenderMathMLRow(element, std::move(style))
+ : RenderMathMLRow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp b/Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp
index 2c68a8f..ce3230a 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp
@@ -1136,7 +1136,7 @@
}
RenderMathMLOperator::RenderMathMLOperator(MathMLElement& element, PassRef<RenderStyle> style)
- : RenderMathMLToken(element, std::move(style))
+ : RenderMathMLToken(element, WTF::move(style))
, m_stretchHeightAboveBaseline(0)
, m_stretchDepthBelowBaseline(0)
, m_operator(0)
@@ -1146,7 +1146,7 @@
}
RenderMathMLOperator::RenderMathMLOperator(Document& document, PassRef<RenderStyle> style, const String& operatorString, MathMLOperatorDictionary::Form form, unsigned short flags)
- : RenderMathMLToken(document, std::move(style))
+ : RenderMathMLToken(document, WTF::move(style))
, m_stretchHeightAboveBaseline(0)
, m_stretchDepthBelowBaseline(0)
, m_operator(0)
@@ -1649,7 +1649,7 @@
auto newStyle = RenderStyle::createAnonymousStyleWithDisplay(&style(), FLEX);
newStyle.get().setMarginStart(Length(m_leadingSpace, Fixed));
newStyle.get().setMarginEnd(Length(m_trailingSpace, Fixed));
- wrapper->setStyle(std::move(newStyle));
+ wrapper->setStyle(WTF::move(newStyle));
wrapper->setNeedsLayoutAndPrefWidthsRecalc();
if (!shouldAllowStretching())
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLRadicalOperator.cpp b/Source/WebCore/rendering/mathml/RenderMathMLRadicalOperator.cpp
index 1309cfe..b61b8d8 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLRadicalOperator.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLRadicalOperator.cpp
@@ -57,7 +57,7 @@
const float gRadicalThickLineThicknessEms = 0.1f;
RenderMathMLRadicalOperator::RenderMathMLRadicalOperator(Document& document, PassRef<RenderStyle> style)
- : RenderMathMLOperator(document, std::move(style), String(&gRadicalCharacter, 1), MathMLOperatorDictionary::Prefix)
+ : RenderMathMLOperator(document, WTF::move(style), String(&gRadicalCharacter, 1), MathMLOperatorDictionary::Prefix)
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp b/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp
index d07ce23..2756349 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp
@@ -55,12 +55,12 @@
// We will allow the IndexWrapper to be empty and it will always contain the last child of the <mroot> if there are at least 2 elements.
RenderMathMLRoot::RenderMathMLRoot(Element& element, PassRef<RenderStyle> style)
- : RenderMathMLBlock(element, std::move(style))
+ : RenderMathMLBlock(element, WTF::move(style))
{
}
RenderMathMLRoot::RenderMathMLRoot(Document& document, PassRef<RenderStyle> style)
- : RenderMathMLBlock(document, std::move(style))
+ : RenderMathMLBlock(document, WTF::move(style))
{
}
@@ -226,14 +226,14 @@
auto radical = radicalWrapper();
auto radicalStyle = RenderStyle::createAnonymousStyleWithDisplay(&style(), FLEX);
radicalStyle.get().setMarginTop(Length(0, Fixed)); // This will be updated in RenderMathMLRoot::layout().
- radical->setStyle(std::move(radicalStyle));
+ radical->setStyle(WTF::move(radicalStyle));
radical->setNeedsLayoutAndPrefWidthsRecalc();
auto base = baseWrapper();
auto baseStyle = RenderStyle::createAnonymousStyleWithDisplay(&style(), FLEX);
baseStyle.get().setMarginTop(Length(0, Fixed)); // This will be updated in RenderMathMLRoot::layout().
baseStyle.get().setAlignItems(AlignBaseline);
- base->setStyle(std::move(baseStyle));
+ base->setStyle(WTF::move(baseStyle));
base->setNeedsLayoutAndPrefWidthsRecalc();
if (!isRenderMathMLSquareRoot()) {
@@ -244,7 +244,7 @@
indexStyle.get().setMarginStart(Length(kernBeforeDegree, Fixed));
indexStyle.get().setMarginEnd(Length(kernAfterDegree, Fixed));
indexStyle.get().setAlignItems(AlignBaseline);
- index->setStyle(std::move(indexStyle));
+ index->setStyle(WTF::move(indexStyle));
index->setNeedsLayoutAndPrefWidthsRecalc();
}
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLRoot.h b/Source/WebCore/rendering/mathml/RenderMathMLRoot.h
index 321272b..fe93dee 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLRoot.h
+++ b/Source/WebCore/rendering/mathml/RenderMathMLRoot.h
@@ -81,7 +81,7 @@
public:
RenderMathMLRootWrapper(Document& document, PassRef<RenderStyle> style)
- : RenderMathMLRow(document, std::move(style)) { }
+ : RenderMathMLRow(document, WTF::move(style)) { }
private:
RenderObject* removeChildWithoutRestructuring(RenderObject&);
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLRow.cpp b/Source/WebCore/rendering/mathml/RenderMathMLRow.cpp
index 497f67d..3e83378 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLRow.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLRow.cpp
@@ -39,12 +39,12 @@
using namespace MathMLNames;
RenderMathMLRow::RenderMathMLRow(Element& element, PassRef<RenderStyle> style)
- : RenderMathMLBlock(element, std::move(style))
+ : RenderMathMLBlock(element, WTF::move(style))
{
}
RenderMathMLRow::RenderMathMLRow(Document& document, PassRef<RenderStyle> style)
- : RenderMathMLBlock(document, std::move(style))
+ : RenderMathMLBlock(document, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp b/Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp
index 6f82699..0c4cb1b 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp
@@ -57,7 +57,7 @@
}
RenderMathMLScripts::RenderMathMLScripts(Element& element, PassRef<RenderStyle> style)
- : RenderMathMLBlock(element, std::move(style))
+ : RenderMathMLBlock(element, WTF::move(style))
, m_baseWrapper(0)
{
// Determine what kind of sub/sup expression we have by element name
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLScripts.h b/Source/WebCore/rendering/mathml/RenderMathMLScripts.h
index 5ce4133..dc1d6a6 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLScripts.h
+++ b/Source/WebCore/rendering/mathml/RenderMathMLScripts.h
@@ -47,7 +47,7 @@
private:
RenderMathMLScriptsWrapper(Document& document, PassRef<RenderStyle> style, WrapperType kind)
- : RenderMathMLBlock(document, std::move(style))
+ : RenderMathMLBlock(document, WTF::move(style))
, m_kind(kind)
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLSpace.cpp b/Source/WebCore/rendering/mathml/RenderMathMLSpace.cpp
index 288e662..2844a03 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLSpace.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLSpace.cpp
@@ -37,7 +37,7 @@
using namespace MathMLNames;
RenderMathMLSpace::RenderMathMLSpace(MathMLTextElement& element, PassRef<RenderStyle> style)
- : RenderMathMLBlock(element, std::move(style))
+ : RenderMathMLBlock(element, WTF::move(style))
, m_width(0)
, m_height(0)
, m_depth(0)
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.cpp b/Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.cpp
index 6a8bceb..4be7620 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.cpp
@@ -35,12 +35,12 @@
namespace WebCore {
RenderMathMLSquareRoot::RenderMathMLSquareRoot(Element& element, PassRef<RenderStyle> style)
- : RenderMathMLRoot(element, std::move(style))
+ : RenderMathMLRoot(element, WTF::move(style))
{
}
RenderMathMLSquareRoot::RenderMathMLSquareRoot(Document& document, PassRef<RenderStyle> style)
- : RenderMathMLRoot(document, std::move(style))
+ : RenderMathMLRoot(document, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLToken.cpp b/Source/WebCore/rendering/mathml/RenderMathMLToken.cpp
index 8033e3a..dc4ba57 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLToken.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLToken.cpp
@@ -37,13 +37,13 @@
using namespace MathMLNames;
RenderMathMLToken::RenderMathMLToken(Element& element, PassRef<RenderStyle> style)
- : RenderMathMLBlock(element, std::move(style))
+ : RenderMathMLBlock(element, WTF::move(style))
, m_containsElement(false)
{
}
RenderMathMLToken::RenderMathMLToken(Document& document, PassRef<RenderStyle> style)
- : RenderMathMLBlock(document, std::move(style))
+ : RenderMathMLBlock(document, WTF::move(style))
, m_containsElement(false)
{
}
@@ -95,7 +95,7 @@
newStyle.get().font().update(fontSelector);
}
- wrapper->setStyle(std::move(newStyle));
+ wrapper->setStyle(WTF::move(newStyle));
wrapper->setNeedsLayoutAndPrefWidthsRecalc();
}
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLUnderOver.cpp b/Source/WebCore/rendering/mathml/RenderMathMLUnderOver.cpp
index 602d4cb..1032ee1 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLUnderOver.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLUnderOver.cpp
@@ -39,7 +39,7 @@
using namespace MathMLNames;
RenderMathMLUnderOver::RenderMathMLUnderOver(Element& element, PassRef<RenderStyle> style)
- : RenderMathMLBlock(element, std::move(style))
+ : RenderMathMLBlock(element, WTF::move(style))
{
// Determine what kind of under/over expression we have by element name
if (element.hasTagName(MathMLNames::munderTag))
diff --git a/Source/WebCore/rendering/shapes/PolygonShape.h b/Source/WebCore/rendering/shapes/PolygonShape.h
index 3ea4515..7a6aab5 100644
--- a/Source/WebCore/rendering/shapes/PolygonShape.h
+++ b/Source/WebCore/rendering/shapes/PolygonShape.h
@@ -61,7 +61,7 @@
WTF_MAKE_NONCOPYABLE(PolygonShape);
public:
PolygonShape(std::unique_ptr<Vector<FloatPoint>> vertices, WindRule fillRule)
- : m_polygon(std::move(vertices), fillRule)
+ : m_polygon(WTF::move(vertices), fillRule)
{
}
diff --git a/Source/WebCore/rendering/shapes/RasterShape.h b/Source/WebCore/rendering/shapes/RasterShape.h
index 7ee5d08..4cd1892 100644
--- a/Source/WebCore/rendering/shapes/RasterShape.h
+++ b/Source/WebCore/rendering/shapes/RasterShape.h
@@ -80,7 +80,7 @@
WTF_MAKE_NONCOPYABLE(RasterShape);
public:
RasterShape(std::unique_ptr<RasterShapeIntervals> intervals, const IntSize& marginRectSize)
- : m_intervals(std::move(intervals))
+ : m_intervals(WTF::move(intervals))
, m_marginRectSize(marginRectSize)
{
m_intervals->initializeBounds();
diff --git a/Source/WebCore/rendering/shapes/Shape.cpp b/Source/WebCore/rendering/shapes/Shape.cpp
index 8c713a4..4bf8c6e 100644
--- a/Source/WebCore/rendering/shapes/Shape.cpp
+++ b/Source/WebCore/rendering/shapes/Shape.cpp
@@ -62,7 +62,7 @@
static std::unique_ptr<Shape> createPolygonShape(std::unique_ptr<Vector<FloatPoint>> vertices, WindRule fillRule)
{
- return std::make_unique<PolygonShape>(std::move(vertices), fillRule);
+ return std::make_unique<PolygonShape>(WTF::move(vertices), fillRule);
}
static inline FloatRect physicalRectToLogical(const FloatRect& rect, float logicalBoxHeight, WritingMode writingMode)
@@ -137,7 +137,7 @@
(*vertices)[i / 2] = physicalPointToLogical(vertex, logicalBoxSize.height(), writingMode);
}
- shape = createPolygonShape(std::move(vertices), polygon.windRule());
+ shape = createPolygonShape(WTF::move(vertices), polygon.windRule());
break;
}
@@ -214,10 +214,10 @@
}
}
- auto rasterShape = std::make_unique<RasterShape>(std::move(intervals), marginRect.size());
+ auto rasterShape = std::make_unique<RasterShape>(WTF::move(intervals), marginRect.size());
rasterShape->m_writingMode = writingMode;
rasterShape->m_margin = margin;
- return std::move(rasterShape);
+ return WTF::move(rasterShape);
}
std::unique_ptr<Shape> Shape::createBoxShape(const RoundedRect& roundedRect, WritingMode writingMode, float margin)
@@ -230,7 +230,7 @@
shape->m_writingMode = writingMode;
shape->m_margin = margin;
- return std::move(shape);
+ return WTF::move(shape);
}
} // namespace WebCore
diff --git a/Source/WebCore/rendering/style/BasicShapes.cpp b/Source/WebCore/rendering/style/BasicShapes.cpp
index 1ecb2e6..082f95d 100644
--- a/Source/WebCore/rendering/style/BasicShapes.cpp
+++ b/Source/WebCore/rendering/style/BasicShapes.cpp
@@ -54,8 +54,8 @@
auto lhs = std::make_unique<CalcExpressionLength>(Length(100, Percent));
auto rhs = std::make_unique<CalcExpressionLength>(m_length);
- auto op = std::make_unique<CalcExpressionBinaryOperation>(std::move(lhs), std::move(rhs), CalcSubtract);
- m_computedLength = Length(CalculationValue::create(std::move(op), CalculationRangeAll));
+ auto op = std::make_unique<CalcExpressionBinaryOperation>(WTF::move(lhs), WTF::move(rhs), CalcSubtract);
+ m_computedLength = Length(CalculationValue::create(WTF::move(op), CalculationRangeAll));
}
bool BasicShape::canBlend(const BasicShape* other) const
diff --git a/Source/WebCore/rendering/style/BasicShapes.h b/Source/WebCore/rendering/style/BasicShapes.h
index 8e18f46..5892f10 100644
--- a/Source/WebCore/rendering/style/BasicShapes.h
+++ b/Source/WebCore/rendering/style/BasicShapes.h
@@ -153,9 +153,9 @@
const BasicShapeRadius& radius() const { return m_radius; }
float floatValueForRadiusInBox(float boxWidth, float boxHeight) const;
- void setCenterX(BasicShapeCenterCoordinate centerX) { m_centerX = std::move(centerX); }
- void setCenterY(BasicShapeCenterCoordinate centerY) { m_centerY = std::move(centerY); }
- void setRadius(BasicShapeRadius radius) { m_radius = std::move(radius); }
+ void setCenterX(BasicShapeCenterCoordinate centerX) { m_centerX = WTF::move(centerX); }
+ void setCenterY(BasicShapeCenterCoordinate centerY) { m_centerY = WTF::move(centerY); }
+ void setRadius(BasicShapeRadius radius) { m_radius = WTF::move(radius); }
virtual void path(Path&, const FloatRect&) override;
virtual PassRefPtr<BasicShape> blend(const BasicShape*, double) const override;
@@ -179,10 +179,10 @@
const BasicShapeRadius& radiusY() const { return m_radiusY; }
float floatValueForRadiusInBox(const BasicShapeRadius&, float center, float boxWidthOrHeight) const;
- void setCenterX(BasicShapeCenterCoordinate centerX) { m_centerX = std::move(centerX); }
- void setCenterY(BasicShapeCenterCoordinate centerY) { m_centerY = std::move(centerY); }
- void setRadiusX(BasicShapeRadius radiusX) { m_radiusX = std::move(radiusX); }
- void setRadiusY(BasicShapeRadius radiusY) { m_radiusY = std::move(radiusY); }
+ void setCenterX(BasicShapeCenterCoordinate centerX) { m_centerX = WTF::move(centerX); }
+ void setCenterY(BasicShapeCenterCoordinate centerY) { m_centerY = WTF::move(centerY); }
+ void setRadiusX(BasicShapeRadius radiusX) { m_radiusX = WTF::move(radiusX); }
+ void setRadiusY(BasicShapeRadius radiusY) { m_radiusY = WTF::move(radiusY); }
virtual void path(Path&, const FloatRect&) override;
virtual PassRefPtr<BasicShape> blend(const BasicShape*, double) const override;
@@ -206,7 +206,7 @@
const Length& getYAt(unsigned i) const { return m_values[2 * i + 1]; }
void setWindRule(WindRule windRule) { m_windRule = windRule; }
- void appendPoint(Length x, Length y) { m_values.append(std::move(x)); m_values.append(std::move(y)); }
+ void appendPoint(Length x, Length y) { m_values.append(WTF::move(x)); m_values.append(WTF::move(y)); }
virtual void path(Path&, const FloatRect&) override;
virtual PassRefPtr<BasicShape> blend(const BasicShape*, double) const override;
@@ -237,15 +237,15 @@
const LengthSize& bottomRightRadius() const { return m_bottomRightRadius; }
const LengthSize& bottomLeftRadius() const { return m_bottomLeftRadius; }
- void setTop(Length top) { m_top = std::move(top); }
- void setRight(Length right) { m_right = std::move(right); }
- void setBottom(Length bottom) { m_bottom = std::move(bottom); }
- void setLeft(Length left) { m_left = std::move(left); }
+ void setTop(Length top) { m_top = WTF::move(top); }
+ void setRight(Length right) { m_right = WTF::move(right); }
+ void setBottom(Length bottom) { m_bottom = WTF::move(bottom); }
+ void setLeft(Length left) { m_left = WTF::move(left); }
- void setTopLeftRadius(LengthSize radius) { m_topLeftRadius = std::move(radius); }
- void setTopRightRadius(LengthSize radius) { m_topRightRadius = std::move(radius); }
- void setBottomRightRadius(LengthSize radius) { m_bottomRightRadius = std::move(radius); }
- void setBottomLeftRadius(LengthSize radius) { m_bottomLeftRadius = std::move(radius); }
+ void setTopLeftRadius(LengthSize radius) { m_topLeftRadius = WTF::move(radius); }
+ void setTopRightRadius(LengthSize radius) { m_topRightRadius = WTF::move(radius); }
+ void setBottomRightRadius(LengthSize radius) { m_bottomRightRadius = WTF::move(radius); }
+ void setBottomLeftRadius(LengthSize radius) { m_bottomLeftRadius = WTF::move(radius); }
virtual void path(Path&, const FloatRect&) override;
virtual PassRefPtr<BasicShape> blend(const BasicShape*, double) const override;
diff --git a/Source/WebCore/rendering/style/ContentData.cpp b/Source/WebCore/rendering/style/ContentData.cpp
index b0c469b4..e1f7d4e 100644
--- a/Source/WebCore/rendering/style/ContentData.cpp
+++ b/Source/WebCore/rendering/style/ContentData.cpp
@@ -40,7 +40,7 @@
ContentData* lastNewData = result.get();
for (const ContentData* contentData = next(); contentData; contentData = contentData->next()) {
auto newData = contentData->cloneInternal();
- lastNewData->setNext(std::move(newData));
+ lastNewData->setNext(WTF::move(newData));
lastNewData = lastNewData->next();
}
@@ -52,14 +52,14 @@
auto image = createRenderer<RenderImage>(document, RenderStyle::createStyleInheritingFromPseudoStyle(pseudoStyle), m_image.get());
image->initializeStyle();
image->setAltText(altText());
- return std::move(image);
+ return WTF::move(image);
}
RenderPtr<RenderObject> TextContentData::createContentRenderer(Document& document, const RenderStyle&) const
{
auto fragment = createRenderer<RenderTextFragment>(document, m_text);
fragment->setAltText(altText());
- return std::move(fragment);
+ return WTF::move(fragment);
}
RenderPtr<RenderObject> CounterContentData::createContentRenderer(Document& document, const RenderStyle&) const
@@ -71,7 +71,7 @@
{
auto quote = createRenderer<RenderQuote>(document, RenderStyle::createStyleInheritingFromPseudoStyle(pseudoStyle), m_quote);
quote->initializeStyle();
- return std::move(quote);
+ return WTF::move(quote);
}
} // namespace WebCore
diff --git a/Source/WebCore/rendering/style/ContentData.h b/Source/WebCore/rendering/style/ContentData.h
index bf369b6..c065cbe 100644
--- a/Source/WebCore/rendering/style/ContentData.h
+++ b/Source/WebCore/rendering/style/ContentData.h
@@ -58,7 +58,7 @@
std::unique_ptr<ContentData> clone() const;
ContentData* next() const { return m_next.get(); }
- void setNext(std::unique_ptr<ContentData> next) { m_next = std::move(next); }
+ void setNext(std::unique_ptr<ContentData> next) { m_next = WTF::move(next); }
void setAltText(const String& alt) { m_altText = alt; }
const String& altText() const { return m_altText; }
@@ -154,7 +154,7 @@
public:
explicit CounterContentData(std::unique_ptr<CounterContent> counter)
: ContentData(CounterDataType)
- , m_counter(std::move(counter))
+ , m_counter(WTF::move(counter))
{
ASSERT(m_counter);
}
@@ -163,7 +163,7 @@
void setCounter(std::unique_ptr<CounterContent> counter)
{
ASSERT(counter);
- m_counter = std::move(counter);
+ m_counter = WTF::move(counter);
}
virtual RenderPtr<RenderObject> createContentRenderer(Document&, const RenderStyle&) const override;
@@ -172,7 +172,7 @@
virtual std::unique_ptr<ContentData> cloneInternal() const override
{
auto counterData = std::make_unique<CounterContent>(counter());
- return std::make_unique<CounterContentData>(std::move(counterData));
+ return std::make_unique<CounterContentData>(WTF::move(counterData));
}
std::unique_ptr<CounterContent> m_counter;
diff --git a/Source/WebCore/rendering/style/DataRef.h b/Source/WebCore/rendering/style/DataRef.h
index 3eb14e1..7964cd6 100644
--- a/Source/WebCore/rendering/style/DataRef.h
+++ b/Source/WebCore/rendering/style/DataRef.h
@@ -31,7 +31,7 @@
template <typename T> class DataRef {
public:
- DataRef(PassRef<T> data) : m_data(std::move(data)) { }
+ DataRef(PassRef<T> data) : m_data(WTF::move(data)) { }
DataRef(const DataRef& other) : m_data(const_cast<T&>(other.m_data.get())) { }
DataRef& operator=(const DataRef& other) { m_data = const_cast<T&>(other.m_data.get()); return *this; }
diff --git a/Source/WebCore/rendering/style/FillLayer.cpp b/Source/WebCore/rendering/style/FillLayer.cpp
index 7fba562..b91fbe7 100644
--- a/Source/WebCore/rendering/style/FillLayer.cpp
+++ b/Source/WebCore/rendering/style/FillLayer.cpp
@@ -108,7 +108,7 @@
FillLayer::~FillLayer()
{
// Delete the layers in a loop rather than allowing recursive calls to the destructors.
- for (std::unique_ptr<FillLayer> next = std::move(m_next); next; next = std::move(next->m_next)) { }
+ for (std::unique_ptr<FillLayer> next = WTF::move(m_next); next; next = WTF::move(next->m_next)) { }
}
FillLayer& FillLayer::operator=(const FillLayer& o)
diff --git a/Source/WebCore/rendering/style/FillLayer.h b/Source/WebCore/rendering/style/FillLayer.h
index ce4b4f3..9beb7bf 100644
--- a/Source/WebCore/rendering/style/FillLayer.h
+++ b/Source/WebCore/rendering/style/FillLayer.h
@@ -102,8 +102,8 @@
bool isMaskSourceTypeSet() const { return m_maskSourceTypeSet; }
void setImage(PassRefPtr<StyleImage> image) { m_image = image; m_imageSet = true; }
- void setXPosition(Length length) { m_xPosition = std::move(length); m_xPosSet = true; }
- void setYPosition(Length length) { m_yPosition = std::move(length); m_yPosSet = true; }
+ void setXPosition(Length length) { m_xPosition = WTF::move(length); m_xPosSet = true; }
+ void setYPosition(Length length) { m_yPosition = WTF::move(length); m_yPosSet = true; }
void setBackgroundXOrigin(BackgroundEdgeOrigin o) { m_backgroundXOrigin = o; m_backgroundOriginSet = true; }
void setBackgroundYOrigin(BackgroundEdgeOrigin o) { m_backgroundYOrigin = o; m_backgroundOriginSet = true; }
void setAttachment(EFillAttachment attachment) { m_attachment = attachment; m_attachmentSet = true; }
@@ -132,7 +132,7 @@
void clearSize() { m_sizeType = SizeNone; }
void clearMaskSourceType() { m_maskSourceTypeSet = false; }
- void setNext(std::unique_ptr<FillLayer> next) { m_next = std::move(next); }
+ void setNext(std::unique_ptr<FillLayer> next) { m_next = WTF::move(next); }
FillLayer& operator=(const FillLayer&);
FillLayer(const FillLayer&);
diff --git a/Source/WebCore/rendering/style/NinePieceImage.cpp b/Source/WebCore/rendering/style/NinePieceImage.cpp
index 43bd1b0..0414c78 100644
--- a/Source/WebCore/rendering/style/NinePieceImage.cpp
+++ b/Source/WebCore/rendering/style/NinePieceImage.cpp
@@ -42,9 +42,9 @@
: m_data(NinePieceImageData::create())
{
m_data.access()->image = image;
- m_data.access()->imageSlices = std::move(imageSlices);
- m_data.access()->borderSlices = std::move(borderSlices);
- m_data.access()->outset = std::move(outset);
+ m_data.access()->imageSlices = WTF::move(imageSlices);
+ m_data.access()->borderSlices = WTF::move(borderSlices);
+ m_data.access()->outset = WTF::move(outset);
m_data.access()->fill = fill;
m_data.access()->horizontalRule = horizontalRule;
m_data.access()->verticalRule = verticalRule;
diff --git a/Source/WebCore/rendering/style/NinePieceImage.h b/Source/WebCore/rendering/style/NinePieceImage.h
index e349241..d6868ff 100644
--- a/Source/WebCore/rendering/style/NinePieceImage.h
+++ b/Source/WebCore/rendering/style/NinePieceImage.h
@@ -69,16 +69,16 @@
void setImage(PassRefPtr<StyleImage> image) { m_data.access()->image = image; }
const LengthBox& imageSlices() const { return m_data->imageSlices; }
- void setImageSlices(LengthBox slices) { m_data.access()->imageSlices = std::move(slices); }
+ void setImageSlices(LengthBox slices) { m_data.access()->imageSlices = WTF::move(slices); }
bool fill() const { return m_data->fill; }
void setFill(bool fill) { m_data.access()->fill = fill; }
const LengthBox& borderSlices() const { return m_data->borderSlices; }
- void setBorderSlices(LengthBox slices) { m_data.access()->borderSlices = std::move(slices); }
+ void setBorderSlices(LengthBox slices) { m_data.access()->borderSlices = WTF::move(slices); }
const LengthBox& outset() const { return m_data->outset; }
- void setOutset(LengthBox outset) { m_data.access()->outset = std::move(outset); }
+ void setOutset(LengthBox outset) { m_data.access()->outset = WTF::move(outset); }
ENinePieceImageRule horizontalRule() const { return static_cast<ENinePieceImageRule>(m_data->horizontalRule); }
void setHorizontalRule(ENinePieceImageRule rule) { m_data.access()->horizontalRule = rule; }
diff --git a/Source/WebCore/rendering/style/RenderStyle.cpp b/Source/WebCore/rendering/style/RenderStyle.cpp
index 91b3151..3320c02 100644
--- a/Source/WebCore/rendering/style/RenderStyle.cpp
+++ b/Source/WebCore/rendering/style/RenderStyle.cpp
@@ -864,9 +864,9 @@
lastContent = lastContent->next();
if (lastContent)
- lastContent->setNext(std::move(contentData));
+ lastContent->setNext(WTF::move(contentData));
else
- content = std::move(contentData);
+ content = WTF::move(contentData);
}
void RenderStyle::setContent(PassRefPtr<StyleImage> image, bool add)
@@ -917,11 +917,11 @@
return;
if (add) {
- appendContent(std::make_unique<CounterContentData>(std::move(counter)));
+ appendContent(std::make_unique<CounterContentData>(WTF::move(counter)));
return;
}
- rareNonInheritedData.access()->m_content = std::make_unique<CounterContentData>(std::move(counter));
+ rareNonInheritedData.access()->m_content = std::make_unique<CounterContentData>(WTF::move(counter));
}
void RenderStyle::setContent(QuoteType quote, bool add)
@@ -1009,24 +1009,24 @@
StyleRareInheritedData* rareData = rareInheritedData.access();
if (!add) {
- rareData->textShadow = std::move(shadowData);
+ rareData->textShadow = WTF::move(shadowData);
return;
}
- shadowData->setNext(std::move(rareData->textShadow));
- rareData->textShadow = std::move(shadowData);
+ shadowData->setNext(WTF::move(rareData->textShadow));
+ rareData->textShadow = WTF::move(shadowData);
}
void RenderStyle::setBoxShadow(std::unique_ptr<ShadowData> shadowData, bool add)
{
StyleRareNonInheritedData* rareData = rareNonInheritedData.access();
if (!add) {
- rareData->m_boxShadow = std::move(shadowData);
+ rareData->m_boxShadow = WTF::move(shadowData);
return;
}
- shadowData->setNext(std::move(rareData->m_boxShadow));
- rareData->m_boxShadow = std::move(shadowData);
+ shadowData->setNext(WTF::move(rareData->m_boxShadow));
+ rareData->m_boxShadow = WTF::move(shadowData);
}
static RoundedRect::Radii calcRadiiFor(const BorderData& border, const LayoutSize& size)
@@ -1377,7 +1377,7 @@
break;
}
inherited.access()->font.setWordSpacing(fontWordSpacing);
- rareInheritedData.access()->wordSpacing = std::move(value);
+ rareInheritedData.access()->wordSpacing = WTF::move(value);
}
void RenderStyle::setLetterSpacing(float v) { inherited.access()->font.setLetterSpacing(v); }
diff --git a/Source/WebCore/rendering/style/RenderStyle.h b/Source/WebCore/rendering/style/RenderStyle.h
index 1ec21fe..401125b 100644
--- a/Source/WebCore/rendering/style/RenderStyle.h
+++ b/Source/WebCore/rendering/style/RenderStyle.h
@@ -1141,36 +1141,36 @@
void setPosition(EPosition v) { noninherited_flags.setPosition(v); }
void setFloating(EFloat v) { noninherited_flags.setFloating(v); }
- void setLeft(Length v) { SET_VAR(surround, offset.m_left, std::move(v)); }
- void setRight(Length v) { SET_VAR(surround, offset.m_right, std::move(v)); }
- void setTop(Length v) { SET_VAR(surround, offset.m_top, std::move(v)); }
- void setBottom(Length v) { SET_VAR(surround, offset.m_bottom, std::move(v)); }
+ void setLeft(Length v) { SET_VAR(surround, offset.m_left, WTF::move(v)); }
+ void setRight(Length v) { SET_VAR(surround, offset.m_right, WTF::move(v)); }
+ void setTop(Length v) { SET_VAR(surround, offset.m_top, WTF::move(v)); }
+ void setBottom(Length v) { SET_VAR(surround, offset.m_bottom, WTF::move(v)); }
- void setWidth(Length v) { SET_VAR(m_box, m_width, std::move(v)); }
- void setHeight(Length v) { SET_VAR(m_box, m_height, std::move(v)); }
+ void setWidth(Length v) { SET_VAR(m_box, m_width, WTF::move(v)); }
+ void setHeight(Length v) { SET_VAR(m_box, m_height, WTF::move(v)); }
void setLogicalWidth(Length v)
{
if (isHorizontalWritingMode()) {
- SET_VAR(m_box, m_width, std::move(v));
+ SET_VAR(m_box, m_width, WTF::move(v));
} else {
- SET_VAR(m_box, m_height, std::move(v));
+ SET_VAR(m_box, m_height, WTF::move(v));
}
}
void setLogicalHeight(Length v)
{
if (isHorizontalWritingMode()) {
- SET_VAR(m_box, m_height, std::move(v));
+ SET_VAR(m_box, m_height, WTF::move(v));
} else {
- SET_VAR(m_box, m_width, std::move(v));
+ SET_VAR(m_box, m_width, WTF::move(v));
}
}
- void setMinWidth(Length v) { SET_VAR(m_box, m_minWidth, std::move(v)); }
- void setMaxWidth(Length v) { SET_VAR(m_box, m_maxWidth, std::move(v)); }
- void setMinHeight(Length v) { SET_VAR(m_box, m_minHeight, std::move(v)); }
- void setMaxHeight(Length v) { SET_VAR(m_box, m_maxHeight, std::move(v)); }
+ void setMinWidth(Length v) { SET_VAR(m_box, m_minWidth, WTF::move(v)); }
+ void setMaxWidth(Length v) { SET_VAR(m_box, m_maxWidth, WTF::move(v)); }
+ void setMinHeight(Length v) { SET_VAR(m_box, m_minHeight, WTF::move(v)); }
+ void setMaxHeight(Length v) { SET_VAR(m_box, m_maxHeight, WTF::move(v)); }
#if ENABLE(DASHBOARD_SUPPORT)
Vector<StyleDashboardRegion> dashboardRegions() const { return rareNonInheritedData->m_dashboardRegions; }
@@ -1180,10 +1180,10 @@
{
StyleDashboardRegion region;
region.label = label;
- region.offset.m_top = std::move(t);
- region.offset.m_right = std::move(r);
- region.offset.m_bottom = std::move(b);
- region.offset.m_left = std::move(l);
+ region.offset.m_top = WTF::move(t);
+ region.offset.m_right = WTF::move(r);
+ region.offset.m_bottom = WTF::move(b);
+ region.offset.m_left = WTF::move(l);
region.type = type;
if (!append)
rareNonInheritedData.access()->m_dashboardRegions.clear();
@@ -1205,10 +1205,10 @@
void setBackgroundColor(const Color& v) { SET_VAR(m_background, m_color, v); }
- void setBackgroundXPosition(Length length) { SET_VAR(m_background, m_background.m_xPosition, std::move(length)); }
- void setBackgroundYPosition(Length length) { SET_VAR(m_background, m_background.m_yPosition, std::move(length)); }
+ void setBackgroundXPosition(Length length) { SET_VAR(m_background, m_background.m_xPosition, WTF::move(length)); }
+ void setBackgroundYPosition(Length length) { SET_VAR(m_background, m_background.m_yPosition, WTF::move(length)); }
void setBackgroundSize(EFillSizeType b) { SET_VAR(m_background, m_background.m_sizeType, b); }
- void setBackgroundSizeLength(LengthSize size) { SET_VAR(m_background, m_background.m_sizeLength, std::move(size)); }
+ void setBackgroundSizeLength(LengthSize size) { SET_VAR(m_background, m_background.m_sizeLength, WTF::move(size)); }
void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_image, b); }
void setBorderImageSource(PassRefPtr<StyleImage>);
@@ -1216,10 +1216,10 @@
void setBorderImageWidth(LengthBox);
void setBorderImageOutset(LengthBox);
- void setBorderTopLeftRadius(LengthSize size) { SET_VAR(surround, border.m_topLeft, std::move(size)); }
- void setBorderTopRightRadius(LengthSize size) { SET_VAR(surround, border.m_topRight, std::move(size)); }
- void setBorderBottomLeftRadius(LengthSize size) { SET_VAR(surround, border.m_bottomLeft, std::move(size)); }
- void setBorderBottomRightRadius(LengthSize size) { SET_VAR(surround, border.m_bottomRight, std::move(size)); }
+ void setBorderTopLeftRadius(LengthSize size) { SET_VAR(surround, border.m_topLeft, WTF::move(size)); }
+ void setBorderTopRightRadius(LengthSize size) { SET_VAR(surround, border.m_topRight, WTF::move(size)); }
+ void setBorderBottomLeftRadius(LengthSize size) { SET_VAR(surround, border.m_bottomLeft, WTF::move(size)); }
+ void setBorderBottomRightRadius(LengthSize size) { SET_VAR(surround, border.m_bottomRight, WTF::move(size)); }
void setBorderRadius(LengthSize s)
{
@@ -1261,15 +1261,15 @@
void setOverflowY(EOverflow v) { noninherited_flags.setOverflowY(v); }
void setVisibility(EVisibility v) { inherited_flags._visibility = v; }
void setVerticalAlign(EVerticalAlign v) { noninherited_flags.setVerticalAlign(v); }
- void setVerticalAlignLength(Length length) { setVerticalAlign(LENGTH); SET_VAR(m_box, m_verticalAlign, std::move(length)); }
+ void setVerticalAlignLength(Length length) { setVerticalAlign(LENGTH); SET_VAR(m_box, m_verticalAlign, WTF::move(length)); }
void setHasClip(bool b = true) { SET_VAR(visual, hasClip, b); }
- void setClipLeft(Length length) { SET_VAR(visual, clip.m_left, std::move(length)); }
- void setClipRight(Length length) { SET_VAR(visual, clip.m_right, std::move(length)); }
- void setClipTop(Length length) { SET_VAR(visual, clip.m_top, std::move(length)); }
- void setClipBottom(Length length) { SET_VAR(visual, clip.m_bottom, std::move(length)); }
+ void setClipLeft(Length length) { SET_VAR(visual, clip.m_left, WTF::move(length)); }
+ void setClipRight(Length length) { SET_VAR(visual, clip.m_right, WTF::move(length)); }
+ void setClipTop(Length length) { SET_VAR(visual, clip.m_top, WTF::move(length)); }
+ void setClipBottom(Length length) { SET_VAR(visual, clip.m_bottom, WTF::move(length)); }
void setClip(Length top, Length right, Length bottom, Length left);
- void setClip(LengthBox box) { SET_VAR(visual, clip, std::move(box)); }
+ void setClip(LengthBox box) { SET_VAR(visual, clip, WTF::move(box)); }
void setUnicodeBidi(EUnicodeBidi b) { noninherited_flags.setUnicodeBidi(b); }
@@ -1289,7 +1289,7 @@
#endif
void setColor(const Color&);
- void setTextIndent(Length length) { SET_VAR(rareInheritedData, indent, std::move(length)); }
+ void setTextIndent(Length length) { SET_VAR(rareInheritedData, indent, WTF::move(length)); }
#if ENABLE(CSS3_TEXT)
void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_textIndentLine, v); }
void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_textIndentType, v); }
@@ -1358,9 +1358,9 @@
void setMaskBoxImage(const NinePieceImage& b) { SET_VAR(rareNonInheritedData, m_maskBoxImage, b); }
void setMaskBoxImageSource(PassRefPtr<StyleImage> v) { rareNonInheritedData.access()->m_maskBoxImage.setImage(v); }
- void setMaskXPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.m_xPosition, std::move(length)); }
- void setMaskYPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.m_yPosition, std::move(length)); }
- void setMaskSize(LengthSize size) { SET_VAR(rareNonInheritedData, m_mask.m_sizeLength, std::move(size)); }
+ void setMaskXPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.m_xPosition, WTF::move(length)); }
+ void setMaskYPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.m_yPosition, WTF::move(length)); }
+ void setMaskSize(LengthSize size) { SET_VAR(rareNonInheritedData, m_mask.m_sizeLength, WTF::move(size)); }
void setBorderCollapse(EBorderCollapse collapse) { inherited_flags._border_collapse = collapse; }
void setHorizontalBorderSpacing(short);
@@ -1377,19 +1377,19 @@
void setListStylePosition(EListStylePosition v) { inherited_flags._list_style_position = v; }
void resetMargin() { SET_VAR(surround, margin, LengthBox(Fixed)); }
- void setMarginTop(Length length) { SET_VAR(surround, margin.m_top, std::move(length)); }
- void setMarginBottom(Length length) { SET_VAR(surround, margin.m_bottom, std::move(length)); }
- void setMarginLeft(Length length) { SET_VAR(surround, margin.m_left, std::move(length)); }
- void setMarginRight(Length length) { SET_VAR(surround, margin.m_right, std::move(length)); }
+ void setMarginTop(Length length) { SET_VAR(surround, margin.m_top, WTF::move(length)); }
+ void setMarginBottom(Length length) { SET_VAR(surround, margin.m_bottom, WTF::move(length)); }
+ void setMarginLeft(Length length) { SET_VAR(surround, margin.m_left, WTF::move(length)); }
+ void setMarginRight(Length length) { SET_VAR(surround, margin.m_right, WTF::move(length)); }
void setMarginStart(Length);
void setMarginEnd(Length);
void resetPadding() { SET_VAR(surround, padding, LengthBox(Auto)); }
- void setPaddingBox(LengthBox box) { SET_VAR(surround, padding, std::move(box)); }
- void setPaddingTop(Length length) { SET_VAR(surround, padding.m_top, std::move(length)); }
- void setPaddingBottom(Length length) { SET_VAR(surround, padding.m_bottom, std::move(length)); }
- void setPaddingLeft(Length length) { SET_VAR(surround, padding.m_left, std::move(length)); }
- void setPaddingRight(Length length) { SET_VAR(surround, padding.m_right, std::move(length)); }
+ void setPaddingBox(LengthBox box) { SET_VAR(surround, padding, WTF::move(box)); }
+ void setPaddingTop(Length length) { SET_VAR(surround, padding.m_top, WTF::move(length)); }
+ void setPaddingBottom(Length length) { SET_VAR(surround, padding.m_bottom, WTF::move(length)); }
+ void setPaddingLeft(Length length) { SET_VAR(surround, padding.m_left, WTF::move(length)); }
+ void setPaddingRight(Length length) { SET_VAR(surround, padding.m_right, WTF::move(length)); }
void setCursor(ECursor c) { inherited_flags._cursor_style = c; }
void addCursor(PassRefPtr<StyleImage>, const IntPoint& hotSpot = IntPoint());
@@ -1448,7 +1448,7 @@
void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); }
void setFlexGrow(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibleBox, m_flexGrow, f); }
void setFlexShrink(float f) { SET_VAR(rareNonInheritedData.access()->m_flexibleBox, m_flexShrink, f); }
- void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_flexibleBox, m_flexBasis, std::move(length)); }
+ void setFlexBasis(Length length) { SET_VAR(rareNonInheritedData.access()->m_flexibleBox, m_flexBasis, WTF::move(length)); }
void setOrder(int o) { SET_VAR(rareNonInheritedData, m_order, o); }
void setAlignContent(EAlignContent p) { SET_VAR(rareNonInheritedData, m_alignContent, p); }
void setAlignItems(EAlignItems a) { SET_VAR(rareNonInheritedData, m_alignItems, a); }
@@ -1474,7 +1474,7 @@
void setGridItemRowStart(const GridPosition& rowStartPosition) { SET_VAR(rareNonInheritedData.access()->m_gridItem, m_gridRowStart, rowStartPosition); }
void setGridItemRowEnd(const GridPosition& rowEndPosition) { SET_VAR(rareNonInheritedData.access()->m_gridItem, m_gridRowEnd, rowEndPosition); }
#endif /* ENABLE(CSS_GRID_LAYOUT) */
- void setMarqueeIncrement(Length length) { SET_VAR(rareNonInheritedData.access()->m_marquee, increment, std::move(length)); }
+ void setMarqueeIncrement(Length length) { SET_VAR(rareNonInheritedData.access()->m_marquee, increment, WTF::move(length)); }
void setMarqueeSpeed(int f) { SET_VAR(rareNonInheritedData.access()->m_marquee, speed, f); }
void setMarqueeDirection(EMarqueeDirection d) { SET_VAR(rareNonInheritedData.access()->m_marquee, direction, d); }
void setMarqueeBehavior(EMarqueeBehavior b) { SET_VAR(rareNonInheritedData.access()->m_marquee, behavior, b); }
@@ -1520,8 +1520,8 @@
void setRegionBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData, m_regionBreakAfter, p); }
void inheritColumnPropertiesFrom(RenderStyle* parent) { rareNonInheritedData.access()->m_multiCol = parent->rareNonInheritedData->m_multiCol; }
void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInheritedData.access()->m_transform, m_operations, ops); }
- void setTransformOriginX(Length length) { SET_VAR(rareNonInheritedData.access()->m_transform, m_x, std::move(length)); }
- void setTransformOriginY(Length length) { SET_VAR(rareNonInheritedData.access()->m_transform, m_y, std::move(length)); }
+ void setTransformOriginX(Length length) { SET_VAR(rareNonInheritedData.access()->m_transform, m_x, WTF::move(length)); }
+ void setTransformOriginY(Length length) { SET_VAR(rareNonInheritedData.access()->m_transform, m_y, WTF::move(length)); }
void setTransformOriginZ(float f) { SET_VAR(rareNonInheritedData.access()->m_transform, m_z, f); }
void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); }
void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCombine, v); }
@@ -1574,9 +1574,9 @@
void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData, m_transformStyle3D, b); }
void setBackfaceVisibility(EBackfaceVisibility b) { SET_VAR(rareNonInheritedData, m_backfaceVisibility, b); }
void setPerspective(float p) { SET_VAR(rareNonInheritedData, m_perspective, p); }
- void setPerspectiveOriginX(Length length) { SET_VAR(rareNonInheritedData, m_perspectiveOriginX, std::move(length)); }
- void setPerspectiveOriginY(Length length) { SET_VAR(rareNonInheritedData, m_perspectiveOriginY, std::move(length)); }
- void setPageSize(LengthSize size) { SET_VAR(rareNonInheritedData, m_pageSize, std::move(size)); }
+ void setPerspectiveOriginX(Length length) { SET_VAR(rareNonInheritedData, m_perspectiveOriginX, WTF::move(length)); }
+ void setPerspectiveOriginY(Length length) { SET_VAR(rareNonInheritedData, m_perspectiveOriginY, WTF::move(length)); }
+ void setPageSize(LengthSize size) { SET_VAR(rareNonInheritedData, m_pageSize, WTF::move(size)); }
void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageSizeType, t); }
void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAGE_SIZE_AUTO); }
@@ -1649,7 +1649,7 @@
static ShapeValue* initialShapeOutside() { return 0; }
const Length& shapeMargin() const { return rareNonInheritedData->m_shapeMargin; }
- void setShapeMargin(Length shapeMargin) { SET_VAR(rareNonInheritedData, m_shapeMargin, std::move(shapeMargin)); }
+ void setShapeMargin(Length shapeMargin) { SET_VAR(rareNonInheritedData, m_shapeMargin, WTF::move(shapeMargin)); }
static Length initialShapeMargin() { return Length(0, Fixed); }
float shapeImageThreshold() const { return rareNonInheritedData->m_shapeImageThreshold; }
diff --git a/Source/WebCore/rendering/style/SVGRenderStyle.h b/Source/WebCore/rendering/style/SVGRenderStyle.h
index e76124d..b40bd27 100644
--- a/Source/WebCore/rendering/style/SVGRenderStyle.h
+++ b/Source/WebCore/rendering/style/SVGRenderStyle.h
@@ -264,7 +264,7 @@
misc.access()->baselineShiftValue = obj;
}
- void setShadow(std::unique_ptr<ShadowData> obj) { shadowSVG.access()->shadow = std::move(obj); }
+ void setShadow(std::unique_ptr<ShadowData> obj) { shadowSVG.access()->shadow = WTF::move(obj); }
// Setters for non-inherited resources
void setClipperResource(const String& obj)
diff --git a/Source/WebCore/rendering/style/ShadowData.h b/Source/WebCore/rendering/style/ShadowData.h
index f82c766..8a1cac3 100644
--- a/Source/WebCore/rendering/style/ShadowData.h
+++ b/Source/WebCore/rendering/style/ShadowData.h
@@ -82,7 +82,7 @@
bool isWebkitBoxShadow() const { return m_isWebkitBoxShadow; }
const ShadowData* next() const { return m_next.get(); }
- void setNext(std::unique_ptr<ShadowData> shadow) { m_next = std::move(shadow); }
+ void setNext(std::unique_ptr<ShadowData> shadow) { m_next = WTF::move(shadow); }
void adjustRectForShadow(LayoutRect&, int additionalOutlineSize = 0) const;
void adjustRectForShadow(FloatRect&, int additionalOutlineSize = 0) const;
diff --git a/Source/WebCore/rendering/style/StyleGeneratedImage.cpp b/Source/WebCore/rendering/style/StyleGeneratedImage.cpp
index 0f7f74f..a4751d2 100644
--- a/Source/WebCore/rendering/style/StyleGeneratedImage.cpp
+++ b/Source/WebCore/rendering/style/StyleGeneratedImage.cpp
@@ -31,7 +31,7 @@
namespace WebCore {
StyleGeneratedImage::StyleGeneratedImage(PassRef<CSSImageGeneratorValue> value)
- : m_imageGeneratorValue(std::move(value))
+ : m_imageGeneratorValue(WTF::move(value))
, m_fixedSize(m_imageGeneratorValue->isFixedSize())
{
m_isGeneratedImage = true;
diff --git a/Source/WebCore/rendering/style/StyleGeneratedImage.h b/Source/WebCore/rendering/style/StyleGeneratedImage.h
index 4dbe1ee..b1ca273 100644
--- a/Source/WebCore/rendering/style/StyleGeneratedImage.h
+++ b/Source/WebCore/rendering/style/StyleGeneratedImage.h
@@ -35,7 +35,7 @@
public:
static PassRefPtr<StyleGeneratedImage> create(PassRef<CSSImageGeneratorValue> value)
{
- return adoptRef(new StyleGeneratedImage(std::move(value)));
+ return adoptRef(new StyleGeneratedImage(WTF::move(value)));
}
CSSImageGeneratorValue& imageValue() { return m_imageGeneratorValue.get(); }
diff --git a/Source/WebCore/rendering/style/StyleReflection.h b/Source/WebCore/rendering/style/StyleReflection.h
index 45b93e2..31cdbb5 100644
--- a/Source/WebCore/rendering/style/StyleReflection.h
+++ b/Source/WebCore/rendering/style/StyleReflection.h
@@ -50,7 +50,7 @@
const NinePieceImage& mask() const { return m_mask; }
void setDirection(CSSReflectionDirection dir) { m_direction = dir; }
- void setOffset(Length offset) { m_offset = std::move(offset); }
+ void setOffset(Length offset) { m_offset = WTF::move(offset); }
void setMask(const NinePieceImage& image) { m_mask = image; }
private:
diff --git a/Source/WebCore/rendering/svg/RenderSVGBlock.cpp b/Source/WebCore/rendering/svg/RenderSVGBlock.cpp
index 8eb636f..dcdf8e6 100644
--- a/Source/WebCore/rendering/svg/RenderSVGBlock.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGBlock.cpp
@@ -29,7 +29,7 @@
namespace WebCore {
RenderSVGBlock::RenderSVGBlock(SVGGraphicsElement& element, PassRef<RenderStyle> style)
- : RenderBlockFlow(element, std::move(style))
+ : RenderBlockFlow(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGContainer.cpp b/Source/WebCore/rendering/svg/RenderSVGContainer.cpp
index 847f451..9dbca5c 100644
--- a/Source/WebCore/rendering/svg/RenderSVGContainer.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGContainer.cpp
@@ -38,7 +38,7 @@
namespace WebCore {
RenderSVGContainer::RenderSVGContainer(SVGElement& element, PassRef<RenderStyle> style)
- : RenderSVGModelObject(element, std::move(style))
+ : RenderSVGModelObject(element, WTF::move(style))
, m_objectBoundingBoxValid(false)
, m_needsBoundariesUpdate(true)
{
diff --git a/Source/WebCore/rendering/svg/RenderSVGEllipse.cpp b/Source/WebCore/rendering/svg/RenderSVGEllipse.cpp
index 24d15af..7878089 100644
--- a/Source/WebCore/rendering/svg/RenderSVGEllipse.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGEllipse.cpp
@@ -34,7 +34,7 @@
namespace WebCore {
RenderSVGEllipse::RenderSVGEllipse(SVGGraphicsElement& element, PassRef<RenderStyle> style)
- : RenderSVGShape(element, std::move(style))
+ : RenderSVGShape(element, WTF::move(style))
, m_usePathFallback(false)
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp b/Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp
index b5d74d6..e9b634a 100644
--- a/Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp
@@ -38,7 +38,7 @@
namespace WebCore {
RenderSVGForeignObject::RenderSVGForeignObject(SVGForeignObjectElement& element, PassRef<RenderStyle> style)
- : RenderSVGBlock(element, std::move(style))
+ : RenderSVGBlock(element, WTF::move(style))
, m_needsTransformUpdate(true)
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGGradientStop.cpp b/Source/WebCore/rendering/svg/RenderSVGGradientStop.cpp
index 156f832..3a192a1 100644
--- a/Source/WebCore/rendering/svg/RenderSVGGradientStop.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGGradientStop.cpp
@@ -32,7 +32,7 @@
using namespace SVGNames;
RenderSVGGradientStop::RenderSVGGradientStop(SVGStopElement& element, PassRef<RenderStyle> style)
- : RenderElement(element, std::move(style), 0)
+ : RenderElement(element, WTF::move(style), 0)
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGHiddenContainer.cpp b/Source/WebCore/rendering/svg/RenderSVGHiddenContainer.cpp
index 22bd7e1..6f47623 100644
--- a/Source/WebCore/rendering/svg/RenderSVGHiddenContainer.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGHiddenContainer.cpp
@@ -26,7 +26,7 @@
namespace WebCore {
RenderSVGHiddenContainer::RenderSVGHiddenContainer(SVGElement& element, PassRef<RenderStyle> style)
- : RenderSVGContainer(element, std::move(style))
+ : RenderSVGContainer(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGImage.cpp b/Source/WebCore/rendering/svg/RenderSVGImage.cpp
index 7dd4b6a..991265f 100644
--- a/Source/WebCore/rendering/svg/RenderSVGImage.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGImage.cpp
@@ -45,7 +45,7 @@
namespace WebCore {
RenderSVGImage::RenderSVGImage(SVGImageElement& element, PassRef<RenderStyle> style)
- : RenderSVGModelObject(element, std::move(style))
+ : RenderSVGModelObject(element, WTF::move(style))
, m_needsBoundariesUpdate(true)
, m_needsTransformUpdate(true)
, m_imageResource(std::make_unique<RenderImageResource>())
diff --git a/Source/WebCore/rendering/svg/RenderSVGInline.cpp b/Source/WebCore/rendering/svg/RenderSVGInline.cpp
index d8fd407..d03cefa 100644
--- a/Source/WebCore/rendering/svg/RenderSVGInline.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGInline.cpp
@@ -31,7 +31,7 @@
namespace WebCore {
RenderSVGInline::RenderSVGInline(SVGGraphicsElement& element, PassRef<RenderStyle> style)
- : RenderInline(element, std::move(style))
+ : RenderInline(element, WTF::move(style))
{
setAlwaysCreateLineBoxes();
}
@@ -40,7 +40,7 @@
{
auto box = std::make_unique<SVGInlineFlowBox>(*this);
box->setHasVirtualLogicalHeight();
- return std::move(box);
+ return WTF::move(box);
}
FloatRect RenderSVGInline::objectBoundingBox() const
diff --git a/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp b/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
index 6cf64df..85530b5 100644
--- a/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
@@ -113,7 +113,7 @@
{
auto box = std::make_unique<SVGInlineTextBox>(*this);
box->setHasVirtualLogicalHeight();
- return std::move(box);
+ return WTF::move(box);
}
LayoutRect RenderSVGInlineText::localCaretRect(InlineBox* box, int caretOffset, LayoutUnit*)
diff --git a/Source/WebCore/rendering/svg/RenderSVGModelObject.cpp b/Source/WebCore/rendering/svg/RenderSVGModelObject.cpp
index c9d0526..0cc4e07 100644
--- a/Source/WebCore/rendering/svg/RenderSVGModelObject.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGModelObject.cpp
@@ -40,7 +40,7 @@
namespace WebCore {
RenderSVGModelObject::RenderSVGModelObject(SVGElement& element, PassRef<RenderStyle> style)
- : RenderElement(element, std::move(style), 0)
+ : RenderElement(element, WTF::move(style), 0)
, m_hasSVGShadow(false)
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGPath.cpp b/Source/WebCore/rendering/svg/RenderSVGPath.cpp
index 3d79aed..0e1f1a0 100644
--- a/Source/WebCore/rendering/svg/RenderSVGPath.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGPath.cpp
@@ -34,7 +34,7 @@
namespace WebCore {
RenderSVGPath::RenderSVGPath(SVGGraphicsElement& element, PassRef<RenderStyle> style)
- : RenderSVGShape(element, std::move(style))
+ : RenderSVGShape(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGRect.cpp b/Source/WebCore/rendering/svg/RenderSVGRect.cpp
index 4a6f8cd..8e575a9 100644
--- a/Source/WebCore/rendering/svg/RenderSVGRect.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGRect.cpp
@@ -33,7 +33,7 @@
namespace WebCore {
RenderSVGRect::RenderSVGRect(SVGRectElement& element, PassRef<RenderStyle> style)
- : RenderSVGShape(element, std::move(style))
+ : RenderSVGShape(element, WTF::move(style))
, m_usePathFallback(false)
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp
index 53f64cb..fb203ee 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp
@@ -43,7 +43,7 @@
RenderSVGResourceType RenderSVGResourceClipper::s_resourceType = ClipperResourceType;
RenderSVGResourceClipper::RenderSVGResourceClipper(SVGClipPathElement& element, PassRef<RenderStyle> style)
- : RenderSVGResourceContainer(element, std::move(style))
+ : RenderSVGResourceContainer(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp
index 0369c72..5b233c8 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp
@@ -36,7 +36,7 @@
}
RenderSVGResourceContainer::RenderSVGResourceContainer(SVGElement& element, PassRef<RenderStyle> style)
- : RenderSVGHiddenContainer(element, std::move(style))
+ : RenderSVGHiddenContainer(element, WTF::move(style))
, m_id(element.getIdAttribute())
, m_registered(false)
, m_isInvalidating(false)
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp
index 87c8ee5..cde1fc4 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp
@@ -49,7 +49,7 @@
RenderSVGResourceType RenderSVGResourceFilter::s_resourceType = FilterResourceType;
RenderSVGResourceFilter::RenderSVGResourceFilter(SVGFilterElement& element, PassRef<RenderStyle> style)
- : RenderSVGResourceContainer(element, std::move(style))
+ : RenderSVGResourceContainer(element, WTF::move(style))
{
}
@@ -192,7 +192,7 @@
if (filterData->drawingRegion.isEmpty()) {
ASSERT(!m_filter.contains(&renderer));
filterData->savedContext = context;
- m_filter.set(&renderer, std::move(filterData));
+ m_filter.set(&renderer, WTF::move(filterData));
return false;
}
@@ -206,7 +206,7 @@
if (!SVGRenderingContext::createImageBuffer(filterData->drawingRegion, effectiveTransform, sourceGraphic, ColorSpaceLinearRGB, renderingMode)) {
ASSERT(!m_filter.contains(&renderer));
filterData->savedContext = context;
- m_filter.set(&renderer, std::move(filterData));
+ m_filter.set(&renderer, WTF::move(filterData));
return false;
}
@@ -216,13 +216,13 @@
GraphicsContext* sourceGraphicContext = sourceGraphic->context();
ASSERT(sourceGraphicContext);
- filterData->sourceGraphicBuffer = std::move(sourceGraphic);
+ filterData->sourceGraphicBuffer = WTF::move(sourceGraphic);
filterData->savedContext = context;
context = sourceGraphicContext;
ASSERT(!m_filter.contains(&renderer));
- m_filter.set(&renderer, std::move(filterData));
+ m_filter.set(&renderer, WTF::move(filterData));
return true;
}
@@ -270,7 +270,7 @@
// initial filtering process. We just take the stored filter result on a
// second drawing.
if (filterData->state != FilterData::Built)
- filterData->filter->setSourceImage(std::move(filterData->sourceGraphicBuffer));
+ filterData->filter->setSourceImage(WTF::move(filterData->sourceGraphicBuffer));
// Always true if filterData is just built (filterData->state == FilterData::Built).
if (!lastEffect->hasResult()) {
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceFilterPrimitive.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceFilterPrimitive.cpp
index e11a4cb..ecdcb9f 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceFilterPrimitive.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceFilterPrimitive.cpp
@@ -37,7 +37,7 @@
namespace WebCore {
RenderSVGResourceFilterPrimitive::RenderSVGResourceFilterPrimitive(SVGFilterPrimitiveStandardAttributes& filterPrimitiveElement, PassRef<RenderStyle> style)
- : RenderSVGHiddenContainer(filterPrimitiveElement, std::move(style))
+ : RenderSVGHiddenContainer(filterPrimitiveElement, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
index 61e175a..dcb3c24 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
@@ -31,7 +31,7 @@
namespace WebCore {
RenderSVGResourceGradient::RenderSVGResourceGradient(SVGGradientElement& node, PassRef<RenderStyle> style)
- : RenderSVGResourceContainer(node, std::move(style))
+ : RenderSVGResourceContainer(node, WTF::move(style))
, m_shouldCollectGradientAttributes(true)
#if USE(CG)
, m_savedContext(0)
@@ -71,7 +71,7 @@
ASSERT(maskImage);
savedContext = context;
context = maskImageContext;
- imageBuffer = std::move(maskImage);
+ imageBuffer = WTF::move(maskImage);
return true;
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceLinearGradient.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceLinearGradient.cpp
index 82e8d39..fdfc968 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceLinearGradient.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceLinearGradient.cpp
@@ -27,7 +27,7 @@
RenderSVGResourceType RenderSVGResourceLinearGradient::s_resourceType = LinearGradientResourceType;
RenderSVGResourceLinearGradient::RenderSVGResourceLinearGradient(SVGLinearGradientElement& element, PassRef<RenderStyle> style)
- : RenderSVGResourceGradient(element, std::move(style))
+ : RenderSVGResourceGradient(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceMarker.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceMarker.cpp
index 1db6406..a28218d 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceMarker.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceMarker.cpp
@@ -31,7 +31,7 @@
RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerResourceType;
RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement& element, PassRef<RenderStyle> style)
- : RenderSVGResourceContainer(element, std::move(style))
+ : RenderSVGResourceContainer(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
index a1465bc..718a09f 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
@@ -32,7 +32,7 @@
RenderSVGResourceType RenderSVGResourceMasker::s_resourceType = MaskerResourceType;
RenderSVGResourceMasker::RenderSVGResourceMasker(SVGMaskElement& element, PassRef<RenderStyle> style)
- : RenderSVGResourceContainer(element, std::move(style))
+ : RenderSVGResourceContainer(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp b/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
index bfae7f2..893e39e 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
@@ -33,7 +33,7 @@
RenderSVGResourceType RenderSVGResourcePattern::s_resourceType = PatternResourceType;
RenderSVGResourcePattern::RenderSVGResourcePattern(SVGPatternElement& element, PassRef<RenderStyle> style)
- : RenderSVGResourceContainer(element, std::move(style))
+ : RenderSVGResourceContainer(element, WTF::move(style))
, m_shouldCollectPatternAttributes(true)
{
}
@@ -129,7 +129,7 @@
// Various calls above may trigger invalidations in some fringe cases (ImageBuffer allocation
// failures in the SVG image cache for example). To avoid having our PatternData deleted by
// removeAllClientsFromCache(), we only make it visible in the cache at the very end.
- return m_patternMap.set(&renderer, std::move(patternData)).iterator->value.get();
+ return m_patternMap.set(&renderer, WTF::move(patternData)).iterator->value.get();
}
bool RenderSVGResourcePattern::applyResource(RenderElement& renderer, const RenderStyle& style, GraphicsContext*& context, unsigned short resourceMode)
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceRadialGradient.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceRadialGradient.cpp
index bd0314f..6db07c4 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceRadialGradient.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceRadialGradient.cpp
@@ -27,7 +27,7 @@
RenderSVGResourceType RenderSVGResourceRadialGradient::s_resourceType = RadialGradientResourceType;
RenderSVGResourceRadialGradient::RenderSVGResourceRadialGradient(SVGRadialGradientElement& element, PassRef<RenderStyle> style)
- : RenderSVGResourceGradient(element, std::move(style))
+ : RenderSVGResourceGradient(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGRoot.cpp b/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
index 03ee89a..028b079 100644
--- a/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
@@ -54,7 +54,7 @@
namespace WebCore {
RenderSVGRoot::RenderSVGRoot(SVGSVGElement& element, PassRef<RenderStyle> style)
- : RenderReplaced(element, std::move(style))
+ : RenderReplaced(element, WTF::move(style))
, m_objectBoundingBoxValid(false)
, m_isLayoutSizeChanged(false)
, m_needsBoundariesOrTransformUpdate(true)
diff --git a/Source/WebCore/rendering/svg/RenderSVGShape.cpp b/Source/WebCore/rendering/svg/RenderSVGShape.cpp
index 9f58f63..929d071 100644
--- a/Source/WebCore/rendering/svg/RenderSVGShape.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGShape.cpp
@@ -64,7 +64,7 @@
};
RenderSVGShape::RenderSVGShape(SVGGraphicsElement& element, PassRef<RenderStyle> style)
- : RenderSVGModelObject(element, std::move(style))
+ : RenderSVGModelObject(element, WTF::move(style))
, m_needsBoundariesUpdate(false) // Default is false, the cached rects are empty from the beginning.
, m_needsShapeUpdate(true) // Default is true, so we grab a Path object once from SVGGraphicsElement.
, m_needsTransformUpdate(true) // Default is true, so we grab a AffineTransform object once from SVGGraphicsElement.
diff --git a/Source/WebCore/rendering/svg/RenderSVGTSpan.h b/Source/WebCore/rendering/svg/RenderSVGTSpan.h
index 1f4adda6..e972cbe 100644
--- a/Source/WebCore/rendering/svg/RenderSVGTSpan.h
+++ b/Source/WebCore/rendering/svg/RenderSVGTSpan.h
@@ -29,7 +29,7 @@
class RenderSVGTSpan final : public RenderSVGInline {
public:
explicit RenderSVGTSpan(SVGTextPositioningElement& element, PassRef<RenderStyle> style)
- : RenderSVGInline(element, std::move(style))
+ : RenderSVGInline(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGText.cpp b/Source/WebCore/rendering/svg/RenderSVGText.cpp
index ed99037..d38ee94 100644
--- a/Source/WebCore/rendering/svg/RenderSVGText.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGText.cpp
@@ -53,7 +53,7 @@
namespace WebCore {
RenderSVGText::RenderSVGText(SVGTextElement& element, PassRef<RenderStyle> style)
- : RenderSVGBlock(element, std::move(style))
+ : RenderSVGBlock(element, WTF::move(style))
, m_needsReordering(false)
, m_needsPositioningValuesUpdate(false)
, m_needsTransformUpdate(true)
@@ -436,7 +436,7 @@
{
auto box = std::make_unique<SVGRootInlineBox>(*this);
box->setHasVirtualLogicalHeight();
- return std::move(box);
+ return WTF::move(box);
}
bool RenderSVGText::nodeAtFloatPoint(const HitTestRequest& request, HitTestResult& result, const FloatPoint& pointInParent, HitTestAction hitTestAction)
diff --git a/Source/WebCore/rendering/svg/RenderSVGTextPath.cpp b/Source/WebCore/rendering/svg/RenderSVGTextPath.cpp
index 79f7d36..02df56a 100644
--- a/Source/WebCore/rendering/svg/RenderSVGTextPath.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGTextPath.cpp
@@ -33,7 +33,7 @@
namespace WebCore {
RenderSVGTextPath::RenderSVGTextPath(SVGTextPathElement& element, PassRef<RenderStyle> style)
- : RenderSVGInline(element, std::move(style))
+ : RenderSVGInline(element, WTF::move(style))
{
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGTransformableContainer.cpp b/Source/WebCore/rendering/svg/RenderSVGTransformableContainer.cpp
index d542806..01e7061 100644
--- a/Source/WebCore/rendering/svg/RenderSVGTransformableContainer.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGTransformableContainer.cpp
@@ -28,7 +28,7 @@
namespace WebCore {
RenderSVGTransformableContainer::RenderSVGTransformableContainer(SVGGraphicsElement& element, PassRef<RenderStyle> style)
- : RenderSVGContainer(element, std::move(style))
+ : RenderSVGContainer(element, WTF::move(style))
, m_needsTransformUpdate(true)
, m_didTransformToRootUpdate(false)
{
diff --git a/Source/WebCore/rendering/svg/RenderSVGViewportContainer.cpp b/Source/WebCore/rendering/svg/RenderSVGViewportContainer.cpp
index eb4bbd1..3098fe57 100644
--- a/Source/WebCore/rendering/svg/RenderSVGViewportContainer.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGViewportContainer.cpp
@@ -33,7 +33,7 @@
namespace WebCore {
RenderSVGViewportContainer::RenderSVGViewportContainer(SVGSVGElement& element, PassRef<RenderStyle> style)
- : RenderSVGContainer(element, std::move(style))
+ : RenderSVGContainer(element, WTF::move(style))
, m_didTransformToRootUpdate(false)
, m_isLayoutSizeChanged(false)
, m_needsTransformUpdate(true)
diff --git a/Source/WebCore/rendering/svg/SVGRenderingContext.cpp b/Source/WebCore/rendering/svg/SVGRenderingContext.cpp
index 12ad331..de8f15f 100644
--- a/Source/WebCore/rendering/svg/SVGRenderingContext.cpp
+++ b/Source/WebCore/rendering/svg/SVGRenderingContext.cpp
@@ -266,7 +266,7 @@
imageContext->translate(-paintRect.x(), -paintRect.y());
imageContext->concatCTM(absoluteTransform);
- imageBuffer = std::move(image);
+ imageBuffer = WTF::move(image);
return true;
}
@@ -289,7 +289,7 @@
// Compensate rounding effects, as the absolute target rect is using floating-point numbers and the image buffer size is integer.
imageContext->scale(FloatSize(unclampedImageSize.width() / absoluteTargetRect.width(), unclampedImageSize.height() / absoluteTargetRect.height()));
- imageBuffer = std::move(image);
+ imageBuffer = WTF::move(image);
return true;
}
diff --git a/Source/WebCore/rendering/svg/SVGResourcesCache.cpp b/Source/WebCore/rendering/svg/SVGResourcesCache.cpp
index bb3372b..2f27f21 100644
--- a/Source/WebCore/rendering/svg/SVGResourcesCache.cpp
+++ b/Source/WebCore/rendering/svg/SVGResourcesCache.cpp
@@ -47,7 +47,7 @@
return;
// Put object in cache.
- SVGResources& resources = *m_cache.add(&renderer, std::move(newResources)).iterator->value;
+ SVGResources& resources = *m_cache.add(&renderer, WTF::move(newResources)).iterator->value;
// Run cycle-detection _afterwards_, so self-references can be caught as well.
SVGResourcesCycleSolver solver(renderer, resources);
diff --git a/Source/WebCore/replay/CapturingInputCursor.cpp b/Source/WebCore/replay/CapturingInputCursor.cpp
index c1897c7..daa06bc 100644
--- a/Source/WebCore/replay/CapturingInputCursor.cpp
+++ b/Source/WebCore/replay/CapturingInputCursor.cpp
@@ -55,7 +55,7 @@
void CapturingInputCursor::storeInput(std::unique_ptr<NondeterministicInputBase> input)
{
ASSERT(input);
- m_storage.store(std::move(input));
+ m_storage.store(WTF::move(input));
}
NondeterministicInputBase* CapturingInputCursor::loadInput(InputQueue, const AtomicString&)
diff --git a/Source/WebCore/replay/MemoizedDOMResult.cpp b/Source/WebCore/replay/MemoizedDOMResult.cpp
index 0d2cc65..5b63092 100644
--- a/Source/WebCore/replay/MemoizedDOMResult.cpp
+++ b/Source/WebCore/replay/MemoizedDOMResult.cpp
@@ -103,7 +103,7 @@
std::unique_ptr<MemoizedDOMResultBase> decodedInput = MemoizedDOMResultBase::createFromEncodedResult(attribute, ctype, encodedResult, exceptionCode);
if (!decodedInput)
return false;
- input = std::move(decodedInput);
+ input = WTF::move(decodedInput);
return true;
}
diff --git a/Source/WebCore/replay/ReplayController.cpp b/Source/WebCore/replay/ReplayController.cpp
index 67b4247..d76e4b7 100644
--- a/Source/WebCore/replay/ReplayController.cpp
+++ b/Source/WebCore/replay/ReplayController.cpp
@@ -178,7 +178,7 @@
std::unique_ptr<InitialNavigation> navigationInput = InitialNavigation::createFromPage(m_page);
// Dispatching this input schedules navigation of the main frame, causing a refresh.
navigationInput->dispatch(*this);
- m_activeCursor->storeInput(std::move(navigationInput));
+ m_activeCursor->storeInput(WTF::move(navigationInput));
}
void ReplayController::completeSegment()
diff --git a/Source/WebCore/replay/SegmentedInputStorage.cpp b/Source/WebCore/replay/SegmentedInputStorage.cpp
index e66141a..465bbf1 100644
--- a/Source/WebCore/replay/SegmentedInputStorage.cpp
+++ b/Source/WebCore/replay/SegmentedInputStorage.cpp
@@ -105,7 +105,7 @@
LOG(WebReplay, "%-14s#%-5u %s: %s %s\n", "ReplayEvents", m_inputCount++, queueTypeToLogPrefix(input->queue(), false), input->type().string().utf8().data(), jsonStringForInput(*input).utf8().data());
- m_queues.at(offsetForInputQueue(input->queue()))->append(std::move(input));
+ m_queues.at(offsetForInputQueue(input->queue()))->append(WTF::move(input));
}
size_t SegmentedInputStorage::queueSize(InputQueue inputQueue) const
diff --git a/Source/WebCore/replay/SerializationMethods.cpp b/Source/WebCore/replay/SerializationMethods.cpp
index be45f1b..240ab14 100644
--- a/Source/WebCore/replay/SerializationMethods.cpp
+++ b/Source/WebCore/replay/SerializationMethods.cpp
@@ -201,7 +201,7 @@
if (!InputTraits<name>::decode(encodedValue, decodedInput)) \
return false; \
\
- input = std::move(decodedInput); \
+ input = WTF::move(decodedInput); \
return true; \
} \
@@ -214,7 +214,7 @@
if (!InputTraits<MemoizedDOMResultBase>::decode(encodedValue, decodedInput))
return false;
- input = std::move(decodedInput);
+ input = WTF::move(decodedInput);
return true;
}
diff --git a/Source/WebCore/replay/UserInputBridge.cpp b/Source/WebCore/replay/UserInputBridge.cpp
index 364a3f0..45845af 100644
--- a/Source/WebCore/replay/UserInputBridge.cpp
+++ b/Source/WebCore/replay/UserInputBridge.cpp
@@ -83,7 +83,7 @@
InputCursor& cursor = activeCursor();
if (cursor.isCapturing()) {
std::unique_ptr<PlatformMouseEvent> ownedEvent = std::make_unique<PlatformMouseEvent>(mouseEvent);
- cursor.appendInput<HandleMousePress>(std::move(ownedEvent));
+ cursor.appendInput<HandleMousePress>(WTF::move(ownedEvent));
}
EventLoopInputExtent extent(cursor);
#else
@@ -101,7 +101,7 @@
InputCursor& cursor = activeCursor();
if (cursor.isCapturing()) {
std::unique_ptr<PlatformMouseEvent> ownedEvent = std::make_unique<PlatformMouseEvent>(mouseEvent);
- cursor.appendInput<HandleMouseRelease>(std::move(ownedEvent));
+ cursor.appendInput<HandleMouseRelease>(WTF::move(ownedEvent));
}
EventLoopInputExtent extent(cursor);
#else
@@ -119,7 +119,7 @@
InputCursor& cursor = activeCursor();
if (cursor.isCapturing()) {
std::unique_ptr<PlatformMouseEvent> ownedEvent = std::make_unique<PlatformMouseEvent>(mouseEvent);
- cursor.appendInput<HandleMouseMove>(std::move(ownedEvent), false);
+ cursor.appendInput<HandleMouseMove>(WTF::move(ownedEvent), false);
}
EventLoopInputExtent extent(cursor);
#else
@@ -137,7 +137,7 @@
InputCursor& cursor = activeCursor();
if (cursor.isCapturing()) {
std::unique_ptr<PlatformMouseEvent> ownedEvent = std::make_unique<PlatformMouseEvent>(mouseEvent);
- cursor.appendInput<HandleMouseMove>(std::move(ownedEvent), true);
+ cursor.appendInput<HandleMouseMove>(WTF::move(ownedEvent), true);
}
EventLoopInputExtent extent(cursor);
#else
@@ -155,7 +155,7 @@
InputCursor& cursor = activeCursor();
if (cursor.isCapturing()) {
std::unique_ptr<PlatformKeyboardEvent> ownedEvent = std::make_unique<PlatformKeyboardEvent>(keyEvent);
- cursor.appendInput<HandleKeyPress>(std::move(ownedEvent));
+ cursor.appendInput<HandleKeyPress>(WTF::move(ownedEvent));
}
EventLoopInputExtent extent(cursor);
#else
@@ -178,7 +178,7 @@
InputCursor& cursor = activeCursor();
if (cursor.isCapturing()) {
std::unique_ptr<PlatformWheelEvent> ownedEvent = std::make_unique<PlatformWheelEvent>(wheelEvent);
- cursor.appendInput<HandleWheelEvent>(std::move(ownedEvent));
+ cursor.appendInput<HandleWheelEvent>(WTF::move(ownedEvent));
}
EventLoopInputExtent extent(cursor);
#else
diff --git a/Source/WebCore/style/StyleResolveTree.cpp b/Source/WebCore/style/StyleResolveTree.cpp
index 5dfa2f4..339289f 100644
--- a/Source/WebCore/style/StyleResolveTree.cpp
+++ b/Source/WebCore/style/StyleResolveTree.cpp
@@ -950,7 +950,7 @@
Style::Change documentChange = determineChange(&documentStyle.get(), &document.renderView()->style());
if (documentChange != NoChange)
- document.renderView()->setStyle(std::move(documentStyle));
+ document.renderView()->setStyle(WTF::move(documentStyle));
else
documentStyle.dropRef();
}
diff --git a/Source/WebCore/svg/SVGAElement.cpp b/Source/WebCore/svg/SVGAElement.cpp
index df92073..c2f24d2 100644
--- a/Source/WebCore/svg/SVGAElement.cpp
+++ b/Source/WebCore/svg/SVGAElement.cpp
@@ -141,9 +141,9 @@
RenderPtr<RenderElement> SVGAElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (parentNode() && parentNode()->isSVGElement() && toSVGElement(parentNode())->isTextContent())
- return createRenderer<RenderSVGInline>(*this, std::move(style));
+ return createRenderer<RenderSVGInline>(*this, WTF::move(style));
- return createRenderer<RenderSVGTransformableContainer>(*this, std::move(style));
+ return createRenderer<RenderSVGTransformableContainer>(*this, WTF::move(style));
}
void SVGAElement::defaultEventHandler(Event* event)
diff --git a/Source/WebCore/svg/SVGAltGlyphElement.cpp b/Source/WebCore/svg/SVGAltGlyphElement.cpp
index 10e2f6a..d354581 100644
--- a/Source/WebCore/svg/SVGAltGlyphElement.cpp
+++ b/Source/WebCore/svg/SVGAltGlyphElement.cpp
@@ -84,7 +84,7 @@
RenderPtr<RenderElement> SVGAltGlyphElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGTSpan>(*this, std::move(style));
+ return createRenderer<RenderSVGTSpan>(*this, WTF::move(style));
}
bool SVGAltGlyphElement::hasValidGlyphElements(Vector<String>& glyphNames) const
diff --git a/Source/WebCore/svg/SVGAnimatedPath.cpp b/Source/WebCore/svg/SVGAnimatedPath.cpp
index 8a0876c..14c0354 100644
--- a/Source/WebCore/svg/SVGAnimatedPath.cpp
+++ b/Source/WebCore/svg/SVGAnimatedPath.cpp
@@ -35,7 +35,7 @@
{
auto byteStream = std::make_unique<SVGPathByteStream>();
buildSVGPathByteStreamFromString(string, byteStream.get(), UnalteredParsing);
- return SVGAnimatedType::createPath(std::move(byteStream));
+ return SVGAnimatedType::createPath(WTF::move(byteStream));
}
std::unique_ptr<SVGAnimatedType> SVGAnimatedPathAnimator::startAnimValAnimation(const SVGElementAnimatedPropertyList& animatedTypes)
@@ -60,7 +60,7 @@
for (size_t i = 0; i < resultSize; ++i)
result[i]->animationStarted(byteStream.get(), &baseValue);
- return SVGAnimatedType::createPath(std::move(byteStream));
+ return SVGAnimatedType::createPath(WTF::move(byteStream));
}
void SVGAnimatedPathAnimator::stopAnimValAnimation(const SVGElementAnimatedPropertyList& animatedTypes)
diff --git a/Source/WebCore/svg/SVGCircleElement.cpp b/Source/WebCore/svg/SVGCircleElement.cpp
index 99f8b6d..2338f2c 100644
--- a/Source/WebCore/svg/SVGCircleElement.cpp
+++ b/Source/WebCore/svg/SVGCircleElement.cpp
@@ -140,7 +140,7 @@
RenderPtr<RenderElement> SVGCircleElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGEllipse>(*this, std::move(style));
+ return createRenderer<RenderSVGEllipse>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/svg/SVGClipPathElement.cpp b/Source/WebCore/svg/SVGClipPathElement.cpp
index 11cbeb1..961cfd1 100644
--- a/Source/WebCore/svg/SVGClipPathElement.cpp
+++ b/Source/WebCore/svg/SVGClipPathElement.cpp
@@ -115,7 +115,7 @@
RenderPtr<RenderElement> SVGClipPathElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGResourceClipper>(*this, std::move(style));
+ return createRenderer<RenderSVGResourceClipper>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/svg/SVGDefsElement.cpp b/Source/WebCore/svg/SVGDefsElement.cpp
index 26435c2..8c52ae4 100644
--- a/Source/WebCore/svg/SVGDefsElement.cpp
+++ b/Source/WebCore/svg/SVGDefsElement.cpp
@@ -53,7 +53,7 @@
RenderPtr<RenderElement> SVGDefsElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGHiddenContainer>(*this, std::move(style));
+ return createRenderer<RenderSVGHiddenContainer>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/svg/SVGDocumentExtensions.cpp b/Source/WebCore/svg/SVGDocumentExtensions.cpp
index 4b42838..33d4eae 100644
--- a/Source/WebCore/svg/SVGDocumentExtensions.cpp
+++ b/Source/WebCore/svg/SVGDocumentExtensions.cpp
@@ -267,7 +267,7 @@
std::unique_ptr<PendingElements> existing = m_pendingResources.take(id);
if (existing && !existing->isEmpty())
- m_pendingResourcesForRemoval.add(id, std::move(existing));
+ m_pendingResourcesForRemoval.add(id, WTF::move(existing));
}
Element* SVGDocumentExtensions::removeElementFromPendingResourcesForRemovalMap(const AtomicString& id)
@@ -311,7 +311,7 @@
auto elements = std::make_unique<HashSet<SVGElement*>>();
elements->add(referencingElement);
- m_elementDependencies.set(referencedElement, std::move(elements));
+ m_elementDependencies.set(referencedElement, WTF::move(elements));
}
void SVGDocumentExtensions::removeAllTargetReferencesForElement(SVGElement* referencingElement)
@@ -334,7 +334,7 @@
void SVGDocumentExtensions::rebuildElements()
{
- Vector<SVGElement*> shadowRebuildElements = std::move(m_rebuildElements);
+ Vector<SVGElement*> shadowRebuildElements = WTF::move(m_rebuildElements);
for (auto* element : shadowRebuildElements)
element->svgAttributeChanged(XLinkNames::hrefAttr);
}
diff --git a/Source/WebCore/svg/SVGEllipseElement.cpp b/Source/WebCore/svg/SVGEllipseElement.cpp
index 07bddcd..979a531 100644
--- a/Source/WebCore/svg/SVGEllipseElement.cpp
+++ b/Source/WebCore/svg/SVGEllipseElement.cpp
@@ -146,7 +146,7 @@
RenderPtr<RenderElement> SVGEllipseElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGEllipse>(*this, std::move(style));
+ return createRenderer<RenderSVGEllipse>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/svg/SVGFilterElement.cpp b/Source/WebCore/svg/SVGFilterElement.cpp
index 4ecb8fc..2272c21 100644
--- a/Source/WebCore/svg/SVGFilterElement.cpp
+++ b/Source/WebCore/svg/SVGFilterElement.cpp
@@ -191,7 +191,7 @@
RenderPtr<RenderElement> SVGFilterElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGResourceFilter>(*this, std::move(style));
+ return createRenderer<RenderSVGResourceFilter>(*this, WTF::move(style));
}
bool SVGFilterElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp b/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
index ee81fdc..2cf0dfc 100644
--- a/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
+++ b/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
@@ -145,7 +145,7 @@
RenderPtr<RenderElement> SVGFilterPrimitiveStandardAttributes::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGResourceFilterPrimitive>(*this, std::move(style));
+ return createRenderer<RenderSVGResourceFilterPrimitive>(*this, WTF::move(style));
}
bool SVGFilterPrimitiveStandardAttributes::rendererIsNeeded(const RenderStyle& style)
diff --git a/Source/WebCore/svg/SVGFontElement.cpp b/Source/WebCore/svg/SVGFontElement.cpp
index a20a656..128a1b1 100644
--- a/Source/WebCore/svg/SVGFontElement.cpp
+++ b/Source/WebCore/svg/SVGFontElement.cpp
@@ -179,7 +179,7 @@
else {
auto newVector = std::make_unique<SVGKerningVector>();
newVector->append(svgKerning);
- unicodeMap.add(*uIt, std::move(newVector));
+ unicodeMap.add(*uIt, WTF::move(newVector));
}
}
@@ -191,7 +191,7 @@
else {
auto newVector = std::make_unique<SVGKerningVector>();
newVector->append(svgKerning);
- glyphMap.add(*gIt, std::move(newVector));
+ glyphMap.add(*gIt, WTF::move(newVector));
}
}
diff --git a/Source/WebCore/svg/SVGForeignObjectElement.cpp b/Source/WebCore/svg/SVGForeignObjectElement.cpp
index 72b7d2a..98f7a73 100644
--- a/Source/WebCore/svg/SVGForeignObjectElement.cpp
+++ b/Source/WebCore/svg/SVGForeignObjectElement.cpp
@@ -127,7 +127,7 @@
RenderPtr<RenderElement> SVGForeignObjectElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGForeignObject>(*this, std::move(style));
+ return createRenderer<RenderSVGForeignObject>(*this, WTF::move(style));
}
bool SVGForeignObjectElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/svg/SVGGElement.cpp b/Source/WebCore/svg/SVGGElement.cpp
index dce0087..829c3ad 100644
--- a/Source/WebCore/svg/SVGGElement.cpp
+++ b/Source/WebCore/svg/SVGGElement.cpp
@@ -95,9 +95,9 @@
// subtree may be hidden - we only want the resource renderers to exist so they can be
// referenced from somewhere else.
if (style.get().display() == NONE)
- return createRenderer<RenderSVGHiddenContainer>(*this, std::move(style));
+ return createRenderer<RenderSVGHiddenContainer>(*this, WTF::move(style));
- return createRenderer<RenderSVGTransformableContainer>(*this, std::move(style));
+ return createRenderer<RenderSVGTransformableContainer>(*this, WTF::move(style));
}
bool SVGGElement::rendererIsNeeded(const RenderStyle&)
diff --git a/Source/WebCore/svg/SVGGraphicsElement.cpp b/Source/WebCore/svg/SVGGraphicsElement.cpp
index 3c62490..a9435d0 100644
--- a/Source/WebCore/svg/SVGGraphicsElement.cpp
+++ b/Source/WebCore/svg/SVGGraphicsElement.cpp
@@ -173,7 +173,7 @@
RenderPtr<RenderElement> SVGGraphicsElement::createElementRenderer(PassRef<RenderStyle> style)
{
// By default, any subclass is expected to do path-based drawing
- return createRenderer<RenderSVGPath>(*this, std::move(style));
+ return createRenderer<RenderSVGPath>(*this, WTF::move(style));
}
void SVGGraphicsElement::toClipPath(Path& path)
diff --git a/Source/WebCore/svg/SVGImageElement.cpp b/Source/WebCore/svg/SVGImageElement.cpp
index da2e574..6e4362e 100644
--- a/Source/WebCore/svg/SVGImageElement.cpp
+++ b/Source/WebCore/svg/SVGImageElement.cpp
@@ -183,7 +183,7 @@
RenderPtr<RenderElement> SVGImageElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGImage>(*this, std::move(style));
+ return createRenderer<RenderSVGImage>(*this, WTF::move(style));
}
bool SVGImageElement::haveLoadedRequiredResources()
diff --git a/Source/WebCore/svg/SVGLinearGradientElement.cpp b/Source/WebCore/svg/SVGLinearGradientElement.cpp
index e00fd86..26d3d0c 100644
--- a/Source/WebCore/svg/SVGLinearGradientElement.cpp
+++ b/Source/WebCore/svg/SVGLinearGradientElement.cpp
@@ -119,7 +119,7 @@
RenderPtr<RenderElement> SVGLinearGradientElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGResourceLinearGradient>(*this, std::move(style));
+ return createRenderer<RenderSVGResourceLinearGradient>(*this, WTF::move(style));
}
static void setGradientAttributes(SVGGradientElement& element, LinearGradientAttributes& attributes, bool isLinear = true)
diff --git a/Source/WebCore/svg/SVGMarkerElement.cpp b/Source/WebCore/svg/SVGMarkerElement.cpp
index 786df60..73f49e4 100644
--- a/Source/WebCore/svg/SVGMarkerElement.cpp
+++ b/Source/WebCore/svg/SVGMarkerElement.cpp
@@ -215,7 +215,7 @@
RenderPtr<RenderElement> SVGMarkerElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGResourceMarker>(*this, std::move(style));
+ return createRenderer<RenderSVGResourceMarker>(*this, WTF::move(style));
}
bool SVGMarkerElement::selfHasRelativeLengths() const
diff --git a/Source/WebCore/svg/SVGMaskElement.cpp b/Source/WebCore/svg/SVGMaskElement.cpp
index 1b2c1ef..66a72b6 100644
--- a/Source/WebCore/svg/SVGMaskElement.cpp
+++ b/Source/WebCore/svg/SVGMaskElement.cpp
@@ -158,7 +158,7 @@
RenderPtr<RenderElement> SVGMaskElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGResourceMasker>(*this, std::move(style));
+ return createRenderer<RenderSVGResourceMasker>(*this, WTF::move(style));
}
bool SVGMaskElement::selfHasRelativeLengths() const
diff --git a/Source/WebCore/svg/SVGPathElement.cpp b/Source/WebCore/svg/SVGPathElement.cpp
index 9e41f32..fdf9ad2 100644
--- a/Source/WebCore/svg/SVGPathElement.cpp
+++ b/Source/WebCore/svg/SVGPathElement.cpp
@@ -406,7 +406,7 @@
RenderPtr<RenderElement> SVGPathElement::createElementRenderer(PassRef<RenderStyle> style)
{
// By default, any subclass is expected to do path-based drawing
- return createRenderer<RenderSVGPath>(*this, std::move(style));
+ return createRenderer<RenderSVGPath>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/svg/SVGPatternElement.cpp b/Source/WebCore/svg/SVGPatternElement.cpp
index 4e8f396..20ebe24e 100644
--- a/Source/WebCore/svg/SVGPatternElement.cpp
+++ b/Source/WebCore/svg/SVGPatternElement.cpp
@@ -183,7 +183,7 @@
RenderPtr<RenderElement> SVGPatternElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGResourcePattern>(*this, std::move(style));
+ return createRenderer<RenderSVGResourcePattern>(*this, WTF::move(style));
}
static void setPatternAttributes(const SVGPatternElement& element, PatternAttributes& attributes)
diff --git a/Source/WebCore/svg/SVGRadialGradientElement.cpp b/Source/WebCore/svg/SVGRadialGradientElement.cpp
index ce264e7..2ae8d7c 100644
--- a/Source/WebCore/svg/SVGRadialGradientElement.cpp
+++ b/Source/WebCore/svg/SVGRadialGradientElement.cpp
@@ -131,7 +131,7 @@
RenderPtr<RenderElement> SVGRadialGradientElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGResourceRadialGradient>(*this, std::move(style));
+ return createRenderer<RenderSVGResourceRadialGradient>(*this, WTF::move(style));
}
static void setGradientAttributes(SVGGradientElement& element, RadialGradientAttributes& attributes, bool isRadial = true)
diff --git a/Source/WebCore/svg/SVGRectElement.cpp b/Source/WebCore/svg/SVGRectElement.cpp
index 58f7ee1..6d23256 100644
--- a/Source/WebCore/svg/SVGRectElement.cpp
+++ b/Source/WebCore/svg/SVGRectElement.cpp
@@ -161,7 +161,7 @@
RenderPtr<RenderElement> SVGRectElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGRect>(*this, std::move(style));
+ return createRenderer<RenderSVGRect>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/svg/SVGSVGElement.cpp b/Source/WebCore/svg/SVGSVGElement.cpp
index a760764..625614c 100644
--- a/Source/WebCore/svg/SVGSVGElement.cpp
+++ b/Source/WebCore/svg/SVGSVGElement.cpp
@@ -504,9 +504,9 @@
RenderPtr<RenderElement> SVGSVGElement::createElementRenderer(PassRef<RenderStyle> style)
{
if (isOutermostSVGSVGElement())
- return createRenderer<RenderSVGRoot>(*this, std::move(style));
+ return createRenderer<RenderSVGRoot>(*this, WTF::move(style));
- return createRenderer<RenderSVGViewportContainer>(*this, std::move(style));
+ return createRenderer<RenderSVGViewportContainer>(*this, WTF::move(style));
}
Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode& rootParent)
diff --git a/Source/WebCore/svg/SVGStopElement.cpp b/Source/WebCore/svg/SVGStopElement.cpp
index d4bafe0..1405d4e 100644
--- a/Source/WebCore/svg/SVGStopElement.cpp
+++ b/Source/WebCore/svg/SVGStopElement.cpp
@@ -99,7 +99,7 @@
RenderPtr<RenderElement> SVGStopElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGGradientStop>(*this, std::move(style));
+ return createRenderer<RenderSVGGradientStop>(*this, WTF::move(style));
}
bool SVGStopElement::rendererIsNeeded(const RenderStyle&)
diff --git a/Source/WebCore/svg/SVGSwitchElement.cpp b/Source/WebCore/svg/SVGSwitchElement.cpp
index d45d294..fc3e2f3 100644
--- a/Source/WebCore/svg/SVGSwitchElement.cpp
+++ b/Source/WebCore/svg/SVGSwitchElement.cpp
@@ -62,7 +62,7 @@
RenderPtr<RenderElement> SVGSwitchElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGTransformableContainer>(*this, std::move(style));
+ return createRenderer<RenderSVGTransformableContainer>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/svg/SVGSymbolElement.cpp b/Source/WebCore/svg/SVGSymbolElement.cpp
index e972359..8109013 100644
--- a/Source/WebCore/svg/SVGSymbolElement.cpp
+++ b/Source/WebCore/svg/SVGSymbolElement.cpp
@@ -102,7 +102,7 @@
RenderPtr<RenderElement> SVGSymbolElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGHiddenContainer>(*this, std::move(style));
+ return createRenderer<RenderSVGHiddenContainer>(*this, WTF::move(style));
}
}
diff --git a/Source/WebCore/svg/SVGTRefElement.cpp b/Source/WebCore/svg/SVGTRefElement.cpp
index 47bdb81..fab0221 100644
--- a/Source/WebCore/svg/SVGTRefElement.cpp
+++ b/Source/WebCore/svg/SVGTRefElement.cpp
@@ -220,7 +220,7 @@
RenderPtr<RenderElement> SVGTRefElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGInline>(*this, std::move(style));
+ return createRenderer<RenderSVGInline>(*this, WTF::move(style));
}
bool SVGTRefElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/svg/SVGTSpanElement.cpp b/Source/WebCore/svg/SVGTSpanElement.cpp
index c59f723..d344f0e 100644
--- a/Source/WebCore/svg/SVGTSpanElement.cpp
+++ b/Source/WebCore/svg/SVGTSpanElement.cpp
@@ -40,7 +40,7 @@
RenderPtr<RenderElement> SVGTSpanElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGTSpan>(*this, std::move(style));
+ return createRenderer<RenderSVGTSpan>(*this, WTF::move(style));
}
bool SVGTSpanElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/svg/SVGTextElement.cpp b/Source/WebCore/svg/SVGTextElement.cpp
index 9b0c037..e09e2df 100644
--- a/Source/WebCore/svg/SVGTextElement.cpp
+++ b/Source/WebCore/svg/SVGTextElement.cpp
@@ -68,7 +68,7 @@
RenderPtr<RenderElement> SVGTextElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGText>(*this, std::move(style));
+ return createRenderer<RenderSVGText>(*this, WTF::move(style));
}
bool SVGTextElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/svg/SVGTextPathElement.cpp b/Source/WebCore/svg/SVGTextPathElement.cpp
index 08e66b0..766964b 100644
--- a/Source/WebCore/svg/SVGTextPathElement.cpp
+++ b/Source/WebCore/svg/SVGTextPathElement.cpp
@@ -128,7 +128,7 @@
RenderPtr<RenderElement> SVGTextPathElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGTextPath>(*this, std::move(style));
+ return createRenderer<RenderSVGTextPath>(*this, WTF::move(style));
}
bool SVGTextPathElement::childShouldCreateRenderer(const Node& child) const
diff --git a/Source/WebCore/svg/SVGUseElement.cpp b/Source/WebCore/svg/SVGUseElement.cpp
index eff80e8..ff2b97a 100644
--- a/Source/WebCore/svg/SVGUseElement.cpp
+++ b/Source/WebCore/svg/SVGUseElement.cpp
@@ -525,7 +525,7 @@
RenderPtr<RenderElement> SVGUseElement::createElementRenderer(PassRef<RenderStyle> style)
{
- return createRenderer<RenderSVGTransformableContainer>(*this, std::move(style));
+ return createRenderer<RenderSVGTransformableContainer>(*this, WTF::move(style));
}
static bool isDirectReference(const SVGElement& element)
diff --git a/Source/WebCore/svg/graphics/SVGImage.cpp b/Source/WebCore/svg/graphics/SVGImage.cpp
index 4c059d9..04102db 100644
--- a/Source/WebCore/svg/graphics/SVGImage.cpp
+++ b/Source/WebCore/svg/graphics/SVGImage.cpp
@@ -55,7 +55,7 @@
{
if (m_page) {
// Store m_page in a local variable, clearing m_page, so that SVGImageChromeClient knows we're destructed.
- std::unique_ptr<Page> currentPage = std::move(m_page);
+ std::unique_ptr<Page> currentPage = WTF::move(m_page);
currentPage->mainFrame().loader().frameDetached(); // Break both the loader and view references to the frame
}
diff --git a/Source/WebCore/svg/properties/SVGAttributeToPropertyMap.cpp b/Source/WebCore/svg/properties/SVGAttributeToPropertyMap.cpp
index 9f7768e..7c4fc1b 100644
--- a/Source/WebCore/svg/properties/SVGAttributeToPropertyMap.cpp
+++ b/Source/WebCore/svg/properties/SVGAttributeToPropertyMap.cpp
@@ -53,7 +53,7 @@
// FIXME: This does a second hash table lookup, but with HashMap::add we could instead do only one.
auto vector = std::make_unique<PropertiesVector>();
vector->append(info);
- m_map.set(info->attributeName, std::move(vector));
+ m_map.set(info->attributeName, WTF::move(vector));
}
void SVGAttributeToPropertyMap::animatedPropertiesForAttribute(SVGElement* ownerType, const QualifiedName& attributeName, Vector<RefPtr<SVGAnimatedProperty>>& properties)
diff --git a/Source/WebCore/testing/Internals.cpp b/Source/WebCore/testing/Internals.cpp
index d0e5df9..40a2cc7 100644
--- a/Source/WebCore/testing/Internals.cpp
+++ b/Source/WebCore/testing/Internals.cpp
@@ -1484,7 +1484,7 @@
auto frontendClient = std::make_unique<InspectorFrontendClientDummy>(&page->inspectorController(), frontendPage);
- frontendPage->inspectorController().setInspectorFrontendClient(std::move(frontendClient));
+ frontendPage->inspectorController().setInspectorFrontendClient(WTF::move(frontendClient));
m_frontendChannel = adoptPtr(new InspectorFrontendChannelDummy(frontendPage));
@@ -1686,7 +1686,7 @@
auto parsedSheet = StyleSheetContents::create(*document);
parsedSheet.get().setIsUserStyleSheet(false);
parsedSheet.get().parseString(css);
- document->styleSheetCollection().addAuthorSheet(std::move(parsedSheet));
+ document->styleSheetCollection().addAuthorSheet(WTF::move(parsedSheet));
}
void Internals::insertUserCSS(const String& css, ExceptionCode& ec) const
@@ -1700,7 +1700,7 @@
auto parsedSheet = StyleSheetContents::create(*document);
parsedSheet.get().setIsUserStyleSheet(true);
parsedSheet.get().parseString(css);
- document->styleSheetCollection().addUserSheet(std::move(parsedSheet));
+ document->styleSheetCollection().addUserSheet(WTF::move(parsedSheet));
}
String Internals::counterValue(Element* element)
diff --git a/Source/WebCore/workers/DedicatedWorkerGlobalScope.cpp b/Source/WebCore/workers/DedicatedWorkerGlobalScope.cpp
index aba5c00..ffe4165 100644
--- a/Source/WebCore/workers/DedicatedWorkerGlobalScope.cpp
+++ b/Source/WebCore/workers/DedicatedWorkerGlobalScope.cpp
@@ -41,13 +41,13 @@
PassRefPtr<DedicatedWorkerGlobalScope> DedicatedWorkerGlobalScope::create(const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, DedicatedWorkerThread& thread, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassRefPtr<SecurityOrigin> topOrigin)
{
- RefPtr<DedicatedWorkerGlobalScope> context = adoptRef(new DedicatedWorkerGlobalScope(url, userAgent, std::move(settings), thread, topOrigin));
+ RefPtr<DedicatedWorkerGlobalScope> context = adoptRef(new DedicatedWorkerGlobalScope(url, userAgent, WTF::move(settings), thread, topOrigin));
context->applyContentSecurityPolicyFromString(contentSecurityPolicy, contentSecurityPolicyType);
return context.release();
}
DedicatedWorkerGlobalScope::DedicatedWorkerGlobalScope(const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, DedicatedWorkerThread& thread, PassRefPtr<SecurityOrigin> topOrigin)
- : WorkerGlobalScope(url, userAgent, std::move(settings), thread, topOrigin)
+ : WorkerGlobalScope(url, userAgent, WTF::move(settings), thread, topOrigin)
{
}
@@ -74,7 +74,7 @@
std::unique_ptr<MessagePortChannelArray> channels = MessagePort::disentanglePorts(ports, ec);
if (ec)
return;
- thread().workerObjectProxy().postMessageToWorkerObject(message, std::move(channels));
+ thread().workerObjectProxy().postMessageToWorkerObject(message, WTF::move(channels));
}
void DedicatedWorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionCode& ec)
diff --git a/Source/WebCore/workers/DedicatedWorkerThread.cpp b/Source/WebCore/workers/DedicatedWorkerThread.cpp
index edfab1c..6997a1d 100644
--- a/Source/WebCore/workers/DedicatedWorkerThread.cpp
+++ b/Source/WebCore/workers/DedicatedWorkerThread.cpp
@@ -55,7 +55,7 @@
PassRefPtr<WorkerGlobalScope> DedicatedWorkerThread::createWorkerGlobalScope(const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassRefPtr<SecurityOrigin> topOrigin)
{
- return DedicatedWorkerGlobalScope::create(url, userAgent, std::move(settings), *this, contentSecurityPolicy, contentSecurityPolicyType, topOrigin);
+ return DedicatedWorkerGlobalScope::create(url, userAgent, WTF::move(settings), *this, contentSecurityPolicy, contentSecurityPolicyType, topOrigin);
}
void DedicatedWorkerThread::runEventLoop()
diff --git a/Source/WebCore/workers/DefaultSharedWorkerRepository.cpp b/Source/WebCore/workers/DefaultSharedWorkerRepository.cpp
index 1d098d8..620114e 100644
--- a/Source/WebCore/workers/DefaultSharedWorkerRepository.cpp
+++ b/Source/WebCore/workers/DefaultSharedWorkerRepository.cpp
@@ -153,7 +153,7 @@
// Just pick an arbitrary active document from the HashSet and pass load requests to it.
// FIXME: Do we need to deal with the case where the user closes the document mid-load, via a shadow document or some other solution?
Document* document = *(m_workerDocuments.begin());
- document->postTask(std::move(task));
+ document->postTask(WTF::move(task));
}
bool SharedWorkerProxy::postTaskForModeToWorkerGlobalScope(ScriptExecutionContext::Task task, const String& mode)
@@ -161,7 +161,7 @@
if (isClosing())
return false;
ASSERT(m_thread);
- m_thread->runLoop().postTaskForMode(std::move(task), mode);
+ m_thread->runLoop().postTaskForMode(WTF::move(task), mode);
return true;
}
@@ -288,7 +288,7 @@
SharedWorkerScriptLoader::SharedWorkerScriptLoader(PassRefPtr<SharedWorker> worker, std::unique_ptr<MessagePortChannel> port, PassRefPtr<SharedWorkerProxy> proxy)
: m_worker(worker)
- , m_port(std::move(port))
+ , m_port(WTF::move(port))
, m_proxy(proxy)
{
}
@@ -320,7 +320,7 @@
else {
InspectorInstrumentation::scriptImported(m_worker->scriptExecutionContext(), m_scriptLoader->identifier(), m_scriptLoader->script());
DefaultSharedWorkerRepository::instance().workerScriptLoaded(*m_proxy, m_worker->scriptExecutionContext()->userAgent(m_scriptLoader->url()),
- m_scriptLoader->script(), std::move(m_port),
+ m_scriptLoader->script(), WTF::move(m_port),
m_worker->scriptExecutionContext()->contentSecurityPolicy()->deprecatedHeader(),
m_worker->scriptExecutionContext()->contentSecurityPolicy()->deprecatedHeaderType());
}
@@ -407,7 +407,7 @@
if (proxy->thread())
proxy->thread()->runLoop().postTask(SharedWorkerConnectTask(port.release()));
else {
- RefPtr<SharedWorkerScriptLoader> loader = adoptRef(new SharedWorkerScriptLoader(worker, std::move(port), proxy.release()));
+ RefPtr<SharedWorkerScriptLoader> loader = adoptRef(new SharedWorkerScriptLoader(worker, WTF::move(port), proxy.release()));
loader->load(url);
}
}
diff --git a/Source/WebCore/workers/SharedWorker.cpp b/Source/WebCore/workers/SharedWorker.cpp
index 8eb35d2..babd7c6 100644
--- a/Source/WebCore/workers/SharedWorker.cpp
+++ b/Source/WebCore/workers/SharedWorker.cpp
@@ -77,7 +77,7 @@
return 0;
}
- SharedWorkerRepository::connect(worker.get(), std::move(remotePort), scriptURL, name, ec);
+ SharedWorkerRepository::connect(worker.get(), WTF::move(remotePort), scriptURL, name, ec);
return worker.release();
}
diff --git a/Source/WebCore/workers/SharedWorkerGlobalScope.cpp b/Source/WebCore/workers/SharedWorkerGlobalScope.cpp
index db0b4a2..cd8a78d 100644
--- a/Source/WebCore/workers/SharedWorkerGlobalScope.cpp
+++ b/Source/WebCore/workers/SharedWorkerGlobalScope.cpp
@@ -54,13 +54,13 @@
// static
PassRefPtr<SharedWorkerGlobalScope> SharedWorkerGlobalScope::create(const String& name, const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, SharedWorkerThread& thread, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType)
{
- RefPtr<SharedWorkerGlobalScope> context = adoptRef(new SharedWorkerGlobalScope(name, url, userAgent, std::move(settings), thread));
+ RefPtr<SharedWorkerGlobalScope> context = adoptRef(new SharedWorkerGlobalScope(name, url, userAgent, WTF::move(settings), thread));
context->applyContentSecurityPolicyFromString(contentSecurityPolicy, contentSecurityPolicyType);
return context.release();
}
SharedWorkerGlobalScope::SharedWorkerGlobalScope(const String& name, const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, SharedWorkerThread& thread)
- : WorkerGlobalScope(url, userAgent, std::move(settings), thread, 0)
+ : WorkerGlobalScope(url, userAgent, WTF::move(settings), thread, 0)
, m_name(name)
{
}
diff --git a/Source/WebCore/workers/SharedWorkerRepository.cpp b/Source/WebCore/workers/SharedWorkerRepository.cpp
index 571c9c7..a187526 100644
--- a/Source/WebCore/workers/SharedWorkerRepository.cpp
+++ b/Source/WebCore/workers/SharedWorkerRepository.cpp
@@ -43,7 +43,7 @@
void SharedWorkerRepository::connect(PassRefPtr<SharedWorker> worker, std::unique_ptr<MessagePortChannel> port, const URL& url, const String& name, ExceptionCode& ec)
{
- DefaultSharedWorkerRepository::instance().connectToWorker(worker, std::move(port), url, name, ec);
+ DefaultSharedWorkerRepository::instance().connectToWorker(worker, WTF::move(port), url, name, ec);
}
void SharedWorkerRepository::documentDetached(Document* document)
diff --git a/Source/WebCore/workers/SharedWorkerThread.cpp b/Source/WebCore/workers/SharedWorkerThread.cpp
index fda70cd..65571b2 100644
--- a/Source/WebCore/workers/SharedWorkerThread.cpp
+++ b/Source/WebCore/workers/SharedWorkerThread.cpp
@@ -55,7 +55,7 @@
PassRefPtr<WorkerGlobalScope> SharedWorkerThread::createWorkerGlobalScope(const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassRefPtr<SecurityOrigin>)
{
- return SharedWorkerGlobalScope::create(m_name, url, userAgent, std::move(settings), *this, contentSecurityPolicy, contentSecurityPolicyType);
+ return SharedWorkerGlobalScope::create(m_name, url, userAgent, WTF::move(settings), *this, contentSecurityPolicy, contentSecurityPolicyType);
}
} // namespace WebCore
diff --git a/Source/WebCore/workers/Worker.cpp b/Source/WebCore/workers/Worker.cpp
index 829c6ce..13bd6d6 100644
--- a/Source/WebCore/workers/Worker.cpp
+++ b/Source/WebCore/workers/Worker.cpp
@@ -118,7 +118,7 @@
std::unique_ptr<MessagePortChannelArray> channels = MessagePort::disentanglePorts(ports, ec);
if (ec)
return;
- m_contextProxy->postMessageToWorkerGlobalScope(message, std::move(channels));
+ m_contextProxy->postMessageToWorkerGlobalScope(message, WTF::move(channels));
}
void Worker::terminate()
diff --git a/Source/WebCore/workers/WorkerGlobalScope.cpp b/Source/WebCore/workers/WorkerGlobalScope.cpp
index 1c610ca..de1214e 100644
--- a/Source/WebCore/workers/WorkerGlobalScope.cpp
+++ b/Source/WebCore/workers/WorkerGlobalScope.cpp
@@ -66,7 +66,7 @@
WorkerGlobalScope::WorkerGlobalScope(const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, WorkerThread& thread, PassRefPtr<SecurityOrigin> topOrigin)
: m_url(url)
, m_userAgent(userAgent)
- , m_groupSettings(std::move(settings))
+ , m_groupSettings(WTF::move(settings))
, m_script(std::make_unique<WorkerScriptController>(this))
, m_thread(thread)
#if ENABLE(INSPECTOR)
@@ -149,12 +149,12 @@
void WorkerGlobalScope::postTask(Task task)
{
- thread().runLoop().postTask(std::move(task));
+ thread().runLoop().postTask(WTF::move(task));
}
int WorkerGlobalScope::setTimeout(std::unique_ptr<ScheduledAction> action, int timeout)
{
- return DOMTimer::install(scriptExecutionContext(), std::move(action), timeout, true);
+ return DOMTimer::install(scriptExecutionContext(), WTF::move(action), timeout, true);
}
void WorkerGlobalScope::clearTimeout(int timeoutId)
@@ -164,7 +164,7 @@
int WorkerGlobalScope::setInterval(std::unique_ptr<ScheduledAction> action, int timeout)
{
- return DOMTimer::install(scriptExecutionContext(), std::move(action), timeout, false);
+ return DOMTimer::install(scriptExecutionContext(), WTF::move(action), timeout, false);
}
void WorkerGlobalScope::clearInterval(int timeoutId)
diff --git a/Source/WebCore/workers/WorkerMessagingProxy.cpp b/Source/WebCore/workers/WorkerMessagingProxy.cpp
index 5501f55..0375906 100644
--- a/Source/WebCore/workers/WorkerMessagingProxy.cpp
+++ b/Source/WebCore/workers/WorkerMessagingProxy.cpp
@@ -102,7 +102,7 @@
return;
std::unique_ptr<MessagePortArray> ports = MessagePort::entanglePorts(context, std::unique_ptr<MessagePortChannelArray>(channelsPtr));
- workerObject->dispatchEvent(MessageEvent::create(std::move(ports), message));
+ workerObject->dispatchEvent(MessageEvent::create(WTF::move(ports), message));
});
}
@@ -116,22 +116,22 @@
ASSERT_WITH_SECURITY_IMPLICATION(scriptContext.isWorkerGlobalScope());
DedicatedWorkerGlobalScope& context = static_cast<DedicatedWorkerGlobalScope&>(scriptContext);
std::unique_ptr<MessagePortArray> ports = MessagePort::entanglePorts(scriptContext, std::unique_ptr<MessagePortChannelArray>(channelsPtr));
- context.dispatchEvent(MessageEvent::create(std::move(ports), message));
+ context.dispatchEvent(MessageEvent::create(WTF::move(ports), message));
context.thread().workerObjectProxy().confirmMessageFromWorkerObject(context.hasPendingActivity());
});
if (m_workerThread) {
++m_unconfirmedMessageCount;
- m_workerThread->runLoop().postTask(std::move(task));
+ m_workerThread->runLoop().postTask(WTF::move(task));
} else
- m_queuedEarlyTasks.append(std::make_unique<ScriptExecutionContext::Task>(std::move(task)));
+ m_queuedEarlyTasks.append(std::make_unique<ScriptExecutionContext::Task>(WTF::move(task)));
}
void WorkerMessagingProxy::postTaskToLoader(ScriptExecutionContext::Task task)
{
// FIXME: In case of nested workers, this should go directly to the root Document context.
ASSERT(m_scriptExecutionContext->isDocument());
- m_scriptExecutionContext->postTask(std::move(task));
+ m_scriptExecutionContext->postTask(WTF::move(task));
}
bool WorkerMessagingProxy::postTaskForModeToWorkerGlobalScope(ScriptExecutionContext::Task task, const String& mode)
@@ -140,7 +140,7 @@
return false;
ASSERT(m_workerThread);
- m_workerThread->runLoop().postTaskForMode(std::move(task), mode);
+ m_workerThread->runLoop().postTaskForMode(WTF::move(task), mode);
return true;
}
@@ -185,9 +185,9 @@
m_unconfirmedMessageCount = m_queuedEarlyTasks.size();
m_workerThreadHadPendingActivity = true; // Worker initialization means a pending activity.
- auto queuedEarlyTasks = std::move(m_queuedEarlyTasks);
+ auto queuedEarlyTasks = WTF::move(m_queuedEarlyTasks);
for (auto& task : queuedEarlyTasks)
- m_workerThread->runLoop().postTask(std::move(*task));
+ m_workerThread->runLoop().postTask(WTF::move(*task));
}
}
diff --git a/Source/WebCore/workers/WorkerRunLoop.cpp b/Source/WebCore/workers/WorkerRunLoop.cpp
index d7b7a7e..e79569e 100644
--- a/Source/WebCore/workers/WorkerRunLoop.cpp
+++ b/Source/WebCore/workers/WorkerRunLoop.cpp
@@ -194,22 +194,22 @@
void WorkerRunLoop::postTask(ScriptExecutionContext::Task task)
{
- postTaskForMode(std::move(task), defaultMode());
+ postTaskForMode(WTF::move(task), defaultMode());
}
void WorkerRunLoop::postTaskAndTerminate(ScriptExecutionContext::Task task)
{
- m_messageQueue.appendAndKill(Task::create(std::move(task), defaultMode().isolatedCopy()));
+ m_messageQueue.appendAndKill(Task::create(WTF::move(task), defaultMode().isolatedCopy()));
}
void WorkerRunLoop::postTaskForMode(ScriptExecutionContext::Task task, const String& mode)
{
- m_messageQueue.append(Task::create(std::move(task), mode.isolatedCopy()));
+ m_messageQueue.append(Task::create(WTF::move(task), mode.isolatedCopy()));
}
std::unique_ptr<WorkerRunLoop::Task> WorkerRunLoop::Task::create(ScriptExecutionContext::Task task, const String& mode)
{
- return std::unique_ptr<Task>(new Task(std::move(task), mode));
+ return std::unique_ptr<Task>(new Task(WTF::move(task), mode));
}
void WorkerRunLoop::Task::performTask(const WorkerRunLoop& runLoop, WorkerGlobalScope* context)
@@ -219,7 +219,7 @@
}
WorkerRunLoop::Task::Task(ScriptExecutionContext::Task task, const String& mode)
- : m_task(std::move(task))
+ : m_task(WTF::move(task))
, m_mode(mode.isolatedCopy())
{
}
diff --git a/Source/WebCore/workers/WorkerScriptLoader.cpp b/Source/WebCore/workers/WorkerScriptLoader.cpp
index 1ef0339..05c5fa4 100644
--- a/Source/WebCore/workers/WorkerScriptLoader.cpp
+++ b/Source/WebCore/workers/WorkerScriptLoader.cpp
@@ -101,7 +101,7 @@
{
auto request = std::make_unique<ResourceRequest>(m_url);
request->setHTTPMethod("GET");
- return std::move(request);
+ return WTF::move(request);
}
void WorkerScriptLoader::didReceiveResponse(unsigned long identifier, const ResourceResponse& response)
diff --git a/Source/WebCore/workers/WorkerThread.cpp b/Source/WebCore/workers/WorkerThread.cpp
index 03a2e73..e442250 100644
--- a/Source/WebCore/workers/WorkerThread.cpp
+++ b/Source/WebCore/workers/WorkerThread.cpp
@@ -159,7 +159,7 @@
{
MutexLocker lock(m_threadCreationMutex);
- m_workerGlobalScope = createWorkerGlobalScope(m_startupData->m_scriptURL, m_startupData->m_userAgent, std::move(m_startupData->m_groupSettings), m_startupData->m_contentSecurityPolicy, m_startupData->m_contentSecurityPolicyType, m_startupData->m_topOrigin.release());
+ m_workerGlobalScope = createWorkerGlobalScope(m_startupData->m_scriptURL, m_startupData->m_userAgent, WTF::move(m_startupData->m_groupSettings), m_startupData->m_contentSecurityPolicy, m_startupData->m_contentSecurityPolicyType, m_startupData->m_topOrigin.release());
if (m_runLoop.terminated()) {
// The worker was terminated before the thread had a chance to run. Since the context didn't exist yet,
diff --git a/Source/WebCore/xml/XMLHttpRequest.cpp b/Source/WebCore/xml/XMLHttpRequest.cpp
index 5a676a9..c93eb20 100644
--- a/Source/WebCore/xml/XMLHttpRequest.cpp
+++ b/Source/WebCore/xml/XMLHttpRequest.cpp
@@ -242,7 +242,7 @@
Vector<char> data;
data.append(m_binaryResponseBuilder->data(), m_binaryResponseBuilder->size());
String normalizedContentType = Blob::normalizedContentType(responseMIMEType()); // responseMIMEType defaults to text/xml which may be incorrect.
- m_responseBlob = Blob::create(std::move(data), normalizedContentType);
+ m_responseBlob = Blob::create(WTF::move(data), normalizedContentType);
m_binaryResponseBuilder.clear();
} else {
// If we errored out or got no data, we still return a blob, just an empty one.
diff --git a/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp b/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp
index 4a4ef05..c667e72 100644
--- a/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp
+++ b/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp
@@ -140,7 +140,7 @@
m_deferEvents = false;
// Take over the deferred events before dispatching them which can potentially add more.
- auto deferredEvents = std::move(m_deferredEvents);
+ auto deferredEvents = WTF::move(m_deferredEvents);
RefPtr<Event> deferredProgressEvent = m_deferredProgressEvent;
m_deferredProgressEvent = nullptr;
diff --git a/Source/WebCore/xml/XPathExpression.cpp b/Source/WebCore/xml/XPathExpression.cpp
index c659c82..764a30f 100644
--- a/Source/WebCore/xml/XPathExpression.cpp
+++ b/Source/WebCore/xml/XPathExpression.cpp
@@ -41,7 +41,7 @@
using namespace XPath;
inline XPathExpression::XPathExpression(std::unique_ptr<XPath::Expression> expression)
- : m_topExpression(std::move(expression))
+ : m_topExpression(WTF::move(expression))
{
}
@@ -51,7 +51,7 @@
if (!parsedExpression)
return nullptr;
- return adoptRef(new XPathExpression(std::move(parsedExpression)));
+ return adoptRef(new XPathExpression(WTF::move(parsedExpression)));
}
XPathExpression::~XPathExpression()
diff --git a/Source/WebCore/xml/XPathExpressionNode.cpp b/Source/WebCore/xml/XPathExpressionNode.cpp
index 17b80241..0f6b3b1 100644
--- a/Source/WebCore/xml/XPathExpressionNode.cpp
+++ b/Source/WebCore/xml/XPathExpressionNode.cpp
@@ -49,7 +49,7 @@
void Expression::setSubexpressions(Vector<std::unique_ptr<Expression>> subexpressions)
{
ASSERT(m_subexpressions.isEmpty());
- m_subexpressions = std::move(subexpressions);
+ m_subexpressions = WTF::move(subexpressions);
for (unsigned i = 0; i < m_subexpressions.size(); ++i) {
m_isContextNodeSensitive |= m_subexpressions[i]->m_isContextNodeSensitive;
m_isContextPositionSensitive |= m_subexpressions[i]->m_isContextPositionSensitive;
diff --git a/Source/WebCore/xml/XPathExpressionNode.h b/Source/WebCore/xml/XPathExpressionNode.h
index cf26113..0549bf1 100644
--- a/Source/WebCore/xml/XPathExpressionNode.h
+++ b/Source/WebCore/xml/XPathExpressionNode.h
@@ -66,7 +66,7 @@
m_isContextNodeSensitive |= expression->m_isContextNodeSensitive;
m_isContextPositionSensitive |= expression->m_isContextPositionSensitive;
m_isContextSizeSensitive |= expression->m_isContextSizeSensitive;
- m_subexpressions.append(std::move(expression));
+ m_subexpressions.append(WTF::move(expression));
}
void setSubexpressions(Vector<std::unique_ptr<Expression>>);
diff --git a/Source/WebCore/xml/XPathFunctions.cpp b/Source/WebCore/xml/XPathFunctions.cpp
index 3bb1ccd..e37d407 100644
--- a/Source/WebCore/xml/XPathFunctions.cpp
+++ b/Source/WebCore/xml/XPathFunctions.cpp
@@ -291,7 +291,7 @@
if (name != "lang" && !arguments.isEmpty())
setIsContextNodeSensitive(false);
- setSubexpressions(std::move(arguments));
+ setSubexpressions(WTF::move(arguments));
}
Value FunLast::evaluate() const
@@ -355,7 +355,7 @@
result.markSorted(false);
- return Value(std::move(result));
+ return Value(WTF::move(result));
}
static inline String expandedNameLocalPart(Node* node)
@@ -737,7 +737,7 @@
{
std::unique_ptr<Function> function = create(name, arguments.size());
if (function)
- function->setArguments(name, std::move(arguments));
+ function->setArguments(name, WTF::move(arguments));
return function;
}
diff --git a/Source/WebCore/xml/XPathGrammar.y b/Source/WebCore/xml/XPathGrammar.y
index 2b3d414..04f24f3 100644
--- a/Source/WebCore/xml/XPathGrammar.y
+++ b/Source/WebCore/xml/XPathGrammar.y
@@ -166,9 +166,9 @@
std::unique_ptr<Step::NodeTest> nodeTest($1);
std::unique_ptr<Vector<std::unique_ptr<Expression>>> predicateList($2);
if (predicateList)
- $$ = new Step(Step::ChildAxis, std::move(*nodeTest), std::move(*predicateList));
+ $$ = new Step(Step::ChildAxis, WTF::move(*nodeTest), WTF::move(*predicateList));
else
- $$ = new Step(Step::ChildAxis, std::move(*nodeTest));
+ $$ = new Step(Step::ChildAxis, WTF::move(*nodeTest));
}
|
NAMETEST OptionalPredicateList
@@ -184,7 +184,7 @@
}
if (predicateList)
- $$ = new Step(Step::ChildAxis, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI), std::move(*predicateList));
+ $$ = new Step(Step::ChildAxis, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI), WTF::move(*predicateList));
else
$$ = new Step(Step::ChildAxis, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI));
}
@@ -195,9 +195,9 @@
std::unique_ptr<Vector<std::unique_ptr<Expression>>> predicateList($3);
if (predicateList)
- $$ = new Step($1, std::move(*nodeTest), std::move(*predicateList));
+ $$ = new Step($1, WTF::move(*nodeTest), WTF::move(*predicateList));
else
- $$ = new Step($1, std::move(*nodeTest));
+ $$ = new Step($1, WTF::move(*nodeTest));
}
|
AxisSpecifier NAMETEST OptionalPredicateList
@@ -213,7 +213,7 @@
}
if (predicateList)
- $$ = new Step($1, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI), std::move(*predicateList));
+ $$ = new Step($1, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI), WTF::move(*predicateList));
else
$$ = new Step($1, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI));
}
@@ -322,7 +322,7 @@
LITERAL
{
String literal = adoptRef($1);
- $$ = new StringExpression(std::move(literal));
+ $$ = new StringExpression(WTF::move(literal));
}
|
NUMBER
@@ -347,7 +347,7 @@
{
String name = adoptRef($1);
std::unique_ptr<Vector<std::unique_ptr<Expression>>> argumentList($3);
- $$ = XPath::Function::create(name, std::move(*argumentList)).release();
+ $$ = XPath::Function::create(name, WTF::move(*argumentList)).release();
if (!$$)
YYABORT;
}
@@ -408,7 +408,7 @@
PrimaryExpr PredicateList
{
std::unique_ptr<Vector<std::unique_ptr<Expression>>> predicateList($2);
- $$ = new Filter(std::unique_ptr<Expression>($1), std::move(*predicateList));
+ $$ = new Filter(std::unique_ptr<Expression>($1), WTF::move(*predicateList));
}
;
diff --git a/Source/WebCore/xml/XPathNodeSet.cpp b/Source/WebCore/xml/XPathNodeSet.cpp
index 5fcbfaa..0d2643b 100644
--- a/Source/WebCore/xml/XPathNodeSet.cpp
+++ b/Source/WebCore/xml/XPathNodeSet.cpp
@@ -173,7 +173,7 @@
for (unsigned i = 0; i < nodeCount; ++i)
sortedNodes.append(parentMatrix[i][0]);
- m_nodes = std::move(sortedNodes);
+ m_nodes = WTF::move(sortedNodes);
m_isSorted = true;
}
@@ -226,7 +226,7 @@
}
ASSERT(sortedNodes.size() == nodeCount);
- m_nodes = std::move(sortedNodes);
+ m_nodes = WTF::move(sortedNodes);
m_isSorted = true;
}
diff --git a/Source/WebCore/xml/XPathParser.cpp b/Source/WebCore/xml/XPathParser.cpp
index 1dae7f2..33d6437 100644
--- a/Source/WebCore/xml/XPathParser.cpp
+++ b/Source/WebCore/xml/XPathParser.cpp
@@ -472,7 +472,7 @@
return nullptr;
}
- return std::move(parser.m_result);
+ return WTF::move(parser.m_result);
}
} }
diff --git a/Source/WebCore/xml/XPathParser.h b/Source/WebCore/xml/XPathParser.h
index 4e6f437..b24387b 100644
--- a/Source/WebCore/xml/XPathParser.h
+++ b/Source/WebCore/xml/XPathParser.h
@@ -47,7 +47,7 @@
int lex(YYSTYPE&);
bool expandQualifiedName(const String& qualifiedName, String& localName, String& namespaceURI);
- void setParseResult(std::unique_ptr<Expression> expression) { m_result = std::move(expression); }
+ void setParseResult(std::unique_ptr<Expression> expression) { m_result = WTF::move(expression); }
private:
Parser(const String&, XPathNSResolver*);
diff --git a/Source/WebCore/xml/XPathPath.cpp b/Source/WebCore/xml/XPathPath.cpp
index 06d73f9..772eed9 100644
--- a/Source/WebCore/xml/XPathPath.cpp
+++ b/Source/WebCore/xml/XPathPath.cpp
@@ -36,7 +36,7 @@
namespace XPath {
Filter::Filter(std::unique_ptr<Expression> expression, Vector<std::unique_ptr<Expression>> predicates)
- : m_expression(std::move(expression)), m_predicates(std::move(predicates))
+ : m_expression(WTF::move(expression)), m_predicates(WTF::move(predicates))
{
setIsContextNodeSensitive(m_expression->isContextNodeSensitive());
setIsContextPositionSensitive(m_expression->isContextPositionSensitive());
@@ -65,7 +65,7 @@
if (evaluatePredicate(*m_predicates[i]))
newNodes.append(node);
}
- nodes = std::move(newNodes);
+ nodes = WTF::move(newNodes);
}
return result;
@@ -102,7 +102,7 @@
evaluate(nodes);
evaluationContext = backupContext;
- return Value(std::move(nodes));
+ return Value(WTF::move(nodes));
}
void LocationPath::evaluate(NodeSet& nodes) const
@@ -138,7 +138,7 @@
}
}
- nodes = std::move(newNodes);
+ nodes = WTF::move(newNodes);
}
nodes.markSorted(resultIsSorted);
@@ -154,7 +154,7 @@
return;
}
step->optimize();
- m_steps.append(std::move(step));
+ m_steps.append(WTF::move(step));
}
void LocationPath::prependStep(std::unique_ptr<Step> step)
@@ -163,17 +163,17 @@
bool dropSecondStep;
optimizeStepPair(*step, *m_steps[0], dropSecondStep);
if (dropSecondStep) {
- m_steps[0] = std::move(step);
+ m_steps[0] = WTF::move(step);
return;
}
}
step->optimize();
- m_steps.insert(0, std::move(step));
+ m_steps.insert(0, WTF::move(step));
}
Path::Path(std::unique_ptr<Expression> filter, std::unique_ptr<LocationPath> path)
- : m_filter(std::move(filter))
- , m_path(std::move(path))
+ : m_filter(WTF::move(filter))
+ , m_path(WTF::move(path))
{
setIsContextNodeSensitive(m_filter->isContextNodeSensitive());
setIsContextPositionSensitive(m_filter->isContextPositionSensitive());
diff --git a/Source/WebCore/xml/XPathPredicate.cpp b/Source/WebCore/xml/XPathPredicate.cpp
index 1431267..3d4994e 100644
--- a/Source/WebCore/xml/XPathPredicate.cpp
+++ b/Source/WebCore/xml/XPathPredicate.cpp
@@ -47,7 +47,7 @@
}
StringExpression::StringExpression(String&& value)
- : m_value(std::move(value))
+ : m_value(WTF::move(value))
{
}
@@ -58,7 +58,7 @@
Negative::Negative(std::unique_ptr<Expression> expression)
{
- addSubexpression(std::move(expression));
+ addSubexpression(WTF::move(expression));
}
Value Negative::evaluate() const
@@ -69,8 +69,8 @@
NumericOp::NumericOp(Opcode opcode, std::unique_ptr<Expression> lhs, std::unique_ptr<Expression> rhs)
: m_opcode(opcode)
{
- addSubexpression(std::move(lhs));
- addSubexpression(std::move(rhs));
+ addSubexpression(WTF::move(lhs));
+ addSubexpression(WTF::move(rhs));
}
Value NumericOp::evaluate() const
@@ -98,8 +98,8 @@
EqTestOp::EqTestOp(Opcode opcode, std::unique_ptr<Expression> lhs, std::unique_ptr<Expression> rhs)
: m_opcode(opcode)
{
- addSubexpression(std::move(lhs));
- addSubexpression(std::move(rhs));
+ addSubexpression(WTF::move(lhs));
+ addSubexpression(WTF::move(rhs));
}
bool EqTestOp::compare(const Value& lhs, const Value& rhs) const
@@ -201,8 +201,8 @@
LogicalOp::LogicalOp(Opcode opcode, std::unique_ptr<Expression> lhs, std::unique_ptr<Expression> rhs)
: m_opcode(opcode)
{
- addSubexpression(std::move(lhs));
- addSubexpression(std::move(rhs));
+ addSubexpression(WTF::move(lhs));
+ addSubexpression(WTF::move(rhs));
}
inline bool LogicalOp::shortCircuitOn() const
@@ -223,8 +223,8 @@
Union::Union(std::unique_ptr<Expression> lhs, std::unique_ptr<Expression> rhs)
{
- addSubexpression(std::move(lhs));
- addSubexpression(std::move(rhs));
+ addSubexpression(WTF::move(lhs));
+ addSubexpression(WTF::move(rhs));
}
Value Union::evaluate() const
diff --git a/Source/WebCore/xml/XPathStep.cpp b/Source/WebCore/xml/XPathStep.cpp
index 5b81344..4e2a75c 100644
--- a/Source/WebCore/xml/XPathStep.cpp
+++ b/Source/WebCore/xml/XPathStep.cpp
@@ -41,14 +41,14 @@
Step::Step(Axis axis, NodeTest nodeTest)
: m_axis(axis)
- , m_nodeTest(std::move(nodeTest))
+ , m_nodeTest(WTF::move(nodeTest))
{
}
Step::Step(Axis axis, NodeTest nodeTest, Vector<std::unique_ptr<Expression>> predicates)
: m_axis(axis)
- , m_nodeTest(std::move(nodeTest))
- , m_predicates(std::move(predicates))
+ , m_nodeTest(WTF::move(nodeTest))
+ , m_predicates(WTF::move(predicates))
{
}
@@ -65,11 +65,11 @@
for (size_t i = 0; i < m_predicates.size(); ++i) {
auto& predicate = m_predicates[i];
if ((!predicateIsContextPositionSensitive(*predicate) || m_nodeTest.m_mergedPredicates.isEmpty()) && !predicate->isContextSizeSensitive() && remainingPredicates.isEmpty())
- m_nodeTest.m_mergedPredicates.append(std::move(predicate));
+ m_nodeTest.m_mergedPredicates.append(WTF::move(predicate));
else
- remainingPredicates.append(std::move(predicate));
+ remainingPredicates.append(WTF::move(predicate));
}
- m_predicates = std::move(remainingPredicates);
+ m_predicates = WTF::move(remainingPredicates);
}
void optimizeStepPair(Step& first, Step& second, bool& dropSecondStep)
@@ -99,8 +99,8 @@
return;
first.m_axis = Step::DescendantAxis;
- first.m_nodeTest = std::move(second.m_nodeTest);
- first.m_predicates = std::move(second.m_predicates);
+ first.m_nodeTest = WTF::move(second.m_nodeTest);
+ first.m_predicates = WTF::move(second.m_predicates);
first.optimize();
dropSecondStep = true;
}
@@ -147,7 +147,7 @@
newNodes.append(node);
}
- nodes = std::move(newNodes);
+ nodes = WTF::move(newNodes);
}
}
diff --git a/Source/WebCore/xml/XPathStep.h b/Source/WebCore/xml/XPathStep.h
index c916131..ca7cdbc 100644
--- a/Source/WebCore/xml/XPathStep.h
+++ b/Source/WebCore/xml/XPathStep.h
@@ -65,17 +65,17 @@
NodeTest(NodeTest&& other)
: m_kind(other.m_kind)
- , m_data(std::move(other.m_data))
- , m_namespaceURI(std::move(other.m_namespaceURI))
- , m_mergedPredicates(std::move(other.m_mergedPredicates))
+ , m_data(WTF::move(other.m_data))
+ , m_namespaceURI(WTF::move(other.m_namespaceURI))
+ , m_mergedPredicates(WTF::move(other.m_mergedPredicates))
{
}
NodeTest& operator=(NodeTest&& other)
{
m_kind = other.m_kind;
- m_data = std::move(other.m_data);
- m_namespaceURI = std::move(other.m_namespaceURI);
- m_mergedPredicates = std::move(other.m_mergedPredicates);
+ m_data = WTF::move(other.m_data);
+ m_namespaceURI = WTF::move(other.m_namespaceURI);
+ m_mergedPredicates = WTF::move(other.m_mergedPredicates);
return *this;
}
#endif
diff --git a/Source/WebCore/xml/XPathValue.h b/Source/WebCore/xml/XPathValue.h
index ff80e1c..4db2ed3 100644
--- a/Source/WebCore/xml/XPathValue.h
+++ b/Source/WebCore/xml/XPathValue.h
@@ -44,7 +44,7 @@
Value(const String& value) : m_type(StringValue), m_data(Data::create(value)) { }
Value(const char* value) : m_type(StringValue), m_data(Data::create(value)) { }
- explicit Value(NodeSet value) : m_type(NodeSetValue), m_data(Data::create(std::move(value))) { }
+ explicit Value(NodeSet value) : m_type(NodeSetValue), m_data(Data::create(WTF::move(value))) { }
explicit Value(Node* value) : m_type(NodeSetValue), m_data(Data::create(value)) { }
explicit Value(PassRefPtr<Node> value) : m_type(NodeSetValue), m_data(Data::create(value)) { }
@@ -70,7 +70,7 @@
struct Data : public RefCounted<Data> {
static PassRefPtr<Data> create() { return adoptRef(new Data); }
static PassRefPtr<Data> create(const String& string) { return adoptRef(new Data(string)); }
- static PassRefPtr<Data> create(NodeSet nodeSet) { return adoptRef(new Data(std::move(nodeSet))); }
+ static PassRefPtr<Data> create(NodeSet nodeSet) { return adoptRef(new Data(WTF::move(nodeSet))); }
static PassRefPtr<Data> create(PassRefPtr<Node> node) { return adoptRef(new Data(node)); }
String string;
@@ -79,7 +79,7 @@
private:
Data() { }
explicit Data(const String& string) : string(string) { }
- explicit Data(NodeSet nodeSet) : nodeSet(std::move(nodeSet)) { }
+ explicit Data(NodeSet nodeSet) : nodeSet(WTF::move(nodeSet)) { }
explicit Data(PassRefPtr<Node> node) : nodeSet(node) { }
};
diff --git a/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp b/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
index 242ffb8..e1daf47 100644
--- a/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
+++ b/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
@@ -126,7 +126,7 @@
callback->attributes[i * 5 + 4] = callback->attributes[i * 5 + 3] + len;
}
- m_callbacks.append(std::move(callback));
+ m_callbacks.append(WTF::move(callback));
}
void appendEndElementNSCallback()
@@ -141,7 +141,7 @@
callback->s = xmlStrndup(s, len);
callback->len = len;
- m_callbacks.append(std::move(callback));
+ m_callbacks.append(WTF::move(callback));
}
void appendProcessingInstructionCallback(const xmlChar* target, const xmlChar* data)
@@ -151,7 +151,7 @@
callback->target = xmlStrdup(target);
callback->data = xmlStrdup(data);
- m_callbacks.append(std::move(callback));
+ m_callbacks.append(WTF::move(callback));
}
void appendCDATABlockCallback(const xmlChar* s, int len)
@@ -161,7 +161,7 @@
callback->s = xmlStrndup(s, len);
callback->len = len;
- m_callbacks.append(std::move(callback));
+ m_callbacks.append(WTF::move(callback));
}
void appendCommentCallback(const xmlChar* s)
@@ -170,7 +170,7 @@
callback->s = xmlStrdup(s);
- m_callbacks.append(std::move(callback));
+ m_callbacks.append(WTF::move(callback));
}
void appendInternalSubsetCallback(const xmlChar* name, const xmlChar* externalID, const xmlChar* systemID)
@@ -181,7 +181,7 @@
callback->externalID = xmlStrdup(externalID);
callback->systemID = xmlStrdup(systemID);
- m_callbacks.append(std::move(callback));
+ m_callbacks.append(WTF::move(callback));
}
void appendErrorCallback(XMLErrors::ErrorType type, const xmlChar* message, OrdinalNumber lineNumber, OrdinalNumber columnNumber)
@@ -193,7 +193,7 @@
callback->lineNumber = lineNumber;
callback->columnNumber = columnNumber;
- m_callbacks.append(std::move(callback));
+ m_callbacks.append(WTF::move(callback));
}
void callAndRemoveFirstCallback(XMLDocumentParser* parser)
@@ -362,7 +362,7 @@
WTF_MAKE_FAST_ALLOCATED;
public:
OffsetBuffer(Vector<char> buffer)
- : m_buffer(std::move(buffer))
+ : m_buffer(WTF::move(buffer))
, m_currentOffset(0)
{
}
@@ -469,7 +469,7 @@
if (!shouldAllowExternalLoad(response.url()))
return &globalDescriptor;
- return new OffsetBuffer(std::move(data));
+ return new OffsetBuffer(WTF::move(data));
}
static int readFunc(void* context, char* buffer, int len)
@@ -1548,7 +1548,7 @@
xmlParseChunk(parser->context(), reinterpret_cast<const char*>(StringView(parseString).upconvertedCharacters().get()), parseString.length() * sizeof(UChar), 1);
attrsOK = state.gotAttributes;
- return std::move(state.attributes);
+ return WTF::move(state.attributes);
}
}