Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ToV8.cpp

Issue 2620493002: binding: Changes the association among global-proxy/global/worker-instance. (Closed)
Patch Set: Synced. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698