summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGPathStringBuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPathStringBuilder.h')
-rw-r--r--Source/WebCore/svg/SVGPathStringBuilder.h41
1 files changed, 18 insertions, 23 deletions
diff --git a/Source/WebCore/svg/SVGPathStringBuilder.h b/Source/WebCore/svg/SVGPathStringBuilder.h
index 14e89b91f..df44f74be 100644
--- a/Source/WebCore/svg/SVGPathStringBuilder.h
+++ b/Source/WebCore/svg/SVGPathStringBuilder.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
+ * Copyright (C) 2015 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -17,10 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGPathStringBuilder_h
-#define SVGPathStringBuilder_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGPathConsumer.h"
#include <wtf/text/StringBuilder.h>
@@ -28,34 +27,30 @@ namespace WebCore {
class SVGPathStringBuilder final : public SVGPathConsumer {
public:
- SVGPathStringBuilder();
- ~SVGPathStringBuilder();
+ WEBCORE_EXPORT SVGPathStringBuilder();
+ WEBCORE_EXPORT virtual ~SVGPathStringBuilder();
- String result();
+ WEBCORE_EXPORT String result();
-private:
- virtual void cleanup() override;
- virtual void incrementPathSegmentCount() override;
- virtual bool continueConsuming() override;
+ void incrementPathSegmentCount() final;
+ bool continueConsuming() final;
// Used in UnalteredParsing/NormalizedParsing modes.
- virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) override;
- virtual void lineTo(const FloatPoint&, PathCoordinateMode) override;
- virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateMode) override;
- virtual void closePath() override;
+ WEBCORE_EXPORT void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) final;
+ WEBCORE_EXPORT void lineTo(const FloatPoint&, PathCoordinateMode) final;
+ WEBCORE_EXPORT void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateMode) final;
+ WEBCORE_EXPORT void closePath() final;
// Only used in UnalteredParsing mode.
- virtual void lineToHorizontal(float, PathCoordinateMode) override;
- virtual void lineToVertical(float, PathCoordinateMode) override;
- virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) override;
- virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) override;
- virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) override;
- virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, PathCoordinateMode) override;
+ void lineToHorizontal(float, PathCoordinateMode) final;
+ void lineToVertical(float, PathCoordinateMode) final;
+ void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) final;
+ WEBCORE_EXPORT void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) final;
+ void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) final;
+ void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, PathCoordinateMode) final;
+private:
StringBuilder m_stringBuilder;
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGPathStringBuilder_h