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

Unified Diff: Source/core/animation/css/CSSAnimations.h

Issue 143573004: [wip] interpolable value refactor. NOT FOR LANDING. Base URL: https://chromium.googlesource.com/chromium/blink.git@interpolationWrap
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/KeyframeEffectModelTest.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/css/CSSAnimations.h
diff --git a/Source/core/animation/css/CSSAnimations.h b/Source/core/animation/css/CSSAnimations.h
index 22b7a1fd25afc80ae5bf5f7b771ad32ab1f927cc..1b3c84a84c8a0456b5aa9586977c2b94c9c9d6b3 100644
--- a/Source/core/animation/css/CSSAnimations.h
+++ b/Source/core/animation/css/CSSAnimations.h
@@ -33,6 +33,7 @@
#include "core/animation/Animation.h"
#include "core/animation/InertAnimation.h"
+#include "core/animation/Interpolation.h"
#include "core/animation/Player.h"
#include "core/animation/css/CSSAnimationData.h"
#include "core/css/StylePropertySet.h"
@@ -104,11 +105,11 @@ public:
const NewTransitionMap& newTransitions() const { return m_newTransitions; }
const HashSet<CSSPropertyID>& cancelledTransitions() const { return m_cancelledTransitions; }
- void adoptCompositableValuesForAnimations(AnimationEffect::CompositableValueMap& newMap) { newMap.swap(m_compositableValuesForAnimations); }
- void adoptCompositableValuesForTransitions(AnimationEffect::CompositableValueMap& newMap) { newMap.swap(m_compositableValuesForTransitions); }
- const AnimationEffect::CompositableValueMap& compositableValuesForAnimations() const { return m_compositableValuesForAnimations; }
- const AnimationEffect::CompositableValueMap& compositableValuesForTransitions() const { return m_compositableValuesForTransitions; }
- AnimationEffect::CompositableValueMap& compositableValuesForAnimations() { return m_compositableValuesForAnimations; }
+ void adoptCompositableValuesForAnimations(HashMap<CSSPropertyID, RefPtr<Interpolation> >& newMap) { newMap.swap(m_compositableValuesForAnimations); }
+ void adoptCompositableValuesForTransitions(HashMap<CSSPropertyID, RefPtr<Interpolation> >& newMap) { newMap.swap(m_compositableValuesForTransitions); }
+ const HashMap<CSSPropertyID, RefPtr<Interpolation> >& compositableValuesForAnimations() const { return m_compositableValuesForAnimations; }
+ const HashMap<CSSPropertyID, RefPtr<Interpolation> >& compositableValuesForTransitions() const { return m_compositableValuesForTransitions; }
+ HashMap<CSSPropertyID, RefPtr<Interpolation> >& compositableValuesForAnimations() { return m_compositableValuesForAnimations; }
bool isEmpty() const
{
@@ -134,8 +135,8 @@ private:
NewTransitionMap m_newTransitions;
HashSet<CSSPropertyID> m_cancelledTransitions;
- AnimationEffect::CompositableValueMap m_compositableValuesForAnimations;
- AnimationEffect::CompositableValueMap m_compositableValuesForTransitions;
+ HashMap<CSSPropertyID, RefPtr<Interpolation> > m_compositableValuesForAnimations;
+ HashMap<CSSPropertyID, RefPtr<Interpolation> > m_compositableValuesForTransitions;
};
class CSSAnimations FINAL {
@@ -172,7 +173,7 @@ private:
TransitionMap m_transitions;
OwnPtr<CSSAnimationUpdate> m_pendingUpdate;
- AnimationEffect::CompositableValueMap m_previousCompositableValuesForAnimations;
+ HashMap<CSSPropertyID, RefPtr<Interpolation> > m_previousCompositableValuesForAnimations;
static void calculateAnimationUpdate(CSSAnimationUpdate*, Element*, const Element& parentElement, const RenderStyle&, RenderStyle* parentStyle, StyleResolver*);
static void calculateTransitionUpdate(CSSAnimationUpdate*, const Element*, const RenderStyle&);
« no previous file with comments | « Source/core/animation/KeyframeEffectModelTest.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698