Index: Source/core/svg/SVGRadialGradientElement.cpp |
diff --git a/Source/core/svg/SVGRadialGradientElement.cpp b/Source/core/svg/SVGRadialGradientElement.cpp |
index 6ba70e50d97618c5a1f70513710f324af0a8296f..4929cc24265d5887b5540c0c0458eae61a9065d3 100644 |
--- a/Source/core/svg/SVGRadialGradientElement.cpp |
+++ b/Source/core/svg/SVGRadialGradientElement.cpp |
@@ -159,7 +159,7 @@ bool SVGRadialGradientElement::collectGradientAttributes(RadialGradientAttribute |
} |
if (isRadial) { |
- SVGRadialGradientElement* radial = static_cast<SVGRadialGradientElement*>(current); |
+ SVGRadialGradientElement* radial = toSVGRadialGradientElement(current); |
if (!attributes.hasCx() && current->hasAttribute(SVGNames::cxAttr)) |
attributes.setCx(radial->cxCurrentValue()); |