зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
07dfa16abe
Коммит
d9f6f7dfd3
|
@ -2135,7 +2135,11 @@ nsDocumentViewer::Show(void)
|
||||||
|
|
||||||
// Notify observers that a new page has been shown. This will get run
|
// Notify observers that a new page has been shown. This will get run
|
||||||
// from the event loop after we actually draw the page.
|
// 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;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
@ -4627,4 +4631,3 @@ nsDocumentShownDispatcher::Run()
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче