#include "core/svg/SVGAnimateMotionElement.h"
#include "core/SVGNames.h"
+#include "core/dom/ElementTraversal.h"
#include "core/rendering/RenderObject.h"
#include "core/rendering/svg/RenderSVGResource.h"
#include "core/rendering/svg/SVGPathData.h"
#include "wtf/MathExtras.h"
#include "wtf/StdLibExtras.h"
-namespace WebCore {
+namespace blink {
using namespace SVGNames;
return true;
}
-bool SVGAnimateMotionElement::isSupportedAttribute(const QualifiedName& attrName)
-{
- DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
- if (supportedAttributes.isEmpty())
- supportedAttributes.add(SVGNames::pathAttr);
- return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
-}
-
void SVGAnimateMotionElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
{
- if (!isSupportedAttribute(name)) {
- SVGAnimationElement::parseAttribute(name, value);
- return;
- }
-
if (name == SVGNames::pathAttr) {
m_path = Path();
buildPathFromString(value, m_path);
return;
}
- ASSERT_NOT_REACHED();
+ SVGAnimationElement::parseAttribute(name, value);
}
SVGAnimateMotionElement::RotateMode SVGAnimateMotionElement::rotateMode() const