Chromium Code Reviews| 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..e0a5fb9f782797aaa2fa1b6565ecf778b71ab210 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" |
|
fs
2015/12/15 11:52:53
This doesn't appear to be used here?
Eric Willigers
2015/12/15 22:33:55
Removed.
|
| #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(CSSPathValue* pathValue) |
| +{ |
| + return AnimatablePath::create(pathValue); |
| +} |
| + |
| 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: |