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

Unified Diff: Source/bindings/v8/ActiveDOMCallback.cpp

Issue 17648006: Rename WorkerContext to WorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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
« no previous file with comments | « Source/bindings/scripts/preprocess_idls.py ('k') | Source/bindings/v8/ScheduledAction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ActiveDOMCallback.cpp
diff --git a/Source/bindings/v8/ActiveDOMCallback.cpp b/Source/bindings/v8/ActiveDOMCallback.cpp
index 19d908ad1b622b376ecafda7b281bed6a99d5c78..fcf0f36151d794fdbff7fbc4cc076bd502f6186b 100644
--- a/Source/bindings/v8/ActiveDOMCallback.cpp
+++ b/Source/bindings/v8/ActiveDOMCallback.cpp
@@ -33,7 +33,7 @@
#include "core/dom/ActiveDOMObject.h"
#include "core/dom/ScriptExecutionContext.h"
-#include "core/workers/WorkerContext.h"
+#include "core/workers/WorkerGlobalScope.h"
namespace WebCore {
@@ -55,8 +55,8 @@ bool ActiveDOMCallback::canInvokeCallback() const
bool ActiveDOMCallback::isScriptControllerTerminating() const
{
ScriptExecutionContext* context = scriptExecutionContext();
- if (context && context->isWorkerContext()) {
- WorkerScriptController* scriptController = static_cast<WorkerContext*>(context)->script();
+ if (context && context->isWorkerGlobalScope()) {
+ WorkerScriptController* scriptController = static_cast<WorkerGlobalScope*>(context)->script();
if (!scriptController || scriptController->isExecutionForbidden() || scriptController->isExecutionTerminating())
return true;
}
« no previous file with comments | « Source/bindings/scripts/preprocess_idls.py ('k') | Source/bindings/v8/ScheduledAction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698