| 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 402aed20b53aa622d3d1edf95f8ebac134add22d..b9a9ead1e4e40ed518dacf76b72aea83508aed7e 100644
|
| --- a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
|
| @@ -50,14 +50,14 @@ bool NinePieceImagePainter::paint(GraphicsContext* graphicsContext, const Layout
|
| rectWithOutsets.expand(style.imageOutsets(ninePieceImage));
|
| LayoutRect borderImageRect = rectWithOutsets;
|
|
|
| - IntSize imageSize = roundedIntSize(m_layoutObject.calculateImageIntrinsicDimensions(styleImage, borderImageRect.size(),
|
| - LayoutBoxModelObject::DoNotScaleByEffectiveZoom));
|
| + LayoutSize imageSize = m_layoutObject.calculateImageIntrinsicDimensions(styleImage, borderImageRect.size(),
|
| + LayoutBoxModelObject::DoNotScaleByEffectiveZoom);
|
|
|
| IntRectOutsets borderWidths(style.borderTopWidth(), style.borderRightWidth(),
|
| style.borderBottomWidth(), style.borderLeftWidth());
|
| - NinePieceImageGrid grid(ninePieceImage, imageSize, pixelSnappedIntRect(borderImageRect), borderWidths);
|
| + NinePieceImageGrid grid(ninePieceImage, imageSize, borderImageRect, borderWidths);
|
|
|
| - RefPtr<Image> image = styleImage->image(&m_layoutObject, imageSize, style.effectiveZoom());
|
| + RefPtr<Image> image = styleImage->image(&m_layoutObject, flooredIntSize(imageSize), style.effectiveZoom());
|
|
|
| InterpolationQuality interpolationQuality = BoxPainter::chooseInterpolationQuality(m_layoutObject,
|
| graphicsContext, image.get(), 0, rectWithOutsets.size());
|
|
|