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

Unified Diff: Source/core/svg/SVGPathSegLineto.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/SVGPathSegCurvetoQuadraticSmooth.h ('k') | Source/core/svg/SVGPathSegLinetoHorizontal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathSegLineto.h
diff --git a/Source/core/svg/SVGPathSegLineto.h b/Source/core/svg/SVGPathSegLineto.h
index 4c8351d352e92e9e1af0596e49d2c45abecce479..c78526df8267a63e67d0fbd3904693945b304200 100644
--- a/Source/core/svg/SVGPathSegLineto.h
+++ b/Source/core/svg/SVGPathSegLineto.h
@@ -25,7 +25,7 @@
namespace WebCore {
-class SVGPathSegLinetoAbs : public SVGPathSegSingleCoordinate {
+class SVGPathSegLinetoAbs : public SVGPathSegSingleCoordinate {
public:
static PassRefPtr<SVGPathSegLinetoAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
{
@@ -36,13 +36,14 @@ private:
SVGPathSegLinetoAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y)
: SVGPathSegSingleCoordinate(element, role, x, y)
{
+ ScriptWrappable::init(this);
}
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_ABS; }
virtual String pathSegTypeAsLetter() const { return "L"; }
};
-class SVGPathSegLinetoRel : public SVGPathSegSingleCoordinate {
+class SVGPathSegLinetoRel : public SVGPathSegSingleCoordinate {
public:
static PassRefPtr<SVGPathSegLinetoRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
{
@@ -53,6 +54,7 @@ private:
SVGPathSegLinetoRel(SVGPathElement* element, SVGPathSegRole role, float x, float y)
: SVGPathSegSingleCoordinate(element, role, x, y)
{
+ ScriptWrappable::init(this);
}
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_REL; }
« no previous file with comments | « Source/core/svg/SVGPathSegCurvetoQuadraticSmooth.h ('k') | Source/core/svg/SVGPathSegLinetoHorizontal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698