SVGAnimatedLength.h [plain text]
#ifndef SVGAnimatedLength_h
#define SVGAnimatedLength_h
#if ENABLE(SVG)
#include "SVGAnimatedPropertyTearOff.h"
#include "SVGAnimatedTypeAnimator.h"
#include "SVGLength.h"
namespace WebCore {
typedef SVGAnimatedPropertyTearOff<SVGLength> SVGAnimatedLength;
#define DECLARE_ANIMATED_LENGTH(UpperProperty, LowerProperty) \
DECLARE_ANIMATED_PROPERTY(SVGAnimatedLength, SVGLength, UpperProperty, LowerProperty)
#define DEFINE_ANIMATED_LENGTH(OwnerType, DOMAttribute, UpperProperty, LowerProperty) \
DEFINE_ANIMATED_PROPERTY(AnimatedLength, OwnerType, DOMAttribute, DOMAttribute.localName(), UpperProperty, LowerProperty)
class SVGAnimationElement;
class SVGAnimatedLengthAnimator : public SVGAnimatedTypeAnimator {
public:
SVGAnimatedLengthAnimator(SVGAnimationElement*, SVGElement*);
virtual ~SVGAnimatedLengthAnimator() { }
virtual PassOwnPtr<SVGAnimatedType> constructFromString(const String&);
virtual PassOwnPtr<SVGAnimatedType> startAnimValAnimation(const SVGElementAnimatedPropertyList&);
virtual void stopAnimValAnimation(const SVGElementAnimatedPropertyList&);
virtual void resetAnimValToBaseVal(const SVGElementAnimatedPropertyList&, SVGAnimatedType*);
virtual void animValWillChange(const SVGElementAnimatedPropertyList&);
virtual void animValDidChange(const SVGElementAnimatedPropertyList&);
virtual void addAnimatedTypes(SVGAnimatedType*, SVGAnimatedType*);
virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*);
virtual float calculateDistance(const String& fromString, const String& toString);
private:
SVGLengthMode m_lengthMode;
};
}
#endif // ENABLE(SVG)
#endif