Bug 1461954: Fix nsBulletFrame's image request registration code. r=tnikkel

Ideas for a test for this welcome :).

MozReview-Commit-ID: 1IpUlakeKXm

--HG--
extra : rebase_source : 54ef3968cb868b998cd161e70786c84304099729
This commit is contained in:
Emilio Cobos Álvarez 2018-05-16 15:05:54 +02:00
Родитель 7c6c0db9ce
Коммит 44b34ec276
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1413,7 +1413,7 @@ nsBulletFrame::RegisterImageRequest(bool aKnownToBeAnimated)
&isRequestRegistered);
}
isRequestRegistered = mRequestRegistered;
mRequestRegistered = isRequestRegistered;
}
}
@ -1431,7 +1431,7 @@ nsBulletFrame::DeregisterAndCancelImageRequest()
mImageRequest,
&isRequestRegistered);
isRequestRegistered = mRequestRegistered;
mRequestRegistered = isRequestRegistered;
// Cancel the image request and forget about it.
mImageRequest->CancelAndForgetObserver(NS_ERROR_FAILURE);