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 f62c198ce2eb85af74b4994ae6e8cedb2399648b..9e9aa0903db57c5f66350dbc6bbc1a4e0922244a 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) |
{ |
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)); |
+ ActiveInterpolationsMap activeInterpolationsForAnimations(AnimationStack::activeInterpolations(animationStack, nullptr, nullptr, KeyframeEffect::DefaultPriority, 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)); |
+ ActiveInterpolationsMap activeInterpolationsForAnimations(AnimationStack::activeInterpolations(animationStack, &newEffects, &update.suppressedAnimations(), KeyframeEffect::DefaultPriority, 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); |
+ activeInterpolationsForTransitions = AnimationStack::activeInterpolations(animationStack, nullptr, nullptr, KeyframeEffect::TransitionPriority, 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); |
+ activeInterpolationsForTransitions = AnimationStack::activeInterpolations(animationStack, &newTransitions, &cancelledAnimations, KeyframeEffect::TransitionPriority, isCSSPropertyHandle); |
} |
// Properties being animated by animations don't get values from transitions applied. |