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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp

Issue 2029163002: Worklets - Change inheritance heirarchy of WorkletGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 6 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/modules/v8/V8BindingForModules.cpp
diff --git a/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp b/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
index 6be13054f7f8cc13a688690e94bb146a0cccc30f..994fc9e22ceb2bbe78a479bd86123cc6961b11d5 100644
--- a/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
+++ b/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
@@ -34,7 +34,6 @@
#include "bindings/core/v8/V8DOMStringList.h"
#include "bindings/core/v8/V8File.h"
#include "bindings/core/v8/V8Uint8Array.h"
-#include "bindings/core/v8/WorkerOrWorkletScriptController.h"
#include "bindings/modules/v8/ToV8ForModules.h"
#include "bindings/modules/v8/V8DedicatedWorkerGlobalScopePartial.h"
#include "bindings/modules/v8/V8IDBCursor.h"
@@ -47,7 +46,6 @@
#include "bindings/modules/v8/V8ServiceWorkerGlobalScope.h"
#include "bindings/modules/v8/V8SharedWorkerGlobalScopePartial.h"
#include "bindings/modules/v8/V8WindowPartial.h"
-#include "bindings/modules/v8/V8WorkletGlobalScope.h"
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/DOMArrayBufferView.h"
#include "core/dom/ExecutionContext.h"
@@ -57,7 +55,6 @@
#include "modules/indexeddb/IDBKeyRange.h"
#include "modules/indexeddb/IDBTracing.h"
#include "modules/indexeddb/IDBValue.h"
-#include "modules/worklet/WorkletGlobalScope.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/SharedBuffer.h"
#include "wtf/MathExtras.h"
@@ -526,18 +523,6 @@ void assertPrimaryKeyValidOrInjectable(ScriptState* scriptState, const IDBValue*
}
#endif
-ExecutionContext* toExecutionContextForModules(v8::Local<v8::Context> context)
-{
- if (context.IsEmpty())
- return nullptr;
- v8::Local<v8::Object> global = context->Global();
- v8::Local<v8::Object> workletWrapper = V8WorkletGlobalScope::findInstanceInPrototypeChain(global, context->GetIsolate());
- if (!workletWrapper.IsEmpty())
- return V8WorkletGlobalScope::toImpl(workletWrapper);
- // FIXME: Is this line of code reachable?
- return nullptr;
-}
-
namespace {
InstallOriginTrialsFunction s_originalInstallOriginTrialsFunction = nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.h ('k') | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698