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