mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Dispatch an OnStartDecode notification for ICO images. Bug 310740, r=biesi, sr=tor.
This commit is contained in:
parent
093e6675b1
commit
178ad5a677
@ -305,7 +305,12 @@ nsresult nsICODecoder::ProcessData(const char* aBuffer, PRUint32 aCount) {
|
||||
aBuffer += toCopy;
|
||||
}
|
||||
|
||||
nsresult rv;
|
||||
|
||||
if (mPos == mImageOffset + BITMAPINFOSIZE) {
|
||||
rv = mObserver->OnStartDecode(nsnull);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
ProcessInfoHeader();
|
||||
if (mBIH.bpp <= 8) {
|
||||
switch (mBIH.bpp) {
|
||||
@ -327,7 +332,7 @@ nsresult nsICODecoder::ProcessData(const char* aBuffer, PRUint32 aCount) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
nsresult rv = mImage->Init(mDirEntry.mWidth, mDirEntry.mHeight, mObserver);
|
||||
rv = mImage->Init(mDirEntry.mWidth, mDirEntry.mHeight, mObserver);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (mIsCursor) {
|
||||
|
Loading…
Reference in New Issue
Block a user