Chromium Code Reviews| 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 8947ad8aa4588e806d8daaaa9cdb8c51765c1589..05f985de196694e35739a16ef45c0d32d7e5b50c 100644 |
| --- a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
| +++ b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
| @@ -48,14 +48,14 @@ bool NinePieceImagePainter::paint(GraphicsContext* graphicsContext, const Layout |
| // doesn't have any understanding of the zoom that is in effect on the tile. |
| LayoutRect rectWithOutsets = rect; |
| rectWithOutsets.expand(style.imageOutsets(ninePieceImage)); |
| - IntRect borderImageRect = pixelSnappedIntRect(rectWithOutsets); |
| + LayoutRect borderImageRect = rectWithOutsets; |
| - IntSize imageSize = m_layoutObject.calculateImageIntrinsicDimensions(styleImage, borderImageRect.size(), |
| - LayoutBoxModelObject::DoNotScaleByEffectiveZoom); |
| + IntSize imageSize = roundedIntSize(m_layoutObject.calculateImageIntrinsicDimensions(styleImage, borderImageRect.size(), |
| + LayoutBoxModelObject::DoNotScaleByEffectiveZoom)); |
| IntRectOutsets borderWidths(style.borderTopWidth(), style.borderRightWidth(), |
| style.borderBottomWidth(), style.borderLeftWidth()); |
| - NinePieceImageGrid grid(ninePieceImage, imageSize, borderImageRect, borderWidths); |
| + NinePieceImageGrid grid(ninePieceImage, imageSize, pixelSnappedIntRect(borderImageRect), borderWidths); |
|
davve
2015/11/25 15:47:58
One idea would be to propagate LayoutUnits down to
|
| RefPtr<Image> image = styleImage->image(&m_layoutObject, imageSize, style.effectiveZoom()); |