Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm

This commit is contained in:
Bevis Tseng
2017-07-26 16:13:35 +08:00
parent ce50e5aaca
commit 2ecbda13e2
92 changed files with 168 additions and 297 deletions

View File

@@ -1502,8 +1502,7 @@ public:
static void Dispatch(already_AddRefed<NotifyOffThreadScriptLoadCompletedRunnable>&& aSelf) {
RefPtr<NotifyOffThreadScriptLoadCompletedRunnable> self = aSelf;
RefPtr<DocGroup> docGroup = self->mDocGroup;
docGroup->Dispatch("NotifyOffThreadScriptLoadCompletedRunnable",
TaskCategory::Other, self.forget());
docGroup->Dispatch(TaskCategory::Other, self.forget());
}
NS_DECL_NSIRUNNABLE
@@ -2421,7 +2420,7 @@ ScriptLoader::ProcessPendingRequestsAsync()
this,
&ScriptLoader::ProcessPendingRequests);
if (mDocument) {
mDocument->Dispatch("ScriptLoader", TaskCategory::Other, task.forget());
mDocument->Dispatch(TaskCategory::Other, task.forget());
} else {
NS_DispatchToCurrentThread(task.forget());
}