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

@@ -1770,8 +1770,7 @@ nsDocShell::FirePageHideNotificationInternal(bool aIsUnload,
}
nsresult
nsDocShell::DispatchToTabGroup(const char* aName,
TaskCategory aCategory,
nsDocShell::DispatchToTabGroup(TaskCategory aCategory,
already_AddRefed<nsIRunnable>&& aRunnable)
{
// Hold the ref so we won't forget to release it.
@@ -1784,14 +1783,13 @@ nsDocShell::DispatchToTabGroup(const char* aName,
}
RefPtr<mozilla::dom::TabGroup> tabGroup = win->TabGroup();
return tabGroup->Dispatch(aName, aCategory, runnable.forget());
return tabGroup->Dispatch(aCategory, runnable.forget());
}
NS_IMETHODIMP
nsDocShell::DispatchLocationChangeEvent()
{
return DispatchToTabGroup(
"nsDocShell::FireDummyOnLocationChange",
TaskCategory::Other,
NewRunnableMethod("nsDocShell::FireDummyOnLocationChange",
this,
@@ -8594,8 +8592,7 @@ nsDocShell::RestorePresentation(nsISHEntry* aSHEntry, bool* aRestoring)
mRestorePresentationEvent.Revoke();
RefPtr<RestorePresentationEvent> evt = new RestorePresentationEvent(this);
nsresult rv = DispatchToTabGroup("nsDocShell::RestorePresentationEvent",
TaskCategory::Other,
nsresult rv = DispatchToTabGroup(TaskCategory::Other,
RefPtr<RestorePresentationEvent>(evt).forget());
if (NS_SUCCEEDED(rv)) {
mRestorePresentationEvent = evt.get();
@@ -10266,8 +10263,7 @@ nsDocShell::InternalLoad(nsIURI* aURI,
aFlags, aTypeHint, aPostData, aHeadersData,
aLoadType, aSHEntry, aFirstParty, aSrcdoc,
aSourceDocShell, aBaseURI, false);
return DispatchToTabGroup("nsDocShell::InternalLoadEvent",
TaskCategory::Other, ev.forget());
return DispatchToTabGroup(TaskCategory::Other, ev.forget());
}
// Just ignore this load attempt
@@ -14168,8 +14164,7 @@ nsDocShell::OnLinkClick(nsIContent* aContent,
new OnLinkClickEvent(this, aContent, aURI, target.get(), aFileName,
aPostDataStream, aHeadersDataStream, noOpenerImplied,
aIsTrusted, aTriggeringPrincipal);
return DispatchToTabGroup("nsDocShell::OnLinkClickEvent",
TaskCategory::UI, ev.forget());
return DispatchToTabGroup(TaskCategory::UI, ev.forget());
}
NS_IMETHODIMP