summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGPathSegListSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPathSegListSource.h')
-rw-r--r--Source/WebCore/svg/SVGPathSegListSource.h45
1 files changed, 20 insertions, 25 deletions
diff --git a/Source/WebCore/svg/SVGPathSegListSource.h b/Source/WebCore/svg/SVGPathSegListSource.h
index fa0996213..506e7c044 100644
--- a/Source/WebCore/svg/SVGPathSegListSource.h
+++ b/Source/WebCore/svg/SVGPathSegListSource.h
@@ -17,45 +17,40 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGPathSegListSource_h
-#define SVGPathSegListSource_h
+#pragma once
-#if ENABLE(SVG)
#include "FloatPoint.h"
#include "SVGPathSeg.h"
-#include "SVGPathSegList.h"
+#include "SVGPathSegListValues.h"
#include "SVGPathSource.h"
#include <wtf/RefPtr.h>
namespace WebCore {
-class SVGPathSegListSource : public SVGPathSource {
+class SVGPathSegListSource final : public SVGPathSource {
public:
- explicit SVGPathSegListSource(const SVGPathSegList&);
+ explicit SVGPathSegListSource(const SVGPathSegListValues&);
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;
-
- const SVGPathSegList& m_pathSegList;
+ bool hasMoreData() const final;
+ bool moveToNextToken() final { return true; }
+ bool parseSVGSegmentType(SVGPathSegType&) final;
+ SVGPathSegType nextCommand(SVGPathSegType) final;
+
+ bool parseMoveToSegment(FloatPoint&) final;
+ bool parseLineToSegment(FloatPoint&) final;
+ bool parseLineToHorizontalSegment(float&) final;
+ bool parseLineToVerticalSegment(float&) final;
+ bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&) final;
+ bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&) final;
+ bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&) final;
+ bool parseCurveToQuadraticSmoothSegment(FloatPoint&) final;
+ bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&) final;
+
+ const SVGPathSegListValues& m_pathSegList;
RefPtr<SVGPathSeg> m_segment;
int m_itemCurrent;
int m_itemEnd;
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGPathSegListSource_h