Home
last modified time | relevance | path

Searched refs:textWidth (Results 1 – 13 of 13) sorted by relevance

/external/webkit/Source/WebCore/rendering/
DRenderEmbeddedObject.cpp165 float textWidth; in paintReplaced() local
166 …(!getReplacementTextGeometry(tx, ty, contentRect, path, replacementTextRect, font, run, textWidth)) in paintReplaced()
176 … roundf(replacementTextRect.location().x() + (replacementTextRect.size().width() - textWidth) / 2); in paintReplaced()
184 …ontentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth) in getReplacementTextGeometry() argument
202 textWidth = font.width(run); in getReplacementTextGeometry()
204 …replacementTextRect.setSize(FloatSize(textWidth + replacementTextRoundedRectLeftRightTextMargin * … in getReplacementTextGeometry()
260 float textWidth; in isInMissingPluginIndicator() local
261 …f (!getReplacementTextGeometry(0, 0, contentRect, path, replacementTextRect, font, run, textWidth)) in isInMissingPluginIndicator()
DRenderListBox.cpp120 …float textWidth = itemFont.width(TextRun(text.impl(), false, 0, 0, TextRun::AllowTrailingExpansion… in updateFromElement() local
121 width = max(width, textWidth); in updateFromElement()
348 float textWidth = itemFont.width(textRun); in itemOffsetForAlignment() local
349 offset.setWidth(itemBoudingBox.width() - textWidth - optionsSpacingHorizontal); in itemOffsetForAlignment()
351 float textWidth = itemFont.width(textRun); in itemOffsetForAlignment() local
352 offset.setWidth((itemBoudingBox.width() - textWidth) / 2); in itemOffsetForAlignment()
DRenderEmbeddedObject.h71 … FloatRect& contentRect, Path&, FloatRect& replacementTextRect, Font&, TextRun&, float& textWidth);
DRenderImage.cpp305 int textWidth = font.width(textRun); in paintReplaced() local
307 if (usableWidth >= textWidth && fontMetrics.height() <= imageY) in paintReplaced()
309 } else if (usableWidth >= textWidth && cHeight >= fontMetrics.height()) in paintReplaced()
DRenderBlockLineLayout.cpp1634 static inline float textWidth(RenderText* text, unsigned from, unsigned len, const Font& font, floa… in textWidth() function
1676 …float prefixWidth = hyphenWidth + textWidth(text, lastSpace, prefixLength, font, xPos, isFixedPitc… in tryHyphenating()
2065 …charWidth = textWidth(t, pos, 1, f, width.committedWidth() + wrapW, isFixedPitch, collapseWhiteSpa… in findNextLineBreak()
2097 …additionalTmpW = textWidth(t, lastSpace, pos + 1 - lastSpace, f, width.currentWidth(), isFixedPitc… in findNextLineBreak()
2099 …additionalTmpW = textWidth(t, lastSpace, pos - lastSpace, f, width.currentWidth(), isFixedPitch, c… in findNextLineBreak()
2116 …int charWidth = textWidth(t, pos, 1, f, width.currentWidth(), isFixedPitch, collapseWhiteSpace) + … in findNextLineBreak()
2245 …float additionalTmpW = ignoringSpaces ? 0 : textWidth(t, lastSpace, pos - lastSpace, f, width.curr… in findNextLineBreak()
/external/skia/gm/
Dbitmapcopy.cpp82 SkScalar textWidth = paint.measureText(name, strlen(name)); in onDraw() local
83 if (textWidth > width) { in onDraw()
84 width = textWidth; in onDraw()
95 SkScalar textWidth = paint.measureText(name, strlen(name)); in onDraw() local
96 SkScalar x = (width - textWidth) / SkScalar(2); in onDraw()
/external/skia/bench/
DPicturePlaybackBench.cpp82 const SkScalar textWidth = paint.measureText(text, len); in recordCanvas() local
84 for (SkScalar x = 0; x < fPictureWidth; x += textWidth) { in recordCanvas()
107 const SkScalar textWidth = paint.measureText(text, len); in recordCanvas() local
112 for (SkScalar x = 0; x < fPictureWidth; x += textWidth) { in recordCanvas()
/external/webkit/Source/WebCore/platform/graphics/chromium/cc/
DCCHeadsUpDisplay.cpp168 float textWidth = m_mediumFont->width(run) + 2.0f; in drawFPSCounter() local
173 ctx->fillRect(FloatRect(2, top, textWidth + graphWidth, height)); in drawFPSCounter()
186 int graphLeft = static_cast<int>(textWidth + 3); in drawFPSCounter()
/external/chromium/chrome/browser/ui/cocoa/download/
Ddownload_item_cell.mm466 CGFloat textWidth = innerFrame.size.width -
468 NSString* secondaryText = [self elideStatus:textWidth];
564 CGFloat textWidth = cellFrame.size.width -
566 [self setTitle:[self elideTitle:textWidth]];
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_popup_view_mac.mm210 const float textWidth = cellWidth - kTextXOffset;
212 textWidth * kMaxContentsFraction);
/external/webkit/Source/WebCore/
DChangeLog-2009-06-1626815 (WebCore::textWidth):
45458 (WebCore::textWidth): Added this inlined helper function which calls
45465 textWidth() helper function.
DChangeLog-2011-02-1612379 (WebCore::textWidth):
DChangeLog65173 (WebCore::textWidth):