Index: Source/core/svg/SVGPathTraversalStateBuilder.h |
diff --git a/Source/core/svg/SVGPathTraversalStateBuilder.h b/Source/core/svg/SVGPathTraversalStateBuilder.h |
index 2af6751474e976217c4cacea5deaf94f69e66fe1..056777eb470899ba832a528aa6cb96a7ec2b571e 100644 |
--- a/Source/core/svg/SVGPathTraversalStateBuilder.h |
+++ b/Source/core/svg/SVGPathTraversalStateBuilder.h |
@@ -22,17 +22,15 @@ |
#define SVGPathTraversalStateBuilder_h |
#include "core/svg/SVGPathConsumer.h" |
-#include "core/svg/SVGPoint.h" |
+#include "platform/graphics/PathTraversalState.h" |
namespace blink { |
-class PathTraversalState; |
- |
class SVGPathTraversalStateBuilder final : public SVGPathConsumer { |
public: |
- SVGPathTraversalStateBuilder(PathTraversalState&, float desiredLength = 0); |
+ SVGPathTraversalStateBuilder(PathTraversalState::PathTraversalAction, float desiredLength = 0); |
- unsigned pathSegmentIndex(); |
+ unsigned pathSegmentIndex() const { return m_segmentIndex; } |
float totalLength(); |
FloatPoint currentPoint(); |
@@ -55,7 +53,8 @@ private: |
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(); } |
- PathTraversalState& m_traversalState; |
+ PathTraversalState m_traversalState; |
+ unsigned m_segmentIndex; |
}; |
} // namespace blink |