OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount,
SVGSMILElement* resultElement); | 50 virtual void calculateAnimatedValue(float percentage, unsigned repeatCount,
SVGSMILElement* resultElement); |
51 virtual void applyResultsToTarget(); | 51 virtual void applyResultsToTarget(); |
52 virtual float calculateDistance(const String& fromString, const String& toSt
ring); | 52 virtual float calculateDistance(const String& fromString, const String& toSt
ring); |
53 | 53 |
54 enum RotateMode { | 54 enum RotateMode { |
55 RotateAngle, | 55 RotateAngle, |
56 RotateAuto, | 56 RotateAuto, |
57 RotateAutoReverse | 57 RotateAutoReverse |
58 }; | 58 }; |
59 RotateMode rotateMode() const; | 59 RotateMode rotateMode() const; |
60 void buildTransformForProgress(AffineTransform*, float percentage); | |
61 | 60 |
62 bool m_hasToPointAtEndOfDuration; | 61 bool m_hasToPointAtEndOfDuration; |
63 | 62 |
64 virtual void updateAnimationMode() OVERRIDE; | 63 virtual void updateAnimationMode() OVERRIDE; |
65 | 64 |
66 // Note: we do not support percentage values for to/from coords as the spec
implies we should (opera doesn't either) | 65 // Note: we do not support percentage values for to/from coords as the spec
implies we should (opera doesn't either) |
67 FloatPoint m_fromPoint; | 66 FloatPoint m_fromPoint; |
68 FloatPoint m_toPoint; | 67 FloatPoint m_toPoint; |
69 FloatPoint m_toPointAtEndOfDuration; | 68 FloatPoint m_toPointAtEndOfDuration; |
70 | 69 |
71 Path m_path; | 70 Path m_path; |
72 Path m_animationPath; | 71 Path m_animationPath; |
73 }; | 72 }; |
74 | 73 |
75 } // namespace WebCore | 74 } // namespace WebCore |
76 | 75 |
77 #endif // SVGAnimateMotionElement_h | 76 #endif // SVGAnimateMotionElement_h |
OLD | NEW |