OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2008 Apple Inc. All rights reserved. |
6 * Copyright (C) 2008 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2008 Cameron McCormack <cam@mcc.id.au> |
7 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
13 * | 13 * |
14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
18 * | 18 * |
19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
23 */ | 23 */ |
24 | 24 |
25 #ifndef SVGAnimationElement_h | 25 #ifndef SVGAnimationElement_h |
26 #define SVGAnimationElement_h | 26 #define SVGAnimationElement_h |
27 | 27 |
28 #include "core/platform/graphics/UnitBezier.h" | 28 #include "core/platform/graphics/UnitBezier.h" |
29 #include "core/svg/ElementTimeControl.h" | |
30 #include "core/svg/SVGAnimatedBoolean.h" | 29 #include "core/svg/SVGAnimatedBoolean.h" |
31 #include "core/svg/SVGExternalResourcesRequired.h" | 30 #include "core/svg/SVGExternalResourcesRequired.h" |
32 #include "core/svg/SVGStringList.h" | 31 #include "core/svg/SVGStringList.h" |
33 #include "core/svg/SVGTests.h" | 32 #include "core/svg/SVGTests.h" |
34 #include "core/svg/animation/SMILTime.h" | 33 #include "core/svg/animation/SMILTime.h" |
35 #include "core/svg/animation/SVGSMILElement.h" | 34 #include "core/svg/animation/SVGSMILElement.h" |
36 | 35 |
37 namespace WebCore { | 36 namespace WebCore { |
38 | 37 |
39 enum AnimationMode { | 38 enum AnimationMode { |
(...skipping 20 matching lines...) Expand all Loading... |
60 CalcModePaced, | 59 CalcModePaced, |
61 CalcModeSpline | 60 CalcModeSpline |
62 }; | 61 }; |
63 | 62 |
64 class ConditionEventListener; | 63 class ConditionEventListener; |
65 class TimeContainer; | 64 class TimeContainer; |
66 class SVGAnimatedType; | 65 class SVGAnimatedType; |
67 | 66 |
68 class SVGAnimationElement : public SVGSMILElement, | 67 class SVGAnimationElement : public SVGSMILElement, |
69 public SVGTests, | 68 public SVGTests, |
70 public SVGExternalResourcesRequired, | 69 public SVGExternalResourcesRequired { |
71 public ElementTimeControl { | |
72 public: | 70 public: |
73 // SVGAnimationElement | 71 // SVGAnimationElement |
74 float getStartTime() const; | 72 float getStartTime() const; |
75 float getCurrentTime() const; | 73 float getCurrentTime() const; |
76 float getSimpleDuration() const; | 74 float getSimpleDuration() const; |
77 | 75 |
78 // ElementTimeControl | 76 void beginElement(); |
79 virtual void beginElement(); | 77 void beginElementAt(float offset); |
80 virtual void beginElementAt(float offset); | 78 void endElement(); |
81 virtual void endElement(); | 79 void endElementAt(float offset); |
82 virtual void endElementAt(float offset); | |
83 | 80 |
84 static bool isTargetAttributeCSSProperty(SVGElement*, const QualifiedName&); | 81 static bool isTargetAttributeCSSProperty(SVGElement*, const QualifiedName&); |
85 | 82 |
86 virtual bool isAdditive() const; | 83 virtual bool isAdditive() const; |
87 bool isAccumulated() const; | 84 bool isAccumulated() const; |
88 AnimationMode animationMode() const { return m_animationMode; } | 85 AnimationMode animationMode() const { return m_animationMode; } |
89 CalcMode calcMode() const { return m_calcMode; } | 86 CalcMode calcMode() const { return m_calcMode; } |
90 | 87 |
91 enum ShouldApplyAnimation { | 88 enum ShouldApplyAnimation { |
92 DontApplyAnimation, | 89 DontApplyAnimation, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 String m_lastValuesAnimationFrom; | 245 String m_lastValuesAnimationFrom; |
249 String m_lastValuesAnimationTo; | 246 String m_lastValuesAnimationTo; |
250 bool m_hasInvalidCSSAttributeType; | 247 bool m_hasInvalidCSSAttributeType; |
251 CalcMode m_calcMode; | 248 CalcMode m_calcMode; |
252 AnimationMode m_animationMode; | 249 AnimationMode m_animationMode; |
253 }; | 250 }; |
254 | 251 |
255 } // namespace WebCore | 252 } // namespace WebCore |
256 | 253 |
257 #endif // SVGAnimationElement_h | 254 #endif // SVGAnimationElement_h |
OLD | NEW |