24 #ifndef SVGFilterElement_h
25 #define SVGFilterElement_h
27 #if ENABLE(SVG) && ENABLE(SVG_FILTERS)
37 class SVGFilterElement :
public SVGStyledElement,
38 public SVGURIReference,
40 public SVGExternalResourcesRequired
43 SVGFilterElement(
const QualifiedName&, Document*);
44 virtual ~SVGFilterElement();
46 virtual SVGResource* canvasResource();
48 void setFilterRes(
unsigned long filterResX,
unsigned long filterResY)
const;
50 virtual void parseMappedAttribute(MappedAttribute*);
51 virtual bool rendererIsNeeded(RenderStyle*) {
return false; }
54 virtual const SVGElement* contextElement()
const {
return this; }
57 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference,
String, Href, href)
58 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGExternalResourcesRequired,
bool, ExternalResourcesRequired, externalResourcesRequired)
60 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement,
int,
int, FilterUnits, filterUnits)
61 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement,
int,
int, PrimitiveUnits, primitiveUnits)
62 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement, SVGLength, SVGLength, X, x)
63 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement, SVGLength, SVGLength, Y, y)
64 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement, SVGLength, SVGLength, Width, width)
65 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement, SVGLength, SVGLength, Height, height)
66 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement,
long,
long, FilterResX, filterResX)
67 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement,
long,
long, FilterResY, filterResY)
69 RefPtr<SVGResourceFilter> m_filter;