Index: Source/core/rendering/svg/RenderSVGGradientStop.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGGradientStop.cpp b/Source/core/rendering/svg/RenderSVGGradientStop.cpp |
index b3b0c55eb25e1461f1d3ae6765dafe15c337c6c8..ca5f315a7bc46f660b03b9a0e36d6a2a6cdd1258 100644 |
--- a/Source/core/rendering/svg/RenderSVGGradientStop.cpp |
+++ b/Source/core/rendering/svg/RenderSVGGradientStop.cpp |
@@ -55,8 +55,7 @@ void RenderSVGGradientStop::styleDidChange(StyleDifference diff, const RenderSty |
if (!renderer) |
return; |
- ASSERT(renderer->isSVGResourceContainer()); |
- RenderSVGResourceContainer* container = renderer->toRenderSVGResourceContainer(); |
+ RenderSVGResourceContainer* container = toRenderSVGResourceContainer(renderer); |
container->removeAllClientsFromCache(); |
} |