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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.cpp

Issue 1510603005: [Do not submit] Worklet implementation. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A basic CompositorWorklet implementation. 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/core/workers/WorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
index 643aee35e471174b0e98a922e765f74d187e3aa9..92127626afbadeec48dcd0d40a470426169e08f1 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -72,7 +72,7 @@ public:
{
Microtask::performCheckpoint(m_workerThread->isolate());
if (WorkerGlobalScope* globalScope = m_workerThread->workerGlobalScope()) {
- if (WorkerScriptController* scriptController = globalScope->script())
+ if (GlobalScopeScriptController* scriptController = globalScope->script())
scriptController->rejectedPromises()->processQueue();
if (globalScope->isClosing()) {
m_workerThread->workerReportingProxy().workerGlobalScopeClosed();
@@ -296,13 +296,13 @@ void WorkerThread::initialize(PassOwnPtr<WorkerThreadStartupData> startupData)
m_workerGlobalScope = createWorkerGlobalScope(startupData);
m_workerGlobalScope->scriptLoaded(sourceCode.length(), cachedMetaData.get() ? cachedMetaData->size() : 0);
- // The corresponding call to didStopRunLoop() is in ~WorkerScriptController().
+ // The corresponding call to didStopRunLoop() is in ~GlobalScopeScriptController().
didStartRunLoop();
// Notify proxy that a new WorkerGlobalScope has been created and started.
m_workerReportingProxy.workerGlobalScopeStarted(m_workerGlobalScope.get());
- WorkerScriptController* script = m_workerGlobalScope->script();
+ GlobalScopeScriptController* script = m_workerGlobalScope->script();
if (!script->isExecutionForbidden())
script->initializeContextIfNeeded();
}
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp ('k') | third_party/WebKit/Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698