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

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

Issue 1023993002: Rework the SVGPathSource interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blender fixups. 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/SVGPathSeg.h ('k') | Source/core/svg/SVGPathSegListSource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathSegListSource.h
diff --git a/Source/core/svg/SVGPathSegListSource.h b/Source/core/svg/SVGPathSegListSource.h
index adef56c5a34d746bd50b645ba36f573b469a915f..7bbb41a2f52ea9593bc215561e6457cafab7f1e7 100644
--- a/Source/core/svg/SVGPathSegListSource.h
+++ b/Source/core/svg/SVGPathSegListSource.h
@@ -23,10 +23,6 @@
#include "core/svg/SVGPathSeg.h"
#include "core/svg/SVGPathSegList.h"
#include "core/svg/SVGPathSource.h"
-#include "platform/geometry/FloatPoint.h"
-#include "platform/heap/Handle.h"
-#include "wtf/PassOwnPtr.h"
-#include "wtf/RefPtr.h"
namespace blink {
@@ -34,25 +30,11 @@ class SVGPathSegListSource final : public SVGPathSource {
public:
SVGPathSegListSource(SVGPathSegList::ConstIterator, SVGPathSegList::ConstIterator);
- DECLARE_VIRTUAL_TRACE();
-
private:
virtual bool hasMoreData() const override;
- virtual bool moveToNextToken() override { return true; }
- virtual bool parseSVGSegmentType(SVGPathSegType&) override;
- virtual SVGPathSegType nextCommand(SVGPathSegType) override;
-
- virtual bool parseMoveToSegment(FloatPoint&) override;
- virtual bool parseLineToSegment(FloatPoint&) override;
- virtual bool parseLineToHorizontalSegment(float&) override;
- virtual bool parseLineToVerticalSegment(float&) override;
- virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&) override;
- virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&) override;
- virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&) override;
- virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&) override;
- virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&) override;
-
- RefPtrWillBeMember<SVGPathSeg> m_segment;
+ virtual SVGPathSegType peekSegmentType() override;
+ virtual PathSegmentData parseSegment() override;
+
SVGPathSegList::ConstIterator m_itCurrent;
SVGPathSegList::ConstIterator m_itEnd;
};
« no previous file with comments | « Source/core/svg/SVGPathSeg.h ('k') | Source/core/svg/SVGPathSegListSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698