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

Side by Side Diff: Source/core/animation/Animation.h

Issue 15405006: Modify AnimationEffect::sample() to return a CompositableValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix rebase Created 7 years, 7 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
« no previous file with comments | « Source/core/animation/AnimatableValue.cpp ('k') | Source/core/animation/Animation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef Animation_h 31 #ifndef Animation_h
32 #define Animation_h 32 #define Animation_h
33 33
34 #include "core/animation/AnimationEffect.h" 34 #include "core/animation/AnimationEffect.h"
35 #include "core/animation/TimedItem.h" 35 #include "core/animation/TimedItem.h"
36 #include "core/css/StylePropertySet.h"
37 #include "wtf/RefPtr.h" 36 #include "wtf/RefPtr.h"
38 37
39 namespace WebCore { 38 namespace WebCore {
40 39
41 class Element; 40 class Element;
42 41
43 class Animation FINAL : public TimedItem { 42 class Animation FINAL : public TimedItem {
44 43
45 public: 44 public:
46 static PassRefPtr<Animation> create(PassRefPtr<Element> target, PassRefPtr<A nimationEffect>, Timing&); 45 static PassRefPtr<Animation> create(PassRefPtr<Element> target, PassRefPtr<A nimationEffect>, Timing&);
47 virtual ~Animation(); 46 virtual ~Animation();
48 47
49 StylePropertySet* cachedStyle() 48 const AnimationEffect::CompositableValueMap* compositableValues() const
50 { 49 {
51 ASSERT(m_cachedStyle.get()); 50 ASSERT(m_compositableValues);
52 return m_cachedStyle.get(); 51 return m_compositableValues.get();
53 } 52 }
54 53
55 protected: 54 protected:
56 virtual void applyEffects(bool previouslyActiveOrInEffect); 55 virtual void applyEffects(bool previouslyActiveOrInEffect);
57 virtual void clearEffects(); 56 virtual void clearEffects();
58 virtual void updateChildrenAndEffects(bool) const OVERRIDE FINAL; 57 virtual void updateChildrenAndEffects(bool) const OVERRIDE FINAL;
59 58
60 private: 59 private:
61 Animation(PassRefPtr<Element>, PassRefPtr<AnimationEffect>, Timing&); 60 Animation(PassRefPtr<Element>, PassRefPtr<AnimationEffect>, Timing&);
62 61
63 RefPtr<Element> m_target; 62 RefPtr<Element> m_target;
64 RefPtr<AnimationEffect> m_effect; 63 RefPtr<AnimationEffect> m_effect;
65 bool m_isInTargetActiveAnimationsList; 64 bool m_isInTargetActiveAnimationsList;
66 RefPtr<StylePropertySet> m_cachedStyle; 65 OwnPtr<AnimationEffect::CompositableValueMap> m_compositableValues;
67 }; 66 };
68 67
69 } // namespace 68 } // namespace
70 69
71 #endif 70 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/AnimatableValue.cpp ('k') | Source/core/animation/Animation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698