Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGAngle.cpp
index eedb177..6e9b816 100644 (file)
 #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>()
 {
@@ -78,16 +78,14 @@ float SVGMarkerOrientEnumeration::calculateDistance(PassRefPtr<SVGPropertyBase>
 }
 
 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))
 {
@@ -103,13 +101,6 @@ PassRefPtr<SVGAngle> SVGAngle::clone() const
     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) {