Index: Source/core/rendering/svg/RenderSVGGradientStop.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGGradientStop.cpp b/Source/core/rendering/svg/RenderSVGGradientStop.cpp |
index f8777170e6687b6e4a1d0c4888446b9f525280c5..274e3a6cdd4b39dade63d6c7d96c96dfb653f0a2 100644 |
--- a/Source/core/rendering/svg/RenderSVGGradientStop.cpp |
+++ b/Source/core/rendering/svg/RenderSVGGradientStop.cpp |
@@ -70,7 +70,7 @@ SVGGradientElement* RenderSVGGradientStop::gradientElement() const |
{ |
ContainerNode* parentNode = node()->parentNode(); |
if (parentNode->hasTagName(linearGradientTag) || parentNode->hasTagName(radialGradientTag)) |
- return static_cast<SVGGradientElement*>(parentNode); |
+ return toSVGGradientElement(parentNode); |
return 0; |
} |