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

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

Issue 720113003: bindings: Makes SVGAnimatedProperty ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed review comments. 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
« no previous file with comments | « Source/core/svg/SVGAnimatedNumber.idl ('k') | Source/core/svg/SVGAnimatedNumberList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimatedNumberList.h
diff --git a/Source/core/svg/SVGAnimatedNumberList.h b/Source/core/svg/SVGAnimatedNumberList.h
index ea1e2b1561e50bc7b0e73d15ad00910d000cdc3a..da9a364420218c1bc4b8dbe2e0397256828df9f1 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 final : public SVGAnimatedProperty<SVGNumberList> {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static PassRefPtrWillBeRawPtr<SVGAnimatedNumberList> create(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGNumberList> initialValue)
+ {
+ return adoptRefWillBeNoop(new SVGAnimatedNumberList(contextElement, attributeName, initialValue));
+ }
+
+protected:
+ SVGAnimatedNumberList(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGNumberList> initialValue)
+ : SVGAnimatedProperty<SVGNumberList>(contextElement, attributeName, initialValue) { }
+};
} // namespace blink
« no previous file with comments | « Source/core/svg/SVGAnimatedNumber.idl ('k') | Source/core/svg/SVGAnimatedNumberList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698