Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1439)

Unified Diff: Source/core/svg/SVGPathSegMoveto.h

Issue 15492007: Make SVG objects ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix indent Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGPathSegLinetoVertical.h ('k') | Source/core/svg/SVGViewSpec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathSegMoveto.h
diff --git a/Source/core/svg/SVGPathSegMoveto.h b/Source/core/svg/SVGPathSegMoveto.h
index 287f9468a5899443fece47e8afb4f7efc38a08ac..afa0cb189e3a432a07106d48cc6a4fc8eae0a27b 100644
--- a/Source/core/svg/SVGPathSegMoveto.h
+++ b/Source/core/svg/SVGPathSegMoveto.h
@@ -25,7 +25,7 @@
namespace WebCore {
-class SVGPathSegMovetoAbs : public SVGPathSegSingleCoordinate {
+class SVGPathSegMovetoAbs : public SVGPathSegSingleCoordinate {
public:
static PassRefPtr<SVGPathSegMovetoAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
{
@@ -36,13 +36,14 @@ private:
SVGPathSegMovetoAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y)
: SVGPathSegSingleCoordinate(element, role, x, y)
{
+ ScriptWrappable::init(this);
}
virtual unsigned short pathSegType() const { return PATHSEG_MOVETO_ABS; }
virtual String pathSegTypeAsLetter() const { return "M"; }
};
-class SVGPathSegMovetoRel : public SVGPathSegSingleCoordinate {
+class SVGPathSegMovetoRel : public SVGPathSegSingleCoordinate {
public:
static PassRefPtr<SVGPathSegMovetoRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
{
@@ -53,6 +54,7 @@ private:
SVGPathSegMovetoRel(SVGPathElement* element, SVGPathSegRole role, float x, float y)
: SVGPathSegSingleCoordinate(element, role, x, y)
{
+ ScriptWrappable::init(this);
}
virtual unsigned short pathSegType() const { return PATHSEG_MOVETO_REL; }
« no previous file with comments | « Source/core/svg/SVGPathSegLinetoVertical.h ('k') | Source/core/svg/SVGViewSpec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698