SVGFEImageElement.h [plain text]
#ifndef SVGFEImageElement_h
#define SVGFEImageElement_h
#if ENABLE(SVG) && ENABLE(FILTERS)
#include "CachedResourceClient.h"
#include "CachedResourceHandle.h"
#include "ImageBuffer.h"
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedPreserveAspectRatio.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGFEImage.h"
#include "SVGFilterPrimitiveStandardAttributes.h"
#include "SVGLangSpace.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGFEImageElement : public SVGFilterPrimitiveStandardAttributes,
public SVGURIReference,
public SVGLangSpace,
public SVGExternalResourcesRequired,
public CachedResourceClient {
public:
static PassRefPtr<SVGFEImageElement> create(const QualifiedName&, Document*);
virtual ~SVGFEImageElement();
private:
SVGFEImageElement(const QualifiedName&, Document*);
virtual void parseMappedAttribute(Attribute*);
virtual void svgAttributeChanged(const QualifiedName&);
virtual void synchronizeProperty(const QualifiedName&);
virtual void fillAttributeToPropertyTypeMap();
virtual AttributeToPropertyTypeMap& attributeToPropertyTypeMap();
virtual void notifyFinished(CachedResource*);
virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*);
void requestImageResource();
DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspectRatio)
DECLARE_ANIMATED_STRING(Href, href)
DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
CachedResourceHandle<CachedImage> m_cachedImage;
OwnPtr<ImageBuffer> m_targetImage;
};
}
#endif // ENABLE(SVG)
#endif