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