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

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

Issue 814083003: Update animation when changes in animation keyframes are detected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and address comments Created 5 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti onary>& keyframeDictionaryVector, double duration, ExceptionState&); 59 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti onary>& keyframeDictionaryVector, double duration, ExceptionState&);
60 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti onary>& keyframeDictionaryVector, ExceptionState&); 60 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti onary>& keyframeDictionaryVector, ExceptionState&);
61 61
62 virtual ~Animation(); 62 virtual ~Animation();
63 63
64 virtual bool isAnimation() const override { return true; } 64 virtual bool isAnimation() const override { return true; }
65 65
66 bool affects(CSSPropertyID) const; 66 bool affects(CSSPropertyID) const;
67 const AnimationEffect* effect() const { return m_effect.get(); } 67 const AnimationEffect* effect() const { return m_effect.get(); }
68 AnimationEffect* effect() { return m_effect.get(); } 68 AnimationEffect* effect() { return m_effect.get(); }
69 void setEffect(PassRefPtrWillBeRawPtr<AnimationEffect> effect) { m_effect = effect; }
69 Priority priority() const { return m_priority; } 70 Priority priority() const { return m_priority; }
70 Element* target() const { return m_target; } 71 Element* target() const { return m_target; }
71 72
72 void notifySampledEffectRemovedFromAnimationStack(); 73 void notifySampledEffectRemovedFromAnimationStack();
73 #if !ENABLE(OILPAN) 74 #if !ENABLE(OILPAN)
74 void notifyElementDestroyed(); 75 void notifyElementDestroyed();
75 #endif 76 #endif
76 77
77 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const; 78 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const;
78 // Must only be called once. 79 // Must only be called once.
(...skipping 28 matching lines...) Expand all
107 Vector<int> m_compositorAnimationIds; 108 Vector<int> m_compositorAnimationIds;
108 109
109 friend class AnimationAnimationV8Test; 110 friend class AnimationAnimationV8Test;
110 }; 111 };
111 112
112 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim ation(), animationNode.isAnimation()); 113 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim ation(), animationNode.isAnimation());
113 114
114 } // namespace blink 115 } // namespace blink
115 116
116 #endif // Animation_h 117 #endif // Animation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698