SVGRootInlineBox.h [plain text]
#ifndef SVGRootInlineBox_h
#define SVGRootInlineBox_h
#include "RootInlineBox.h"
#include "SVGRenderSupport.h"
#include "SVGTextLayoutEngine.h"
namespace WebCore {
class RenderSVGText;
class SVGInlineTextBox;
class SVGRootInlineBox final : public RootInlineBox {
public:
explicit SVGRootInlineBox(RenderSVGText&);
RenderSVGText& renderSVGText();
virtual float virtualLogicalHeight() const override { return m_logicalHeight; }
void setLogicalHeight(float height) { m_logicalHeight = height; }
virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) override;
void computePerCharacterLayoutInformation();
InlineBox* closestLeafChildForPosition(const LayoutPoint&);
private:
virtual bool isSVGRootInlineBox() const override { return true; }
void reorderValueLists(Vector<SVGTextLayoutAttributes*>&);
void layoutCharactersInTextBoxes(InlineFlowBox*, SVGTextLayoutEngine&);
void layoutChildBoxes(InlineFlowBox*, FloatRect* = nullptr);
void layoutRootBox(const FloatRect&);
float m_logicalHeight;
};
}
SPECIALIZE_TYPE_TRAITS_INLINE_BOX(SVGRootInlineBox, isSVGRootInlineBox())
#endif // SVGRootInlineBox_h