| Index: sky/engine/core/rendering/RenderImage.cpp
|
| diff --git a/sky/engine/core/rendering/RenderImage.cpp b/sky/engine/core/rendering/RenderImage.cpp
|
| index 033986f3bbab4f24ce0c00c9f966ecd6406d1513..aa1bcd14fb4053a30343c77096ffc5bcafb1ece2 100644
|
| --- a/sky/engine/core/rendering/RenderImage.cpp
|
| +++ b/sky/engine/core/rendering/RenderImage.cpp
|
| @@ -223,10 +223,9 @@ void RenderImage::paintInvalidationOrMarkForLayout(bool imageSizeChangedToAccomo
|
|
|
| LayoutRect paintInvalidationRect;
|
| if (rect) {
|
| - // The image changed rect is in source image coordinates (without zoom),
|
| + // The image changed rect is in source image coordinates,
|
| // so map from the bounds of the image to the contentsBox.
|
| - const LayoutSize imageSizeWithoutZoom = m_imageResource->imageSize();
|
| - paintInvalidationRect = enclosingIntRect(mapRect(*rect, FloatRect(FloatPoint(), imageSizeWithoutZoom), contentBoxRect()));
|
| + paintInvalidationRect = enclosingIntRect(mapRect(*rect, FloatRect(FloatPoint(), m_imageResource->imageSize()), contentBoxRect()));
|
| // Guard against too-large changed rects.
|
| paintInvalidationRect.intersect(contentBoxRect());
|
| } else {
|
|
|