Index: Source/bindings/v8/V8Utilities.cpp |
diff --git a/Source/bindings/v8/V8Utilities.cpp b/Source/bindings/v8/V8Utilities.cpp |
index 8c3c7a91b86bddf2c77de4b915a12fd9854d9f6b..0824efc4d0bef6a05a8444cf88be77cc51581b88 100644 |
--- a/Source/bindings/v8/V8Utilities.cpp |
+++ b/Source/bindings/v8/V8Utilities.cpp |
@@ -41,7 +41,7 @@ |
#include "core/dom/MessagePort.h" |
#include "core/dom/ScriptExecutionContext.h" |
#include "core/page/Frame.h" |
-#include "core/workers/WorkerContext.h" |
+#include "core/workers/WorkerGlobalScope.h" |
#include <v8.h> |
#include "wtf/ArrayBuffer.h" |
@@ -152,7 +152,7 @@ void transferHiddenDependency(v8::Handle<v8::Object> object, EventListener* oldV |
ScriptExecutionContext* getScriptExecutionContext() |
{ |
if (WorkerScriptController* controller = WorkerScriptController::controllerForContext()) |
- return controller->workerContext(); |
+ return controller->workerGlobalScope(); |
return currentDocument(); |
} |