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

Unified Diff: Source/core/svg/SVGAnimatedLengthList.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/SVGAnimatedLength.idl ('k') | Source/core/svg/SVGAnimatedLengthList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimatedLengthList.h
diff --git a/Source/core/svg/SVGAnimatedLengthList.h b/Source/core/svg/SVGAnimatedLengthList.h
index 9ac0eb565941e2a90efc30468c700c109953910f..e269ef380d1dfd69d7bffc4caca4277daae49b0c 100644
--- a/Source/core/svg/SVGAnimatedLengthList.h
+++ b/Source/core/svg/SVGAnimatedLengthList.h
@@ -36,7 +36,19 @@
namespace blink {
-typedef SVGAnimatedProperty<SVGLengthList> SVGAnimatedLengthList;
+// SVG Spec: http://www.w3.org/TR/SVG11/types.html#InterfaceSVGAnimatedLengthList
+class SVGAnimatedLengthList final : public SVGAnimatedProperty<SVGLengthList> {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static PassRefPtrWillBeRawPtr<SVGAnimatedLengthList> create(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGLengthList> initialValue)
+ {
+ return adoptRefWillBeNoop(new SVGAnimatedLengthList(contextElement, attributeName, initialValue));
+ }
+
+protected:
+ SVGAnimatedLengthList(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGLengthList> initialValue)
+ : SVGAnimatedProperty<SVGLengthList>(contextElement, attributeName, initialValue) { }
+};
} // namespace blink
« no previous file with comments | « Source/core/svg/SVGAnimatedLength.idl ('k') | Source/core/svg/SVGAnimatedLengthList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698