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

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

Issue 153883003: [SVG] SVGAnimatedTransform{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 case AnimatedAngle: 47 case AnimatedAngle:
48 return adoptPtr(new SVGAnimatedAngleAnimator(animationElement, conte xtElement)); 48 return adoptPtr(new SVGAnimatedAngleAnimator(animationElement, conte xtElement));
49 case AnimatedEnumeration: 49 case AnimatedEnumeration:
50 return adoptPtr(new SVGAnimatedEnumerationAnimator(animationElement, contextElement)); 50 return adoptPtr(new SVGAnimatedEnumerationAnimator(animationElement, contextElement));
51 case AnimatedInteger: 51 case AnimatedInteger:
52 return adoptPtr(new SVGAnimatedIntegerAnimator(animationElement, con textElement)); 52 return adoptPtr(new SVGAnimatedIntegerAnimator(animationElement, con textElement));
53 case AnimatedIntegerOptionalInteger: 53 case AnimatedIntegerOptionalInteger:
54 return adoptPtr(new SVGAnimatedIntegerOptionalIntegerAnimator(animat ionElement, contextElement)); 54 return adoptPtr(new SVGAnimatedIntegerOptionalIntegerAnimator(animat ionElement, contextElement));
55 case AnimatedPath: 55 case AnimatedPath:
56 return adoptPtr(new SVGAnimatedPathAnimator(animationElement, contex tElement)); 56 return adoptPtr(new SVGAnimatedPathAnimator(animationElement, contex tElement));
57 case AnimatedTransformList:
58 return adoptPtr(new SVGAnimatedTransformListAnimator(animationElemen t, contextElement));
59 // Below properties have migrated to new property implementation. 57 // Below properties have migrated to new property implementation.
60 case AnimatedBoolean: 58 case AnimatedBoolean:
61 case AnimatedColor: 59 case AnimatedColor:
62 case AnimatedNumber: 60 case AnimatedNumber:
63 case AnimatedNumberList: 61 case AnimatedNumberList:
64 case AnimatedNumberOptionalNumber: 62 case AnimatedNumberOptionalNumber:
65 case AnimatedLength: 63 case AnimatedLength:
66 case AnimatedLengthList: 64 case AnimatedLengthList:
67 case AnimatedPoints: 65 case AnimatedPoints:
68 case AnimatedPreserveAspectRatio: 66 case AnimatedPreserveAspectRatio:
69 case AnimatedRect: 67 case AnimatedRect:
70 case AnimatedString: 68 case AnimatedString:
69 case AnimatedTransformList:
71 return adoptPtr(new SVGAnimatedNewPropertyAnimator(attributeType, an imationElement, contextElement)); 70 return adoptPtr(new SVGAnimatedNewPropertyAnimator(attributeType, an imationElement, contextElement));
72 71
73 // SVGAnimatedPoint/SVGAnimatedStringList does not exist. 72 // SVGAnimated{Matrix,Point,StringListTransform,} does not exist.
haraken 2014/02/11 17:00:21 StringList,Transform
kouhei (in TOK) 2014/02/12 01:57:49 Done.
73 case AnimatedMatrix:
74 case AnimatedPoint: 74 case AnimatedPoint:
75 case AnimatedStringList: 75 case AnimatedStringList:
76 case AnimatedTransform:
76 ASSERT_NOT_REACHED(); 77 ASSERT_NOT_REACHED();
77 78
78 case AnimatedUnknown: 79 case AnimatedUnknown:
79 break; 80 break;
80 } 81 }
81 82
82 ASSERT_NOT_REACHED(); 83 ASSERT_NOT_REACHED();
83 return nullptr; 84 return nullptr;
84 } 85 }
85 86
86 private: 87 private:
87 SVGAnimatorFactory() { } 88 SVGAnimatorFactory() { }
88 89
89 }; 90 };
90 91
91 } // namespace WebCore 92 } // namespace WebCore
92 93
93 #endif // SVGAnimatorFactory_h 94 #endif // SVGAnimatorFactory_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698