| 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/svg/SVGAnimatedBoolean.h" | 28 #include "core/svg/SVGAnimatedBoolean.h" |
| 29 #include "core/svg/SVGTests.h" | |
| 30 #include "core/svg/animation/SVGSMILElement.h" | 29 #include "core/svg/animation/SVGSMILElement.h" |
| 31 #include "platform/animation/UnitBezier.h" | 30 #include "platform/animation/UnitBezier.h" |
| 32 #include "wtf/Functional.h" | 31 #include "wtf/Functional.h" |
| 33 | 32 |
| 34 namespace blink { | 33 namespace blink { |
| 35 | 34 |
| 36 enum AnimationMode { | 35 enum AnimationMode { |
| 37 NoAnimation, | 36 NoAnimation, |
| 38 FromToAnimation, | 37 FromToAnimation, |
| 39 FromByAnimation, | 38 FromByAnimation, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 50 InheritValue | 49 InheritValue |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 enum CalcMode { | 52 enum CalcMode { |
| 54 CalcModeDiscrete, | 53 CalcModeDiscrete, |
| 55 CalcModeLinear, | 54 CalcModeLinear, |
| 56 CalcModePaced, | 55 CalcModePaced, |
| 57 CalcModeSpline | 56 CalcModeSpline |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 class SVGAnimationElement : public SVGSMILElement, | 59 class SVGAnimationElement : public SVGSMILElement { |
| 61 public SVGTests { | |
| 62 public: | 60 public: |
| 63 // SVGAnimationElement | 61 // SVGAnimationElement |
| 64 float getStartTime() const; | 62 float getStartTime() const; |
| 65 float getCurrentTime() const; | 63 float getCurrentTime() const; |
| 66 float getSimpleDuration() const; | 64 float getSimpleDuration() const; |
| 67 | 65 |
| 68 void beginElement(); | 66 void beginElement(); |
| 69 void beginElementAt(float offset); | 67 void beginElementAt(float offset); |
| 70 void endElement(); | 68 void endElement(); |
| 71 void endElementAt(float offset); | 69 void endElementAt(float offset); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 String m_lastValuesAnimationFrom; | 202 String m_lastValuesAnimationFrom; |
| 205 String m_lastValuesAnimationTo; | 203 String m_lastValuesAnimationTo; |
| 206 bool m_hasInvalidCSSAttributeType; | 204 bool m_hasInvalidCSSAttributeType; |
| 207 CalcMode m_calcMode; | 205 CalcMode m_calcMode; |
| 208 AnimationMode m_animationMode; | 206 AnimationMode m_animationMode; |
| 209 }; | 207 }; |
| 210 | 208 |
| 211 } // namespace blink | 209 } // namespace blink |
| 212 | 210 |
| 213 #endif // SVGAnimationElement_h | 211 #endif // SVGAnimationElement_h |
| OLD | NEW |