1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef TransformSVGInterpolation_h
6 #define TransformSVGInterpolation_h
8 #include "core/animation/SVGInterpolation.h"
9 #include "core/svg/SVGTransformList.h"
10 #include "wtf/Allocator.h"
14 class TransformSVGInterpolation
{
15 STATIC_ONLY(TransformSVGInterpolation
);
17 typedef SVGTransformList ListType
;
18 typedef SVGTransformType NonInterpolableType
;
20 static bool canCreateFrom(SVGTransform
* start
, SVGTransform
* end
);
22 static PassRefPtrWillBeRawPtr
<SVGTransformList
> createList(const SVGAnimatedPropertyBase
&)
24 return SVGTransformList::create();
27 static PassOwnPtr
<InterpolableValue
> toInterpolableValue(SVGTransform
*, const SVGAnimatedPropertyBase
*, SVGTransformType
*);
29 static PassRefPtrWillBeRawPtr
<SVGTransform
> fromInterpolableValue(const InterpolableValue
&, SVGTransformType
, const SVGElement
*);
34 #endif // TransformSVGInterpolation_h