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 26 matching lines...) Expand all Loading... |
37 class SVGAnimatorFactory { | 37 class SVGAnimatorFactory { |
38 public: | 38 public: |
39 static PassOwnPtr<SVGAnimatedTypeAnimator> create(SVGAnimationElement* anima
tionElement, SVGElement* contextElement, AnimatedPropertyType attributeType) | 39 static PassOwnPtr<SVGAnimatedTypeAnimator> create(SVGAnimationElement* anima
tionElement, SVGElement* contextElement, AnimatedPropertyType attributeType) |
40 { | 40 { |
41 ASSERT(animationElement); | 41 ASSERT(animationElement); |
42 ASSERT(contextElement); | 42 ASSERT(contextElement); |
43 | 43 |
44 switch (attributeType) { | 44 switch (attributeType) { |
45 case AnimatedPath: | 45 case AnimatedPath: |
46 return adoptPtr(new SVGAnimatedPathAnimator(animationElement, contex
tElement)); | 46 return adoptPtr(new SVGAnimatedPathAnimator(animationElement, contex
tElement)); |
47 case AnimatedTransformList: | |
48 return adoptPtr(new SVGAnimatedTransformListAnimator(animationElemen
t, contextElement)); | |
49 // Below properties have migrated to new property implementation. | 47 // Below properties have migrated to new property implementation. |
50 case AnimatedAngle: | 48 case AnimatedAngle: |
51 case AnimatedEnumeration: | 49 case AnimatedEnumeration: |
52 case AnimatedBoolean: | 50 case AnimatedBoolean: |
53 case AnimatedColor: | 51 case AnimatedColor: |
54 case AnimatedInteger: | 52 case AnimatedInteger: |
55 case AnimatedIntegerOptionalInteger: | 53 case AnimatedIntegerOptionalInteger: |
56 case AnimatedNumber: | 54 case AnimatedNumber: |
57 case AnimatedNumberList: | 55 case AnimatedNumberList: |
58 case AnimatedNumberOptionalNumber: | 56 case AnimatedNumberOptionalNumber: |
59 case AnimatedLength: | 57 case AnimatedLength: |
60 case AnimatedLengthList: | 58 case AnimatedLengthList: |
61 case AnimatedPoints: | 59 case AnimatedPoints: |
62 case AnimatedPreserveAspectRatio: | 60 case AnimatedPreserveAspectRatio: |
63 case AnimatedRect: | 61 case AnimatedRect: |
64 case AnimatedString: | 62 case AnimatedString: |
| 63 case AnimatedTransformList: |
65 return adoptPtr(new SVGAnimatedNewPropertyAnimator(attributeType, an
imationElement, contextElement)); | 64 return adoptPtr(new SVGAnimatedNewPropertyAnimator(attributeType, an
imationElement, contextElement)); |
66 | 65 |
67 // SVGAnimatedPoint/SVGAnimatedStringList does not exist. | 66 // SVGAnimated{Point,StringList,Transform} does not exist. |
68 case AnimatedPoint: | 67 case AnimatedPoint: |
69 case AnimatedStringList: | 68 case AnimatedStringList: |
| 69 case AnimatedTransform: |
70 ASSERT_NOT_REACHED(); | 70 ASSERT_NOT_REACHED(); |
71 | 71 |
72 case AnimatedUnknown: | 72 case AnimatedUnknown: |
73 break; | 73 break; |
74 } | 74 } |
75 | 75 |
76 ASSERT_NOT_REACHED(); | 76 ASSERT_NOT_REACHED(); |
77 return nullptr; | 77 return nullptr; |
78 } | 78 } |
79 | 79 |
80 private: | 80 private: |
81 SVGAnimatorFactory() { } | 81 SVGAnimatorFactory() { } |
82 | 82 |
83 }; | 83 }; |
84 | 84 |
85 } // namespace WebCore | 85 } // namespace WebCore |
86 | 86 |
87 #endif // SVGAnimatorFactory_h | 87 #endif // SVGAnimatorFactory_h |
OLD | NEW |