SVGAnimatedPreserveAspectRatio.h [plain text]
#ifndef SVGAnimatedPreserveAspectRatio_h
#define SVGAnimatedPreserveAspectRatio_h
#include "SVGAnimatedPropertyTearOff.h"
#include "SVGAnimatedTypeAnimator.h"
#include "SVGPreserveAspectRatio.h"
namespace WebCore {
typedef SVGAnimatedPropertyTearOff<SVGPreserveAspectRatio> SVGAnimatedPreserveAspectRatio;
#define DECLARE_ANIMATED_PRESERVEASPECTRATIO(UpperProperty, LowerProperty) \
DECLARE_ANIMATED_PROPERTY(SVGAnimatedPreserveAspectRatio, SVGPreserveAspectRatio, UpperProperty, LowerProperty)
#define DEFINE_ANIMATED_PRESERVEASPECTRATIO(OwnerType, DOMAttribute, UpperProperty, LowerProperty) \
DEFINE_ANIMATED_PROPERTY(AnimatedPreserveAspectRatio, OwnerType, DOMAttribute, DOMAttribute.localName(), UpperProperty, LowerProperty)
class SVGAnimationElement;
class SVGAnimatedPreserveAspectRatioAnimator final : public SVGAnimatedTypeAnimator {
public:
SVGAnimatedPreserveAspectRatioAnimator(SVGAnimationElement*, SVGElement*);
virtual std::unique_ptr<SVGAnimatedType> constructFromString(const String&) override;
virtual std::unique_ptr<SVGAnimatedType> startAnimValAnimation(const SVGElementAnimatedPropertyList&) override;
virtual void stopAnimValAnimation(const SVGElementAnimatedPropertyList&) override;
virtual void resetAnimValToBaseVal(const SVGElementAnimatedPropertyList&, SVGAnimatedType*) override;
virtual void animValWillChange(const SVGElementAnimatedPropertyList&) override;
virtual void animValDidChange(const SVGElementAnimatedPropertyList&) override;
virtual void addAnimatedTypes(SVGAnimatedType*, SVGAnimatedType*) override;
virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*) override;
virtual float calculateDistance(const String& fromString, const String& toString) override;
};
}
#endif