Index: Source/core/svg/SVGRadialGradientElement.cpp |
diff --git a/Source/core/svg/SVGRadialGradientElement.cpp b/Source/core/svg/SVGRadialGradientElement.cpp |
index b83917440a9b7cee3481c770fcc687b5e4bc15f8..1307f0947352ad561df87e7db3dfeb2161448199 100644 |
--- a/Source/core/svg/SVGRadialGradientElement.cpp |
+++ b/Source/core/svg/SVGRadialGradientElement.cpp |
@@ -127,10 +127,8 @@ static void setGradientAttributes(SVGGradientElement* element, RadialGradientAtt |
if (!attributes.hasGradientUnits() && element->gradientUnits()->isSpecified()) |
attributes.setGradientUnits(element->gradientUnits()->currentValue()->enumValue()); |
- if (!attributes.hasGradientTransform() && element->gradientTransform()->isSpecified()) { |
- AffineTransform transform; |
- element->gradientTransform()->currentValue()->concatenate(transform); |
- attributes.setGradientTransform(transform); |
+ if (!attributes.hasGradientTransform()) { |
+ attributes.setGradientTransformFromStyle(element); |
} |
if (!attributes.hasStops()) { |