summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGPathParserFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGPathParserFactory.h')
-rw-r--r--WebCore/svg/SVGPathParserFactory.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/WebCore/svg/SVGPathParserFactory.h b/WebCore/svg/SVGPathParserFactory.h
index b8a2dd5..5ae5e8a 100644
--- a/WebCore/svg/SVGPathParserFactory.h
+++ b/WebCore/svg/SVGPathParserFactory.h
@@ -30,25 +30,29 @@
namespace WebCore {
+class SVGPathElement;
+
class SVGPathParserFactory {
public:
static SVGPathParserFactory* self();
+ // String/SVGPathByteStream -> Path
bool buildPathFromString(const String&, Path&);
bool buildPathFromByteStream(SVGPathByteStream*, Path&);
- bool buildPathFromSVGPathSegList(SVGPathSegList*, Path&);
- bool buildSVGPathSegListFromString(const String&, SVGPathSegList*, PathParsingMode);
- bool buildSVGPathSegListFromByteStream(SVGPathByteStream*, SVGPathSegList*, PathParsingMode);
+ // SVGPathSegList/String -> SVGPathByteStream
+ bool buildSVGPathByteStreamFromSVGPathSegList(const SVGPathSegList&, OwnPtr<SVGPathByteStream>&, PathParsingMode);
+ bool buildSVGPathByteStreamFromString(const String&, OwnPtr<SVGPathByteStream>&, PathParsingMode);
+ // SVGPathByteStream/SVGPathSegList -> String
bool buildStringFromByteStream(SVGPathByteStream*, String&, PathParsingMode);
- bool buildStringFromSVGPathSegList(SVGPathSegList*, String&, PathParsingMode);
+ bool buildStringFromSVGPathSegList(const SVGPathSegList&, String&, PathParsingMode);
- bool buildSVGPathByteStreamFromString(const String&, OwnPtr<SVGPathByteStream>&, PathParsingMode);
+ // SVGPathByteStream -> SVGPathSegList
+ bool buildSVGPathSegListFromByteStream(SVGPathByteStream*, SVGPathElement*, SVGPathSegList&, PathParsingMode);
bool buildAnimatedSVGPathByteStream(SVGPathByteStream*, SVGPathByteStream*, OwnPtr<SVGPathByteStream>&, float);
-
- bool getSVGPathSegAtLengthFromSVGPathSegList(SVGPathSegList*, float, unsigned long&);
+ bool getSVGPathSegAtLengthFromSVGPathByteStream(SVGPathByteStream*, float length, unsigned long& pathSeg);
private:
SVGPathParserFactory();