| Index: third_party/WebKit/Source/core/animation/CSSPositionAxisListInterpolationType.cpp
|
| diff --git a/third_party/WebKit/Source/core/animation/CSSPositionAxisListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSPositionAxisListInterpolationType.cpp
|
| index d40c967abe2c876c30b9711b728257aa72666408..23c4b7c0cb8dbba8560ce2af2a1f1c51c2e9a2d2 100644
|
| --- a/third_party/WebKit/Source/core/animation/CSSPositionAxisListInterpolationType.cpp
|
| +++ b/third_party/WebKit/Source/core/animation/CSSPositionAxisListInterpolationType.cpp
|
| @@ -6,7 +6,7 @@
|
|
|
| #include "core/animation/LengthInterpolationFunctions.h"
|
| #include "core/animation/ListInterpolationFunctions.h"
|
| -#include "core/css/CSSPrimitiveValue.h"
|
| +#include "core/css/CSSIdentifierValue.h"
|
| #include "core/css/CSSValueList.h"
|
| #include "core/css/CSSValuePair.h"
|
|
|
| @@ -19,20 +19,20 @@ CSSPositionAxisListInterpolationType::convertPositionAxisCSSValue(
|
| const CSSValuePair& pair = toCSSValuePair(value);
|
| InterpolationValue result =
|
| LengthInterpolationFunctions::maybeConvertCSSValue(pair.second());
|
| - CSSValueID side = toCSSPrimitiveValue(pair.first()).getValueID();
|
| + CSSValueID side = toCSSIdentifierValue(pair.first()).getValueID();
|
| if (side == CSSValueRight || side == CSSValueBottom)
|
| LengthInterpolationFunctions::subtractFromOneHundredPercent(result);
|
| return result;
|
| }
|
|
|
| - if (!value.isPrimitiveValue())
|
| - return nullptr;
|
| -
|
| - const CSSPrimitiveValue& primitveValue = toCSSPrimitiveValue(value);
|
| - if (!primitveValue.isValueID())
|
| + if (value.isPrimitiveValue())
|
| return LengthInterpolationFunctions::maybeConvertCSSValue(value);
|
|
|
| - switch (primitveValue.getValueID()) {
|
| + if (!value.isIdentifierValue())
|
| + return nullptr;
|
| +
|
| + const CSSIdentifierValue& ident = toCSSIdentifierValue(value);
|
| + switch (ident.getValueID()) {
|
| case CSSValueLeft:
|
| case CSSValueTop:
|
| return LengthInterpolationFunctions::createInterpolablePercent(0);
|
|
|