OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 10 matching lines...) Expand all Loading... |
21 #define SVGAnimatedTransformListPropertyTearOff_h | 21 #define SVGAnimatedTransformListPropertyTearOff_h |
22 | 22 |
23 #include "core/svg/SVGTransformList.h" | 23 #include "core/svg/SVGTransformList.h" |
24 #include "core/svg/properties/SVGAnimatedListPropertyTearOff.h" | 24 #include "core/svg/properties/SVGAnimatedListPropertyTearOff.h" |
25 #include "core/svg/properties/SVGTransformListPropertyTearOff.h" | 25 #include "core/svg/properties/SVGTransformListPropertyTearOff.h" |
26 | 26 |
27 namespace WebCore { | 27 namespace WebCore { |
28 | 28 |
29 class SVGAnimatedTransformListPropertyTearOff : public SVGAnimatedListPropertyTe
arOff<SVGTransformList> { | 29 class SVGAnimatedTransformListPropertyTearOff : public SVGAnimatedListPropertyTe
arOff<SVGTransformList> { |
30 public: | 30 public: |
31 virtual SVGListPropertyTearOff<SVGTransformList>* baseVal() | 31 virtual SVGListPropertyTearOff<SVGTransformList>* baseVal() OVERRIDE |
32 { | 32 { |
33 if (!m_baseVal) | 33 if (!m_baseVal) |
34 m_baseVal = SVGTransformListPropertyTearOff::create(this, BaseValRol
e, m_values, m_wrappers); | 34 m_baseVal = SVGTransformListPropertyTearOff::create(this, BaseValRol
e, m_values, m_wrappers); |
35 return static_cast<SVGListPropertyTearOff<SVGTransformList>*>(m_baseVal.
get()); | 35 return static_cast<SVGListPropertyTearOff<SVGTransformList>*>(m_baseVal.
get()); |
36 } | 36 } |
37 | 37 |
38 virtual SVGListPropertyTearOff<SVGTransformList>* animVal() | 38 virtual SVGListPropertyTearOff<SVGTransformList>* animVal() OVERRIDE |
39 { | 39 { |
40 if (!m_animVal) | 40 if (!m_animVal) |
41 m_animVal = SVGTransformListPropertyTearOff::create(this, AnimValRol
e, m_values, m_wrappers); | 41 m_animVal = SVGTransformListPropertyTearOff::create(this, AnimValRol
e, m_values, m_wrappers); |
42 return static_cast<SVGListPropertyTearOff<SVGTransformList>*>(m_animVal.
get()); | 42 return static_cast<SVGListPropertyTearOff<SVGTransformList>*>(m_animVal.
get()); |
43 } | 43 } |
44 | 44 |
45 static PassRefPtr<SVGAnimatedTransformListPropertyTearOff> create(SVGElement
* contextElement, const QualifiedName& attributeName, AnimatedPropertyType anima
tedPropertyType, SVGTransformList& values) | 45 static PassRefPtr<SVGAnimatedTransformListPropertyTearOff> create(SVGElement
* contextElement, const QualifiedName& attributeName, AnimatedPropertyType anima
tedPropertyType, SVGTransformList& values) |
46 { | 46 { |
47 ASSERT(contextElement); | 47 ASSERT(contextElement); |
48 return adoptRef(new SVGAnimatedTransformListPropertyTearOff(contextEleme
nt, attributeName, animatedPropertyType, values)); | 48 return adoptRef(new SVGAnimatedTransformListPropertyTearOff(contextEleme
nt, attributeName, animatedPropertyType, values)); |
49 } | 49 } |
50 | 50 |
51 private: | 51 private: |
52 SVGAnimatedTransformListPropertyTearOff(SVGElement* contextElement, const Qu
alifiedName& attributeName, AnimatedPropertyType animatedPropertyType, SVGTransf
ormList& values) | 52 SVGAnimatedTransformListPropertyTearOff(SVGElement* contextElement, const Qu
alifiedName& attributeName, AnimatedPropertyType animatedPropertyType, SVGTransf
ormList& values) |
53 : SVGAnimatedListPropertyTearOff<SVGTransformList>(contextElement, attri
buteName, animatedPropertyType, values) | 53 : SVGAnimatedListPropertyTearOff<SVGTransformList>(contextElement, attri
buteName, animatedPropertyType, values) |
54 { | 54 { |
55 } | 55 } |
56 }; | 56 }; |
57 | 57 |
58 } | 58 } |
59 | 59 |
60 #endif // SVGAnimatedTransformListPropertyTearOff_h | 60 #endif // SVGAnimatedTransformListPropertyTearOff_h |
OLD | NEW |