Replace WTF::move with WTFMove
[WebKit-https.git] / Source / WebCore / workers / WorkerGlobalScope.cpp
index 9635da4..0020408 100644 (file)
@@ -35,7 +35,6 @@
 #include "DOMWindow.h"
 #include "ErrorEvent.h"
 #include "Event.h"
-#include "EventException.h"
 #include "ExceptionCode.h"
 #include "InspectorConsoleInstrumentation.h"
 #include "MessagePort.h"
@@ -44,7 +43,6 @@
 #include "SecurityOrigin.h"
 #include "SecurityOriginPolicy.h"
 #include "URL.h"
-#include "WorkerInspectorController.h"
 #include "WorkerLocation.h"
 #include "WorkerNavigator.h"
 #include "WorkerObjectProxy.h"
@@ -70,7 +68,6 @@ WorkerGlobalScope::WorkerGlobalScope(const URL& url, const String& userAgent, Wo
     , m_userAgent(userAgent)
     , m_script(std::make_unique<WorkerScriptController>(this))
     , m_thread(thread)
-    , m_workerInspectorController(std::make_unique<WorkerInspectorController>(*this))
     , m_closing(false)
     , m_eventQueue(*this)
     , m_topOrigin(topOrigin)
@@ -148,12 +145,12 @@ WorkerNavigator* WorkerGlobalScope::navigator() const
 
 void WorkerGlobalScope::postTask(Task task)
 {
-    thread().runLoop().postTask(WTF::move(task));
+    thread().runLoop().postTask(WTFMove(task));
 }
 
 int WorkerGlobalScope::setTimeout(std::unique_ptr<ScheduledAction> action, int timeout)
 {
-    return DOMTimer::install(*this, WTF::move(action), timeout, true);
+    return DOMTimer::install(*this, WTFMove(action), timeout, true);
 }
 
 void WorkerGlobalScope::clearTimeout(int timeoutId)
@@ -163,7 +160,7 @@ void WorkerGlobalScope::clearTimeout(int timeoutId)
 
 int WorkerGlobalScope::setInterval(std::unique_ptr<ScheduledAction> action, int timeout)
 {
-    return DOMTimer::install(*this, WTF::move(action), timeout, false);
+    return DOMTimer::install(*this, WTFMove(action), timeout, false);
 }
 
 void WorkerGlobalScope::clearInterval(int timeoutId)
@@ -182,7 +179,7 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionCode&
             ec = SYNTAX_ERR;
             return;
         }
-        completedURLs.append(WTF::move(url));
+        completedURLs.append(WTFMove(url));
     }
 
     for (auto& url : completedURLs) {
@@ -197,7 +194,7 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionCode&
 
         InspectorInstrumentation::scriptImported(scriptExecutionContext(), scriptLoader->identifier(), scriptLoader->script());
 
-        JSC::Exception* exception;
+        NakedPtr<JSC::Exception> exception;
         m_script->evaluate(ScriptSourceCode(scriptLoader->script(), scriptLoader->responseURL()), exception);
         if (exception) {
             m_script->setException(exception);
@@ -235,7 +232,7 @@ void WorkerGlobalScope::addMessage(MessageSource source, MessageLevel level, con
     }
 
     thread().workerReportingProxy().postConsoleMessageToWorkerObject(source, level, message, lineNumber, columnNumber, sourceURL);
-    addMessageToWorkerConsole(source, level, message, sourceURL, lineNumber, columnNumber, WTF::move(callStack), state, requestIdentifier);
+    addMessageToWorkerConsole(source, level, message, sourceURL, lineNumber, columnNumber, WTFMove(callStack), state, requestIdentifier);
 }
 
 void WorkerGlobalScope::addMessageToWorkerConsole(MessageSource source, MessageLevel level, const String& messageText, const String& suggestedURL, unsigned suggestedLineNumber, unsigned suggestedColumnNumber, RefPtr<ScriptCallStack>&& callStack, JSC::ExecState* state, unsigned long requestIdentifier)
@@ -245,11 +242,11 @@ void WorkerGlobalScope::addMessageToWorkerConsole(MessageSource source, MessageL
     std::unique_ptr<Inspector::ConsoleMessage> message;
 
     if (callStack)
-        message = std::make_unique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, WTF::move(callStack), requestIdentifier);
+        message = std::make_unique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, WTFMove(callStack), requestIdentifier);
     else
         message = std::make_unique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, suggestedURL, suggestedLineNumber, suggestedColumnNumber, state, requestIdentifier);
 
-    InspectorInstrumentation::addMessageToConsole(this, WTF::move(message));
+    InspectorInstrumentation::addMessageToConsole(this, WTFMove(message));
 }
 
 bool WorkerGlobalScope::isContextThread() const