Index: third_party/WebKit/Source/core/svg/SVGPathParser.h |
diff --git a/third_party/WebKit/Source/core/svg/SVGPathParser.h b/third_party/WebKit/Source/core/svg/SVGPathParser.h |
index 61c9e0ca86b1962524052d6c436bc3dcf21fada1..f5f78d24135ae410a7adecab2d0caae074ed915b 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGPathParser.h |
+++ b/third_party/WebKit/Source/core/svg/SVGPathParser.h |
@@ -70,6 +70,28 @@ private: |
SVGPathConsumer* m_consumer; |
}; |
+class SVGPathNormalizer { |
+ STACK_ALLOCATED(); |
+public: |
+ SVGPathNormalizer(SVGPathConsumer* consumer) |
+ : m_consumer(consumer) |
+ , m_lastCommand(PathSegUnknown) |
+ { |
+ ASSERT(m_consumer); |
+ } |
+ |
+ void emitSegment(const PathSegmentData&); |
+ |
+private: |
+ bool decomposeArcToCubic(const FloatPoint& currentPoint, const PathSegmentData&); |
+ |
+ SVGPathConsumer* m_consumer; |
+ FloatPoint m_controlPoint; |
+ FloatPoint m_currentPoint; |
+ FloatPoint m_subPathPoint; |
+ SVGPathSegType m_lastCommand; |
+}; |
+ |
} // namespace blink |
#endif // SVGPathParser_h |