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

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

Powered by Google App Engine
This is Rietveld 408576698