1 // Copyright 2012 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.
7 #include "CCAnimationCurve.h"
11 const CCFloatAnimationCurve
* CCAnimationCurve::toFloatAnimationCurve() const
13 ASSERT(type() == CCAnimationCurve::Float
);
14 return static_cast<const CCFloatAnimationCurve
*>(this);
17 const CCTransformAnimationCurve
* CCAnimationCurve::toTransformAnimationCurve() const
19 ASSERT(type() == CCAnimationCurve::Transform
);
20 return static_cast<const CCTransformAnimationCurve
*>(this);
23 } // namespace WebCore