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