| Index: Source/core/animation/SVGLengthStyleInterpolation.cpp
|
| diff --git a/Source/core/animation/SVGLengthStyleInterpolation.cpp b/Source/core/animation/SVGLengthStyleInterpolation.cpp
|
| index 4af667c11a55348d14742e82d53ab07c0f852fca..7d0415c7389a8f37500b59b973419fbb5cebf31d 100644
|
| --- a/Source/core/animation/SVGLengthStyleInterpolation.cpp
|
| +++ b/Source/core/animation/SVGLengthStyleInterpolation.cpp
|
| @@ -9,18 +9,6 @@
|
|
|
| namespace blink {
|
|
|
| -namespace {
|
| -
|
| -bool isBaseline(const CSSValue& value)
|
| -{
|
| - if (!value.isPrimitiveValue())
|
| - return false;
|
| - const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
|
| - return primitiveValue.isValueID() && primitiveValue.getValueID() == CSSValueBaseline;
|
| -}
|
| -
|
| -} // namespace
|
| -
|
| bool SVGLengthStyleInterpolation::canCreateFrom(const CSSValue& value)
|
| {
|
| if (!value.isPrimitiveValue())
|
| @@ -40,7 +28,7 @@ bool SVGLengthStyleInterpolation::canCreateFrom(const CSSValue& value)
|
| return true;
|
|
|
| default:
|
| - return isBaseline(value);
|
| + return false;
|
| }
|
| }
|
|
|
| @@ -64,11 +52,8 @@ PassRefPtrWillBeRawPtr<SVGLengthStyleInterpolation> SVGLengthStyleInterpolation:
|
| if (!canCreateFrom(start) || !canCreateFrom(end))
|
| return nullptr;
|
|
|
| - RefPtrWillBeRawPtr<CSSPrimitiveValue> zero = CSSPrimitiveValue::create(0, CSSPrimitiveValue::CSS_PX);
|
| - const CSSPrimitiveValue& primitiveStart =
|
| - isBaseline(start) ? *zero : toCSSPrimitiveValue(start);
|
| - const CSSPrimitiveValue& primitiveEnd =
|
| - isBaseline(end) ? *zero : toCSSPrimitiveValue(end);
|
| + const CSSPrimitiveValue& primitiveStart = toCSSPrimitiveValue(start);
|
| + const CSSPrimitiveValue& primitiveEnd = toCSSPrimitiveValue(end);
|
|
|
| CSSPrimitiveValue::UnitType type = primitiveStart.primitiveType();
|
| if (primitiveStart.getDoubleValue() == 0)
|
|
|