#ifndef SVGStopElement_h
#define SVGStopElement_h
#include "SVGAnimatedNumber.h"
#include "SVGElement.h"
namespace WebCore {
class SVGStopElement final : public SVGElement {
public:
static PassRefPtr<SVGStopElement> create(const QualifiedName&, Document&);
Color stopColorIncludingOpacity() const;
private:
SVGStopElement(const QualifiedName&, Document&);
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual void svgAttributeChanged(const QualifiedName&) override;
virtual bool isGradientStop() const override { return true; }
virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
virtual bool rendererIsNeeded(const RenderStyle&) override;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGStopElement)
DECLARE_ANIMATED_NUMBER(Offset, offset)
END_DECLARE_ANIMATED_PROPERTIES
};
NODE_TYPE_CASTS(SVGStopElement)
}
#endif