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

Unified Diff: Source/core/animation/KeyframeEffectModel.h

Issue 851693007: Prepare for responsive CSS animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up includes Created 5 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
Index: Source/core/animation/KeyframeEffectModel.h
diff --git a/Source/core/animation/KeyframeEffectModel.h b/Source/core/animation/KeyframeEffectModel.h
index 8029b3c99d2ce7c6141e352cc6c739225e780a3e..28ae7c09718b8eae9a1ab54e17ee5e716bf02d6a 100644
--- a/Source/core/animation/KeyframeEffectModel.h
+++ b/Source/core/animation/KeyframeEffectModel.h
@@ -109,6 +109,12 @@ public:
ensureInterpolationEffect(element);
}
+ void setDeferredInterpolationsOutdated() { m_interpolationEffect->setDeferredInterpolationsOutdated(); }
+
+ void snapshotCompositableProperties(const Element*, const RenderStyle&);
+ void updateNeutralKeyframeAnimatableValues(CSSPropertyID, PassRefPtrWillBeRawPtr<AnimatableValue>);
+ void setNeutralKeyframeEasings(RefPtrWillBeRawPtr<TimingFunction>);
+
static KeyframeVector normalizedKeyframesForInspector(const KeyframeVector& keyframes) { return normalizedKeyframes(keyframes); }
protected:
@@ -130,11 +136,13 @@ protected:
friend class KeyframeEffectModelTest;
- bool affects(CSSPropertyID property)
+ bool affects(CSSPropertyID property) const
{
ensureKeyframeGroups();
return m_keyframeGroups->contains(property);
}
+
+ void snapshotCompositableProperty(CSSPropertyID, const Element*, const RenderStyle&);
};
template <class Keyframe>
@@ -167,6 +175,7 @@ using StringPropertySpecificKeyframeVector = StringKeyframeEffectModel::Property
DEFINE_TYPE_CASTS(KeyframeEffectModelBase, AnimationEffect, value, value->isKeyframeEffectModel(), value.isKeyframeEffectModel());
DEFINE_TYPE_CASTS(AnimatableValueKeyframeEffectModel, KeyframeEffectModelBase, value, value->isAnimatableValueKeyframeEffectModel(), value.isAnimatableValueKeyframeEffectModel());
+DEFINE_TYPE_CASTS(StringKeyframeEffectModel, KeyframeEffectModelBase, value, value->isStringKeyframeEffectModel(), value.isStringKeyframeEffectModel());
inline const AnimatableValueKeyframeEffectModel* toAnimatableValueKeyframeEffectModel(const AnimationEffect* base)
{
@@ -178,6 +187,16 @@ inline AnimatableValueKeyframeEffectModel* toAnimatableValueKeyframeEffectModel(
return toAnimatableValueKeyframeEffectModel(toKeyframeEffectModelBase(base));
}
+inline const StringKeyframeEffectModel* toStringKeyframeEffectModel(const AnimationEffect* base)
+{
+ return toStringKeyframeEffectModel(toKeyframeEffectModelBase(base));
+}
+
+inline StringKeyframeEffectModel* toStringKeyframeEffectModel(AnimationEffect* base)
+{
+ return toStringKeyframeEffectModel(toKeyframeEffectModelBase(base));
+}
+
template <>
inline bool KeyframeEffectModel<AnimatableValueKeyframe>::isAnimatableValueKeyframeEffectModel() const { return true; }

Powered by Google App Engine
This is Rietveld 408576698