| Index: Source/core/animation/DeferredLegacyStyleInterpolation.cpp
|
| diff --git a/Source/core/animation/DeferredLegacyStyleInterpolation.cpp b/Source/core/animation/DeferredLegacyStyleInterpolation.cpp
|
| index 95d4b2d072b7cd91ab348118f41f38e69545067f..4a1b60fca0f9ea44600589c5573f3eb541f89743 100644
|
| --- a/Source/core/animation/DeferredLegacyStyleInterpolation.cpp
|
| +++ b/Source/core/animation/DeferredLegacyStyleInterpolation.cpp
|
| @@ -14,7 +14,7 @@
|
| #include "core/css/CSSSVGDocumentValue.h"
|
| #include "core/css/CSSShadowValue.h"
|
| #include "core/css/CSSValueList.h"
|
| -#include "core/css/Pair.h"
|
| +#include "core/css/CSSValuePair.h"
|
| #include "core/css/resolver/StyleResolver.h"
|
| #include "core/css/resolver/StyleResolverState.h"
|
|
|
| @@ -54,6 +54,8 @@ bool DeferredLegacyStyleInterpolation::interpolationRequiresStyleResolve(const C
|
| return interpolationRequiresStyleResolve(toCSSQuadValue(value));
|
| if (value.isValueList())
|
| return interpolationRequiresStyleResolve(toCSSValueList(value));
|
| + if (value.isValuePair())
|
| + return interpolationRequiresStyleResolve(toCSSValuePair(value));
|
| if (value.isImageValue())
|
| return interpolationRequiresStyleResolve(toCSSImageValue(value));
|
| if (value.isShadowValue())
|
| @@ -86,11 +88,6 @@ bool DeferredLegacyStyleInterpolation::interpolationRequiresStyleResolve(const C
|
| || lengthArray[CSSPrimitiveValue::UnitTypeViewportMax] != 0;
|
| }
|
|
|
| - if (Pair* pair = primitiveValue.getPairValue()) {
|
| - return interpolationRequiresStyleResolve(*pair->first())
|
| - || interpolationRequiresStyleResolve(*pair->second());
|
| - }
|
| -
|
| if (primitiveValue.isShape())
|
| return interpolationRequiresStyleResolve(*primitiveValue.getShapeValue());
|
|
|
| @@ -131,6 +128,12 @@ bool DeferredLegacyStyleInterpolation::interpolationRequiresStyleResolve(const C
|
| return false;
|
| }
|
|
|
| +bool DeferredLegacyStyleInterpolation::interpolationRequiresStyleResolve(const CSSValuePair& pair)
|
| +{
|
| + return interpolationRequiresStyleResolve(*pair.first())
|
| + || interpolationRequiresStyleResolve(*pair.second());
|
| +}
|
| +
|
| bool DeferredLegacyStyleInterpolation::interpolationRequiresStyleResolve(const CSSBasicShape& shape)
|
| {
|
| // FIXME: Should determine the specific shape, and inspect the members.
|
| @@ -145,7 +148,6 @@ bool DeferredLegacyStyleInterpolation::interpolationRequiresStyleResolve(const C
|
| || interpolationRequiresStyleResolve(*quad.left());
|
| }
|
|
|
| -
|
| DEFINE_TRACE(DeferredLegacyStyleInterpolation)
|
| {
|
| visitor->trace(m_startCSSValue);
|
|
|