#include "config.h"
#include "core/svg/SVGAngle.h"
-#include "bindings/v8/ExceptionState.h"
-#include "bindings/v8/ExceptionStatePlaceholder.h"
+#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ExceptionStatePlaceholder.h"
#include "core/dom/ExceptionCode.h"
#include "core/svg/SVGAnimationElement.h"
#include "core/svg/SVGParserUtilities.h"
#include "wtf/MathExtras.h"
#include "wtf/text/WTFString.h"
-namespace WebCore {
+namespace blink {
template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGMarkerOrientType>()
{
}
SVGAngle::SVGAngle()
- : SVGPropertyBase(classType())
- , m_unitType(SVG_ANGLETYPE_UNSPECIFIED)
+ : m_unitType(SVG_ANGLETYPE_UNSPECIFIED)
, m_valueInSpecifiedUnits(0)
, m_orientType(SVGMarkerOrientEnumeration::create(this))
{
}
SVGAngle::SVGAngle(SVGAngleType unitType, float valueInSpecifiedUnits, SVGMarkerOrientType orientType)
- : SVGPropertyBase(classType())
- , m_unitType(unitType)
+ : m_unitType(unitType)
, m_valueInSpecifiedUnits(valueInSpecifiedUnits)
, m_orientType(SVGMarkerOrientEnumeration::create(this))
{
return adoptRef(new SVGAngle(m_unitType, m_valueInSpecifiedUnits, m_orientType->enumValue()));
}
-PassRefPtr<SVGPropertyBase> SVGAngle::cloneForAnimation(const String& value) const
-{
- RefPtr<SVGAngle> point = create();
- point->setValueAsString(value, IGNORE_EXCEPTION);
- return point.release();
-}
-
float SVGAngle::value() const
{
switch (m_unitType) {