Index: third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp |
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp |
index 0ab1759950b7a03feaa0e14acf316e155b42041b..42fcd9ba2659ddf573dbe45c8fd055933b56bc6e 100644 |
--- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp |
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp |
@@ -56,6 +56,7 @@ WorkerThread* MainThreadWorkletGlobalScope::GetThread() const { |
void MainThreadWorkletGlobalScope::FetchAndInvokeScript( |
const KURL& module_url_record, |
WebURLRequest::FetchCredentialsMode credentials_mode, |
+ RefPtr<WebTaskRunner> parent_frame_task_runner, |
WorkletPendingTasks* pending_tasks) { |
DCHECK(IsMainThread()); |
// Step 1: "Let insideSettings be the workletGlobalScope's associated |
@@ -71,8 +72,8 @@ void MainThreadWorkletGlobalScope::FetchAndInvokeScript( |
// Step 3 to 5 are implemented in |
// WorkletModuleTreeClient::NotifyModuleTreeLoadFinished. |
- WorkletModuleTreeClient* client = |
- new WorkletModuleTreeClient(modulator, pending_tasks); |
+ WorkletModuleTreeClient* client = new WorkletModuleTreeClient( |
+ modulator, std::move(parent_frame_task_runner), pending_tasks); |
modulator->FetchTree(module_request, client); |
} |