summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGPathByteStreamSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPathByteStreamSource.h')
-rw-r--r--Source/WebCore/svg/SVGPathByteStreamSource.h39
1 files changed, 17 insertions, 22 deletions
diff --git a/Source/WebCore/svg/SVGPathByteStreamSource.h b/Source/WebCore/svg/SVGPathByteStreamSource.h
index 0d078f566..2e03c8cbf 100644
--- a/Source/WebCore/svg/SVGPathByteStreamSource.h
+++ b/Source/WebCore/svg/SVGPathByteStreamSource.h
@@ -17,35 +17,33 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGPathByteStreamSource_h
-#define SVGPathByteStreamSource_h
+#pragma once
-#if ENABLE(SVG)
#include "FloatPoint.h"
#include "SVGPathByteStream.h"
#include "SVGPathSource.h"
namespace WebCore {
-class SVGPathByteStreamSource : public SVGPathSource {
+class SVGPathByteStreamSource final : public SVGPathSource {
public:
- explicit SVGPathByteStreamSource(SVGPathByteStream*);
+ explicit SVGPathByteStreamSource(const SVGPathByteStream&);
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;
+ 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;
#if COMPILER(MSVC)
#pragma warning(disable: 4701)
@@ -92,6 +90,3 @@ private:
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGPathByteStreamSource_h