Lines Matching refs:fOwner
123 : fOwner(owner)
151 auto b = fOwner->styles().begin() + index;
180 auto& run = fOwner->run(runIndex);
193 fOwner->getUnicode()->reorderVisual(runLevels.data(), numRuns, logicalOrder.data());
198 if (fOwner->run(runIndex).isPlaceholder()) {
390 auto run = &this->fOwner->run(runIndex);
404 fOwner->run(fRunsInVisualOrder[0]).placeholderStyle() == nullptr) {
409 const auto& style = fOwner->block(fBlockRange.start).fStyle;
410 const auto& run = fOwner->run(fRunsInVisualOrder[0]);
415 auto& start = fOwner->cluster(fClusterRange.start);
416 auto& end = fOwner->cluster(fClusterRange.end - 1);
475 } else if (fOwner->paragraphStyle().getTextDirection() == TextDirection::kRtl) {
509 auto prevCluster = fOwner->cluster(fClusterRange.start);
512 auto& cluster = fOwner->cluster(clusterIndex);
803 if (fOwner->paragraphStyle().getTextDirection() == TextDirection::kRtl) {
913 auto& cluster = fOwner->cluster(clusterIndex);
966 auto& cluster = fOwner->cluster(clusterIndex - 1);
1001 fLastClipRunLtr = fOwner->run(fEllipsisIndex).leftToRight();
1006 fEllipsis->setOwner(fOwner);
1007 fTextRangeReplacedByEllipsis = TextRange(cluster.textRange().end, fOwner->text().size());
1044 auto& cluster = fOwner->cluster(clusterIndex);
1062 fLastClipRunLtr = fOwner->run(fEllipsisIndex).leftToRight();
1067 fEllipsis->setOwner(fOwner);
1127 TextStyle textStyle = fOwner->paragraphStyle().getTextStyle();
1129 auto& block = fOwner->block(i);
1159 fOwner->getUnicode()->copy(),
1163 fOwner->getUnicode()->copy(),
1174 ellipsisRun->fOwner = fOwner;
1179 auto typefaces = fOwner->fontCollection()->findTypefaces(
1189 if (fOwner->fontCollection()->fontFallbackEnabled()) {
1193 auto typeface = fOwner->fontCollection()->defaultFallback(
1197 typeface = fOwner->fontCollection()->CloneTypeface(typeface, textStyle.getFontArguments());
1221 if (compareRound(context.clip.fRight, fAdvance.fX, fOwner->getApplyRoundingHack()) > 0 && !includeGhostSpaces &&
1226 if (fOwner->paragraphStyle().getTextDirection() == TextDirection::kLtr) {
1298 Cluster* start = &fOwner->cluster(fOwner->clusterIndex(textRange.start));
1299 Cluster* end = &fOwner->cluster(fOwner->clusterIndex(textRange.end - (textRange.width() == 0 ? 0 : 1)));
1360 if (compareRound(result.clip.fRight, fAdvance.fX, fOwner->getApplyRoundingHack()) > 0 && !includeGhostSpaces) {
1364 if (fOwner->paragraphStyle().getTextDirection() == TextDirection::kLtr) {
1394 auto run = this->fOwner->run(r);
1399 auto trailed = fOwner->clusters(trailedRange);
1400 auto trimmed = fOwner->clusters(trimmedRange);
1463 auto block = fOwner->styles().begin() + index;
1509 auto block = fOwner->styles().begin() +
1617 fOwner->paragraphStyle().getEllipsisMod() == EllipsisModal::HEAD;
1619 bool ellipsisModeIsHead = fOwner->paragraphStyle().getEllipsisMod() == EllipsisModal::HEAD;
1642 const auto run = &this->fOwner->run(runIndex);
1678 if (!includingGhostSpaces && compareRound(totalWidth, this->width(), fOwner->getApplyRoundingHack()) != 0) {
1695 const auto run = &this->fOwner->run(runIndex);
1745 fOwner->ensureUTF16Mapping();
1746 result.fStartIndex = fOwner->getUTF16Index(fTextExcludingSpaces.start);
1747 result.fEndExcludingWhitespaces = fOwner->getUTF16Index(fTextExcludingSpaces.end);
1748 result.fEndIndex = fOwner->getUTF16Index(fText.end);
1749 result.fEndIncludingNewline = fOwner->getUTF16Index(fTextIncludingNewlines.end);
1756 if (fOwner->getApplyRoundingHack()) {
1763 result.fLineNumber = this - fOwner->lines().begin();
1804 return this == &fOwner->lines().front();
1808 return this == &fOwner->lines().back();
1814 return (fGhostClusterRange.width() > 0 && fOwner->cluster(fGhostClusterRange.end - 1).isHardBreak()) ||
1816 fGhostClusterRange.end == fOwner->clusters().size() - 1;
1843 auto paragraphStyle = fOwner->paragraphStyle();
1894 auto strutMetrics = fOwner->strutMetrics();
2011 right.rect.fRight < fOwner->widthWithTrailingSpaces()) {
2013 right.rect.fRight = fOwner->widthWithTrailingSpaces();
2022 if (fOwner->getApplyRoundingHack()) {
2037 auto utf16Index = fOwner->getUTF16Index(this->fTextExcludingSpaces.end);
2074 auto utf16Index = fOwner->getUTF16Index(context.run->globalClusterIndex(context.pos));
2098 auto utf16Index = fOwner->getUTF16Index(context.run->globalClusterIndex(context.pos + context.size));
2115 if (fOwner->getApplyRoundingHack()) {
2134 auto graphemes = fOwner->countSurroundingGraphemes({clusterIndex8, clusterEnd8});
2145 averageGraphemeWidth * fOwner->getTextSplitRatio();
2148 size_t utf16Index = fOwner->getUTF16Index(graphemeUtf8Index);
2151 size_t utf16Index = fOwner->getUTF16Index(graphemeUtf8Index + 1);
2156 size_t utf16Index = fOwner->getUTF16Index(clusterIndex8);
2164 utf16Index = fOwner->getUTF16Index(clusterIndex8) + 2;
2166 utf16Index = fOwner->getUTF16Index(clusterIndex8) + 1;
2168 utf16Index = fOwner->getUTF16Index(clusterEnd8);
2172 ? fOwner->getUTF16Index(clusterEnd8)
2173 : fOwner->getUTF16Index(clusterIndex8) + 1;
2209 if (fOwner->getApplyRoundingHack()) {
2305 int endWhitespaceCount = getEndWhitespaceCount(fGhostClusterRange, fOwner);
2307 textLine.createTailEllipsis(width, SkString(ellipsisStr), true, fOwner->getWordBreakType());
2412 int endWhitespaceCount = getEndWhitespaceCount(fGhostClusterRange, fOwner);
2417 SkScalar endAdvance = fOwner->cluster(fGhostClusterRange.end - endWhitespaceCount - 1).width();
2423 if (fOwner->cluster(clusterIndex).isWhitespaceBreak()) {
2424 startWhitespaceAdvance += fOwner->cluster(clusterIndex).width();
2432 auto rectVec = getAllRectInfo(fGhostClusterRange, fOwner);
2471 double characterWidth = fOwner->cluster(clusterIndex).width();
2495 offset += fOwner->cluster(clusterIndex).width();
2510 auto& cluster = fOwner->cluster(clusterIndex);
2528 TextDirection textDirection = fOwner->paragraphStyle().getTextDirection();
2581 textLine.fOwner = this->fOwner;