SVGFEImageElement.h [plain text]
#ifndef SVGFEImageElement_h
#define SVGFEImageElement_h
#if ENABLE(SVG) && ENABLE(SVG_FILTERS)
#include "SVGFilterPrimitiveStandardAttributes.h"
#include "SVGURIReference.h"
#include "SVGLangSpace.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGFEImage.h"
namespace WebCore {
class SVGPreserveAspectRatio;
class SVGFEImageElement : public SVGFilterPrimitiveStandardAttributes,
public SVGURIReference,
public SVGLangSpace,
public SVGExternalResourcesRequired,
public CachedResourceClient
{
public:
SVGFEImageElement(const QualifiedName&, Document*);
virtual ~SVGFEImageElement();
virtual void parseMappedAttribute(MappedAttribute*);
virtual void notifyFinished(CachedResource*);
protected:
virtual SVGFEImage* filterEffect(SVGResourceFilter*) const;
protected:
virtual const SVGElement* contextElement() const { return this; }
private:
ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference, String, Href, href)
ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGExternalResourcesRequired, bool, ExternalResourcesRequired, externalResourcesRequired)
ANIMATED_PROPERTY_DECLARATIONS(SVGFEImageElement, SVGPreserveAspectRatio*, RefPtr<SVGPreserveAspectRatio>, PreserveAspectRatio, preserveAspectRatio)
CachedImage* m_cachedImage;
mutable SVGFEImage* m_filterEffect;
};
}
#endif // ENABLE(SVG)
#endif