| Index: Source/core/animation/AnimationStack.cpp
|
| diff --git a/Source/core/animation/AnimationStack.cpp b/Source/core/animation/AnimationStack.cpp
|
| index c090d3bbe21bb92851f82f1b4cb09e93348999aa..4226c7565a504c23ac57ae7d06ffd47af669640e 100644
|
| --- a/Source/core/animation/AnimationStack.cpp
|
| +++ b/Source/core/animation/AnimationStack.cpp
|
| @@ -42,23 +42,23 @@ namespace blink {
|
|
|
| namespace {
|
|
|
| -void copyToActiveInterpolationMap(const WillBeHeapVector<RefPtrWillBeMember<Interpolation>>& source, ActiveInterpolationMap& target)
|
| +void copyToActiveInterpolationMap(const HeapVector<Member<Interpolation>>& source, ActiveInterpolationMap& target)
|
| {
|
| for (const auto& interpolation : source) {
|
| target.set(interpolation->property(), interpolation.get());
|
| }
|
| }
|
|
|
| -bool compareEffects(const OwnPtrWillBeMember<SampledEffect>& effect1, const OwnPtrWillBeMember<SampledEffect>& effect2)
|
| +bool compareEffects(const Member<SampledEffect>& effect1, const Member<SampledEffect>& effect2)
|
| {
|
| ASSERT(effect1 && effect2);
|
| return effect1->sequenceNumber() < effect2->sequenceNumber();
|
| }
|
|
|
| -void copyNewAnimationsToActiveInterpolationMap(const WillBeHeapVector<RawPtrWillBeMember<InertAnimation>>& newAnimations, ActiveInterpolationMap& result)
|
| +void copyNewAnimationsToActiveInterpolationMap(const HeapVector<Member<InertAnimation>>& newAnimations, ActiveInterpolationMap& result)
|
| {
|
| for (const auto& newAnimation : newAnimations) {
|
| - OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> sample = nullptr;
|
| + HeapVector<Member<Interpolation>>* sample = nullptr;
|
| newAnimation->sample(sample);
|
| if (sample)
|
| copyToActiveInterpolationMap(*sample, result);
|
| @@ -80,14 +80,14 @@ bool AnimationStack::hasActiveAnimationsOnCompositor(CSSPropertyID property) con
|
| return false;
|
| }
|
|
|
| -ActiveInterpolationMap AnimationStack::activeInterpolations(AnimationStack* animationStack, const WillBeHeapVector<RawPtrWillBeMember<InertAnimation>>* newAnimations, const WillBeHeapHashSet<RawPtrWillBeMember<const AnimationPlayer>>* suppressedAnimationPlayers, Animation::Priority priority, double timelineCurrentTime)
|
| +ActiveInterpolationMap AnimationStack::activeInterpolations(AnimationStack* animationStack, const HeapVector<Member<InertAnimation>>* newAnimations, const WillBeHeapHashSet<RawPtrWillBeMember<const AnimationPlayer>>* suppressedAnimationPlayers, Animation::Priority priority, double timelineCurrentTime)
|
| {
|
| // We don't exactly know when new animations will start, but timelineCurrentTime is a good estimate.
|
|
|
| ActiveInterpolationMap result;
|
|
|
| if (animationStack) {
|
| - WillBeHeapVector<OwnPtrWillBeMember<SampledEffect>>& effects = animationStack->m_effects;
|
| + HeapVector<Member<SampledEffect>>& effects = animationStack->m_effects;
|
| // std::sort doesn't work with OwnPtrs
|
| nonCopyingSort(effects.begin(), effects.end(), compareEffects);
|
| for (const auto& effect : effects) {
|
|
|