#ifndef RenderInline_h
#define RenderInline_h
#include "RenderFlow.h"
namespace WebCore {
class Position;
class RenderInline : public RenderFlow {
public:
RenderInline(Node*);
virtual ~RenderInline();
virtual const char* renderName() const;
virtual bool isRenderInline() const { return true; }
virtual bool childrenInline() const { return true; }
virtual bool isInlineContinuation() const;
virtual void addChildToFlow(RenderObject* newChild, RenderObject* beforeChild);
void splitInlines(RenderBlock* fromBlock, RenderBlock* toBlock, RenderBlock* middleBlock,
RenderObject* beforeChild, RenderFlow* oldCont);
void splitFlow(RenderObject* beforeChild, RenderBlock* newBlockBox,
RenderObject* newChild, RenderFlow* oldCont);
virtual void layout() { }
virtual void paint(PaintInfo&, int tx, int ty);
virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y, int tx, int ty, HitTestAction);
virtual bool requiresLayer() const { return isRelPositioned() || isTransparent() || hasMask(); }
virtual int offsetLeft() const;
virtual int offsetTop() const;
virtual int offsetWidth() const { return linesBoundingBox().width(); }
virtual int offsetHeight() const { return linesBoundingBox().height(); }
void absoluteRects(Vector<IntRect>&, int tx, int ty, bool topLevel = true);
virtual void absoluteQuads(Vector<FloatQuad>&, bool topLevel = true);
virtual IntRect clippedOverflowRectForRepaint(RenderBox* repaintContainer);
virtual VisiblePosition positionForCoordinates(int x, int y);
IntRect linesBoundingBox() const;
virtual IntRect borderBoundingBox() const
{
IntRect boundingBox = linesBoundingBox();
return IntRect(0, 0, boundingBox.width(), boundingBox.height());
}
protected:
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
static RenderInline* cloneInline(RenderFlow* src);
};
}
#endif // RenderInline_h