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