diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/svg/SVGParserUtilities.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/svg/SVGParserUtilities.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/chromium/third_party/WebKit/Source/core/svg/SVGParserUtilities.h b/chromium/third_party/WebKit/Source/core/svg/SVGParserUtilities.h index 656e8b71e41..2946cf15cb7 100644 --- a/chromium/third_party/WebKit/Source/core/svg/SVGParserUtilities.h +++ b/chromium/third_party/WebKit/Source/core/svg/SVGParserUtilities.h @@ -22,7 +22,8 @@ #ifndef SVGParserUtilities_h #define SVGParserUtilities_h -#include "core/platform/text/ParserUtilities.h" +#include "core/svg/SVGTransform.h" +#include "platform/text/ParserUtilities.h" #include "wtf/HashSet.h" typedef pair<unsigned, unsigned> UnicodeRange; @@ -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 |