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

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

Issue 303693009: Make SVGResourcesCycleSolver check for cycles beyond one level (and more) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add dynamic tests. Created 6 years, 7 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
Index: Source/core/rendering/svg/SVGResourcesCycleSolver.h
diff --git a/Source/core/rendering/svg/SVGResourcesCycleSolver.h b/Source/core/rendering/svg/SVGResourcesCycleSolver.h
index cadaa5a311ebaf08515a0b6995f38c1551bdb88b..aadd9f6fa5438fa36348fe192e58995687ca82e6 100644
--- a/Source/core/rendering/svg/SVGResourcesCycleSolver.h
+++ b/Source/core/rendering/svg/SVGResourcesCycleSolver.h
@@ -37,13 +37,17 @@ public:
void resolveCycles();
+ typedef HashSet<RenderSVGResourceContainer*> ResourceSet;
+
private:
- bool resourceContainsCycles(RenderObject*) const;
+ bool resourceContainsCycles(RenderSVGResourceContainer*);
void breakCycle(RenderSVGResourceContainer*);
RenderObject* m_renderer;
SVGResources* m_resources;
- HashSet<RenderSVGResourceContainer*> m_allResources;
+
+ ResourceSet m_activeResources;
+ ResourceSet m_dagCache;
};
}

Powered by Google App Engine
This is Rietveld 408576698