Index: Source/core/svg/SVGLinearGradientElement.cpp |
diff --git a/Source/core/svg/SVGLinearGradientElement.cpp b/Source/core/svg/SVGLinearGradientElement.cpp |
index f1f35b6edfd3447404aaf5273d40613203e52159..ec137a4542447a3b61e876a58df0013fb804f60e 100644 |
--- a/Source/core/svg/SVGLinearGradientElement.cpp |
+++ b/Source/core/svg/SVGLinearGradientElement.cpp |
@@ -113,10 +113,8 @@ static void setGradientAttributes(SVGGradientElement* element, LinearGradientAtt |
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()) { |