Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: Source/core/svg/SVGAnimatorFactory.h

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 are migrated to new property implementation.
85 case AnimatedLength:
86 case AnimatedLengthList:
88 case AnimatedNewProperty: 87 case AnimatedNewProperty:
89 return adoptPtr(new SVGAnimatedNewPropertyAnimator(animationElement, contextElement)); 88 return adoptPtr(new SVGAnimatedNewPropertyAnimator(animationElement, contextElement, attributeType));
90 case AnimatedUnknown: 89 case AnimatedUnknown:
91 break; 90 break;
92 } 91 }
93 92
94 ASSERT_NOT_REACHED(); 93 ASSERT_NOT_REACHED();
95 return nullptr; 94 return nullptr;
96 } 95 }
97 96
98 private: 97 private:
99 SVGAnimatorFactory() { } 98 SVGAnimatorFactory() { }
100 99
101 }; 100 };
102 101
103 } // namespace WebCore 102 } // namespace WebCore
104 103
105 #endif // SVGAnimatorFactory_h 104 #endif // SVGAnimatorFactory_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698