Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(923)

Unified Diff: Source/core/svg/SVGPathTraversalStateBuilder.h

Issue 1015833004: Move PathTraversalState::m_segmentIndex to SVGPathTraversalStateBuilder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move ownership of PathTraversalState Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/svg/SVGPathTraversalStateBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | Source/core/svg/SVGPathTraversalStateBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698