SVGAnimatedTransformListPropertyTearOff.h [plain text]
#ifndef SVGAnimatedTransformListPropertyTearOff_h
#define SVGAnimatedTransformListPropertyTearOff_h
#include "SVGAnimatedListPropertyTearOff.h"
#include "SVGTransformList.h"
#include "SVGTransformListPropertyTearOff.h"
namespace WebCore {
class SVGAnimatedTransformListPropertyTearOff : public SVGAnimatedListPropertyTearOff<SVGTransformList> {
public:
virtual SVGListPropertyTearOff<SVGTransformList>* baseVal() override
{
if (!m_baseVal)
m_baseVal = SVGTransformListPropertyTearOff::create(this, BaseValRole, m_values, m_wrappers);
return static_cast<SVGListPropertyTearOff<SVGTransformList>*>(m_baseVal.get());
}
virtual SVGListPropertyTearOff<SVGTransformList>* animVal() override
{
if (!m_animVal)
m_animVal = SVGTransformListPropertyTearOff::create(this, AnimValRole, m_values, m_wrappers);
return static_cast<SVGListPropertyTearOff<SVGTransformList>*>(m_animVal.get());
}
static PassRefPtr<SVGAnimatedTransformListPropertyTearOff> create(SVGElement* contextElement, const QualifiedName& attributeName, AnimatedPropertyType animatedPropertyType, SVGTransformList& values)
{
ASSERT(contextElement);
return adoptRef(new SVGAnimatedTransformListPropertyTearOff(contextElement, attributeName, animatedPropertyType, values));
}
private:
SVGAnimatedTransformListPropertyTearOff(SVGElement* contextElement, const QualifiedName& attributeName, AnimatedPropertyType animatedPropertyType, SVGTransformList& values)
: SVGAnimatedListPropertyTearOff<SVGTransformList>(contextElement, attributeName, animatedPropertyType, values)
{
}
};
}
#endif // SVGAnimatedTransformListPropertyTearOff_h