Home | History | Annotate | Download | only in rendering

Lines Matching refs:descent

551 static void setAscentAndDescent(int& ascent, int& descent, int newAscent, int newDescent, bool& ascentDescentSet)
556 descent = newDescent;
559 descent = max(descent, newDescent);
563 void RootInlineBox::ascentAndDescentForBox(InlineBox* box, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, int& ascent, int& descent,
573 descent = box->lineHeight() - ascent;
575 // Replaced elements always affect both the ascent and descent.
601 int usedFontDescent = fontMetrics.descent(baselineType());
606 setAscentAndDescent(ascent, descent, usedFontAscent, usedFontDescent, ascentDescentSet);
610 setAscentAndDescent(ascent, descent, usedFontAscentAndLeading, usedFontDescentAndLeading, ascentDescentSet);
624 setAscentAndDescent(ascent, descent, ascentWithLeading, descentWithLeading, ascentDescentSet);
628 // we are contributing to the maxAscent value. Descent is similar. If any part of our font box is below
636 int fontDescent = box->renderer()->style(m_firstLine)->fontMetrics().descent();
637 setAscentAndDescent(ascent, descent, fontAscent, fontDescent, ascentDescentSet);
643 setAscentAndDescent(ascent, descent, glyphOverflow->top, glyphOverflow->bottom, ascentDescentSet);
647 glyphOverflow->bottom = min(glyphOverflow->bottom, max(0, glyphOverflow->bottom - box->renderer()->style(m_firstLine)->fontMetrics().descent()));
652 int descentWithMargin = box->renderer()->style(m_firstLine)->fontMetrics().descent();
657 setAscentAndDescent(ascent, descent, ascentWithMargin, descentWithMargin, ascentDescentSet);
713 verticalPosition += fontMetrics.descent(baselineType());