Bug 1103328 (Part 3) - Fire HAS_TRANSPARENCY in nsIconDecoder. r=tn

This commit is contained in:
Seth Fowler 2014-11-24 23:42:43 -08:00
parent a7508e73c7
commit 28d652639c
2 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,9 @@ nsIconDecoder::WriteInternal(const char* aBuffer, uint32_t aCount,
// Post our size to the superclass
PostSize(mWidth, mHeight);
PostHasTransparency();
if (HasError()) {
// Setting the size led to an error.
mState = iconStateFinished;

View File

@ -79,7 +79,6 @@ CheckProgressConsistency(Progress aProgress)
MOZ_ASSERT(aProgress & FLAG_SIZE_AVAILABLE);
}
if (aProgress & FLAG_HAS_TRANSPARENCY) {
MOZ_ASSERT(aProgress & FLAG_DECODE_STARTED);
MOZ_ASSERT(aProgress & FLAG_SIZE_AVAILABLE);
}
if (aProgress & FLAG_IS_MULTIPART) {