RenderForeignObject.h [plain text]
#ifndef RenderForeignObject_h
#define RenderForeignObject_h
#if ENABLE(SVG) && ENABLE(SVG_FOREIGN_OBJECT)
#include "TransformationMatrix.h"
#include "RenderSVGBlock.h"
namespace WebCore {
class SVGForeignObjectElement;
class RenderForeignObject : public RenderSVGBlock {
public:
RenderForeignObject(SVGForeignObjectElement*);
virtual const char* renderName() const { return "RenderForeignObject"; }
virtual void paint(PaintInfo&, int parentX, int parentY);
virtual TransformationMatrix localTransform() const { return m_localTransform; }
virtual bool calculateLocalTransform();
virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false);
virtual bool requiresLayer() const { return false; }
virtual void layout();
virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y, int tx, int ty, HitTestAction);
private:
TransformationMatrix translationForAttributes();
TransformationMatrix m_localTransform;
IntRect m_absoluteBounds;
};
}
#endif // ENABLE(SVG) && ENABLE(SVG_FOREIGN_OBJECT)
#endif // RenderForeignObject_h