summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/svg/SVGPathByteStream.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPathByteStream.h')
-rw-r--r--Source/WebCore/svg/SVGPathByteStream.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/svg/SVGPathByteStream.h b/Source/WebCore/svg/SVGPathByteStream.h
index a444ac0..af283f7 100644
--- a/Source/WebCore/svg/SVGPathByteStream.h
+++ b/Source/WebCore/svg/SVGPathByteStream.h
@@ -51,6 +51,11 @@ public:
return adoptPtr(new SVGPathByteStream);
}
+ PassOwnPtr<SVGPathByteStream> copy()
+ {
+ return adoptPtr(new SVGPathByteStream(m_data));
+ }
+
typedef Vector<unsigned char> Data;
typedef Data::const_iterator DataIterator;
@@ -62,6 +67,11 @@ public:
private:
SVGPathByteStream() { }
+ SVGPathByteStream(Data& data)
+ : m_data(data)
+ {
+ }
+
Data m_data;
};