SVGFEImageElement.h [plain text]
#ifndef SVGFEImageElement_h
#define SVGFEImageElement_h
#if ENABLE(SVG) && ENABLE(SVG_FILTERS)
#include "CachedResourceHandle.h"
#include "SVGFilterPrimitiveStandardAttributes.h"
#include "SVGURIReference.h"
#include "SVGLangSpace.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGFEImage.h"
#include "SVGPreserveAspectRatio.h"
namespace WebCore {
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*);
virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
bool build(FilterBuilder*);
protected:
virtual SVGFilterEffect* filterEffect(SVGResourceFilter*) const;
virtual const SVGElement* contextElement() const { return this; }
private:
ANIMATED_PROPERTY_DECLARATIONS(SVGFEImageElement, SVGNames::feImageTagString, SVGNames::preserveAspectRatioAttrString, SVGPreserveAspectRatio, PreserveAspectRatio, preserveAspectRatio)
CachedResourceHandle<CachedImage> m_cachedImage;
mutable RefPtr<FEImage> m_filterEffect;
};
}
#endif // ENABLE(SVG)
#endif