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