#include "core/svg/SVGPathSegWithContext.h"
-namespace WebCore {
+namespace blink {
-class SVGPathSegMovetoRel : public SVGPathSegSingleCoordinate {
+class SVGPathSegMovetoRel final : public SVGPathSegSingleCoordinate {
+ DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtr<SVGPathSegMovetoRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+ static PassRefPtr<SVGPathSegMovetoRel> create(SVGPathElement* element, float x, float y)
{
- return adoptRef(new SVGPathSegMovetoRel(element, role, x, y));
+ return adoptRef(new SVGPathSegMovetoRel(element, x, y));
}
private:
- SVGPathSegMovetoRel(SVGPathElement* element, SVGPathSegRole role, float x, float y)
- : SVGPathSegSingleCoordinate(element, role, x, y)
- {
- ScriptWrappable::init(this);
- }
+ SVGPathSegMovetoRel(SVGPathElement* element, float x, float y)
+ : SVGPathSegSingleCoordinate(element, x, y) { }
- virtual unsigned short pathSegType() const { return PATHSEG_MOVETO_REL; }
- virtual String pathSegTypeAsLetter() const { return "m"; }
+ virtual unsigned short pathSegType() const override { return PATHSEG_MOVETO_REL; }
+ virtual String pathSegTypeAsLetter() const override { return "m"; }
};
-} // namespace WebCore
+} // namespace blink
-#endif
+#endif // SVGPathSegMovetoRel_h