зеркало из https://github.com/mozilla/pjs.git
Bug 514033 - Error recovery for imagelib - part 3 - Make errors returned by superclass methods contingent only on IsError().r=joe,a=blocker
This commit is contained in:
Родитель
7b91b495f6
Коммит
03209d6147
|
@ -75,23 +75,25 @@ Decoder::Init(RasterImage* aImage, imgIDecoderObserver* aObserver)
|
|||
mObserver = aObserver;
|
||||
|
||||
// Implementation-specific initialization
|
||||
nsresult rv = InitInternal();
|
||||
InitInternal();
|
||||
mInitialized = true;
|
||||
return rv;
|
||||
return IsError() ? NS_ERROR_FAILURE : NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
Decoder::Write(const char* aBuffer, PRUint32 aCount)
|
||||
{
|
||||
// Pass the data along to the implementation
|
||||
return WriteInternal(aBuffer, aCount);
|
||||
WriteInternal(aBuffer, aCount);
|
||||
return IsError() ? NS_ERROR_FAILURE : NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
Decoder::Finish()
|
||||
{
|
||||
// Implementation-specific finalization
|
||||
return FinishInternal();
|
||||
FinishInternal();
|
||||
return IsError() ? NS_ERROR_FAILURE : NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче