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

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

Issue 720113003: bindings: Makes SVGAnimatedProperty ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
Index: Source/core/svg/SVGAnimatedNumberList.h
diff --git a/Source/core/svg/SVGAnimatedNumberList.h b/Source/core/svg/SVGAnimatedNumberList.h
index ea1e2b1561e50bc7b0e73d15ad00910d000cdc3a..ef475fc81e7c246c99f9fefd6a83b8666632b049 100644
--- a/Source/core/svg/SVGAnimatedNumberList.h
+++ b/Source/core/svg/SVGAnimatedNumberList.h
@@ -36,7 +36,19 @@
namespace blink {
-typedef SVGAnimatedProperty<SVGNumberList> SVGAnimatedNumberList;
+// SVG Spec: http://www.w3.org/TR/SVG11/types.html#InterfaceSVGAnimatedNumberList
+class SVGAnimatedNumberList : public SVGAnimatedProperty<SVGNumberList> {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static PassRefPtr<SVGAnimatedNumberList> create(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtr<SVGNumberList> initialValue)
haraken 2014/11/13 07:46:38 PassRefPtrWillBeRawPtr
Yuki 2014/11/13 08:30:00 Done.
+ {
+ return adoptRef(new SVGAnimatedNumberList(contextElement, attributeName, initialValue));
haraken 2014/11/13 07:46:38 adoptRefWillBeNoop
Yuki 2014/11/13 08:30:00 Done.
+ }
+
+protected:
+ SVGAnimatedNumberList(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtr<SVGNumberList> initialValue)
haraken 2014/11/13 07:46:38 PassRefPtrWillBeRawPtr
Yuki 2014/11/13 08:30:00 Done.
+ : SVGAnimatedProperty<SVGNumberList>(contextElement, attributeName, initialValue) { }
+};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698