| Index: third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
|
| diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
|
| index eea49e15ffd80ecc51187bf650f229ea9cea63db..38c6e76739fe72df72fe527ffb187824558988b2 100644
|
| --- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
|
| +++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
|
| @@ -646,13 +646,18 @@ void CSSAnimations::cancel()
|
| clearPendingUpdate();
|
| }
|
|
|
| +static bool isCSSPropertyHandle(const PropertyHandle& propertyHandle)
|
| +{
|
| + return propertyHandle.isCSSProperty();
|
| +}
|
| +
|
| void CSSAnimations::calculateAnimationActiveInterpolations(CSSAnimationUpdate& update, const Element* animatingElement, double timelineCurrentTime)
|
| {
|
| ElementAnimations* elementAnimations = animatingElement ? animatingElement->elementAnimations() : nullptr;
|
| AnimationStack* animationStack = elementAnimations ? &elementAnimations->animationStack() : nullptr;
|
|
|
| if (update.newAnimations().isEmpty() && update.suppressedAnimations().isEmpty()) {
|
| - ActiveInterpolationsMap activeInterpolationsForAnimations(AnimationStack::activeInterpolations(animationStack, 0, 0, KeyframeEffect::DefaultPriority, timelineCurrentTime));
|
| + ActiveInterpolationsMap activeInterpolationsForAnimations(AnimationStack::activeInterpolations(animationStack, 0, 0, KeyframeEffect::DefaultPriority, timelineCurrentTime, isCSSPropertyHandle));
|
| update.adoptActiveInterpolationsForAnimations(activeInterpolationsForAnimations);
|
| return;
|
| }
|
| @@ -663,7 +668,7 @@ void CSSAnimations::calculateAnimationActiveInterpolations(CSSAnimationUpdate& u
|
| for (const auto& updatedAnimation : update.animationsWithUpdates())
|
| newEffects.append(updatedAnimation.effect.get()); // Animations with updates use a temporary InertEffect for the current frame.
|
|
|
| - ActiveInterpolationsMap activeInterpolationsForAnimations(AnimationStack::activeInterpolations(animationStack, &newEffects, &update.suppressedAnimations(), KeyframeEffect::DefaultPriority, timelineCurrentTime));
|
| + ActiveInterpolationsMap activeInterpolationsForAnimations(AnimationStack::activeInterpolations(animationStack, &newEffects, &update.suppressedAnimations(), KeyframeEffect::DefaultPriority, timelineCurrentTime, isCSSPropertyHandle));
|
| update.adoptActiveInterpolationsForAnimations(activeInterpolationsForAnimations);
|
| }
|
|
|
| @@ -674,7 +679,7 @@ void CSSAnimations::calculateTransitionActiveInterpolations(CSSAnimationUpdate&
|
|
|
| ActiveInterpolationsMap activeInterpolationsForTransitions;
|
| if (update.newTransitions().isEmpty() && update.cancelledTransitions().isEmpty()) {
|
| - activeInterpolationsForTransitions = AnimationStack::activeInterpolations(animationStack, 0, 0, KeyframeEffect::TransitionPriority, timelineCurrentTime);
|
| + activeInterpolationsForTransitions = AnimationStack::activeInterpolations(animationStack, 0, 0, KeyframeEffect::TransitionPriority, timelineCurrentTime, isCSSPropertyHandle);
|
| } else {
|
| HeapVector<Member<InertEffect>> newTransitions;
|
| for (const auto& entry : update.newTransitions())
|
| @@ -690,7 +695,7 @@ void CSSAnimations::calculateTransitionActiveInterpolations(CSSAnimationUpdate&
|
| }
|
| }
|
|
|
| - activeInterpolationsForTransitions = AnimationStack::activeInterpolations(animationStack, &newTransitions, &cancelledAnimations, KeyframeEffect::TransitionPriority, timelineCurrentTime);
|
| + activeInterpolationsForTransitions = AnimationStack::activeInterpolations(animationStack, &newTransitions, &cancelledAnimations, KeyframeEffect::TransitionPriority, timelineCurrentTime, isCSSPropertyHandle);
|
| }
|
|
|
| // Properties being animated by animations don't get values from transitions applied.
|
|
|