Tighten typing in SVGResourcesCycleSolver a bit.
[WebKit-https.git] / Source / WebCore / rendering / svg / SVGResourcesCycleSolver.h
index 099f91c..5bac21e 100644 (file)
 
 namespace WebCore {
 
-class RenderObject;
+class RenderElement;
 class RenderSVGResourceContainer;
 class SVGResources;
 
 class SVGResourcesCycleSolver {
     WTF_MAKE_NONCOPYABLE(SVGResourcesCycleSolver);
 public:
-    SVGResourcesCycleSolver(RenderObject*, SVGResources*);
+    SVGResourcesCycleSolver(RenderElement&, SVGResources&);
     ~SVGResourcesCycleSolver();
 
     void resolveCycles();
 
 private:
-    bool resourceContainsCycles(RenderObject*) const;
-    void breakCycle(RenderSVGResourceContainer*);
+    bool resourceContainsCycles(RenderElement&) const;
+    void breakCycle(RenderSVGResourceContainer&);
 
-    RenderObject* m_renderer;
-    SVGResources* m_resources;
+    RenderElement& m_renderer;
+    SVGResources& m_resources;
     HashSet<RenderSVGResourceContainer*> m_allResources; 
 };