#ifndef SVGRadialGradientElement_h
#define SVGRadialGradientElement_h
#include "SVGNames.h"
#include "core/svg/SVGAnimatedLength.h"
#include "core/svg/SVGGradientElement.h"
namespace WebCore {
struct RadialGradientAttributes;
class SVGRadialGradientElement FINAL : public SVGGradientElement {
public:
static PassRefPtr<SVGRadialGradientElement> create(Document&);
bool collectGradientAttributes(RadialGradientAttributes&);
SVGAnimatedLength* cx() const { return m_cx.get(); }
SVGAnimatedLength* cy() const { return m_cy.get(); }
SVGAnimatedLength* r() const { return m_r.get(); }
SVGAnimatedLength* fx() const { return m_fx.get(); }
SVGAnimatedLength* fy() const { return m_fy.get(); }
SVGAnimatedLength* fr() const { return m_fr.get(); }
private:
explicit SVGRadialGradientElement(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_cx;
RefPtr<SVGAnimatedLength> m_cy;
RefPtr<SVGAnimatedLength> m_r;
RefPtr<SVGAnimatedLength> m_fx;
RefPtr<SVGAnimatedLength> m_fy;
RefPtr<SVGAnimatedLength> m_fr;
};
}
#endif