• Home
  • Raw
  • Download

Lines Matching refs:textRange

174 …        (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) {  in paint()  argument
176 run, runOffsetInLine, textRange, StyleType::kBackground, in paint()
177 …[textCanvas, x, y, this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in paint() argument
178 this->paintBackground(textCanvas, x, y, textRange, style, context); in paint()
187 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
189 run, runOffsetInLine, textRange, StyleType::kShadow, in paint()
190 …[textCanvas, x, y, &bounds, this](TextRange textRange, const TextStyle& style, const ClipContext& … in paint() argument
191 … auto shadowBounds = this->paintShadow(textCanvas, x, y, textRange, style, context); in paint()
210 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
212 run, runOffsetInLine, textRange, StyleType::kDecorations, in paint()
213 …[textCanvas, x, y, this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in paint() argument
214 this->paintDecorations(textCanvas, x, y, textRange, style, context); in paint()
229 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in ensureTextBlobCachePopulated() argument
235 run, runOffsetInLine, textRange, StyleType::kForeground, in ensureTextBlobCachePopulated()
236 [this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in ensureTextBlobCachePopulated() argument
237 this->buildTextBlob(textRange, style, context); in ensureTextBlobCachePopulated()
271 …[this, visitor, styleType](const Run* run, SkScalar runOffset, TextRange textRange, SkScalar* widt… in scanStyles() argument
273 run, runOffset, textRange, styleType, in scanStyles()
274 [visitor](TextRange textRange, const TextStyle& style, const ClipContext& context) { in scanStyles() argument
275 visitor(textRange, style, context); in scanStyles()
295 [&result](const Run* run, SkScalar runOffset, TextRange textRange, SkScalar* width) { in metricsWithoutMultiplier() argument
314 void TextLine::buildTextBlob(TextRange textRange, const TextStyle& style, const ClipContext& contex… in buildTextBlob() argument
362 void TextLine::paintBackground(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const… in paintBackground() argument
368 SkRect TextLine::paintShadow(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const T… in paintShadow() argument
414 void TextLine::paintDecorations(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, cons… in paintDecorations() argument
514 run->fClusterStart = cluster->textRange().start; in createEllipsis()
589 TextLine::ClipContext TextLine::measureTextInsideOneRun(TextRange textRange, in measureTextInsideOneRun() argument
599 SkASSERT(textRange == run->textRange()); in measureTextInsideOneRun()
625 std::tie(found, startIndex, endIndex) = run->findLimitingClusters(textRange); in measureTextInsideOneRun()
638 if (textRange.start != start->textRange().start) { in measureTextInsideOneRun()
639 textRange.start = start->textRange().end; in measureTextInsideOneRun()
641 textRange.end = end->textRange().end; in measureTextInsideOneRun()
643 if (textRange.start != end->textRange().start) { in measureTextInsideOneRun()
644 textRange.start = end->textRange().end; in measureTextInsideOneRun()
646 textRange.end = start->textRange().end; in measureTextInsideOneRun()
649 std::tie(found, startIndex, endIndex) = run->findLimitingGraphemes(textRange); in measureTextInsideOneRun()
650 if (startIndex == textRange.start && endIndex == textRange.end) { in measureTextInsideOneRun()
656 textRange.start = startIndex; in measureTextInsideOneRun()
657 textRange.end = endIndex; in measureTextInsideOneRun()
691 auto leftCorrection = start->sizeToChar(textRange.start); in measureTextInsideOneRun()
692 auto rightCorrection = end->sizeFromChar(textRange.end - 1); in measureTextInsideOneRun()
755 TextRange textRange, in iterateThroughSingleRunByStyles() argument
761 ClipContext clipContext = this->measureTextInsideOneRun(run->textRange(), run, runOffset, in iterateThroughSingleRunByStyles()
768 visitor(textRange, block->fStyle, clipContext); in iterateThroughSingleRunByStyles()
776 ClipContext clipContext = this->measureTextInsideOneRun(textRange, run, runOffset, in iterateThroughSingleRunByStyles()
779 visitor(textRange, TextStyle(), clipContext); in iterateThroughSingleRunByStyles()
801 intersect = intersected(block->fRange, textRange); in iterateThroughSingleRunByStyles()
859 auto textRange = includingGhostSpaces ? this->textWithNewlines() : this->trimmedText(); in iterateThroughVisualRuns() local
863 auto lineIntersection = intersected(run->textRange(), textRange); in iterateThroughVisualRuns()
890 if (visitor(ellipsis(), runOffset, ellipsis()->textRange(), &width)) { in iterateThroughVisualRuns()
930 (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in getMetrics() argument
936 run, runOffsetInLine, textRange, StyleType::kForeground, in getMetrics()
937 [&result, &run](TextRange textRange, const TextStyle& style, const ClipContext& context) { in getMetrics() argument
941 result.fLineMetrics.emplace(textRange.start, styleMetrics); in getMetrics()
974 (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in getRectsForRange() argument
976 run, runOffsetInLine, textRange, StyleType::kNone, in getRectsForRange()
978 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& lineContext) { in getRectsForRange() argument
980 auto intersect = textRange * textRange0; in getRectsForRange()
1167 (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in getGlyphPositionAtCoordinate() argument
1170 run, runOffsetInLine, textRange, StyleType::kNone, in getGlyphPositionAtCoordinate()
1172 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context0) { in getGlyphPositionAtCoordinate() argument
1256 [&boxes, this](const Run* run, SkScalar runOffset, TextRange textRange, in getRectsForPlaceholders()
1258 auto context = this->measureTextInsideOneRun(textRange, run, runOffset, 0, true, false); in getRectsForPlaceholders()
1261 if (textRange.width() == 0) { in getRectsForPlaceholders()