SVGStyledLocatableElement.h [plain text]
#ifndef SVGStyledLocatableElement_h
#define SVGStyledLocatableElement_h
#if ENABLE(SVG)
#include "SVGLocatable.h"
#include "SVGStyledElement.h"
namespace WebCore {
class SVGElement;
class SVGStyledLocatableElement : public SVGStyledElement,
virtual public SVGLocatable {
public:
virtual SVGElement* nearestViewportElement() const;
virtual SVGElement* farthestViewportElement() const;
virtual FloatRect getBBox(StyleUpdateStrategy = AllowStyleUpdate) const;
virtual AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate) const;
virtual AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate) const;
virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope mode) const { return SVGLocatable::localCoordinateSpaceTransform(mode); }
protected:
SVGStyledLocatableElement(const QualifiedName&, Document*);
private:
virtual bool isStyledLocatable() const { return true; }
};
}
#endif // ENABLE(SVG)
#endif // SVGStyledLocatableElement_h