Lines Matching defs:line
523 // Most common case: one line of text (and one line is never justified, so no cluster shifts)
661 for (auto& line : fLines) {
662 line.paint(painter, x, y);
680 for (auto& line : fLines) {
681 line.paint(painter, path, hOffset, vOffset);
694 for (const auto& line: fLines) {
695 if (line.getTextRangeReplacedByEllipsis().empty()) {
698 auto ellipsisClusterRange = line.getTextRangeReplacedByEllipsis();
752 // Get some information about trailing spaces / hard line breaks
1136 // This is a short version of a line breaking when we know that:
1137 // 1. We have only one line of text
1143 // we should calculate minIntrinsicWidth by soft line breaks.
1179 auto &line = this->addLine(SkPoint::Make(offsetX, 0), advance,
1183 auto spacing = line.autoSpacing();
1217 auto& line = this->addLine(offset, advance, textExcludingSpaces, text, textWithNewlines, clusters, clustersWithGhosts, widthWithSpaces, metrics);
1219 line.createTailEllipsis(noIndentWidth, this->getEllipsis(), true, this->getWordBreakType());
1221 line.createHeadEllipsis(noIndentWidth, this->getEllipsis(), true);
1223 auto spacing = line.autoSpacing();
1224 auto longestLine = std::max(line.width(), line.widthWithEllipsisSpaces()) + spacing;
1241 // This is a short version of a line breaking when we know that:
1242 // 1. We have only one line of text
1248 // we should calculate minIntrinsicWidth by soft line breaks.
1316 auto& line = this->addLine(offset, advance, textExcludingSpaces, text, textWithNewlines, clusters, clustersWithGhosts, widthWithSpaces, metrics);
1318 line.createEllipsis(maxWidth, this->getEllipsis(), true);
1349 for (auto& line : fLines) {
1352 line.setLineOffsetX(0);
1354 line.format(effectiveAlign, noIndentWidth, this->paragraphStyle().getEllipsisMod());
1446 // Define a list of styles that covers the line
1550 for (auto& line : fLines) {
1551 auto lineText = line.textWithNewlines();
1552 lineText = textRangeMergeBtoA(lineText, line.getTextRangeReplacedByEllipsis());
1558 line.getRectsForRange(intersect, rectHeightStyle, rectWidthStyle, results);
1583 for (auto& line : fLines) {
1584 line.getRectsForPlaceholders(boxes);
1609 for (auto& line : fLines) {
1611 auto offsetY = line.offset().fY;
1612 if (dy >= offsetY + line.height() && &line != &fLines.back()) {
1613 // This line is not good enough
1617 // This is so far the the line vertically closest to our coordinates
1620 auto result = line.getGlyphPositionAtCoordinate(dx);
1659 for (auto& line : fLines) {
1660 metrics.emplace_back(line.getMetrics());
1740 // 1. An empty line inside the text
1915 for (auto& line : fLines) {
1916 line.setTextBlobCachePopulated(false);
1981 for (auto& line : fLines) {
1982 line.ensureTextBlobCachePopulated();
1983 for (auto& rec : line.fTextBlobCache) {
2016 visitor(lineNumber, nullptr); // signal end of line
2024 auto& line = fLines[i];
2025 if (line.text().contains({codeUnitIndex, codeUnitIndex + 1})) {
2036 auto& line = fLines[lineNumber];
2038 *lineMetrics = line.getMetrics();
2047 auto& line = fLines[lineNumber];
2048 return includeSpaces ? line.text() : line.trimmedText();
2053 auto& line = fLines[i];
2054 if (!line.text().contains({codeUnitIndex, codeUnitIndex})) {
2057 for (auto c = line.clustersWithSpaces().start; c < line.clustersWithSpaces().end; ++c) {
2061 line.getRectsForRange(cluster.textRange(),
2205 for (auto& line: fLines) {
2208 std::make_unique<TextLineBaseImpl>(std::make_unique<TextLine>(std::move(line)));
2210 std::unique_ptr<TextLineBaseImpl> textLineBaseImplPtr = std::make_unique<TextLineBaseImpl>(&line);
2337 for (auto& line : this->fLines) {
2338 paragraph->fLines.emplace_back(line.CloneSelf());
2365 for (auto& line : paragraph->fLines) {
2366 line.setParagraphImpl(paragraph.get());