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 c72e025e71b6011abc6bfd8bf04bb923ded1f844..11afc2bd8c18cb85d8416027a5f57ff7655164c9 100644 |
--- a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
@@ -44,14 +44,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()); |