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