Lines Matching refs:textRange
104 [this, textCanvas](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in paint() argument
105 return this->paintBackground(textCanvas, textRange, style, offsetX); in paint()
112 [textCanvas, this](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in paint() argument
113 return this->paintShadow(textCanvas, textRange, style, offsetX); in paint()
119 [textCanvas, this](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in paint() argument
120 return this->paintText(textCanvas, textRange, style, offsetX); in paint()
126 [textCanvas, this](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in paint() argument
127 return this->paintDecorations(textCanvas, textRange, style, offsetX); in paint()
168 style, [this, visitor](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in scanStyles() argument
169 visitor(textRange, style, offsetX); in scanStyles()
171 textRange, offsetX, false, in scanStyles()
185 SkScalar TextLine::paintText(SkCanvas* canvas, TextRange textRange, const TextStyle& style, in paintText() argument
196 textRange, offsetX, false, in paintText()
211 SkScalar TextLine::paintBackground(SkCanvas* canvas, TextRange textRange, in paintBackground() argument
213 return this->iterateThroughRuns(textRange, offsetX, false, in paintBackground()
223 SkScalar TextLine::paintShadow(SkCanvas* canvas, TextRange textRange, const TextStyle& style, in paintShadow() argument
227 textRange, offsetX, false, in paintShadow()
259 SkScalar TextLine::paintDecorations(SkCanvas* canvas, TextRange textRange, in paintDecorations() argument
262 textRange, offsetX, false, in paintDecorations()
530 …TextRange textRange, Run* run, size_t& pos, size_t& size, bool includeGhostSpaces, bool& clippingN… in measureTextInsideOneRun() argument
532 SkASSERT(intersectedSize(run->textRange(), textRange) >= 0); in measureTextInsideOneRun()
538 std::tie(found, startIndex, endIndex) = run->findLimitingClusters(textRange); in measureTextInsideOneRun()
540 SkASSERT(textRange.empty()); in measureTextInsideOneRun()
566 auto leftCorrection = start->sizeToChar(textRange.start); in measureTextInsideOneRun()
567 auto rightCorrection = end->sizeFromChar(textRange.end - 1); in measureTextInsideOneRun()
612 SkScalar TextLine::calculateLeftVisualOffset(TextRange textRange) const { in calculateLeftVisualOffset()
615 [textRange, &partOfTheCurrentRun, this]( in calculateLeftVisualOffset()
618 if (text.start > textRange.start || text.end <= textRange.start) { in calculateLeftVisualOffset()
624 part = {text.start, textRange.start}; in calculateLeftVisualOffset()
625 } else if (textRange.end < text.end) { in calculateLeftVisualOffset()
626 part = {textRange.end, text.end}; in calculateLeftVisualOffset()
645 SkScalar TextLine::iterateThroughRuns(TextRange textRange, in iterateThroughRuns() argument
655 auto intersection = intersectedSize(run->textRange(), textRange); in iterateThroughRuns()
656 if (intersection < 0 || (intersection == 0 && textRange.end != run->textRange().end)) { in iterateThroughRuns()
660 auto intersect = intersected(run->textRange(), textRange); in iterateThroughRuns()
661 if (run->textRange().empty() || intersect.empty()) { in iterateThroughRuns()
702 …if (!visitor(ellipsis, 0, ellipsis->size(), ellipsis->textRange(), ellipsis->clip(), ellipsis->cli… in iterateThroughRuns()