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

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

Issue 1037463002: Rework the SVGPathConsumer interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase; FIXME -> TODO. 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 | « Source/core/svg/SVGPathStringBuilder.cpp ('k') | 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 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;
« no previous file with comments | « Source/core/svg/SVGPathStringBuilder.cpp ('k') | Source/core/svg/SVGPathTraversalStateBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698