Bug 1133356 - Expand macro in OnImageAvailable to avoid checking NotificationsDeferred. r=roc

This commit is contained in:
Matt Woodrow 2015-02-17 10:15:04 +13:00
parent 1a64e6def9
commit cde1d90f5f

View File

@ -501,7 +501,14 @@ ProgressTracker::OnImageAvailable()
return; return;
} }
NOTIFY_IMAGE_OBSERVERS(mObservers, SetHasImage()); // Notify any imgRequestProxys that are observing us that we have an Image.
ObserverArray::ForwardIterator iter(mObservers);
while (iter.HasMore()) {
nsRefPtr<IProgressObserver> observer = iter.GetNext().get();
if (observer) {
observer->SetHasImage();
}
}
} }
void void