Use #pragma once in WebCore
[WebKit-https.git] / Source / WebCore / rendering / svg / SVGResourcesCycleSolver.h
index 099f91c..2e666a7 100644 (file)
  * Boston, MA 02110-1301, USA.
  */
 
-#ifndef SVGResourcesCycleSolver_h
-#define SVGResourcesCycleSolver_h
+#pragma once
 
-#if ENABLE(SVG)
 #include <wtf/HashSet.h>
+#include <wtf/Noncopyable.h>
 
 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; 
 };
 
-}
-
-#endif
-#endif
+} // namespace WebCore