Lines Matching refs:ascent
518 // The primary purpose of this function is to compute the maximal ascent and descent values for
532 // part of the box (EXCLUDING leading) is above (for ascent) or below (for descent) the root box's baseline.
539 int ascent = 0;
541 rootBox->ascentAndDescentForBox(rootBox, textBoxDataMap, ascent, descent, affectsAscent, affectsDescent);
543 if (maxAscent < ascent || !setMaxAscent) {
544 maxAscent = ascent;
571 int ascent = 0;
573 rootBox->ascentAndDescentForBox(curr, textBoxDataMap, ascent, descent, affectsAscent, affectsDescent);
575 LayoutUnit boxHeight = ascent + descent;
585 // if our box (excluding line-height) was above (for ascent) or below (for descent) the root baseline, once you factor in line-height
587 // means is that ascent and descent (including leading), can end up being negative. The setMaxAscent and
590 ascent -= curr->logicalTop();
592 if (affectsAscent && (maxAscent < ascent || !setMaxAscent)) {
593 maxAscent = ascent;
618 setLogicalTop(roundToInt(top + maxAscent - fontMetrics.ascent(baselineType)));
658 newLogicalTop += curr->baselinePosition(baselineType) - fontMetrics.ascent(baselineType);