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