summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGRadialGradientElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGRadialGradientElement.cpp')
-rw-r--r--WebCore/svg/SVGRadialGradientElement.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/WebCore/svg/SVGRadialGradientElement.cpp b/WebCore/svg/SVGRadialGradientElement.cpp
index 584b1b6..aaf32bc 100644
--- a/WebCore/svg/SVGRadialGradientElement.cpp
+++ b/WebCore/svg/SVGRadialGradientElement.cpp
@@ -137,8 +137,11 @@ void SVGRadialGradientElement::collectGradientAttributes(RadialGradientAttribute
if (!attributes.hasBoundingBoxMode() && current->hasAttribute(SVGNames::gradientUnitsAttr))
attributes.setBoundingBoxMode(current->gradientUnits() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX);
- if (!attributes.hasGradientTransform() && current->hasAttribute(SVGNames::gradientTransformAttr))
- attributes.setGradientTransform(current->gradientTransform()->consolidate().matrix());
+ if (!attributes.hasGradientTransform() && current->hasAttribute(SVGNames::gradientTransformAttr)) {
+ AffineTransform transform;
+ current->gradientTransform().concatenate(transform);
+ attributes.setGradientTransform(transform);
+ }
if (!attributes.hasStops()) {
const Vector<Gradient::ColorStop>& stops(current->buildStops());