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

Unified Diff: Source/core/svg/SVGPathSeg.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/SVGElementInstanceList.cpp ('k') | Source/core/svg/SVGPathSegArc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathSeg.h
diff --git a/Source/core/svg/SVGPathSeg.h b/Source/core/svg/SVGPathSeg.h
index 878f2c3281b7f68df224a626f18ea7cab5b3e14d..565bfa0e68209d1ffbdf3b34d0860c934a69daf2 100644
--- a/Source/core/svg/SVGPathSeg.h
+++ b/Source/core/svg/SVGPathSeg.h
@@ -21,8 +21,9 @@
#ifndef SVGPathSeg_h
#define SVGPathSeg_h
-#include <wtf/RefCounted.h>
-#include <wtf/text/WTFString.h>
+#include "bindings/v8/ScriptWrappable.h"
+#include "wtf/RefCounted.h"
+#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -55,9 +56,13 @@ enum SVGPathSegRole {
PathSegUndefinedRole = 2
};
-class SVGPathSeg : public RefCounted<SVGPathSeg> {
+class SVGPathSeg : public RefCounted<SVGPathSeg>, public ScriptWrappable {
public:
- SVGPathSeg() { }
+ SVGPathSeg()
+ {
+ ScriptWrappable::init(this);
+ }
+
virtual ~SVGPathSeg() { }
// Forward declare these enums in the w3c naming scheme, for IDL generation
« no previous file with comments | « Source/core/svg/SVGElementInstanceList.cpp ('k') | Source/core/svg/SVGPathSegArc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698