| Index: Source/core/animation/css/CSSAnimations.cpp
|
| diff --git a/Source/core/animation/css/CSSAnimations.cpp b/Source/core/animation/css/CSSAnimations.cpp
|
| index 18f5745cf94807349307e5b6c2f1bdf8696e177c..20a667eeaddd581f0a92db2d6913efab13be805b 100644
|
| --- a/Source/core/animation/css/CSSAnimations.cpp
|
| +++ b/Source/core/animation/css/CSSAnimations.cpp
|
| @@ -389,8 +389,9 @@ void CSSAnimations::maybeApplyPendingUpdate(Element* element)
|
|
|
| newFrames[0]->clearPropertyValue(id);
|
| RefPtrWillBeRawPtr<InertAnimation> inertAnimationForSampling = InertAnimation::create(oldAnimation->effect(), oldAnimation->specifiedTiming(), false);
|
| - OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> sample = inertAnimationForSampling->sample(inheritedTime);
|
| - ASSERT(sample->size() == 1);
|
| + OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> sample = nullptr;
|
| + inertAnimationForSampling->sample(inheritedTime, sample);
|
| + ASSERT(sample && sample->size() == 1);
|
| newFrames[0]->setPropertyValue(id, toLegacyStyleInterpolation(sample->at(0).get())->currentValue());
|
|
|
| effect = AnimatableValueKeyframeEffectModel::create(newFrames);
|
|
|