Lines Matching defs:ellipsis

928     // Weird situation: ellipsis does not fit; no ellipsis then
951 void TextLine::createTailEllipsis(SkScalar maxWidth, const SkString& ellipsis, bool ltr, WordBreakType wordBreakType) {
952 // Replace some clusters with the ellipsis
954 // taking off cluster by cluster until the ellipsis fits
967 // Shape the ellipsis if the run has changed
969 ellipsisRun = this->shapeEllipsis(ellipsis, &cluster);
985 // Continue if the ellipsis does not fit
1003 // We found enough room for the ellipsis
1014 TextRange(cluster.textRange().end, cluster.textRange().end + ellipsis.size());
1036 void TextLine::createHeadEllipsis(SkScalar maxWidth, const SkString& ellipsis, bool) {
1045 // Shape the ellipsis if the run has changed
1047 ellipsisRun = this->shapeEllipsis(ellipsis, &cluster);
1054 // Continue if the ellipsis does not fit
1064 // We found enough room for the ellipsis
1089 std::unique_ptr<Run> TextLine::shapeEllipsis(const SkString& ellipsis, const Cluster* cluster) {
1093 ShapeHandler(SkScalar lineHeight, bool useHalfLeading, SkScalar baselineShift, const SkString& ellipsis)
1094 : fRun(nullptr), fLineHeight(lineHeight), fUseHalfLeading(useHalfLeading), fBaselineShift(baselineShift), fEllipsis(ellipsis) {}
1144 ShapeHandler handler(run.heightMultiplier(), run.useHalfLeading(), run.baselineShift(), ellipsis);
1166 shaper->shape(ellipsis.c_str(),
1167 ellipsis.size(),
1173 ellipsisRun->fTextRange = TextRange(0, ellipsis.size());
1190 const char* ch = ellipsis.c_str();
1191 SkUnichar unicode = nextUtf8Unit(&ch, ellipsis.c_str() + ellipsis.size());
1245 // Both ellipsis and placeholders can only be measured as one glyph
1460 // Extra efforts to get the ellipsis text style
1589 runOffset += this->ellipsis()->offset().fX;
1591 if (!visitor(ellipsis(), runOffset, fTextRangeReplacedByEllipsis, &runWidthInLine)) {
1592 LOGE("Visitor process ellipsis replace word error!");
1596 if (!visitor(ellipsis(), runOffset, ellipsis()->textRange(), &runWidthInLine)) {
1597 LOGE("Visitor process ellipsis word error!");
1601 runWidthInLine = this->ellipsis()->advance().fX;
1632 // add the lastClipRun's left ellipsis if necessary
1668 // add the lastClipRun's right ellipsis if necessary
1722 if (this->ellipsis() != nullptr) {
1723 if (visitor(ellipsis(), runOffset, ellipsis()->textRange(), &width)) {