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

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

Issue 1535943005: Initial implementation of bindings and basic classes for worklets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove AbstractGlobalScope. Created 5 years 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/ActiveDOMCallback.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp b/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp
index ce03d62459672688d6ffe6ece199bad01441af7c..94d4a4dcfd285ca4ce81b96d63edc17cedb57b4f 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp
@@ -30,6 +30,7 @@
#include "bindings/core/v8/ActiveDOMCallback.h"
+#include "bindings/core/v8/GlobalScopeScriptController.h"
#include "core/dom/ActiveDOMObject.h"
#include "core/dom/ExecutionContext.h"
#include "core/workers/WorkerGlobalScope.h"
@@ -55,7 +56,7 @@ bool ActiveDOMCallback::isScriptControllerTerminating() const
{
ExecutionContext* context = executionContext();
if (context && context->isWorkerGlobalScope()) {
- WorkerScriptController* scriptController = toWorkerGlobalScope(context)->script();
+ GlobalScopeScriptController* scriptController = toWorkerGlobalScope(context)->script();
kinuko 2015/12/24 04:45:51 Here we're checking isWorkerGlobalScope and doing
if (!scriptController || scriptController->isExecutionForbidden() || scriptController->isExecutionTerminating())
return true;
}

Powered by Google App Engine
This is Rietveld 408576698