| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef SVGAnimatedTransformList_h | 31 #ifndef SVGAnimatedTransformList_h |
| 32 #define SVGAnimatedTransformList_h | 32 #define SVGAnimatedTransformList_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
| 35 #include "core/svg/SVGTransformListTearOff.h" | 35 #include "core/svg/SVGTransformListTearOff.h" |
| 36 #include "core/svg/properties/SVGAnimatedProperty.h" | 36 #include "core/svg/properties/SVGAnimatedProperty.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 // SVG Spec: http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGAnimatedTransfor
mList | 40 // SVG Spec: |
| 41 // http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGAnimatedTransformList |
| 41 class SVGAnimatedTransformList final | 42 class SVGAnimatedTransformList final |
| 42 : public SVGAnimatedProperty<SVGTransformList>, | 43 : public SVGAnimatedProperty<SVGTransformList>, |
| 43 public ScriptWrappable { | 44 public ScriptWrappable { |
| 44 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
| 45 | 46 |
| 46 public: | 47 public: |
| 47 static SVGAnimatedTransformList* create(SVGElement* contextElement, | 48 static SVGAnimatedTransformList* create(SVGElement* contextElement, |
| 48 const QualifiedName& attributeName, | 49 const QualifiedName& attributeName, |
| 49 SVGTransformList* initialValue) { | 50 SVGTransformList* initialValue) { |
| 50 return new SVGAnimatedTransformList(contextElement, attributeName, | 51 return new SVGAnimatedTransformList(contextElement, attributeName, |
| 51 initialValue); | 52 initialValue); |
| 52 } | 53 } |
| 53 | 54 |
| 54 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() { | 55 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() { |
| 55 visitor->traceWrappers(contextElement()); | 56 visitor->traceWrappers(contextElement()); |
| 56 } | 57 } |
| 57 | 58 |
| 58 protected: | 59 protected: |
| 59 SVGAnimatedTransformList(SVGElement* contextElement, | 60 SVGAnimatedTransformList(SVGElement* contextElement, |
| 60 const QualifiedName& attributeName, | 61 const QualifiedName& attributeName, |
| 61 SVGTransformList* initialValue) | 62 SVGTransformList* initialValue) |
| 62 : SVGAnimatedProperty<SVGTransformList>(contextElement, | 63 : SVGAnimatedProperty<SVGTransformList>(contextElement, |
| 63 attributeName, | 64 attributeName, |
| 64 initialValue) {} | 65 initialValue) {} |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace blink | 68 } // namespace blink |
| 68 | 69 |
| 69 #endif | 70 #endif |
| OLD | NEW |