Index: Source/core/svg/SVGPathParser.h |
diff --git a/Source/core/svg/SVGPathParser.h b/Source/core/svg/SVGPathParser.h |
index eb809f5279de0b5e08a77bdfaf804050eb20e10f..c62684e8a9c80f6e536ae6aed4a69ca525d526be 100644 |
--- a/Source/core/svg/SVGPathParser.h |
+++ b/Source/core/svg/SVGPathParser.h |
@@ -43,12 +43,23 @@ public: |
ASSERT(m_consumer); |
} |
- bool parsePathDataFromSource(PathParsingMode, bool checkForInitialMoveTo = true); |
+ bool parsePathDataFromSource(PathParsingMode pathParsingMode, bool checkForInitialMoveTo = true) |
+ { |
+ ASSERT(m_source); |
+ ASSERT(m_consumer); |
+ if (checkForInitialMoveTo && !initialCommandIsMoveTo()) |
+ return false; |
+ if (pathParsingMode == NormalizedParsing) |
+ return parseAndNormalizePath(); |
+ return parsePath(); |
+ } |
DECLARE_TRACE(); |
private: |
bool initialCommandIsMoveTo(); |
+ bool parsePath(); |
+ bool parseAndNormalizePath(); |
RawPtrWillBeMember<SVGPathSource> m_source; |
RawPtrWillBeMember<SVGPathConsumer> m_consumer; |