Index: Source/bindings/core/v8/WorkerScriptDebugServer.cpp |
diff --git a/Source/bindings/core/v8/WorkerScriptDebugServer.cpp b/Source/bindings/core/v8/WorkerScriptDebugServer.cpp |
index d9542d0b2595ddacfef1564ff143eb8fd57c414d..b120268b08eed0eca58763b4c7c5cd62320ccee3 100644 |
--- a/Source/bindings/core/v8/WorkerScriptDebugServer.cpp |
+++ b/Source/bindings/core/v8/WorkerScriptDebugServer.cpp |
@@ -36,7 +36,7 @@ |
#include "core/inspector/ScriptDebugListener.h" |
#include "core/inspector/WorkerDebuggerAgent.h" |
#include "core/workers/WorkerGlobalScope.h" |
-#include "core/workers/WorkerThread.h" |
+#include "core/workers/WorkerScript.h" |
#include "wtf/MessageQueue.h" |
#include <v8.h> |
@@ -87,12 +87,12 @@ ScriptDebugListener* WorkerScriptDebugServer::getDebugListenerForContext(v8::Loc |
void WorkerScriptDebugServer::runMessageLoopOnPause(v8::Local<v8::Context>) |
{ |
MessageQueueWaitResult result; |
- m_workerGlobalScope->thread()->willEnterNestedLoop(); |
+ m_workerGlobalScope->script()->willEnterNestedLoop(); |
do { |
- result = m_workerGlobalScope->thread()->runDebuggerTask(); |
+ result = m_workerGlobalScope->script()->runDebuggerTask(); |
// Keep waiting until execution is resumed. |
} while (result == MessageQueueMessageReceived && isPaused()); |
- m_workerGlobalScope->thread()->didLeaveNestedLoop(); |
+ m_workerGlobalScope->script()->didLeaveNestedLoop(); |
// The listener may have been removed in the nested loop. |
if (m_listener) |