зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1413082
- Check both STATUS_LOAD_COMPLETE and STATUS_ERROR before getting the image container in nsImageFrame. r=mattwoodrow
MozReview-Commit-ID: H5pTpJVG33p --HG-- extra : rebase_source : dca566b51d5e4f4cb4a18e612c1ed13cefb18f9b
This commit is contained in:
Родитель
fddd013fcd
Коммит
056378aa50
|
@ -1443,7 +1443,8 @@ nsImageFrame::DisplayAltFeedback(gfxContext& aRenderingContext,
|
|||
uint32_t imageStatus = 0;
|
||||
if (request)
|
||||
request->GetImageStatus(&imageStatus);
|
||||
if (imageStatus & imgIRequest::STATUS_LOAD_COMPLETE) {
|
||||
if (imageStatus & imgIRequest::STATUS_LOAD_COMPLETE &&
|
||||
!(imageStatus & imgIRequest::STATUS_ERROR)) {
|
||||
nsCOMPtr<imgIContainer> imgCon;
|
||||
request->GetImage(getter_AddRefs(imgCon));
|
||||
MOZ_ASSERT(imgCon, "Load complete, but no image container?");
|
||||
|
|
Загрузка…
Ссылка в новой задаче