int InlineBox::height() const { #if ENABLE(SVG) if (hasVirtualHeight()) return virtualHeight(); #endif if (renderer()->isText()) return m_isText ? renderer()->style(m_firstLine)->font().height() : 0; if (renderer()->isBox() && parent()) return toRenderBox(m_renderer)->height(); ASSERT(isInlineFlowBox()); RenderBoxModelObject* flowObject = boxModelObject(); const Font& font = renderer()->style(m_firstLine)->font(); int result = font.height(); if (parent()) result += flowObject->borderTop() + flowObject->paddingTop() + flowObject->borderBottom() + flowObject->paddingBottom(); return result; }