Replace WTF::move with WTFMove
[WebKit-https.git] / Source / WebCore / loader / PolicyChecker.cpp
index 18a5a52..15ac57f 100644 (file)
@@ -58,7 +58,7 @@ PolicyChecker::PolicyChecker(Frame& frame)
 
 void PolicyChecker::checkNavigationPolicy(const ResourceRequest& newRequest, NavigationPolicyDecisionFunction function)
 {
-    checkNavigationPolicy(newRequest, m_frame.loader().activeDocumentLoader(), nullptr, WTF::move(function));
+    checkNavigationPolicy(newRequest, m_frame.loader().activeDocumentLoader(), nullptr, WTFMove(function));
 }
 
 void PolicyChecker::checkNavigationPolicy(const ResourceRequest& request, DocumentLoader* loader, PassRefPtr<FormState> formState, NavigationPolicyDecisionFunction function)
@@ -93,7 +93,7 @@ void PolicyChecker::checkNavigationPolicy(const ResourceRequest& request, Docume
 
     loader->setLastCheckedRequest(request);
 
-    m_callback.set(request, formState.get(), WTF::move(function));
+    m_callback.set(request, formState.get(), WTFMove(function));
 
 #if USE(QUICK_LOOK)
     // Always allow QuickLook-generated URLs based on the protocol scheme.
@@ -131,7 +131,7 @@ void PolicyChecker::checkNewWindowPolicy(const NavigationAction& action, const R
     if (!DOMWindow::allowPopUp(&m_frame))
         return continueAfterNavigationPolicy(PolicyIgnore);
 
-    m_callback.set(request, formState, frameName, action, WTF::move(function));
+    m_callback.set(request, formState, frameName, action, WTFMove(function));
     m_frame.loader().client().dispatchDecidePolicyForNewWindowAction(action, request, formState, frameName, [this](PolicyAction action) {
         continueAfterNewWindowPolicy(action);
     });
@@ -139,7 +139,7 @@ void PolicyChecker::checkNewWindowPolicy(const NavigationAction& action, const R
 
 void PolicyChecker::checkContentPolicy(const ResourceResponse& response, ContentPolicyDecisionFunction function)
 {
-    m_callback.set(WTF::move(function));
+    m_callback.set(WTFMove(function));
     m_frame.loader().client().dispatchDecidePolicyForResponse(response, m_frame.loader().activeDocumentLoader()->request(), [this](PolicyAction action) {
         continueAfterContentPolicy(action);
     });