Bug 1342863 - (Part 4) DocGroup labeling for runnables dispatched by NS_DispatchTo(Main|Current)Thread in nsDocumentViewer. r=dholbert

MozReview-Commit-ID: 9f32OTpim7V

--HG--
extra : rebase_source : 58312504c810d3efafa87e36a70fb176f4dedc69
This commit is contained in:
KuoE0 2017-03-15 12:08:32 +08:00
Родитель 07dfa16abe
Коммит d9f6f7dfd3
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -2135,7 +2135,11 @@ nsDocumentViewer::Show(void)
// Notify observers that a new page has been shown. This will get run
// from the event loop after we actually draw the page.
NS_DispatchToMainThread(new nsDocumentShownDispatcher(mDocument));
RefPtr<nsDocumentShownDispatcher> event =
new nsDocumentShownDispatcher(mDocument);
mDocument->Dispatch("nsDocumentShownDispatcher",
TaskCategory::Other,
event.forget());
return NS_OK;
}
@ -4627,4 +4631,3 @@ nsDocumentShownDispatcher::Run()
}
return NS_OK;
}