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 1bd7430e088484903a56f09b230dc3e6b78eac5d..334f02980b47c39a88489c4b1315bd2ded3de0d3 100644 |
--- a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp |
@@ -60,11 +60,7 @@ bool NinePieceImagePainter::paint(GraphicsContext& graphicsContext, const Layout |
InspectorPaintImageEvent::data(m_layoutObject, *styleImage)); |
for (NinePiece piece = MinPiece; piece < MaxPiece; ++piece) { |
- NinePieceImageGrid::NinePieceDrawInfo drawInfo = grid.getNinePieceDrawInfo(piece); |
- |
- // The nine piece grid is computed in unscaled image coordinates but must be drawn using |
- // scaled image coordinates. |
- drawInfo.source.scale(styleImage->imageScaleFactor()); |
+ NinePieceImageGrid::NinePieceDrawInfo drawInfo = grid.getNinePieceDrawInfo(piece, styleImage->imageScaleFactor()); |
if (drawInfo.isDrawable) { |
if (drawInfo.isCornerPiece) { |