Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1650)

Unified Diff: Source/core/rendering/svg/SVGResourcesCycleSolver.cpp

Issue 27648002: Refine toRenderSVGResourceContainer() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698