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

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: fix memory leak. 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 4d176a78ede6b2efde5acf40666e8c31429d0fa5..3b12237b1aafccfdb9b606369acb49b177c2ec8e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ActiveDOMCallback.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#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"
@@ -56,7 +57,7 @@ bool ActiveDOMCallback::isScriptControllerTerminating() const
{
ExecutionContext* context = executionContext();
if (context && context->isWorkerGlobalScope()) {
- WorkerScriptController* scriptController = toWorkerGlobalScope(context)->script();
+ GlobalScopeScriptController* scriptController = toWorkerGlobalScope(context)->script();
if (!scriptController || scriptController->isExecutionForbidden() || scriptController->isExecutionTerminating())
return true;
}

Powered by Google App Engine
This is Rietveld 408576698