Home
last modified time | relevance | path

Searched refs:textRun (Results 1 – 16 of 16) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/text/
DBidiResolverTest.cpp58 TextDirection determineParagraphDirectionality(const TextRun& textRun, bool* hasStrongDirectionalit… in determineParagraphDirectionality() argument
62 resolver.setPositionIgnoringNestedIsolates(TextRunIterator(&textRun, 0)); in determineParagraphDirectionality()
178 TextRun textRun(input.data(), input.size()); in runTest() local
181 textRun.setDirection(determineParagraphDirectionality(textRun)); in runTest()
184 textRun.setDirection(LTR); in runTest()
187 textRun.setDirection(RTL); in runTest()
191 resolver.setStatus(BidiStatus(textRun.direction(), textRun.directionalOverride())); in runTest()
192 resolver.setPositionIgnoringNestedIsolates(TextRunIterator(&textRun, 0)); in runTest()
195 resolver.createBidiRunsForLine(TextRunIterator(&textRun, textRun.length())); in runTest()
DTextRunIterator.h44 TextRunIterator(const TextRun* textRun, unsigned offset) in TextRunIterator() argument
45 : m_textRun(textRun) in TextRunIterator()
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DSVGInlineTextBox.cpp96 TextRun textRun = constructTextRun(style, fragment); in offsetForPositionInFragment() local
103 textRun.setHorizontalGlyphStretch(narrowPrecisionToFloat(fragmentTransform.xScale())); in offsetForPositionInFragment()
105 …characterOffset - start() + textRenderer->scaledFont().offsetForPosition(textRun, position * scali… in offsetForPositionInFragment()
412 …ForTextPainting(GraphicsContext*& context, float scalingFactor, TextRun& textRun, RenderStyle* sty… in prepareGraphicsContextForTextPainting() argument
420 TextRun::RenderingContext* renderingContext = textRun.renderingContext(); in prepareGraphicsContextForTextPainting()
428 …InlineTextBox::restoreGraphicsContextAfterTextPainting(GraphicsContext*& context, TextRun& textRun) in restoreGraphicsContextAfterTextPainting() argument
433 TextRun::RenderingContext* renderingContext = textRun.renderingContext(); in restoreGraphicsContextAfterTextPainting()
615 …ntTextWithShadows(GraphicsContext* context, RenderStyle* style, TextRun& textRun, const SVGTextFra… in paintTextWithShadows() argument
651 if (prepareGraphicsContextForTextPainting(context, scalingFactor, textRun, style)) { in paintTextWithShadows()
652 TextRunPaintInfo textRunPaintInfo(textRun); in paintTextWithShadows()
[all …]
/external/chromium_org/third_party/WebKit/Source/web/
DWebFontImpl.cpp96 TextRun textRun(run); in drawText() local
97 TextRunPaintInfo runInfo(textRun); in drawText()
99 runInfo.to = to == -1 ? textRun.length() : to; in drawText()
DPopupListBox.cpp487 …TextRun textRun(itemText, 0, 0, TextRun::AllowTrailingExpansion, style.textDirection(), style.hasT… in paintRow() local
491 textX += maxWidth - itemFont.width(textRun); in paintRow()
495 TextRunPaintInfo textRunPaintInfo(textRun); in paintRow()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderFileUploadControl.cpp108 …TextRun textRun = constructTextRun(this, font, displayedFilename, style(), TextRun::AllowTrailingE… in paintObject() local
109 textRun.disableRoundingHacks(); in paintObject()
119 float textWidth = font.width(textRun); in paintObject()
133 TextRunPaintInfo textRunPaintInfo(textRun); in paintObject()
DRenderListBox.cpp137 …TextRun textRun = constructTextRun(this, itemFont, text, style(), TextRun::AllowTrailingExpansion); in updateFromElement() local
138 textRun.disableRoundingHacks(); in updateFromElement()
139 float textWidth = itemFont.width(textRun); in updateFromElement()
372 static LayoutSize itemOffsetForAlignment(TextRun textRun, RenderStyle* itemStyle, Font itemFont, La… in itemOffsetForAlignment() argument
382 float textWidth = itemFont.width(textRun); in itemOffsetForAlignment()
385 float textWidth = itemFont.width(textRun); in itemOffsetForAlignment()
427 …TextRun textRun(itemText, 0, 0, TextRun::AllowTrailingExpansion, itemStyle->direction(), isOverrid… in paintItemForeground() local
430 r.move(itemOffsetForAlignment(textRun, itemStyle, itemFont, r)); in paintItemForeground()
440 TextRunPaintInfo textRunPaintInfo(textRun); in paintItemForeground()
DInlineTextBox.cpp213 TextRun textRun = constructTextRun(styleToUse, font, respectHyphen ? &charactersWithHyphen : 0); in localSelectionRect() local
215 endPos = textRun.length(); in localSelectionRect()
220 … r = enclosingIntRect(font.selectionRectForText(textRun, startingPoint, selHeight, sPos, ePos)); in localSelectionRect()
392 const RenderObject* renderer, const Font& font, const TextRun& textRun, in paintTextWithShadows() argument
415 TextRunPaintInfo textRunPaintInfo(textRun); in paintTextWithShadows()
667 …TextRun textRun = constructTextRun(styleToUse, font, string, maximumLength, hasHyphen() ? &charact… in paint() local
669 length = textRun.length(); in paint()
697 …paintTextWithShadows(context, rendererToUse, font, textRun, nullAtom, 0, 0, length, length, textOr… in paint()
699 …paintTextWithShadows(context, rendererToUse, font, textRun, nullAtom, 0, ePos, sPos, length, textO… in paint()
706 … TextRun& emphasisMarkTextRun = combinedText ? objectReplacementCharacterTextRun : textRun; in paint()
[all …]
DRenderTextControl.cpp228 TextRun textRun = constructTextRun(this, font, str, style(), TextRun::AllowTrailingExpansion); in getAvgCharWidth() local
229 textRun.disableRoundingHacks(); in getAvgCharWidth()
230 return font.width(textRun); in getAvgCharWidth()
DEllipsisBox.cpp84 …TextRun textRun = RenderBlockFlow::constructTextRun(renderer(), font, m_str, style, TextRun::Allow… in paint() local
85 TextRunPaintInfo textRunPaintInfo(textRun); in paint()
DRenderImage.cpp363 …TextRun textRun = RenderBlockFlow::constructTextRun(this, font, m_altText, style(), TextRun::Allow… in paintReplaced() local
364 LayoutUnit textWidth = font.width(textRun); in paintReplaced()
365 TextRunPaintInfo textRunPaintInfo(textRun); in paintReplaced()
DRenderListMarker.cpp1269 TextRun textRun = RenderBlockFlow::constructTextRun(this, font, m_text, style()); in paint() local
1282 TextRunPaintInfo textRunPaintInfo(textRun); in paint()
1300 textRun.setText(reversedText.toString()); in paint()
1311 context->drawText(font, suffixRunInfo, textOrigin + IntSize(font.width(textRun), 0)); in paint()
/external/chromium_org/third_party/WebKit/Source/core/platform/
DDragImage.cpp182 TextRun textRun(urlString); in create() local
183 buffer->context()->drawText(urlFont, TextRunPaintInfo(textRun), textPos); in create()
190 TextRun textRun(label); in create() local
191 buffer->context()->drawText(urlFont, TextRunPaintInfo(textRun), textPos); in create()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
DComplexTextController.cpp66 …static TextRun constructTextRun(const TextRun& textRun, unsigned textLength, const Font& font, flo… in constructTextRun() argument
68 TextRun run = textRun; in constructTextRun()
/external/chromium_org/third_party/WebKit/Source/core/html/track/vtt/
DVTTCue.cpp503 … VTTTextRunIterator(const TextRun* textRun, unsigned offset) : TextRunIterator(textRun, offset) { } in VTTTextRunIterator() argument
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
DCanvasRenderingContext2D.cpp2191 …TextRun textRun(normalizedText, 0, 0, TextRun::AllowTrailingExpansion, direction, override, true, … in drawTextInternal() local
2235 TextRunPaintInfo textRunPaintInfo(textRun); in drawTextInternal()