diff options
Diffstat (limited to 'Source/WebCore/svg/SVGPathSegCurvetoCubicAbs.h')
-rw-r--r-- | Source/WebCore/svg/SVGPathSegCurvetoCubicAbs.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/Source/WebCore/svg/SVGPathSegCurvetoCubicAbs.h b/Source/WebCore/svg/SVGPathSegCurvetoCubicAbs.h index a1de02b36..d4ff54c12 100644 --- a/Source/WebCore/svg/SVGPathSegCurvetoCubicAbs.h +++ b/Source/WebCore/svg/SVGPathSegCurvetoCubicAbs.h @@ -19,32 +19,27 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGPathSegCurvetoCubicAbs_h -#define SVGPathSegCurvetoCubicAbs_h +#pragma once -#if ENABLE(SVG) #include "SVGPathSegCurvetoCubic.h" namespace WebCore { -class SVGPathSegCurvetoCubicAbs : public SVGPathSegCurvetoCubic { +class SVGPathSegCurvetoCubicAbs final : public SVGPathSegCurvetoCubic { public: - static PassRefPtr<SVGPathSegCurvetoCubicAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2) + static Ref<SVGPathSegCurvetoCubicAbs> create(const SVGPathElement& element, SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2) { - return adoptRef(new SVGPathSegCurvetoCubicAbs(element, role, x, y, x1, y1, x2, y2)); + return adoptRef(*new SVGPathSegCurvetoCubicAbs(element, role, x, y, x1, y1, x2, y2)); } private: - SVGPathSegCurvetoCubicAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2) + SVGPathSegCurvetoCubicAbs(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_ABS; } - virtual String pathSegTypeAsLetter() const override { return "C"; } + unsigned short pathSegType() const final { return PATHSEG_CURVETO_CUBIC_ABS; } + String pathSegTypeAsLetter() const final { return "C"; } }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif |