| 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 afd882d68dbbdf202c41b862f7eadeed0d6d660e..0fec3ad166bbfa39d3704223fc63da82c730098d 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));
|
| IntRect borderImageRect = pixelSnappedIntRect(rectWithOutsets);
|
|
|
| - IntSize imageSize = 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, borderImageRect, borderWidths);
|
| + NinePieceImageGrid grid(ninePieceImage, imageSize, LayoutRect(borderImageRect), borderWidths);
|
|
|
| - RefPtr<Image> image = styleImage->image(&m_layoutObject, imageSize, style.effectiveZoom());
|
| + RefPtr<Image> image = styleImage->image(&m_layoutObject, roundedIntSize(imageSize), style.effectiveZoom());
|
|
|
| InterpolationQuality interpolationQuality = BoxPainter::chooseInterpolationQuality(m_layoutObject,
|
| graphicsContext, image.get(), 0, rectWithOutsets.size());
|
| @@ -74,8 +74,8 @@ bool NinePieceImagePainter::paint(GraphicsContext* graphicsContext, const Layout
|
| if (drawInfo.isCornerPiece) {
|
| graphicsContext->drawImage(image.get(), drawInfo.destination, drawInfo.source, op);
|
| } else {
|
| - graphicsContext->drawTiledImage(image.get(), enclosingIntRect(drawInfo.destination),
|
| - enclosingIntRect(drawInfo.source), drawInfo.tileScale, drawInfo.tileRule.horizontal,
|
| + graphicsContext->drawTiledImage(image.get(), drawInfo.destination,
|
| + drawInfo.source, drawInfo.tileScale, drawInfo.tileRule.horizontal,
|
| drawInfo.tileRule.vertical, op);
|
| }
|
| }
|
|
|