Home
last modified time | relevance | path

Searched refs:itemFont (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/web/
DPopupListBox.cpp454 Font itemFont = getRowFont(rowIndex); in paintRow() local
473 String str = StringTruncator::rightTruncate(itemText, maxWidth, itemFont); in paintRow()
481 … int availableWidth = maxWidth - textToLabelPadding - StringTruncator::width(itemText, itemFont); in paintRow()
482 itemLabel = StringTruncator::rightTruncate(itemLabel, availableWidth, itemFont); in paintRow()
491 textX += maxWidth - itemFont.width(textRun); in paintRow()
494 …int textY = rowRect.y() + itemFont.fontMetrics().ascent() + (rowRect.height() - itemFont.fontMetri… in paintRow()
497 gc->drawBidiText(itemFont, textRunPaintInfo, IntPoint(textX, textY)); in paintRow()
520 itemFont = m_popupClient->itemStyle(rowIndex).font(); in paintRow()
521 FontDescription d = itemFont.fontDescription(); in paintRow()
523 itemFont = Font(d, itemFont.letterSpacing(), itemFont.wordSpacing()); in paintRow()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderListBox.cpp123 Font itemFont = style()->font(); in updateFromElement() local
128 FontDescription d = itemFont.fontDescription(); in updateFromElement()
130 itemFont = Font(d, itemFont.letterSpacing(), itemFont.wordSpacing()); in updateFromElement()
131 itemFont.update(document().styleEngine()->fontSelector()); in updateFromElement()
137 …TextRun textRun = constructTextRun(this, itemFont, text, style(), TextRun::AllowTrailingExpansion); in updateFromElement()
139 float textWidth = itemFont.width(textRun); in updateFromElement()
372 static LayoutSize itemOffsetForAlignment(TextRun textRun, RenderStyle* itemStyle, Font itemFont, La… in itemOffsetForAlignment() argument
380 LayoutSize offset = LayoutSize(0, itemFont.fontMetrics().ascent()); in itemOffsetForAlignment()
382 float textWidth = itemFont.width(textRun); in itemOffsetForAlignment()
385 float textWidth = itemFont.width(textRun); in itemOffsetForAlignment()
[all …]