blob: 67dfa4e4f26007bb4912dc272001d2b70cbf8fc9 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TransformSVGInterpolation_h
#define TransformSVGInterpolation_h
#include "core/animation/SVGInterpolation.h"
#include "core/svg/SVGTransformList.h"
#include "wtf/Allocator.h"
namespace blink {
class TransformSVGInterpolation {
STATIC_ONLY(TransformSVGInterpolation);
public:
typedef SVGTransformList ListType;
typedef SVGTransformType NonInterpolableType;
static bool canCreateFrom(SVGTransform* start, SVGTransform* end);
static PassRefPtrWillBeRawPtr<SVGTransformList> createList(const SVGAnimatedPropertyBase&)
{
return SVGTransformList::create();
}
static PassOwnPtr<InterpolableValue> toInterpolableValue(SVGTransform*, const SVGAnimatedPropertyBase*, SVGTransformType*);
static PassRefPtrWillBeRawPtr<SVGTransform> fromInterpolableValue(const InterpolableValue&, SVGTransformType, const SVGElement*);
};
}
#endif // TransformSVGInterpolation_h