SVGStyledTransformableElement.h [plain text]
#ifndef SVGStyledTransformableElement_h
#define SVGStyledTransformableElement_h
#if ENABLE(SVG)
#include "SVGStyledLocatableElement.h"
#include "SVGTransformable.h"
namespace WebCore {
class AffineTransform;
class Attribute;
class Node;
class StringImpl;
class SVGTransformList;
class SVGStyledTransformableElement : public SVGStyledLocatableElement, public SVGTransformable {
public:
SVGStyledTransformableElement(const QualifiedName&, Document*);
virtual ~SVGStyledTransformableElement();
virtual bool isStyledTransformable() const { return true; }
virtual AffineTransform localMatrix() const;
virtual AffineTransform getCTM() const;
virtual AffineTransform getScreenCTM() const;
virtual SVGElement* nearestViewportElement() const;
virtual SVGElement* farthestViewportElement() const;
virtual FloatRect getBBox() const;
virtual void parseMappedAttribute(MappedAttribute* attr);
void updateLocalTransform(SVGTransformList* localTransforms);
virtual void attach();
protected:
mutable AffineTransform m_localMatrix;
ANIMATED_PROPERTY_DECLARATIONS(SVGStyledTransformableElement, SVGTransformList*, RefPtr<SVGTransformList>, Transform, transform)
};
}
#endif // ENABLE(SVG)
#endif // SVGStyledTransformableElement_h