Index: third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
index a963d65a29dcea602dc3ad5834b1c8a4be62a20c..8947ad8aa4588e806d8daaaa9cdb8c51765c1589 100644 |
--- a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
@@ -53,14 +53,11 @@ bool NinePieceImagePainter::paint(GraphicsContext* graphicsContext, const Layout |
IntSize imageSize = m_layoutObject.calculateImageIntrinsicDimensions(styleImage, borderImageRect.size(), |
LayoutBoxModelObject::DoNotScaleByEffectiveZoom); |
- // If both values are 'auto' then the intrinsic width and/or height of the image should be used, if any. |
- styleImage->setContainerSizeForLayoutObject(&m_layoutObject, imageSize, style.effectiveZoom()); |
- |
IntRectOutsets borderWidths(style.borderTopWidth(), style.borderRightWidth(), |
style.borderBottomWidth(), style.borderLeftWidth()); |
NinePieceImageGrid grid(ninePieceImage, imageSize, borderImageRect, borderWidths); |
- RefPtr<Image> image = styleImage->image(&m_layoutObject, imageSize); |
+ RefPtr<Image> image = styleImage->image(&m_layoutObject, imageSize, style.effectiveZoom()); |
InterpolationQuality interpolationQuality = BoxPainter::chooseInterpolationQuality(m_layoutObject, |
graphicsContext, image.get(), 0, rectWithOutsets.size()); |