diff options
Diffstat (limited to 'WebCore/svg/graphics/SVGResourceClipper.h')
-rw-r--r-- | WebCore/svg/graphics/SVGResourceClipper.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/WebCore/svg/graphics/SVGResourceClipper.h b/WebCore/svg/graphics/SVGResourceClipper.h index 98c295f..df5562d 100644 --- a/WebCore/svg/graphics/SVGResourceClipper.h +++ b/WebCore/svg/graphics/SVGResourceClipper.h @@ -27,9 +27,10 @@ #define SVGResourceClipper_h #if ENABLE(SVG) - -#include "SVGResource.h" +#include "FloatRect.h" #include "Path.h" +#include "RenderObject.h" +#include "SVGResource.h" namespace WebCore { @@ -65,7 +66,9 @@ namespace WebCore { public: static PassRefPtr<SVGResourceClipper> create() { return adoptRef(new SVGResourceClipper); } virtual ~SVGResourceClipper(); - + + virtual void invalidate(); + void resetClipData(); void addClipData(const Path&, WindRule, bool bboxUnits); @@ -76,15 +79,17 @@ namespace WebCore { // To be implemented by the specific rendering devices void applyClip(GraphicsContext*, const FloatRect& boundingBox) const; + FloatRect clipperBoundingBox(const FloatRect& oob); private: SVGResourceClipper(); ClipDataList m_clipData; + FloatRect m_clipperBoundingBox; }; TextStream& operator<<(TextStream&, WindRule); TextStream& operator<<(TextStream&, const ClipData&); - SVGResourceClipper* getClipperById(Document*, const AtomicString&); + SVGResourceClipper* getClipperById(Document*, const AtomicString&, const RenderObject*); } // namespace WebCore |