OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #ifndef CSSPropertyAnimation_h | 29 #ifndef CSSPropertyAnimation_h |
30 #define CSSPropertyAnimation_h | 30 #define CSSPropertyAnimation_h |
31 | 31 |
32 #include "CSSPropertyNames.h" | 32 #include "CSSPropertyNames.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class AnimationBase; | |
37 class RenderStyle; | 36 class RenderStyle; |
38 | 37 |
39 class CSSPropertyAnimation { | 38 class CSSPropertyAnimation { |
40 public: | 39 public: |
41 static bool animationOfPropertyIsAccelerated(CSSPropertyID); | 40 static bool propertiesEqual(CSSPropertyID, const RenderStyle*, const RenderS
tyle*); |
42 static bool propertiesEqual(CSSPropertyID, const RenderStyle* a, const Rende
rStyle* b); | |
43 static CSSPropertyID getPropertyAtIndex(int, bool& isShorthand); | |
44 static int getNumProperties(); | |
45 | 41 |
46 // Return true if we need to start software animation timers | |
47 static bool blendProperties(const AnimationBase*, CSSPropertyID, RenderStyle
* dst, const RenderStyle* a, const RenderStyle* b, double progress); | |
48 private: | 42 private: |
49 static void ensurePropertyMap(); | 43 static void ensurePropertyMap(); |
50 }; | 44 }; |
51 | 45 |
52 } // namespace WebCore | 46 } // namespace WebCore |
53 | 47 |
54 #endif // CSSPropertyAnimation_h | 48 #endif // CSSPropertyAnimation_h |
OLD | NEW |