OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2011, 2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011, 2012. 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 case AnimatedBoolean: | 56 case AnimatedBoolean: |
57 return adoptPtr(new SVGAnimatedBooleanAnimator(animationElement, con
textElement)); | 57 return adoptPtr(new SVGAnimatedBooleanAnimator(animationElement, con
textElement)); |
58 case AnimatedColor: | 58 case AnimatedColor: |
59 return adoptPtr(new SVGAnimatedColorAnimator(animationElement, conte
xtElement)); | 59 return adoptPtr(new SVGAnimatedColorAnimator(animationElement, conte
xtElement)); |
60 case AnimatedEnumeration: | 60 case AnimatedEnumeration: |
61 return adoptPtr(new SVGAnimatedEnumerationAnimator(animationElement,
contextElement)); | 61 return adoptPtr(new SVGAnimatedEnumerationAnimator(animationElement,
contextElement)); |
62 case AnimatedInteger: | 62 case AnimatedInteger: |
63 return adoptPtr(new SVGAnimatedIntegerAnimator(animationElement, con
textElement)); | 63 return adoptPtr(new SVGAnimatedIntegerAnimator(animationElement, con
textElement)); |
64 case AnimatedIntegerOptionalInteger: | 64 case AnimatedIntegerOptionalInteger: |
65 return adoptPtr(new SVGAnimatedIntegerOptionalIntegerAnimator(animat
ionElement, contextElement)); | 65 return adoptPtr(new SVGAnimatedIntegerOptionalIntegerAnimator(animat
ionElement, contextElement)); |
66 case AnimatedLength: | |
67 return adoptPtr(new SVGAnimatedLengthAnimator(animationElement, cont
extElement)); | |
68 case AnimatedLengthList: | |
69 return adoptPtr(new SVGAnimatedLengthListAnimator(animationElement,
contextElement)); | |
70 case AnimatedNumber: | 66 case AnimatedNumber: |
71 return adoptPtr(new SVGAnimatedNumberAnimator(animationElement, cont
extElement)); | 67 return adoptPtr(new SVGAnimatedNumberAnimator(animationElement, cont
extElement)); |
72 case AnimatedNumberList: | 68 case AnimatedNumberList: |
73 return adoptPtr(new SVGAnimatedNumberListAnimator(animationElement,
contextElement)); | 69 return adoptPtr(new SVGAnimatedNumberListAnimator(animationElement,
contextElement)); |
74 case AnimatedNumberOptionalNumber: | 70 case AnimatedNumberOptionalNumber: |
75 return adoptPtr(new SVGAnimatedNumberOptionalNumberAnimator(animatio
nElement, contextElement)); | 71 return adoptPtr(new SVGAnimatedNumberOptionalNumberAnimator(animatio
nElement, contextElement)); |
76 case AnimatedPath: | 72 case AnimatedPath: |
77 return adoptPtr(new SVGAnimatedPathAnimator(animationElement, contex
tElement)); | 73 return adoptPtr(new SVGAnimatedPathAnimator(animationElement, contex
tElement)); |
78 case AnimatedPoints: | 74 case AnimatedPoints: |
79 return adoptPtr(new SVGAnimatedPointListAnimator(animationElement, c
ontextElement)); | 75 return adoptPtr(new SVGAnimatedPointListAnimator(animationElement, c
ontextElement)); |
80 case AnimatedPreserveAspectRatio: | 76 case AnimatedPreserveAspectRatio: |
81 return adoptPtr(new SVGAnimatedPreserveAspectRatioAnimator(animation
Element, contextElement)); | 77 return adoptPtr(new SVGAnimatedPreserveAspectRatioAnimator(animation
Element, contextElement)); |
82 case AnimatedRect: | 78 case AnimatedRect: |
83 return adoptPtr(new SVGAnimatedRectAnimator(animationElement, contex
tElement)); | 79 return adoptPtr(new SVGAnimatedRectAnimator(animationElement, contex
tElement)); |
84 case AnimatedString: | 80 case AnimatedString: |
85 return adoptPtr(new SVGAnimatedStringAnimator(animationElement, cont
extElement)); | 81 return adoptPtr(new SVGAnimatedStringAnimator(animationElement, cont
extElement)); |
86 case AnimatedTransformList: | 82 case AnimatedTransformList: |
87 return adoptPtr(new SVGAnimatedTransformListAnimator(animationElemen
t, contextElement)); | 83 return adoptPtr(new SVGAnimatedTransformListAnimator(animationElemen
t, contextElement)); |
| 84 // Below properties have migrated to new property implementation. |
| 85 case AnimatedLength: |
| 86 case AnimatedLengthList: |
| 87 return adoptPtr(new SVGAnimatedNewPropertyAnimator(attributeType, an
imationElement, contextElement)); |
88 case AnimatedUnknown: | 88 case AnimatedUnknown: |
89 break; | 89 break; |
90 } | 90 } |
91 | 91 |
92 ASSERT_NOT_REACHED(); | 92 ASSERT_NOT_REACHED(); |
93 return nullptr; | 93 return nullptr; |
94 } | 94 } |
95 | 95 |
96 private: | 96 private: |
97 SVGAnimatorFactory() { } | 97 SVGAnimatorFactory() { } |
98 | 98 |
99 }; | 99 }; |
100 | 100 |
101 } // namespace WebCore | 101 } // namespace WebCore |
102 | 102 |
103 #endif // SVGAnimatorFactory_h | 103 #endif // SVGAnimatorFactory_h |
OLD | NEW |