| Index: Source/core/svg/SVGLengthListTearOff.h
|
| diff --git a/Source/core/animation/AnimatableNeutral.h b/Source/core/svg/SVGLengthListTearOff.h
|
| similarity index 62%
|
| copy from Source/core/animation/AnimatableNeutral.h
|
| copy to Source/core/svg/SVGLengthListTearOff.h
|
| index 5b8759ce45bcc445194bd79896b71a01dee33944..8f81d0212853f5d49a8185dd6f15922dce6fb91d 100644
|
| --- a/Source/core/animation/AnimatableNeutral.h
|
| +++ b/Source/core/svg/SVGLengthListTearOff.h
|
| @@ -28,35 +28,31 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef AnimatableNeutral_h
|
| -#define AnimatableNeutral_h
|
| +#ifndef SVGLengthListTearOff_h
|
| +#define SVGLengthListTearOff_h
|
|
|
| -#include "core/animation/AnimatableValue.h"
|
| +#include "core/svg/SVGLengthList.h"
|
| +#include "core/svg/properties/NewSVGListPropertyTearOffHelper.h"
|
|
|
| namespace WebCore {
|
|
|
| -class AnimatableNeutral : public AnimatableValue {
|
| +class SVGLengthListTearOff :
|
| + public NewSVGListPropertyTearOffHelper<SVGLengthListTearOff, SVGLengthList>,
|
| + public ScriptWrappable {
|
| public:
|
| - virtual ~AnimatableNeutral() { }
|
| -
|
| -protected:
|
| - static PassRefPtr<AnimatableNeutral> create() { return adoptRef(new AnimatableNeutral()); }
|
| - virtual PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue* value, double fraction) const OVERRIDE
|
| + static PassRefPtr<SVGLengthListTearOff> create(PassRefPtr<SVGLengthList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
|
| {
|
| - ASSERT_NOT_REACHED();
|
| - return 0;
|
| + return adoptRef(new SVGLengthListTearOff(target, contextElement, propertyIsAnimVal, attributeName));
|
| }
|
|
|
| private:
|
| - friend class AnimatableValue;
|
| - virtual AnimatableType type() const OVERRIDE { return TypeNeutral; }
|
| - virtual bool equalTo(const AnimatableValue* value) const OVERRIDE
|
| + SVGLengthListTearOff(PassRefPtr<SVGLengthList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
|
| + : NewSVGListPropertyTearOffHelper<SVGLengthListTearOff, SVGLengthList>(target, contextElement, propertyIsAnimVal, attributeName)
|
| {
|
| - ASSERT_NOT_REACHED();
|
| - return true;
|
| + ScriptWrappable::init(this);
|
| }
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // AnimatableNeutral_h
|
| +#endif // SVGLengthListTearOff_h_
|
|
|