Index: Source/core/rendering/svg/SVGResourcesCycleSolver.cpp |
diff --git a/Source/core/rendering/svg/SVGResourcesCycleSolver.cpp b/Source/core/rendering/svg/SVGResourcesCycleSolver.cpp |
index aad9086875af63a57c345f7876c47ebf5618e51e..efa1b933394642db2fa8371f6307be2b458e26f2 100644 |
--- a/Source/core/rendering/svg/SVGResourcesCycleSolver.cpp |
+++ b/Source/core/rendering/svg/SVGResourcesCycleSolver.cpp |
@@ -112,7 +112,7 @@ void SVGResourcesCycleSolver::resolveCycles() |
RenderObject* parent = m_renderer->parent(); |
while (parent) { |
if (parent->isSVGResourceContainer()) |
- parentResources.add(parent->toRenderSVGResourceContainer()); |
+ parentResources.add(toRenderSVGResourceContainer(parent)); |
parent = parent->parent(); |
} |
@@ -139,7 +139,7 @@ void SVGResourcesCycleSolver::resolveCycles() |
// If we're a resource, add ourselves to the HashSet. |
if (m_renderer->isSVGResourceContainer()) |
- m_allResources.add(m_renderer->toRenderSVGResourceContainer()); |
+ m_allResources.add(toRenderSVGResourceContainer(m_renderer)); |
ASSERT(!m_allResources.isEmpty()); |