#ifndef RenderSVGTransformableContainer_h
#define RenderSVGTransformableContainer_h
#include "core/rendering/svg/RenderSVGContainer.h"
namespace WebCore {
class SVGGraphicsElement;
class RenderSVGTransformableContainer FINAL : public RenderSVGContainer {
public:
explicit RenderSVGTransformableContainer(SVGGraphicsElement*);
virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE;
virtual bool isSVGTransformableContainer() const OVERRIDE { return true; }
virtual const AffineTransform& localToParentTransform() const OVERRIDE { return m_localTransform; }
virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = true; }
virtual bool didTransformToRootUpdate() OVERRIDE { return m_didTransformToRootUpdate; }
private:
virtual bool calculateLocalTransform() OVERRIDE;
virtual AffineTransform localTransform() const OVERRIDE { return m_localTransform; }
bool m_needsTransformUpdate : 1;
bool m_didTransformToRootUpdate : 1;
AffineTransform m_localTransform;
FloatSize m_lastTranslation;
};
}
#endif