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