Bug 910533 - Clear invalidation rect only after sync notifying in imgStatusTracker. r=tn

--HG--
extra : rebase_source : d373b3c4ccc747e9afef3c1bbdb8e522b7724b10
This commit is contained in:
Seth Fowler 2013-11-18 13:12:59 -08:00
parent c933798c3a
commit 61361a6912

View File

@ -499,9 +499,11 @@ imgStatusTracker::SyncNotifyDifference(const ImageStatusDiff& diff)
LOG_SCOPE(GetImgLog(), "imgStatusTracker::SyncNotifyDifference");
nsIntRect invalidRect = mInvalidRect.Union(diff.invalidRect);
mInvalidRect.SetEmpty();
SyncNotifyState(mConsumers, !!mImage, diff.diffState, invalidRect, mHadLastPart);
mInvalidRect.SetEmpty();
if (diff.unblockedOnload) {
nsTObserverArray<imgRequestProxy*>::ForwardIterator iter(mConsumers);
while (iter.HasMore()) {