Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGLineElement.h
index 59a25be..67c1ff7 100644 (file)
 #ifndef SVGLineElement_h
 #define SVGLineElement_h
 
-#include "SVGNames.h"
+#include "core/SVGNames.h"
 #include "core/svg/SVGAnimatedBoolean.h"
 #include "core/svg/SVGAnimatedLength.h"
 #include "core/svg/SVGGeometryElement.h"
 
-namespace WebCore {
+namespace blink {
 
 class SVGLineElement FINAL : public SVGGeometryElement {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtr<SVGLineElement> create(Document&);
+    DECLARE_NODE_FACTORY(SVGLineElement);
 
     SVGAnimatedLength* x1() const { return m_x1.get(); }
     SVGAnimatedLength* y1() const { return m_y1.get(); }
@@ -40,26 +41,18 @@ public:
 private:
     explicit SVGLineElement(Document&);
 
-    virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(); }
-
     bool isSupportedAttribute(const QualifiedName&);
     virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
     virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
 
-    virtual bool supportsMarkers() const OVERRIDE { return true; }
-
     virtual bool selfHasRelativeLengths() const OVERRIDE;
 
     RefPtr<SVGAnimatedLength> m_x1;
     RefPtr<SVGAnimatedLength> m_y1;
     RefPtr<SVGAnimatedLength> m_x2;
     RefPtr<SVGAnimatedLength> m_y2;
-    BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLineElement)
-    END_DECLARE_ANIMATED_PROPERTIES
 };
 
-DEFINE_NODE_TYPE_CASTS(SVGLineElement, hasTagName(SVGNames::lineTag));
-
-} // namespace WebCore
+} // namespace blink
 
-#endif
+#endif // SVGLineElement_h