ascent 2149 Source/core/html/canvas/CanvasRenderingContext2D.cpp const float ascent = fontMetrics.floatAscent(); ascent 2153 Source/core/html/canvas/CanvasRenderingContext2D.cpp metrics->setFontBoundingBoxAscent(ascent - baselineY); ascent 2163 Source/core/html/canvas/CanvasRenderingContext2D.cpp metrics->setHangingBaseline(-0.8f * ascent + baselineY); ascent 2253 Source/core/html/canvas/CanvasRenderingContext2D.cpp location.y() - fontMetrics.ascent() - fontMetrics.lineGap(), ascent 2304 Source/core/html/canvas/CanvasRenderingContext2D.cpp return fontMetrics.ascent(); ascent 2308 Source/core/html/canvas/CanvasRenderingContext2D.cpp return (fontMetrics.ascent() * 4) / 5; ascent 50 Source/core/rendering/EllipsisBox.cpp FloatPoint textOrigin = FloatPoint(boxOrigin.x(), boxOrigin.y() + font.fontMetrics().ascent()); ascent 124 Source/core/rendering/EllipsisBox.cpp y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer().style(isFirstLineStyle())->fontMetrics().ascent())); ascent 167 Source/core/rendering/EllipsisBox.cpp LayoutUnit mty = adjustedLocation.y() + style->fontMetrics().ascent() - (markupBox->y() + markupBox->renderer().style(isFirstLineStyle())->fontMetrics().ascent()); ascent 530 Source/core/rendering/InlineFlowBox.cpp int ascent = 0; ascent 532 Source/core/rendering/InlineFlowBox.cpp rootBox->ascentAndDescentForBox(rootBox, textBoxDataMap, ascent, descent, affectsAscent, affectsDescent); ascent 534 Source/core/rendering/InlineFlowBox.cpp if (maxAscent < ascent || !setMaxAscent) { ascent 535 Source/core/rendering/InlineFlowBox.cpp maxAscent = ascent; ascent 562 Source/core/rendering/InlineFlowBox.cpp int ascent = 0; ascent 564 Source/core/rendering/InlineFlowBox.cpp rootBox->ascentAndDescentForBox(curr, textBoxDataMap, ascent, descent, affectsAscent, affectsDescent); ascent 566 Source/core/rendering/InlineFlowBox.cpp LayoutUnit boxHeight = ascent + descent; ascent 581 Source/core/rendering/InlineFlowBox.cpp ascent -= curr->logicalTop(); ascent 583 Source/core/rendering/InlineFlowBox.cpp if (affectsAscent && (maxAscent < ascent || !setMaxAscent)) { ascent 584 Source/core/rendering/InlineFlowBox.cpp maxAscent = ascent; ascent 609 Source/core/rendering/InlineFlowBox.cpp setLogicalTop(roundToInt(top + maxAscent - fontMetrics.ascent(baselineType))); ascent 649 Source/core/rendering/InlineFlowBox.cpp newLogicalTop += curr->baselinePosition(baselineType) - fontMetrics.ascent(baselineType); ascent 629 Source/core/rendering/InlineTextBox.cpp FloatPoint textOrigin = FloatPoint(boxOrigin.x(), boxOrigin.y() + font.fontMetrics().ascent()); ascent 685 Source/core/rendering/InlineTextBox.cpp emphasisMarkOffset = emphasisMarkPosition == TextEmphasisPositionOver ? -font.fontMetrics().ascent() - font.emphasisMarkDescent(emphasisMark) : font.fontMetrics().descent() + font.emphasisMarkAscent(emphasisMark); ascent 705 Source/core/rendering/InlineTextBox.cpp FloatPoint emphasisMarkTextOrigin = combinedText ? FloatPoint(boxOrigin.x() + boxRect.width() / 2, boxOrigin.y() + font.fontMetrics().ascent()) : textOrigin; ascent 739 Source/core/rendering/InlineTextBox.cpp FloatPoint emphasisMarkTextOrigin = combinedText ? FloatPoint(boxOrigin.x() + boxRect.width() / 2, boxOrigin.y() + font.fontMetrics().ascent()) : textOrigin; ascent 928 Source/core/rendering/InlineTextBox.cpp return fontMetrics.ascent() + gap; // Position underline near the alphabetic baseline. ascent 939 Source/core/rendering/InlineTextBox.cpp return fontMetrics.ascent() + gap; ascent 1125 Source/core/rendering/InlineTextBox.cpp int baseline = styleToUse->fontMetrics().ascent(); ascent 1259 Source/core/rendering/InlineTextBox.cpp int baseline = renderer().style(isFirstLineStyle())->fontMetrics().ascent(); ascent 1386 Source/core/rendering/InlineTextBox.cpp int baseline = renderer().style(isFirstLineStyle())->fontMetrics().ascent(); ascent 3775 Source/core/rendering/RenderBlock.cpp return fontMetrics.ascent(baselineType) + (lineHeight(firstLine, direction, linePositionMode) - fontMetrics.height()) / 2; ascent 3796 Source/core/rendering/RenderBlock.cpp return firstLineBox()->logicalTop() + style(true)->fontMetrics().ascent(firstRootBox()->baselineType()); ascent 3831 Source/core/rendering/RenderBlock.cpp return fontMetrics.ascent() ascent 3836 Source/core/rendering/RenderBlock.cpp return lastLineBox()->logicalTop() + style(lastLineBox() == firstLineBox())->fontMetrics().ascent(lastRootBox()->baselineType()); ascent 3850 Source/core/rendering/RenderBlock.cpp return fontMetrics.ascent() ascent 432 Source/core/rendering/RenderBlockLineLayout.cpp int rootAscent = includeRootLine ? font.fontMetrics().ascent() : 0; ascent 433 Source/core/rendering/RenderBlockLineLayout.cpp int boxAscent = font.fontMetrics().ascent() - baselineShift; ascent 387 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp LayoutUnit ascent = child->firstLineBoxBaseline(); ascent 388 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp if (ascent == -1) ascent 389 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp ascent = child->height() + child->marginBottom(); ascent 390 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp ascent += child->marginTop(); ascent 391 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp LayoutUnit descent = (child->height() + child->marginHeight()) - ascent; ascent 394 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp maxAscent = max(maxAscent, ascent); ascent 463 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp LayoutUnit ascent = child->firstLineBoxBaseline(); ascent 464 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp if (ascent == -1) ascent 465 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp ascent = child->height() + child->marginBottom(); ascent 466 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp ascent += child->marginTop(); ascent 467 Source/core/rendering/RenderDeprecatedFlexibleBox.cpp childY += child->marginTop() + (maxAscent - ascent); ascent 153 Source/core/rendering/RenderEmbeddedObject.cpp float labelY = roundf(replacementTextRect.location().y() + (replacementTextRect.size().height() - fontMetrics.height()) / 2 + fontMetrics.ascent()); ascent 135 Source/core/rendering/RenderFileUploadControl.cpp textRunPaintInfo.bounds = FloatRect(textX.toFloat(), textY.toFloat() - style()->fontMetrics().ascent(), ascent 827 Source/core/rendering/RenderFlexibleBox.cpp LayoutUnit ascent = child->firstLineBoxBaseline(); ascent 828 Source/core/rendering/RenderFlexibleBox.cpp if (ascent == -1) ascent 829 Source/core/rendering/RenderFlexibleBox.cpp ascent = crossAxisExtentForChild(child); ascent 830 Source/core/rendering/RenderFlexibleBox.cpp return ascent + flowAwareMarginBeforeForChild(child); ascent 1122 Source/core/rendering/RenderFlexibleBox.cpp LayoutUnit ascent = marginBoxAscentForChild(child); ascent 1123 Source/core/rendering/RenderFlexibleBox.cpp LayoutUnit descent = (crossAxisMarginExtentForChild(child) + crossAxisExtentForChild(child)) - ascent; ascent 1125 Source/core/rendering/RenderFlexibleBox.cpp maxAscent = std::max(maxAscent, ascent); ascent 1307 Source/core/rendering/RenderFlexibleBox.cpp LayoutUnit ascent = marginBoxAscentForChild(child); ascent 1308 Source/core/rendering/RenderFlexibleBox.cpp LayoutUnit startOffset = maxAscent - ascent; ascent 346 Source/core/rendering/RenderImage.cpp LayoutUnit ascent = fontMetrics.ascent(); ascent 349 Source/core/rendering/RenderImage.cpp LayoutPoint textOrigin(textRectOrigin.x(), textRectOrigin.y() + ascent); ascent 562 Source/core/rendering/RenderInline.cpp int logicalTop = rootBox.logicalTop() + (rootBox.renderer().style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent()); ascent 577 Source/core/rendering/RenderInline.cpp int logicalTop = rootBox.logicalTop() + (rootBox.renderer().style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent()); ascent 595 Source/core/rendering/RenderInline.cpp int logicalTop = rootBox.logicalTop() + (rootBox.renderer().style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent() - container->style(rootBox.isFirstLineStyle())->font().fontMetrics().ascent()); ascent 1299 Source/core/rendering/RenderInline.cpp return fontMetrics.ascent(baselineType) + (lineHeight(firstLine, direction, linePositionMode) - fontMetrics.height()) / 2; ascent 392 Source/core/rendering/RenderListBox.cpp LayoutSize offset = LayoutSize(0, itemFont.fontMetrics().ascent()); ascent 1283 Source/core/rendering/RenderListMarker.cpp IntPoint textOrigin = IntPoint(marker.x(), marker.y() + style()->fontMetrics().ascent()); ascent 1378 Source/core/rendering/RenderListMarker.cpp int bulletWidth = style()->fontMetrics().ascent() / 2; ascent 1503 Source/core/rendering/RenderListMarker.cpp logicalWidth = (font.fontMetrics().ascent() * 2 / 3 + 1) / 2 + 2; ascent 1614 Source/core/rendering/RenderListMarker.cpp marginEnd = fontMetrics.ascent() - minPreferredLogicalWidth() + 1; ascent 1624 Source/core/rendering/RenderListMarker.cpp int offset = fontMetrics.ascent() * 2 / 3; ascent 1642 Source/core/rendering/RenderListMarker.cpp int offset = fontMetrics.ascent() * 2 / 3; ascent 1724 Source/core/rendering/RenderListMarker.cpp int ascent = fontMetrics.ascent(); ascent 1725 Source/core/rendering/RenderListMarker.cpp int bulletWidth = (ascent * 2 / 3 + 1) / 2; ascent 1726 Source/core/rendering/RenderListMarker.cpp relativeRect = IntRect(1, 3 * (ascent - ascent * 2 / 3) / 2, bulletWidth, bulletWidth); ascent 602 Source/core/rendering/RootInlineBox.cpp static void setAscentAndDescent(int& ascent, int& descent, int newAscent, int newDescent, bool& ascentDescentSet) ascent 606 Source/core/rendering/RootInlineBox.cpp ascent = newAscent; ascent 609 Source/core/rendering/RootInlineBox.cpp ascent = max(ascent, newAscent); ascent 614 Source/core/rendering/RootInlineBox.cpp void RootInlineBox::ascentAndDescentForBox(InlineBox* box, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, int& ascent, int& descent, ascent 623 Source/core/rendering/RootInlineBox.cpp ascent = box->baselinePosition(baselineType()); ascent 624 Source/core/rendering/RootInlineBox.cpp descent = box->lineHeight() - ascent; ascent 651 Source/core/rendering/RootInlineBox.cpp int usedFontAscent = fontMetrics.ascent(baselineType()); ascent 657 Source/core/rendering/RootInlineBox.cpp setAscentAndDescent(ascent, descent, usedFontAscent, usedFontDescent, ascentDescentSet); ascent 661 Source/core/rendering/RootInlineBox.cpp setAscentAndDescent(ascent, descent, usedFontAscentAndLeading, usedFontDescentAndLeading, ascentDescentSet); ascent 675 Source/core/rendering/RootInlineBox.cpp setAscentAndDescent(ascent, descent, ascentWithLeading, descentWithLeading, ascentDescentSet); ascent 686 Source/core/rendering/RootInlineBox.cpp int fontAscent = box->renderer().style(isFirstLineStyle())->fontMetrics().ascent(baselineType()); ascent 688 Source/core/rendering/RootInlineBox.cpp setAscentAndDescent(ascent, descent, fontAscent, fontDescent, ascentDescentSet); ascent 694 Source/core/rendering/RootInlineBox.cpp setAscentAndDescent(ascent, descent, glyphOverflow->top, glyphOverflow->bottom, ascentDescentSet); ascent 697 Source/core/rendering/RootInlineBox.cpp glyphOverflow->top = min(glyphOverflow->top, max(0, glyphOverflow->top - box->renderer().style(isFirstLineStyle())->fontMetrics().ascent(baselineType()))); ascent 702 Source/core/rendering/RootInlineBox.cpp LayoutUnit ascentWithMargin = box->renderer().style(isFirstLineStyle())->fontMetrics().ascent(baselineType()); ascent 708 Source/core/rendering/RootInlineBox.cpp setAscentAndDescent(ascent, descent, ascentWithMargin, descentWithMargin, ascentDescentSet); ascent 760 Source/core/rendering/RootInlineBox.cpp verticalPosition += renderer->baselinePosition(baselineType(), firstLine, lineDirection) - fontMetrics.ascent(baselineType()); ascent 155 Source/core/rendering/RootInlineBox.h void ascentAndDescentForBox(InlineBox*, GlyphOverflowAndFallbackFontsMap&, int& ascent, int& descent, bool& affectsAscent, bool& affectsDescent) const; ascent 80 Source/core/svg/SVGFontData.cpp float ascent = svgFontFaceElement->ascent() * scale; ascent 89 Source/core/svg/SVGFontData.cpp xHeight = letterXGlyph ? fontData->widthForGlyph(letterXGlyph) : 2 * ascent / 3; ascent 94 Source/core/svg/SVGFontData.cpp fontMetrics.setAscent(ascent); ascent 97 Source/core/svg/SVGFontData.cpp fontMetrics.setLineSpacing(roundf(ascent) + roundf(descent) + roundf(lineGap)); ascent 104 Source/core/svg/SVGFontData.cpp fontData->setMaxCharWidth(ascent); ascent 119 Source/core/svg/SVGFontData.cpp fontData->setMaxCharWidth(letterWGlyph ? fontData->widthForGlyph(letterWGlyph) : ascent); ascent 196 Source/core/svg/SVGFontFaceElement.cpp return ascent(); ascent 46 Source/core/svg/SVGFontFaceElement.h int ascent() const; ascent 140 Source/platform/DragImage.cpp IntSize labelSize(labelFont.width(labelRun), labelFont.fontMetrics().ascent() + labelFont.fontMetrics().descent()); ascent 152 Source/platform/DragImage.cpp urlStringSize.setHeight(urlFont.fontMetrics().ascent() + urlFont.fontMetrics().descent()); ascent 574 Source/platform/fonts/Font.cpp return markFontData->fontMetrics().ascent(); ascent 756 Source/platform/fonts/Font.cpp glyphOverflow->top = max<int>(glyphOverflow->top, ceilf(-it.minGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().ascent())); ascent 56 Source/platform/fonts/FontMetrics.h void setAscent(float ascent) { m_ascent = ascent; } ascent 89 Source/platform/fonts/FontMetrics.h int ascent(FontBaseline baselineType = AlphabeticBaseline) const ascent 105 Source/platform/fonts/FontMetrics.h return ascent(baselineType) + descent(baselineType); ascent 113 Source/platform/fonts/FontMetrics.h return ascent() == other.ascent() && descent() == other.descent() && lineGap() == other.lineGap(); ascent 222 Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp glyphOverflow->top = std::max<int>(glyphOverflow->top, ceilf(-shaper.glyphBoundingBox().top()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().ascent())); ascent 140 Source/platform/fonts/mac/FontComplexTextMac.cpp glyphOverflow->top = max<int>(glyphOverflow->top, ceilf(-controller.minGlyphBoundingBoxY()) - (glyphOverflow->computeBounds ? 0 : fontMetrics().ascent())); ascent 73 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp OpenType::Int16 ascent; ascent 519 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp float ascent = metrics.ascent(); ascent 552 Source/platform/fonts/opentype/OpenTypeVerticalData.cpp outXYArray[1] = -ascent; ascent 92 Source/platform/fonts/skia/SimpleFontDataSkia.cpp float ascent; ascent 98 Source/platform/fonts/skia/SimpleFontDataSkia.cpp ascent = vdmxAscent; ascent 101 Source/platform/fonts/skia/SimpleFontDataSkia.cpp ascent = SkScalarRoundToInt(-metrics.fAscent); ascent 108 Source/platform/fonts/skia/SimpleFontDataSkia.cpp if (platformData().fontRenderStyle().useSubpixelPositioning && descent < SkScalarToFloat(metrics.fDescent) && ascent >= 1) { ascent 110 Source/platform/fonts/skia/SimpleFontDataSkia.cpp --ascent; ascent 115 Source/platform/fonts/skia/SimpleFontDataSkia.cpp m_fontMetrics.setAscent(ascent); ascent 123 Source/platform/fonts/skia/SimpleFontDataSkia.cpp xHeight = ascent * 0.56; // Best guess from Windows font metrics. ascent 130 Source/platform/fonts/skia/SimpleFontDataSkia.cpp m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap)); ascent 461 Source/web/PopupListBox.cpp int textY = rowRect.y() + itemFont.fontMetrics().ascent() + (rowRect.height() - itemFont.fontMetrics().height()) / 2; ascent 67 Source/web/WebFontImpl.cpp return m_font.fontMetrics().ascent(); ascent 47 Source/web/WebFontImpl.h virtual int ascent() const OVERRIDE; ascent 55 public/web/WebFont.h virtual int ascent() const = 0;