| Index: Source/core/fetch/ImageResource.cpp
|
| diff --git a/Source/core/fetch/ImageResource.cpp b/Source/core/fetch/ImageResource.cpp
|
| index 4c02b7b2af45c0b08f84899f0eb2df92e9af4a28..c70607222b04d69437c17dae7ba297bc28740b9d 100644
|
| --- a/Source/core/fetch/ImageResource.cpp
|
| +++ b/Source/core/fetch/ImageResource.cpp
|
| @@ -380,6 +380,19 @@ void ImageResource::updateImage(bool allDataReceived)
|
| }
|
| }
|
|
|
| +void ImageResource::updateBitmapImages(HashSet<ImageResource*>& images, bool redecodeImages)
|
| +{
|
| + for (HashSet<ImageResource*>::iterator it = images.begin(); it != images.end(); ++it) {
|
| + ImageResource* imageResource = *it;
|
| + if (!imageResource->hasImage() || imageResource->image()->isNull())
|
| + continue;
|
| + BitmapImage* image = toBitmapImage(imageResource->image());
|
| + if (redecodeImages)
|
| + image->resetDecoder();
|
| + imageResource->updateImage(image->isAllDataReceived());
|
| + }
|
| +}
|
| +
|
| void ImageResource::finishOnePart()
|
| {
|
| if (m_loadingMultipartContent)
|
|
|