Index: Source/core/rendering/svg/SVGResources.cpp |
diff --git a/Source/core/rendering/svg/SVGResources.cpp b/Source/core/rendering/svg/SVGResources.cpp |
index e6c25644c261d4c17a9c54de4c1edd693610959d..f30edd17a94304c46020a004b82026a6b69e0a8f 100644 |
--- a/Source/core/rendering/svg/SVGResources.cpp |
+++ b/Source/core/rendering/svg/SVGResources.cpp |
@@ -145,7 +145,7 @@ static inline String targetReferenceFromResource(SVGElement* element) |
if (element->hasTagName(SVGNames::patternTag)) |
target = static_cast<SVGPatternElement*>(element)->hrefCurrentValue(); |
else if (element->hasTagName(SVGNames::linearGradientTag) || element->hasTagName(SVGNames::radialGradientTag)) |
- target = static_cast<SVGGradientElement*>(element)->hrefCurrentValue(); |
+ target = toSVGGradientElement(element)->hrefCurrentValue(); |
else if (element->hasTagName(SVGNames::filterTag)) |
target = toSVGFilterElement(element)->hrefCurrentValue(); |
else |