Bug 1143575. ImageClient::UpdateImage should not return false when there's no image, because recreating the ImageClient won't help. r=nical

This commit is contained in:
Robert O'Callahan 2015-03-19 21:06:27 +13:00
parent 8f72b276f0
commit 92a09b0193

View File

@ -148,10 +148,6 @@ ImageClientSingle::UpdateImage(ImageContainer* aContainer, uint32_t aContentFlag
}
mLastUpdateGenerationCounter = generationCounter;
if (images.IsEmpty()) {
return false;
}
Image* image = images[0].mImage;
// Don't try to update to an invalid image. We return true because the caller
// would attempt to recreate the ImageClient otherwise, and that isn't going