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