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

Unified Diff: Source/core/animation/InvalidatableStyleInterpolation.cpp

Issue 1210353004: Rename {Animation,Interpolation}Type and {Animation,Interpolation}Value (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 6 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/InvalidatableStyleInterpolation.cpp
diff --git a/Source/core/animation/InvalidatableStyleInterpolation.cpp b/Source/core/animation/InvalidatableStyleInterpolation.cpp
index 9b3da9b7a3b1d3cf09c3c5c8d00813e26ba11859..0631d399b199108fc9df609a5e288a8fa8ce2f54 100644
--- a/Source/core/animation/InvalidatableStyleInterpolation.cpp
+++ b/Source/core/animation/InvalidatableStyleInterpolation.cpp
@@ -10,11 +10,11 @@
namespace blink {
InvalidatableStyleInterpolation::InvalidatableStyleInterpolation(
- const Vector<const AnimationType*>& animationTypes,
+ const Vector<const InterpolationType*>& interpolationTypes,
const CSSPropertySpecificKeyframe& startKeyframe,
const CSSPropertySpecificKeyframe& endKeyframe)
- : StyleInterpolation(nullptr, nullptr, animationTypes.first()->property())
- , m_animationTypes(animationTypes)
+ : StyleInterpolation(nullptr, nullptr, interpolationTypes.first()->property())
+ , m_interpolationTypes(interpolationTypes)
, m_startKeyframe(startKeyframe)
, m_endKeyframe(endKeyframe)
{
@@ -24,8 +24,8 @@ InvalidatableStyleInterpolation::InvalidatableStyleInterpolation(
bool InvalidatableStyleInterpolation::maybeCachePairwiseConversion(const StyleResolverState* state) const
{
- for (const auto& animationType : m_animationTypes) {
- OwnPtrWillBeRawPtr<PairwisePrimitiveInterpolation> pairwiseConversion = animationType->maybeConvertPairwise(m_startKeyframe, m_endKeyframe, state, m_conversionCheckers);
+ for (const auto& interpolationType : m_interpolationTypes) {
+ OwnPtrWillBeRawPtr<PairwisePrimitiveInterpolation> pairwiseConversion = interpolationType->maybeConvertPairwise(m_startKeyframe, m_endKeyframe, state, m_conversionCheckers);
if (pairwiseConversion) {
m_cachedValue = pairwiseConversion->initialValue();
m_cachedConversion = pairwiseConversion.release();
@@ -43,10 +43,10 @@ void InvalidatableStyleInterpolation::interpolate(int, double fraction)
// We defer the interpolation to ensureValidInterpolation() if m_cachedConversion is null.
}
-PassOwnPtrWillBeRawPtr<AnimationValue> InvalidatableStyleInterpolation::convertSingleKeyframe(const CSSPropertySpecificKeyframe& keyframe, const StyleResolverState& state) const
+PassOwnPtrWillBeRawPtr<InterpolationValue> InvalidatableStyleInterpolation::convertSingleKeyframe(const CSSPropertySpecificKeyframe& keyframe, const StyleResolverState& state) const
{
- for (const auto& animationType : m_animationTypes) {
- OwnPtrWillBeRawPtr<AnimationValue> result = animationType->maybeConvertSingle(keyframe, &state, m_conversionCheckers);
+ for (const auto& interpolationType : m_interpolationTypes) {
+ OwnPtrWillBeRawPtr<InterpolationValue> result = interpolationType->maybeConvertSingle(keyframe, &state, m_conversionCheckers);
if (result)
return result.release();
}
« no previous file with comments | « Source/core/animation/InvalidatableStyleInterpolation.h ('k') | Source/core/animation/PrimitiveInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698