| Index: third_party/WebKit/Source/bindings/core/v8/ToV8.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp b/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp
|
| index 3d70c56cf63e29cc305560f9acc7af5a593cc485..42889491ff216295e7912e8a80b7e652bf8828b5 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp
|
| @@ -5,11 +5,9 @@
|
| #include "bindings/core/v8/ToV8.h"
|
|
|
| #include "bindings/core/v8/WindowProxy.h"
|
| -#include "bindings/core/v8/WorkerOrWorkletScriptController.h"
|
| #include "core/events/EventTarget.h"
|
| #include "core/frame/DOMWindow.h"
|
| #include "core/frame/Frame.h"
|
| -#include "core/workers/WorkerOrWorkletGlobalScope.h"
|
|
|
| namespace blink {
|
|
|
| @@ -42,22 +40,4 @@ v8::Local<v8::Value> ToV8(EventTarget* impl,
|
| return ToV8(static_cast<ScriptWrappable*>(impl), creationContext, isolate);
|
| }
|
|
|
| -v8::Local<v8::Value> ToV8(WorkerOrWorkletGlobalScope* impl,
|
| - v8::Local<v8::Object> creationContext,
|
| - v8::Isolate* isolate) {
|
| - // Notice that we explicitly ignore creationContext because the
|
| - // WorkerOrWorkletGlobalScope has its own creationContext.
|
| -
|
| - if (UNLIKELY(!impl))
|
| - return v8::Null(isolate);
|
| -
|
| - WorkerOrWorkletScriptController* scriptController = impl->scriptController();
|
| - if (!scriptController)
|
| - return v8::Null(isolate);
|
| -
|
| - v8::Local<v8::Object> global = scriptController->context()->Global();
|
| - ASSERT(!global.IsEmpty());
|
| - return global;
|
| -}
|
| -
|
| } // namespace blink
|
|
|