Home | History | Annotate | Download | only in rendering

Lines Matching refs:descent

483     // The primary purpose of this function is to compute the maximal ascent and descent values for
497 // part of the box (EXCLUDING leading) is above (for ascent) or below (for descent) the root box's baseline.
505 int descent = 0;
506 rootBox->ascentAndDescentForBox(rootBox, textBoxDataMap, ascent, descent, affectsAscent, affectsDescent);
512 if (maxDescent < descent || !setMaxDescent) {
513 maxDescent = descent;
537 int descent = 0;
538 rootBox->ascentAndDescentForBox(curr, textBoxDataMap, ascent, descent, affectsAscent, affectsDescent);
540 int boxHeight = ascent + descent;
550 // if our box (excluding line-height) was above (for ascent) or below (for descent) the root baseline, once you factor in line-height
552 // means is that ascent and descent (including leading), can end up being negative. The setMaxAscent and
553 // setMaxDescent booleans are used to ensure that we're willing to initially set maxAscent/Descent to negative
556 descent += curr->logicalTop();
562 if (affectsDescent && (maxDescent < descent || !setMaxDescent)) {
563 maxDescent = descent;