Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: Source/core/frame/animation/CSSPropertyAnimation.h

Issue 139273007: Web Animations: Remove legacy animations engine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix TestExpectations. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/frame/animation/AnimationControllerPrivate.h ('k') | Source/core/frame/animation/CSSPropertyAnimation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698