• Home
  • Raw
  • Download

Lines Matching refs:textRange

172 …        (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) {  in paint()  argument
174 run, runOffsetInLine, textRange, StyleType::kBackground, in paint()
175 …[textCanvas, x, y, this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in paint() argument
176 this->paintBackground(textCanvas, x, y, textRange, style, context); in paint()
185 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
187 run, runOffsetInLine, textRange, StyleType::kShadow, in paint()
188 …[textCanvas, x, y, &bounds, this](TextRange textRange, const TextStyle& style, const ClipContext& … in paint() argument
189 … auto shadowBounds = this->paintShadow(textCanvas, x, y, textRange, style, context); in paint()
208 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
210 run, runOffsetInLine, textRange, StyleType::kDecorations, in paint()
211 …[textCanvas, x, y, this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in paint() argument
212 this->paintDecorations(textCanvas, x, y, textRange, style, context); in paint()
227 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in ensureTextBlobCachePopulated() argument
233 run, runOffsetInLine, textRange, StyleType::kForeground, in ensureTextBlobCachePopulated()
234 [this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in ensureTextBlobCachePopulated() argument
235 this->buildTextBlob(textRange, style, context); in ensureTextBlobCachePopulated()
269 …[this, visitor, styleType](const Run* run, SkScalar runOffset, TextRange textRange, SkScalar* widt… in scanStyles() argument
271 run, runOffset, textRange, styleType, in scanStyles()
272 [visitor](TextRange textRange, const TextStyle& style, const ClipContext& context) { in scanStyles() argument
273 visitor(textRange, style, context); in scanStyles()
293 [&result](const Run* run, SkScalar runOffset, TextRange textRange, SkScalar* width) { in metricsWithoutMultiplier() argument
312 void TextLine::buildTextBlob(TextRange textRange, const TextStyle& style, const ClipContext& contex… in buildTextBlob() argument
359 void TextLine::paintBackground(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const… in paintBackground() argument
365 SkRect TextLine::paintShadow(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const T… in paintShadow() argument
411 void TextLine::paintDecorations(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, cons… in paintDecorations() argument
511 run->fClusterStart = cluster->textRange().start; in createEllipsis()
585 TextLine::ClipContext TextLine::measureTextInsideOneRun(TextRange textRange, in measureTextInsideOneRun() argument
595 SkASSERT(textRange == run->textRange()); in measureTextInsideOneRun()
620 std::tie(found, startIndex, endIndex) = run->findLimitingClusters(textRange); in measureTextInsideOneRun()
633 if (textRange.start != start->textRange().start) { in measureTextInsideOneRun()
634 textRange.start = start->textRange().end; in measureTextInsideOneRun()
636 textRange.end = end->textRange().end; in measureTextInsideOneRun()
638 if (textRange.start != end->textRange().start) { in measureTextInsideOneRun()
639 textRange.start = end->textRange().end; in measureTextInsideOneRun()
641 textRange.end = start->textRange().end; in measureTextInsideOneRun()
644 std::tie(found, startIndex, endIndex) = run->findLimitingGraphemes(textRange); in measureTextInsideOneRun()
645 if (startIndex == textRange.start && endIndex == textRange.end) { in measureTextInsideOneRun()
651 textRange.start = startIndex; in measureTextInsideOneRun()
652 textRange.end = endIndex; in measureTextInsideOneRun()
686 auto leftCorrection = start->sizeToChar(textRange.start); in measureTextInsideOneRun()
687 auto rightCorrection = end->sizeFromChar(textRange.end - 1); in measureTextInsideOneRun()
746 TextRange textRange, in iterateThroughSingleRunByStyles() argument
752 ClipContext clipContext = this->measureTextInsideOneRun(run->textRange(), run, runOffset, in iterateThroughSingleRunByStyles()
759 visitor(textRange, block->fStyle, clipContext); in iterateThroughSingleRunByStyles()
767 ClipContext clipContext = this->measureTextInsideOneRun(textRange, run, runOffset, in iterateThroughSingleRunByStyles()
770 visitor(textRange, TextStyle(), clipContext); in iterateThroughSingleRunByStyles()
792 intersect = intersected(block->fRange, textRange); in iterateThroughSingleRunByStyles()
850 auto textRange = includingGhostSpaces ? this->textWithSpaces() : this->trimmedText(); in iterateThroughVisualRuns() local
854 auto lineIntersection = intersected(run->textRange(), textRange); in iterateThroughVisualRuns()
881 if (visitor(ellipsis(), runOffset, ellipsis()->textRange(), &width)) { in iterateThroughVisualRuns()
920 (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in getMetrics() argument
926 run, runOffsetInLine, textRange, StyleType::kForeground, in getMetrics()
927 [&result, &run](TextRange textRange, const TextStyle& style, const ClipContext& context) { in getMetrics() argument
931 result.fLineMetrics.emplace(textRange.start, styleMetrics); in getMetrics()
964 (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in getRectsForRange() argument
966 run, runOffsetInLine, textRange, StyleType::kNone, in getRectsForRange()
968 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& lineContext) { in getRectsForRange() argument
970 auto intersect = textRange * textRange0; in getRectsForRange()
1157 (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in getGlyphPositionAtCoordinate() argument
1160 run, runOffsetInLine, textRange, StyleType::kNone, in getGlyphPositionAtCoordinate()
1162 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context0) { in getGlyphPositionAtCoordinate() argument
1251 [&boxes, this](const Run* run, SkScalar runOffset, TextRange textRange, in getRectsForPlaceholders()
1253 auto context = this->measureTextInsideOneRun(textRange, run, runOffset, 0, true, false); in getRectsForPlaceholders()
1256 if (textRange.width() == 0) { in getRectsForPlaceholders()