Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGAnimatedLength.h
index 36efeb0..54f8c2b 100644 (file)
 #define SVGAnimatedLength_h
 
 #include "core/svg/SVGLengthTearOff.h"
-#include "core/svg/properties/NewSVGAnimatedProperty.h"
+#include "core/svg/properties/SVGAnimatedProperty.h"
 
-namespace WebCore {
+namespace blink {
 
-class SVGAnimatedLength : public NewSVGAnimatedProperty<SVGLength> {
+class SVGAnimatedLength : public SVGAnimatedProperty<SVGLength> {
 public:
-    static PassRefPtr<SVGAnimatedLength> create(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtr<SVGLength> initialValue)
+    static PassRefPtr<SVGAnimatedLength> create(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtr<SVGLength> initialValue, SVGLengthNegativeValuesMode negativeValuesMode)
     {
-        return adoptRef(new SVGAnimatedLength(contextElement, attributeName, initialValue));
+        return adoptRef(new SVGAnimatedLength(contextElement, attributeName, initialValue, negativeValuesMode));
     }
 
     void setDefaultValueAsString(const String&);
-    void setBaseValueAsString(const String&, SVGLengthNegativeValuesMode, SVGParsingError&);
+    void setBaseValueAsString(const String&, SVGParsingError&) override;
 
 protected:
-    SVGAnimatedLength(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtr<SVGLength> initialValue)
-        : NewSVGAnimatedProperty<SVGLength>(contextElement, attributeName, initialValue)
+    SVGAnimatedLength(SVGElement* contextElement, const QualifiedName& attributeName, PassRefPtr<SVGLength> initialValue, SVGLengthNegativeValuesMode negativeValuesMode)
+        : SVGAnimatedProperty<SVGLength>(contextElement, attributeName, initialValue)
+        , m_negativeValuesMode(negativeValuesMode)
     {
     }
+
+private:
+    SVGLengthNegativeValuesMode m_negativeValuesMode;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // SVGAnimatedLength_h