| Index: third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
|
| diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
|
| index 23fa5ca7da0013a737e24f4e4bb8ed8055f6f60d..d014691d626fcbb4d5cf37330621b3d706549631 100644
|
| --- a/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
|
| +++ b/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
|
| @@ -44,6 +44,7 @@
|
| #include "core/animation/animatable/AnimatableLengthPoint.h"
|
| #include "core/animation/animatable/AnimatableLengthPoint3D.h"
|
| #include "core/animation/animatable/AnimatableLengthSize.h"
|
| +#include "core/animation/animatable/AnimatablePath.h"
|
| #include "core/animation/animatable/AnimatableRepeatable.h"
|
| #include "core/animation/animatable/AnimatableSVGPaint.h"
|
| #include "core/animation/animatable/AnimatableShadow.h"
|
| @@ -57,6 +58,7 @@
|
| #include "core/css/CSSPrimitiveValueMappings.h"
|
| #include "core/css/CSSPropertyMetadata.h"
|
| #include "core/style/ComputedStyle.h"
|
| +#include "core/svg/SVGPathUtilities.h"
|
| #include "platform/Length.h"
|
| #include "platform/LengthBox.h"
|
| #include "wtf/StdLibExtras.h"
|
| @@ -247,6 +249,11 @@ inline static PassRefPtr<AnimatableValue> createFromShapeValue(ShapeValue* value
|
| return AnimatableUnknown::create(CSSValueNone);
|
| }
|
|
|
| +static PassRefPtr<AnimatableValue> createFromPath(const SVGPathByteStream* pathByteStream)
|
| +{
|
| + return AnimatablePath::create(pathByteStream ? pathByteStream->copy() : nullptr);
|
| +}
|
| +
|
| static double fontStretchToDouble(FontStretch fontStretch)
|
| {
|
| return static_cast<unsigned>(fontStretch);
|
| @@ -573,6 +580,8 @@ PassRefPtr<AnimatableValue> CSSAnimatableValueFactory::create(CSSPropertyID prop
|
| return AnimatableUnknown::create(CSSPrimitiveValue::create(style.verticalAlign()));
|
| case CSSPropertyVisibility:
|
| return AnimatableVisibility::create(style.visibility());
|
| + case CSSPropertyD:
|
| + return createFromPath(style.svgStyle().d());
|
| case CSSPropertyCx:
|
| return createFromLength(style.svgStyle().cx(), style);
|
| case CSSPropertyCy:
|
|
|