RenderSVGContainer.h [plain text]
#ifndef RenderSVGContainer_h
#define RenderSVGContainer_h
#if ENABLE(SVG)
#include "RenderSVGModelObject.h"
namespace WebCore {
class SVGElement;
class RenderSVGContainer : public RenderSVGModelObject {
public:
RenderSVGContainer(SVGStyledElement*);
~RenderSVGContainer();
virtual RenderObjectChildList* virtualChildren() { return children(); }
virtual const RenderObjectChildList* virtualChildren() const { return children(); }
const RenderObjectChildList* children() const { return &m_children; }
RenderObjectChildList* children() { return &m_children; }
void setDrawsContents(bool);
bool drawsContents() const;
virtual bool isSVGContainer() const { return true; }
virtual const char* renderName() const { return "RenderSVGContainer"; }
virtual void layout();
virtual void paint(PaintInfo&, int parentX, int parentY);
virtual void addFocusRingRects(GraphicsContext*, int tx, int ty);
virtual FloatRect objectBoundingBox() const;
virtual FloatRect repaintRectInLocalCoordinates() const;
virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const FloatPoint& pointInParent, HitTestAction);
protected:
virtual void calculateLocalTransform() { }
virtual void calcViewport() { }
virtual void applyViewportClip(PaintInfo&) { }
virtual bool pointIsInsideViewportClip(const FloatPoint& ) { return true; }
private:
bool selfWillPaint() const;
RenderObjectChildList m_children;
bool m_drawsContents : 1;
};
}
#endif // ENABLE(SVG)
#endif // RenderSVGContainer_h