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