Index: Source/core/svg/SVGParserUtilities.h |
diff --git a/Source/core/svg/SVGParserUtilities.h b/Source/core/svg/SVGParserUtilities.h |
index 74cbb83bfaf395816ae6cef2216ffb60442ca802..2946cf15cb799bb51e98c20ef4e02cd3b39b5649 100644 |
--- a/Source/core/svg/SVGParserUtilities.h |
+++ b/Source/core/svg/SVGParserUtilities.h |
@@ -22,6 +22,7 @@ |
#ifndef SVGParserUtilities_h |
#define SVGParserUtilities_h |
+#include "core/svg/SVGTransform.h" |
#include "platform/text/ParserUtilities.h" |
#include "wtf/HashSet.h" |
@@ -33,6 +34,7 @@ namespace WebCore { |
class FloatPoint; |
class FloatRect; |
class SVGPointList; |
+class SVGTransformList; |
template <typename CharType> |
bool parseSVGNumber(CharType* ptr, size_t length, double& number); |
@@ -86,6 +88,19 @@ Vector<String> parseDelimitedString(const String& input, const char seperator); |
bool parseKerningUnicodeString(const String& input, UnicodeRanges&, HashSet<String>& stringList); |
bool parseGlyphName(const String& input, HashSet<String>& values); |
+enum TransformParsingMode { |
+ ClearList, |
+ DoNotClearList |
+}; |
+ |
+bool parseTransformAttribute(SVGTransformList&, const LChar*& ptr, const LChar* end, TransformParsingMode = ClearList); |
+bool parseTransformAttribute(SVGTransformList&, const UChar*& ptr, const UChar* end, TransformParsingMode = ClearList); |
+ |
+bool parseTransformValue(unsigned type, const LChar*& ptr, const LChar* end, SVGTransform&); |
+bool parseTransformValue(unsigned type, const UChar*& ptr, const UChar* end, SVGTransform&); |
+ |
+SVGTransform::SVGTransformType parseTransformType(const String&); |
+ |
} // namespace WebCore |
#endif // SVGParserUtilities_h |