summaryrefslogtreecommitdiff
path: root/src/3rdparty/webkit/WebCore/svg/graphics/SVGPaintServerPattern.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/WebCore/svg/graphics/SVGPaintServerPattern.h')
-rw-r--r--src/3rdparty/webkit/WebCore/svg/graphics/SVGPaintServerPattern.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/3rdparty/webkit/WebCore/svg/graphics/SVGPaintServerPattern.h b/src/3rdparty/webkit/WebCore/svg/graphics/SVGPaintServerPattern.h
index ee23e5bb08..253e0126cb 100644
--- a/src/3rdparty/webkit/WebCore/svg/graphics/SVGPaintServerPattern.h
+++ b/src/3rdparty/webkit/WebCore/svg/graphics/SVGPaintServerPattern.h
@@ -30,11 +30,13 @@
#include "TransformationMatrix.h"
#include "FloatRect.h"
+#include "Pattern.h"
#include "SVGPaintServer.h"
#include <memory>
#include <wtf/OwnPtr.h>
+#include <wtf/PassOwnPtr.h>
namespace WebCore {
@@ -55,7 +57,7 @@ namespace WebCore {
FloatRect patternBoundaries() const;
ImageBuffer* tile() const;
- void setTile(std::auto_ptr<ImageBuffer>);
+ void setTile(PassOwnPtr<ImageBuffer>);
TransformationMatrix patternTransform() const;
void setPatternTransform(const TransformationMatrix&);
@@ -63,9 +65,7 @@ namespace WebCore {
virtual TextStream& externalRepresentation(TextStream&) const;
virtual bool setup(GraphicsContext*&, const RenderObject*, SVGPaintTargetType, bool isPaintingText) const;
-#if PLATFORM(CG) || PLATFORM(QT)
virtual void teardown(GraphicsContext*&, const RenderObject*, SVGPaintTargetType, bool isPaintingText) const;
-#endif
private:
SVGPaintServerPattern(const SVGPatternElement*);
@@ -75,10 +75,7 @@ namespace WebCore {
TransformationMatrix m_patternTransform;
FloatRect m_patternBoundaries;
-#if PLATFORM(CG)
- mutable CGColorSpaceRef m_patternSpace;
- mutable CGPatternRef m_pattern;
-#endif
+ mutable RefPtr<Pattern> m_pattern;
};
} // namespace WebCore