Home
last modified time | relevance | path

Searched refs:baselineType (Results 1 – 15 of 15) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/fonts/
DFontMetrics.h48 float floatAscent(FontBaseline baselineType = AlphabeticBaseline) const
50 if (baselineType == AlphabeticBaseline)
57 float floatDescent(FontBaseline baselineType = AlphabeticBaseline) const
59 if (baselineType == AlphabeticBaseline)
66 float floatHeight(FontBaseline baselineType = AlphabeticBaseline) const
68 return floatAscent(baselineType) + floatDescent(baselineType);
88 int ascent(FontBaseline baselineType = AlphabeticBaseline) const
90 if (baselineType == AlphabeticBaseline)
95 int descent(FontBaseline baselineType = AlphabeticBaseline) const
97 if (baselineType == AlphabeticBaseline)
[all …]
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DVerticalPositionCache.h45 int get(RenderObject* renderer, FontBaseline baselineType) const in get() argument
47 …const HashMap<RenderObject*, int>& mapToCheck = baselineType == AlphabeticBaseline ? m_alphabeticP… in get()
54 void set(RenderObject* renderer, FontBaseline baselineType, int position) in set() argument
56 if (baselineType == AlphabeticBaseline) in set()
DRootInlineBox.cpp104 int RootInlineBox::baselinePosition(FontBaseline baselineType) const in baselinePosition()
106 …return boxModelObject()->baselinePosition(baselineType, isFirstLineStyle(), isHorizontal() ? Horiz… in baselinePosition()
254 textBoxDataMap, baselineType(), verticalPositionCache); in alignBoxesInBlockDirection()
268 …ingMargins, lineBottomIncludingMargins, hasAnnotationsBefore, hasAnnotationsAfter, baselineType()); in alignBoxesInBlockDirection()
362 LayoutUnit lineGridFontAscent = lineGrid->style()->fontMetrics().ascent(baselineType()); in lineSnapAdjustment()
369 LayoutUnit currentFontAscent = block()->style()->fontMetrics().ascent(baselineType()); in lineSnapAdjustment()
740 ascent = box->baselinePosition(baselineType()); in ascentAndDescentForBox()
768 int usedFontAscent = fontMetrics.ascent(baselineType()); in ascentAndDescentForBox()
769 int usedFontDescent = fontMetrics.descent(baselineType()); in ascentAndDescentForBox()
790 int ascentWithLeading = box->baselinePosition(baselineType()); in ascentAndDescentForBox()
[all …]
DRenderTextControlMultiLine.cpp75 int RenderTextControlMultiLine::baselinePosition(FontBaseline baselineType, bool firstLine, LineDir… in baselinePosition() argument
77 return RenderBox::baselinePosition(baselineType, firstLine, direction, linePositionMode); in baselinePosition()
DRootInlineBox.h117 virtual int baselinePosition(FontBaseline baselineType) const OVERRIDE FINAL;
152 FontBaseline baselineType() const { return static_cast<FontBaseline>(m_baselineType); } in baselineType() function
DInlineBox.cpp138 int InlineBox::baselinePosition(FontBaseline baselineType) const in baselinePosition()
140 …return boxModelObject()->baselinePosition(baselineType, m_bitfields.firstLine(), isHorizontal() ? … in baselinePosition()
DInlineFlowBox.cpp504 … FontBaseline baselineType, VerticalPositionCache& verticalPositionCache) in computeLogicalBoxHeights() argument
594 baselineType, verticalPositionCache); in computeLogicalBoxHeights()
599 …IncludingMargins, bool& hasAnnotationsBefore, bool& hasAnnotationsAfter, FontBaseline baselineType) in placeBoxesInBlockDirection() argument
606 setLogicalTop(roundToInt(top + maxAscent - fontMetrics.ascent(baselineType))); in placeBoxesInBlockDirection()
635 LayoutUnit posAdjust = maxAscent - curr->baselinePosition(baselineType); in placeBoxesInBlockDirection()
646 … newLogicalTop += curr->baselinePosition(baselineType) - fontMetrics.ascent(baselineType); in placeBoxesInBlockDirection()
709 …udingMargins, lineBottomIncludingMargins, hasAnnotationsBefore, hasAnnotationsAfter, baselineType); in placeBoxesInBlockDirection()
DRenderListBox.cpp267 int RenderListBox::baselinePosition(FontBaseline baselineType, bool firstLine, LineDirectionMode li… in baselinePosition() argument
269 …return RenderBox::baselinePosition(baselineType, firstLine, lineDirection, linePositionMode) - bas… in baselinePosition()
DRenderListMarker.cpp1672 int RenderListMarker::baselinePosition(FontBaseline baselineType, bool firstLine, LineDirectionMode… in baselinePosition() argument
1676 …return m_listItem->baselinePosition(baselineType, firstLine, direction, PositionOfInteriorLineBoxe… in baselinePosition()
1677 return RenderBox::baselinePosition(baselineType, firstLine, direction, linePositionMode); in baselinePosition()
DInlineBox.h241 virtual int baselinePosition(FontBaseline baselineType) const;
DInlineTextBox.cpp105 int InlineTextBox::baselinePosition(FontBaseline baselineType) const in baselinePosition()
110 return parent()->baselinePosition(baselineType); in baselinePosition()
111 …return toRenderBoxModelObject(renderer()->parent())->baselinePosition(baselineType, isFirstLineSty… in baselinePosition()
DRenderTable.cpp1331 int RenderTable::baselinePosition(FontBaseline baselineType, bool firstLine, LineDirectionMode dire… in baselinePosition() argument
1338 return RenderBox::baselinePosition(baselineType, firstLine, direction, linePositionMode); in baselinePosition()
DRenderInline.cpp1299 int RenderInline::baselinePosition(FontBaseline baselineType, bool firstLine, LineDirectionMode dir… in baselinePosition() argument
1303 …return fontMetrics.ascent(baselineType) + (lineHeight(firstLine, direction, linePositionMode) - fo… in baselinePosition()
DRenderBlock.cpp4521 int RenderBlock::baselinePosition(FontBaseline baselineType, bool firstLine, LineDirectionMode dire… in baselinePosition() argument
4558 return RenderBox::baselinePosition(baselineType, firstLine, direction, linePositionMode); in baselinePosition()
4566 …return fontMetrics.ascent(baselineType) + (lineHeight(firstLine, direction, linePositionMode) - fo… in baselinePosition()
4587 …n firstLineBox()->logicalTop() + style(true)->fontMetrics().ascent(firstRootBox()->baselineType()); in firstLineBoxBaseline()
4627 …op() + style(lastLineBox() == firstLineBox())->fontMetrics().ascent(lastRootBox()->baselineType()); in lastLineBoxBaseline()
DRenderBox.cpp4640 int RenderBox::baselinePosition(FontBaseline baselineType, bool /*firstLine*/, LineDirectionMode di… in baselinePosition() argument
4645 if (baselineType == AlphabeticBaseline) in baselinePosition()