summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.h')
-rw-r--r--Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.h b/Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.h
index 9bcb2e5e7..98dd74c34 100644
--- a/Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.h
+++ b/Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.h
@@ -19,32 +19,27 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGPathSegCurvetoCubicSmoothAbs_h
-#define SVGPathSegCurvetoCubicSmoothAbs_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGPathSegCurvetoCubicSmooth.h"
namespace WebCore {
-class SVGPathSegCurvetoCubicSmoothAbs : public SVGPathSegCurvetoCubicSmooth {
+class SVGPathSegCurvetoCubicSmoothAbs final : public SVGPathSegCurvetoCubicSmooth {
public:
- static PassRefPtr<SVGPathSegCurvetoCubicSmoothAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x2, float y2)
+ static Ref<SVGPathSegCurvetoCubicSmoothAbs> create(const SVGPathElement& element, SVGPathSegRole role, float x, float y, float x2, float y2)
{
- return adoptRef(new SVGPathSegCurvetoCubicSmoothAbs(element, role, x, y, x2, y2));
+ return adoptRef(*new SVGPathSegCurvetoCubicSmoothAbs(element, role, x, y, x2, y2));
}
private:
- SVGPathSegCurvetoCubicSmoothAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x2, float y2)
+ SVGPathSegCurvetoCubicSmoothAbs(const SVGPathElement& element, SVGPathSegRole role, float x, float y, float x2, float y2)
: SVGPathSegCurvetoCubicSmooth(element, role, x, y, x2, y2)
{
}
- virtual unsigned short pathSegType() const override { return PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; }
- virtual String pathSegTypeAsLetter() const override { return "S"; }
+ unsigned short pathSegType() const final { return PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; }
+ String pathSegTypeAsLetter() const final { return "S"; }
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif