#ifndef KSVG_SVGImageElementImpl_H
#define KSVG_SVGImageElementImpl_H
#if SVG_SUPPORT
#include "SVGTests.h"
#include "SVGImageLoader.h"
#include "SVGLangSpace.h"
#include "SVGURIReference.h"
#include "SVGStyledTransformableElement.h"
#include "SVGExternalResourcesRequired.h"
namespace WebCore
{
class SVGAnimatedPreserveAspectRatio;
class SVGAnimatedLength;
class SVGDocument;
class SVGImageElement : public SVGStyledTransformableElement,
public SVGTests,
public SVGLangSpace,
public SVGExternalResourcesRequired,
public SVGURIReference
{
public:
SVGImageElement(const QualifiedName&, Document*);
virtual ~SVGImageElement();
virtual bool isValid() const { return SVGTests::isValid(); }
SVGAnimatedLength *x() const;
SVGAnimatedLength *y() const;
SVGAnimatedLength *width() const;
SVGAnimatedLength *height() const;
SVGAnimatedPreserveAspectRatio *preserveAspectRatio() const;
virtual void parseMappedAttribute(MappedAttribute *attr);
virtual void attach();
virtual bool rendererIsNeeded(RenderStyle *style) { return StyledElement::rendererIsNeeded(style); }
virtual RenderObject *createRenderer(RenderArena *arena, RenderStyle *style);
private:
mutable RefPtr<SVGAnimatedLength> m_x;
mutable RefPtr<SVGAnimatedLength> m_y;
mutable RefPtr<SVGAnimatedLength> m_width;
mutable RefPtr<SVGAnimatedLength> m_height;
mutable RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
SVGImageLoader m_imageLoader;
};
};
#endif // SVG_SUPPORT
#endif