#ifndef SVGLineElement_h
#define SVGLineElement_h
#include "SVGNames.h"
#include "core/svg/SVGAnimatedBoolean.h"
#include "core/svg/SVGAnimatedLength.h"
#include "core/svg/SVGGeometryElement.h"
namespace WebCore {
class SVGLineElement FINAL : public SVGGeometryElement {
public:
static PassRefPtr<SVGLineElement> create(Document&);
SVGAnimatedLength* x1() const { return m_x1.get(); }
SVGAnimatedLength* y1() const { return m_y1.get(); }
SVGAnimatedLength* x2() const { return m_x2.get(); }
SVGAnimatedLength* y2() const { return m_y2.get(); }
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 selfHasRelativeLengths() const OVERRIDE;
RefPtr<SVGAnimatedLength> m_x1;
RefPtr<SVGAnimatedLength> m_y1;
RefPtr<SVGAnimatedLength> m_x2;
RefPtr<SVGAnimatedLength> m_y2;
};
}
#endif