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