Bug 1141819 - Don't implicitly dispatch a runnable to the main thread in RasterImage::StartDecoding. r=baku

This commit is contained in:
Seth Fowler 2015-03-23 19:37:45 -07:00
Родитель 32afe4039f
Коммит ee25228a98
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -1436,11 +1436,6 @@ RasterImage::RequestDecode()
NS_IMETHODIMP
RasterImage::StartDecoding()
{
if (!NS_IsMainThread()) {
return NS_DispatchToMainThread(
NS_NewRunnableMethod(this, &RasterImage::StartDecoding));
}
// For decode-on-draw images, we only act on RequestDecodeForSize.
if (mDecodeOnDraw) {
return NS_OK;