This source file includes following definitions.
- m_value
- currentValueBase
- animationStarted
- createAnimatedValue
- setAnimatedValue
- animationEnded
- needsSynchronizeAttribute
- tearOff
- setBaseValueAsString
#include "config.h"
#include "core/svg/SVGStaticStringList.h"
namespace WebCore {
SVGStaticStringList::SVGStaticStringList(SVGElement* contextElement, const QualifiedName& attributeName)
: SVGAnimatedPropertyBase(AnimatedStringList, contextElement, attributeName)
, m_value(SVGStringList::create())
{
ASSERT(contextElement);
}
SVGStaticStringList::~SVGStaticStringList()
{
}
SVGPropertyBase* SVGStaticStringList::currentValueBase()
{
return m_value.get();
}
void SVGStaticStringList::animationStarted()
{
ASSERT_NOT_REACHED();
}
PassRefPtr<SVGPropertyBase> SVGStaticStringList::createAnimatedValue()
{
ASSERT_NOT_REACHED();
return nullptr;
}
void SVGStaticStringList::setAnimatedValue(PassRefPtr<SVGPropertyBase>)
{
ASSERT_NOT_REACHED();
}
void SVGStaticStringList::animationEnded()
{
ASSERT_NOT_REACHED();
}
bool SVGStaticStringList::needsSynchronizeAttribute()
{
return m_tearOff;
}
SVGStringListTearOff* SVGStaticStringList::tearOff()
{
if (!m_tearOff)
m_tearOff = SVGStringListTearOff::create(m_value, contextElement(), PropertyIsNotAnimVal, attributeName());
return m_tearOff.get();
}
void SVGStaticStringList::setBaseValueAsString(const String& value, SVGParsingError& parseError)
{
TrackExceptionState es;
m_value->setValueAsString(value, es);
if (es.hadException())
parseError = ParsingAttributeFailedError;
}
}