#ifndef SVGLinearGradientElement_h
#define SVGLinearGradientElement_h
#include "SVGNames.h"
#include "core/svg/SVGAnimatedLength.h"
#include "core/svg/SVGGradientElement.h"
namespace WebCore {
struct LinearGradientAttributes;
class SVGLinearGradientElement FINAL : public SVGGradientElement {
public:
static PassRefPtr<SVGLinearGradientElement> create(Document&);
bool collectGradientAttributes(LinearGradientAttributes&);
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 SVGLinearGradientElement(Document&);
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
virtual bool selfHasRelativeLengths() const OVERRIDE;
RefPtr<SVGAnimatedLength> m_x1;
RefPtr<SVGAnimatedLength> m_y1;
RefPtr<SVGAnimatedLength> m_x2;
RefPtr<SVGAnimatedLength> m_y2;
};
}
#endif