summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGPathStringSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPathStringSource.h')
-rw-r--r--Source/WebCore/svg/SVGPathStringSource.h37
1 files changed, 16 insertions, 21 deletions
diff --git a/Source/WebCore/svg/SVGPathStringSource.h b/Source/WebCore/svg/SVGPathStringSource.h
index 9c2499d7c..e14b159e1 100644
--- a/Source/WebCore/svg/SVGPathStringSource.h
+++ b/Source/WebCore/svg/SVGPathStringSource.h
@@ -18,34 +18,32 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGPathStringSource_h
-#define SVGPathStringSource_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGPathSource.h"
#include <wtf/text/WTFString.h>
namespace WebCore {
-class SVGPathStringSource : public SVGPathSource {
+class SVGPathStringSource final : public SVGPathSource {
public:
explicit SVGPathStringSource(const String&);
private:
- virtual bool hasMoreData() const override;
- virtual bool moveToNextToken() override;
- virtual bool parseSVGSegmentType(SVGPathSegType&) override;
- virtual SVGPathSegType nextCommand(SVGPathSegType previousCommand) 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;
+ bool parseSVGSegmentType(SVGPathSegType&) final;
+ SVGPathSegType nextCommand(SVGPathSegType previousCommand) 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;
String m_string;
bool m_is8BitSource;
@@ -61,6 +59,3 @@ private:
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGPathStringSource_h