• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/WebCore-7537.78.1/rendering/

Lines Matching refs:descent

768 static void setAscentAndDescent(int& ascent, int& descent, int newAscent, int newDescent, bool& ascentDescentSet)
773 descent = newDescent;
776 descent = max(descent, newDescent);
780 void RootInlineBox::ascentAndDescentForBox(InlineBox* box, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, int& ascent, int& descent,
790 descent = box->lineHeight() - ascent;
792 // Replaced elements always affect both the ascent and descent.
818 int usedFontDescent = fontMetrics.descent(baselineType());
823 setAscentAndDescent(ascent, descent, usedFontAscent, usedFontDescent, ascentDescentSet);
827 setAscentAndDescent(ascent, descent, usedFontAscentAndLeading, usedFontDescentAndLeading, ascentDescentSet);
841 setAscentAndDescent(ascent, descent, ascentWithLeading, descentWithLeading, ascentDescentSet);
853 int fontDescent = box->renderer()->style(isFirstLineStyle())->fontMetrics().descent(baselineType());
854 setAscentAndDescent(ascent, descent, fontAscent, fontDescent, ascentDescentSet);
860 setAscentAndDescent(ascent, descent, glyphOverflow->top, glyphOverflow->bottom, ascentDescentSet);
864 glyphOverflow->bottom = min(glyphOverflow->bottom, max(0, glyphOverflow->bottom - box->renderer()->style(isFirstLineStyle())->fontMetrics().descent(baselineType())));
869 LayoutUnit descentWithMargin = box->renderer()->style(isFirstLineStyle())->fontMetrics().descent(baselineType());
874 setAscentAndDescent(ascent, descent, ascentWithMargin, descentWithMargin, ascentDescentSet);
930 verticalPosition += fontMetrics.descent(baselineType());