#ifndef SVGFEMorphologyElement_h
#define SVGFEMorphologyElement_h
#include "core/svg/SVGAnimatedEnumeration.h"
#include "core/svg/SVGAnimatedNumberOptionalNumber.h"
#include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
#include "platform/graphics/filters/FEMorphology.h"
namespace WebCore {
template<> const SVGEnumerationStringEntries& getStaticStringEntries<MorphologyOperatorType>();
class SVGFEMorphologyElement FINAL : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEMorphologyElement> create(Document&);
void setRadius(float radiusX, float radiusY);
SVGAnimatedNumber* radiusX() { return m_radius->firstNumber(); }
SVGAnimatedNumber* radiusY() { return m_radius->secondNumber(); }
SVGAnimatedString* in1() { return m_in1.get(); }
SVGAnimatedEnumeration<MorphologyOperatorType>* svgOperator() { return m_svgOperator.get(); }
private:
explicit SVGFEMorphologyElement(Document&);
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE;
RefPtr<SVGAnimatedNumberOptionalNumber> m_radius;
RefPtr<SVGAnimatedString> m_in1;
RefPtr<SVGAnimatedEnumeration<MorphologyOperatorType> > m_svgOperator;
};
}
#endif