Bug 1368776 - Part 17. Fix how we could reuse an incorrect image container instead of creating a new one. r=me

This commit is contained in:
Andrew Osmond 2017-11-17 07:54:50 -05:00
Родитель 027f71e3dd
Коммит d9067a16fe
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -125,10 +125,14 @@ ImageResource::GetImageContainerImpl(LayerManager* aManager,
} else if (!container) {
// Stop tracking if our weak pointer to the image container was freed.
mImageContainers.RemoveElementAt(i);
} else {
// It isn't a match, but still valid. Forget the container so we don't
// try to reuse it below.
container = nullptr;
}
}
if (i >= 0 && container) {
if (container) {
switch (entry->mLastDrawResult) {
case DrawResult::SUCCESS:
case DrawResult::BAD_IMAGE: