Index: Source/core/svg/SVGRadialGradientElement.cpp |
diff --git a/Source/core/svg/SVGRadialGradientElement.cpp b/Source/core/svg/SVGRadialGradientElement.cpp |
index 9fcd9a7854047e605518b96062178edddf726235..d20683d48f770a3757d1040eb1104a3b684e1e96 100644 |
--- a/Source/core/svg/SVGRadialGradientElement.cpp |
+++ b/Source/core/svg/SVGRadialGradientElement.cpp |
@@ -185,7 +185,7 @@ bool SVGRadialGradientElement::collectGradientAttributes(RadialGradientAttribute |
// Respect xlink:href, take attributes from referenced element |
Node* refNode = SVGURIReference::targetElementFromIRIString(current->hrefCurrentValue(), document()); |
if (refNode && (refNode->hasTagName(SVGNames::radialGradientTag) || refNode->hasTagName(SVGNames::linearGradientTag))) { |
- current = static_cast<SVGGradientElement*>(refNode); |
+ current = toSVGGradientElement(refNode); |
// Cycle detection |
if (processedGradients.contains(current)) { |