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