Index: Source/platform/graphics/skia/NativeImageSkia.cpp |
diff --git a/Source/platform/graphics/skia/NativeImageSkia.cpp b/Source/platform/graphics/skia/NativeImageSkia.cpp |
index f9ed9b6beb100e1c1dbb5323251aac4327af9e69..87133033551e0ef46d2deea75435487fbe9e6cbe 100644 |
--- a/Source/platform/graphics/skia/NativeImageSkia.cpp |
+++ b/Source/platform/graphics/skia/NativeImageSkia.cpp |
@@ -451,8 +451,9 @@ void NativeImageSkia::drawPattern( |
return; // nothing to draw |
SkMatrix totalMatrix = context->getTotalMatrix(); |
- SkScalar ctmScaleX = totalMatrix.getScaleX(); |
- SkScalar ctmScaleY = totalMatrix.getScaleY(); |
+ AffineTransform ctm = context->getCTM(); |
+ SkScalar ctmScaleX = ctm.xScale(); |
+ SkScalar ctmScaleY = ctm.yScale(); |
totalMatrix.preScale(scale.width(), scale.height()); |
// Figure out what size the bitmap will be in the destination. The |