OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // SVG Spec: | 40 // SVG Spec: |
41 // http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGAnimatedTransformList | 41 // http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGAnimatedTransformList |
42 class SVGAnimatedTransformList final | 42 class SVGAnimatedTransformList final |
43 : public SVGAnimatedProperty<SVGTransformList>, | 43 : public SVGAnimatedProperty<SVGTransformList>, |
44 public ScriptWrappable { | 44 public ScriptWrappable { |
45 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
46 | 46 |
47 public: | 47 public: |
48 static SVGAnimatedTransformList* create(SVGElement* contextElement, | 48 static SVGAnimatedTransformList* create(SVGElement* contextElement, |
49 const QualifiedName& attributeName, | 49 const QualifiedName& attributeName) { |
50 SVGTransformList* initialValue) { | 50 return new SVGAnimatedTransformList(contextElement, attributeName); |
51 return new SVGAnimatedTransformList(contextElement, attributeName, | |
52 initialValue); | |
53 } | 51 } |
54 | 52 |
55 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() { | 53 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() { |
56 visitor->traceWrappers(contextElement()); | 54 visitor->traceWrappers(contextElement()); |
57 } | 55 } |
58 | 56 |
59 protected: | 57 protected: |
60 SVGAnimatedTransformList(SVGElement* contextElement, | 58 SVGAnimatedTransformList(SVGElement* contextElement, |
61 const QualifiedName& attributeName, | 59 const QualifiedName& attributeName) |
62 SVGTransformList* initialValue) | |
63 : SVGAnimatedProperty<SVGTransformList>(contextElement, | 60 : SVGAnimatedProperty<SVGTransformList>(contextElement, |
64 attributeName, | 61 attributeName, |
65 initialValue) {} | 62 SVGTransformList::create()) {} |
66 }; | 63 }; |
67 | 64 |
68 } // namespace blink | 65 } // namespace blink |
69 | 66 |
70 #endif | 67 #endif |
OLD | NEW |