This source file includes following definitions.
- m_secondInteger
- animationStarted
- setAnimatedValue
- animationEnded
- needsSynchronizeAttribute
#include "config.h"
#include "core/svg/SVGAnimatedIntegerOptionalInteger.h"
namespace WebCore {
SVGAnimatedIntegerOptionalInteger::SVGAnimatedIntegerOptionalInteger(SVGElement* contextElement, const QualifiedName& attributeName, float initialFirstValue, float initialSecondValue)
: SVGAnimatedPropertyCommon<SVGIntegerOptionalInteger>(contextElement, attributeName,
SVGIntegerOptionalInteger::create(SVGInteger::create(initialFirstValue), SVGInteger::create(initialSecondValue)))
, m_firstInteger(SVGAnimatedInteger::create(contextElement, attributeName, baseValue()->firstInteger()))
, m_secondInteger(SVGAnimatedInteger::create(contextElement, attributeName, baseValue()->secondInteger()))
{
m_firstInteger->setParentOptionalInteger(this);
m_secondInteger->setParentOptionalInteger(this);
}
void SVGAnimatedIntegerOptionalInteger::animationStarted()
{
SVGAnimatedPropertyCommon<SVGIntegerOptionalInteger>::animationStarted();
m_firstInteger->animationStarted();
m_secondInteger->animationStarted();
}
void SVGAnimatedIntegerOptionalInteger::setAnimatedValue(PassRefPtr<SVGPropertyBase> value)
{
SVGAnimatedPropertyCommon<SVGIntegerOptionalInteger>::setAnimatedValue(value);
m_firstInteger->setAnimatedValue(currentValue()->firstInteger());
m_secondInteger->setAnimatedValue(currentValue()->secondInteger());
}
void SVGAnimatedIntegerOptionalInteger::animationEnded()
{
SVGAnimatedPropertyCommon<SVGIntegerOptionalInteger>::animationEnded();
m_firstInteger->animationEnded();
m_secondInteger->animationEnded();
}
bool SVGAnimatedIntegerOptionalInteger::needsSynchronizeAttribute()
{
return m_firstInteger->needsSynchronizeAttribute()
|| m_secondInteger->needsSynchronizeAttribute();
}
}