| Index: Source/core/animation/CompositorAnimations.cpp
|
| diff --git a/Source/core/animation/CompositorAnimations.cpp b/Source/core/animation/CompositorAnimations.cpp
|
| index fb26b5784814040ede48647c98335ef5168361ed..d85cdc5cf9873cc42f1d5e86185f4ba71722adb8 100644
|
| --- a/Source/core/animation/CompositorAnimations.cpp
|
| +++ b/Source/core/animation/CompositorAnimations.cpp
|
| @@ -147,7 +147,8 @@ bool CompositorAnimations::isCandidateForAnimationOnCompositor(const Timing& tim
|
| ASSERT(keyframes.size() >= 2);
|
| for (const auto& keyframe : keyframes) {
|
| // FIXME: Determine candidacy based on the CSSValue instead of a snapshot AnimatableValue.
|
| - if (keyframe->composite() != AnimationEffect::CompositeReplace || !keyframe->getAnimatableValue())
|
| + bool isNeutralKeyframe = keyframe->isStringPropertySpecificKeyframe() && !toStringPropertySpecificKeyframe(keyframe.get())->value() && keyframe->composite() == AnimationEffect::CompositeAdd;
|
| + if ((keyframe->composite() != AnimationEffect::CompositeReplace && !isNeutralKeyframe) || !keyframe->getAnimatableValue())
|
| return false;
|
|
|
| switch (property) {
|
|
|