Index: Source/core/rendering/RenderImage.cpp |
diff --git a/Source/core/rendering/RenderImage.cpp b/Source/core/rendering/RenderImage.cpp |
index f9be3be4de05e9439b1456b4088a8d1e4f8ea36e..5288345a413d0598d7c5f39e74e4157b9d05d58b 100644 |
--- a/Source/core/rendering/RenderImage.cpp |
+++ b/Source/core/rendering/RenderImage.cpp |
@@ -99,7 +99,7 @@ IntSize RenderImage::imageSizeForError(ImageResource* newImage) const |
IntSize imageSize; |
if (newImage->willPaintBrokenImage()) { |
float deviceScaleFactor = WebCore::deviceScaleFactor(frame()); |
- pair<Image*, float> brokenImageAndImageScaleFactor = newImage->brokenImage(deviceScaleFactor); |
+ pair<Image*, float> brokenImageAndImageScaleFactor = ImageResource::brokenImage(deviceScaleFactor); |
imageSize = brokenImageAndImageScaleFactor.first->size(); |
imageSize.scale(1 / brokenImageAndImageScaleFactor.second); |
} else |
@@ -316,7 +316,7 @@ void RenderImage::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOf |
if (m_imageResource->errorOccurred() && !image->isNull() && usableWidth >= image->width() && usableHeight >= image->height()) { |
float deviceScaleFactor = WebCore::deviceScaleFactor(frame()); |
// Call brokenImage() explicitly to ensure we get the broken image icon at the appropriate resolution. |
- pair<Image*, float> brokenImageAndImageScaleFactor = m_imageResource->cachedImage()->brokenImage(deviceScaleFactor); |
+ pair<Image*, float> brokenImageAndImageScaleFactor = ImageResource::brokenImage(deviceScaleFactor); |
image = brokenImageAndImageScaleFactor.first; |
IntSize imageSize = image->size(); |
imageSize.scale(1 / brokenImageAndImageScaleFactor.second); |