This source file includes following definitions.
- m_orientType
- synchronizeAttribute
- animationStarted
- setAnimatedValue
- animationEnded
#include "config.h"
#include "core/svg/SVGAnimatedAngle.h"
#include "SVGNames.h"
#include "core/svg/SVGAngleTearOff.h"
#include "core/svg/SVGMarkerElement.h"
namespace WebCore {
SVGAnimatedAngle::SVGAnimatedAngle(SVGMarkerElement* contextElement)
: SVGAnimatedProperty<SVGAngle>(contextElement, SVGNames::orientAttr, SVGAngle::create())
, m_orientType(SVGAnimatedEnumeration<SVGMarkerOrientType>::create(contextElement, SVGNames::orientAttr, baseValue()->orientType()))
{
}
SVGAnimatedAngle::~SVGAnimatedAngle()
{
}
void SVGAnimatedAngle::synchronizeAttribute()
{
ASSERT(needsSynchronizeAttribute());
AtomicString value;
if (m_orientType->currentValue()->enumValue() == SVGMarkerOrientAuto)
value = "auto";
else
value = AtomicString(currentValue()->valueAsString());
contextElement()->setSynchronizedLazyAttribute(attributeName(), value);
}
void SVGAnimatedAngle::animationStarted()
{
SVGAnimatedProperty<SVGAngle>::animationStarted();
m_orientType->animationStarted();
}
void SVGAnimatedAngle::setAnimatedValue(PassRefPtr<SVGPropertyBase> value)
{
SVGAnimatedProperty<SVGAngle>::setAnimatedValue(value);
m_orientType->setAnimatedValue(currentValue()->orientType());
}
void SVGAnimatedAngle::animationEnded()
{
SVGAnimatedProperty<SVGAngle>::animationEnded();
m_orientType->animationEnded();
}
}