зеркало из https://github.com/mozilla/gecko-dev.git
Bug 649440: Fire OnStopFrame notification on each redraw request in SVG images. r=joe
This commit is contained in:
Родитель
e4bc95890c
Коммит
d9eccb862a
|
@ -711,9 +711,17 @@ VectorImage::OnDataAvailable(nsIRequest* aRequest, nsISupports* aCtxt,
|
|||
void
|
||||
VectorImage::InvalidateObserver()
|
||||
{
|
||||
nsCOMPtr<imgIContainerObserver> observer(do_QueryReferent(mObserver));
|
||||
if (observer) {
|
||||
observer->FrameChanged(this, &nsIntRect::GetMaxSizedIntRect());
|
||||
if (!mObserver)
|
||||
return;
|
||||
|
||||
nsCOMPtr<imgIContainerObserver> containerObs(do_QueryReferent(mObserver));
|
||||
if (containerObs) {
|
||||
containerObs->FrameChanged(this, &nsIntRect::GetMaxSizedIntRect());
|
||||
}
|
||||
|
||||
nsCOMPtr<imgIDecoderObserver> decoderObs(do_QueryReferent(mObserver));
|
||||
if (decoderObs) {
|
||||
decoderObs->OnStopFrame(nsnull, imgIContainer::FRAME_CURRENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче