| Index: Source/core/animation/AnimatableLength.cpp
|
| diff --git a/Source/core/animation/AnimatableLength.cpp b/Source/core/animation/AnimatableLength.cpp
|
| index 9cf7ba12b99956660b378b886ed053b435c35336..38a46590dbbc745289e80b2f516848c905b4b653 100644
|
| --- a/Source/core/animation/AnimatableLength.cpp
|
| +++ b/Source/core/animation/AnimatableLength.cpp
|
| @@ -97,6 +97,10 @@ PassRefPtr<AnimatableValue> AnimatableLength::interpolateTo(const AnimatableValu
|
| if (type != UnitTypeCalc)
|
| return AnimatableLength::create(blend(m_number, length->m_number, fraction), type);
|
|
|
| + // FIXME(crbug.com/168840): Support for viewport units in calc needs to be added before we can blend them with other units.
|
| + if (isViewportUnit() || length->isViewportUnit())
|
| + return defaultInterpolateTo(this, value, fraction);
|
| +
|
| return AnimatableLength::create(scale(1 - fraction).get(), length->scale(fraction).get());
|
| }
|
|
|
|
|