Index: Source/core/inspector/WorkerDebuggerAgent.cpp |
diff --git a/Source/core/inspector/WorkerDebuggerAgent.cpp b/Source/core/inspector/WorkerDebuggerAgent.cpp |
index 050d3069a31fa718d286475782571376132488ff..7026b98549ca49054ffef4f9069325734571b16b 100644 |
--- a/Source/core/inspector/WorkerDebuggerAgent.cpp |
+++ b/Source/core/inspector/WorkerDebuggerAgent.cpp |
@@ -68,7 +68,7 @@ PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> WorkerDebuggerAgent::create(WorkerSc |
} |
WorkerDebuggerAgent::WorkerDebuggerAgent(WorkerScriptDebugServer* scriptDebugServer, WorkerGlobalScope* inspectedWorkerGlobalScope, InjectedScriptManager* injectedScriptManager) |
- : InspectorDebuggerAgent(injectedScriptManager, scriptDebugServer->isolate()) |
+ : InspectorDebuggerAgent(injectedScriptManager, scriptDebugServer->scriptDebugServer()->isolate()) |
, m_scriptDebugServer(scriptDebugServer) |
, m_inspectedWorkerGlobalScope(inspectedWorkerGlobalScope) |
{ |
@@ -91,17 +91,17 @@ void WorkerDebuggerAgent::interruptAndDispatchInspectorCommands() |
void WorkerDebuggerAgent::startListeningScriptDebugServer() |
{ |
- scriptDebugServer().addListener(this); |
+ m_scriptDebugServer->addListener(this); |
} |
void WorkerDebuggerAgent::stopListeningScriptDebugServer() |
{ |
- scriptDebugServer().removeListener(this); |
+ m_scriptDebugServer->removeListener(this); |
} |
-WorkerScriptDebugServer& WorkerDebuggerAgent::scriptDebugServer() |
+ScriptDebugServer& WorkerDebuggerAgent::scriptDebugServer() |
{ |
- return *m_scriptDebugServer; |
+ return *(m_scriptDebugServer->scriptDebugServer()); |
} |
InjectedScript WorkerDebuggerAgent::injectedScriptForEval(ErrorString* error, const int* executionContextId) |