OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 // return true every CSSAnimationData in the chain (defined by m_next) match | 142 // return true every CSSAnimationData in the chain (defined by m_next) match |
143 bool operator==(const CSSAnimationData& o) const { return animationsMatch(&o
); } | 143 bool operator==(const CSSAnimationData& o) const { return animationsMatch(&o
); } |
144 bool operator!=(const CSSAnimationData& o) const { return !(*this == o); } | 144 bool operator!=(const CSSAnimationData& o) const { return !(*this == o); } |
145 | 145 |
146 bool fillsBackwards() const { return m_fillModeSet && (m_fillMode == Animati
onFillModeBackwards || m_fillMode == AnimationFillModeBoth); } | 146 bool fillsBackwards() const { return m_fillModeSet && (m_fillMode == Animati
onFillModeBackwards || m_fillMode == AnimationFillModeBoth); } |
147 bool fillsForwards() const { return m_fillModeSet && (m_fillMode == Animatio
nFillModeForwards || m_fillMode == AnimationFillModeBoth); } | 147 bool fillsForwards() const { return m_fillModeSet && (m_fillMode == Animatio
nFillModeForwards || m_fillMode == AnimationFillModeBoth); } |
148 | 148 |
149 private: | 149 private: |
150 CSSAnimationData(); | 150 CSSAnimationData(); |
151 CSSAnimationData(const CSSAnimationData& o); | 151 explicit CSSAnimationData(const CSSAnimationData&); |
152 | 152 |
153 AtomicString m_name; | 153 AtomicString m_name; |
154 CSSPropertyID m_property; | 154 CSSPropertyID m_property; |
155 AnimationMode m_mode; | 155 AnimationMode m_mode; |
156 double m_iterationCount; | 156 double m_iterationCount; |
157 double m_delay; | 157 double m_delay; |
158 double m_duration; | 158 double m_duration; |
159 RefPtr<TimingFunction> m_timingFunction; | 159 RefPtr<TimingFunction> m_timingFunction; |
160 unsigned m_direction : 2; // AnimationDirection | 160 unsigned m_direction : 2; // AnimationDirection |
161 unsigned m_fillMode : 2; | 161 unsigned m_fillMode : 2; |
(...skipping 20 matching lines...) Expand all Loading... |
182 static double initialAnimationIterationCount() { return 1.0; } | 182 static double initialAnimationIterationCount() { return 1.0; } |
183 static const String& initialAnimationName(); | 183 static const String& initialAnimationName(); |
184 static EAnimPlayState initialAnimationPlayState() { return AnimPlayStatePlay
ing; } | 184 static EAnimPlayState initialAnimationPlayState() { return AnimPlayStatePlay
ing; } |
185 static CSSPropertyID initialAnimationProperty() { return CSSPropertyInvalid;
} | 185 static CSSPropertyID initialAnimationProperty() { return CSSPropertyInvalid;
} |
186 static const PassRefPtr<TimingFunction> initialAnimationTimingFunction() { r
eturn CubicBezierTimingFunction::preset(CubicBezierTimingFunction::Ease); } | 186 static const PassRefPtr<TimingFunction> initialAnimationTimingFunction() { r
eturn CubicBezierTimingFunction::preset(CubicBezierTimingFunction::Ease); } |
187 }; | 187 }; |
188 | 188 |
189 } // namespace WebCore | 189 } // namespace WebCore |
190 | 190 |
191 #endif // CSSAnimationData_h | 191 #endif // CSSAnimationData_h |
OLD | NEW |