mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 1103328 (Part 3) - Fire HAS_TRANSPARENCY in nsIconDecoder. r=tn
This commit is contained in:
parent
e116540fe3
commit
7bfc5f9689
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user