Bug 1432963 - Fixing workers headers - part 15 - static function in a workers namespace, r=smaug

This commit is contained in:
Andrea Marchesini
2018-01-31 08:24:30 +01:00
parent 5e357eed9f
commit 98ac9eb616
33 changed files with 102 additions and 110 deletions

View File

@@ -153,7 +153,7 @@ public:
Create()
{
MOZ_ASSERT(!NS_IsMainThread());
WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate();
WorkerPrivate* workerPrivate = workers::GetCurrentThreadWorkerPrivate();
MOZ_ASSERT(workerPrivate);
RefPtr<InternalWorkerHolder> ref = new InternalWorkerHolder();
if (NS_WARN_IF(!ref->HoldWorker(workerPrivate, Canceling))) {