#ifndef RenderBR_h
#define RenderBR_h
#include "core/rendering/RenderText.h"
namespace WebCore {
class Position;
class RenderBR FINAL : public RenderText {
public:
explicit RenderBR(Node*);
virtual ~RenderBR();
virtual const char* renderName() const OVERRIDE { return "RenderBR"; }
virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* , bool ) OVERRIDE { return LayoutRect(); }
virtual float width(unsigned , unsigned , const Font&, float , TextDirection, HashSet<const SimpleFontData*>* = 0 , GlyphOverflow* = 0) const OVERRIDE { return 0; }
virtual float width(unsigned , unsigned , float , TextDirection, bool = false , HashSet<const SimpleFontData*>* = 0 , GlyphOverflow* = 0) const OVERRIDE { return 0; }
int lineHeight(bool firstLine) const;
virtual bool isBR() const OVERRIDE { return true; }
virtual int caretMinOffset() const OVERRIDE;
virtual int caretMaxOffset() const OVERRIDE;
virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE FINAL;
protected:
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE;
private:
mutable int m_lineHeight;
};
DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBR, isBR());
}
#endif