Index: third_party/WebKit/WebCore/svg/SVGPreserveAspectRatio.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/svg/SVGPreserveAspectRatio.cpp (revision 9391) |
+++ third_party/WebKit/WebCore/svg/SVGPreserveAspectRatio.cpp (working copy) |
@@ -178,10 +178,10 @@ |
double svgar = physWidth / physHeight; |
if (align() == SVG_PRESERVEASPECTRATIO_NONE) { |
- temp.scale(physWidth / logicWidth, physHeight / logicHeight); |
+ temp.scaleNonUniform(physWidth / logicWidth, physHeight / logicHeight); |
temp.translate(-logicX, -logicY); |
} else if (vpar < svgar && (meetOrSlice() == SVG_MEETORSLICE_MEET) || vpar >= svgar && (meetOrSlice() == SVG_MEETORSLICE_SLICE)) { |
- temp.scale(physHeight / logicHeight, physHeight / logicHeight); |
+ temp.scaleNonUniform(physHeight / logicHeight, physHeight / logicHeight); |
if (align() == SVG_PRESERVEASPECTRATIO_XMINYMIN || align() == SVG_PRESERVEASPECTRATIO_XMINYMID || align() == SVG_PRESERVEASPECTRATIO_XMINYMAX) |
temp.translate(-logicX, -logicY); |
@@ -190,7 +190,7 @@ |
else |
temp.translate(-logicX - (logicWidth - physWidth * logicHeight / physHeight), -logicY); |
} else { |
- temp.scale(physWidth / logicWidth, physWidth / logicWidth); |
+ temp.scaleNonUniform(physWidth / logicWidth, physWidth / logicWidth); |
if (align() == SVG_PRESERVEASPECTRATIO_XMINYMIN || align() == SVG_PRESERVEASPECTRATIO_XMIDYMIN || align() == SVG_PRESERVEASPECTRATIO_XMAXYMIN) |
temp.translate(-logicX, -logicY); |