#include "platform/FloatConversion.h"
#include "wtf/MathExtras.h"
-namespace WebCore {
+namespace blink {
SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document& document)
: SVGSMILElement(tagName, document)
- , SVGTests(this)
, m_fromPropertyValueType(RegularPropertyValue)
, m_toPropertyValueType(RegularPropertyValue)
, m_animationValid(false)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
if (supportedAttributes.isEmpty()) {
- SVGTests::addSupportedAttributes(supportedAttributes);
supportedAttributes.add(SVGNames::valuesAttr);
supportedAttributes.add(SVGNames::keyTimesAttr);
supportedAttributes.add(SVGNames::keyPointsAttr);
return;
}
- if (SVGTests::parseAttribute(name, value))
- return;
-
ASSERT_NOT_REACHED();
}
{
m_animationValid = false;
+ if (!isValid())
+ return;
+
if (!hasValidAttributeType())
return;