Index: Source/core/svg/SVGPathTraversalStateBuilder.h |
diff --git a/Source/core/svg/SVGPathTraversalStateBuilder.h b/Source/core/svg/SVGPathTraversalStateBuilder.h |
index 056777eb470899ba832a528aa6cb96a7ec2b571e..405b42a93ffdbd8419af8c7a03c46ef50dc3e5f9 100644 |
--- a/Source/core/svg/SVGPathTraversalStateBuilder.h |
+++ b/Source/core/svg/SVGPathTraversalStateBuilder.h |
@@ -26,6 +26,8 @@ |
namespace blink { |
+class FloatPoint; |
+ |
class SVGPathTraversalStateBuilder final : public SVGPathConsumer { |
public: |
SVGPathTraversalStateBuilder(PathTraversalState::PathTraversalAction, float desiredLength = 0); |
@@ -38,20 +40,7 @@ public: |
virtual bool continueConsuming() override; |
private: |
- // Used in UnalteredParsing/NormalizedParsing modes. |
- virtual void moveTo(const FloatPoint&, PathCoordinateMode) override; |
- virtual void lineTo(const FloatPoint&, PathCoordinateMode) override; |
- virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateMode) override; |
- virtual void closePath() override; |
- |
-private: |
- // Not used for PathTraversalState. |
- virtual void lineToHorizontal(float, PathCoordinateMode) override { ASSERT_NOT_REACHED(); } |
- virtual void lineToVertical(float, PathCoordinateMode) override { ASSERT_NOT_REACHED(); } |
- virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) override { ASSERT_NOT_REACHED(); } |
- virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) override { ASSERT_NOT_REACHED(); } |
- virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) override { ASSERT_NOT_REACHED(); } |
- virtual void arcTo(float, float, float, bool, bool, const FloatPoint&, PathCoordinateMode) override { ASSERT_NOT_REACHED(); } |
+ virtual void emitSegment(const PathSegmentData&) override; |
PathTraversalState m_traversalState; |
unsigned m_segmentIndex; |