Lines Matching refs:paragraph
586 // Add the paragraph to the cache
951 // We have to letter space the entire paragraph (second most common case)
1741 // 2. An empty paragraph
1742 // In the first case SkParagraph takes the metrics from the default paragraph style
1785 // In case of non-empty paragraph TextHeightBehaviour flags will be applied at the appropriate place
2252 std::unique_ptr<ParagraphImpl> paragraph = std::make_unique<ParagraphImpl>();
2253 paragraph->copyProperties(*this);
2264 paragraph->fText.remove(0, validStart);
2265 paragraph->resetTextStyleRange(firstDeleteRange);
2266 paragraph->resetPlaceholderRange(firstDeleteRange);
2269 auto invalidStart = paragraph->prefixByteCountUntilChar(count);
2273 auto invalidEnd = paragraph->fText.size();
2275 paragraph->fText.remove(invalidStart, invalidEnd - invalidStart);
2276 paragraph->resetTextStyleRange(secodeDeleteRange);
2277 paragraph->resetPlaceholderRange(secodeDeleteRange);
2279 return paragraph;
2289 std::unique_ptr<ParagraphImpl> paragraph = std::make_unique<ParagraphImpl>();
2291 paragraph->fFontCollection = this->fFontCollection;
2292 paragraph->fParagraphStyle = this->fParagraphStyle;
2293 paragraph->fAlphabeticBaseline = this->fAlphabeticBaseline;
2294 paragraph->fIdeographicBaseline = this->fIdeographicBaseline;
2295 paragraph->fGlyphsBoundsTop = this->fGlyphsBoundsTop;
2296 paragraph->fGlyphsBoundsBottom = this->fGlyphsBoundsBottom;
2297 paragraph->fGlyphsBoundsLeft = this->fGlyphsBoundsLeft;
2298 paragraph->fGlyphsBoundsRight = this->fGlyphsBoundsRight;
2299 paragraph->fHeight = this->fHeight;
2300 paragraph->fWidth = this->fWidth;
2301 paragraph->fMaxIntrinsicWidth = this->fMaxIntrinsicWidth;
2302 paragraph->fMinIntrinsicWidth = this->fMinIntrinsicWidth;
2303 paragraph->fLongestLine = this->fLongestLine;
2305 paragraph->fLongestLineWithIndent = this->fLongestLineWithIndent;
2307 paragraph->fExceededMaxLines = this->fExceededMaxLines;
2309 paragraph->fLetterSpaceStyles = this->fLetterSpaceStyles;
2310 paragraph->fWordSpaceStyles = this->fWordSpaceStyles;
2311 paragraph->fBackgroundStyles = this->fBackgroundStyles;
2312 paragraph->fForegroundStyles = this->fForegroundStyles;
2313 paragraph->fShadowStyles = this->fShadowStyles;
2314 paragraph->fDecorationStyles = this->fDecorationStyles;
2315 paragraph->fTextStyles = this->fTextStyles;
2316 paragraph->fPlaceholders = this->fPlaceholders;
2317 paragraph->fText = this->fText;
2319 paragraph->fState = this->fState;
2320 paragraph->fRuns = this->fRuns;
2321 paragraph->fClusters = this->fClusters;
2322 paragraph->fCodeUnitProperties = this->fCodeUnitProperties;
2323 paragraph->fClustersIndexFromCodeUnit = this->fClustersIndexFromCodeUnit;
2325 paragraph->fWords = this->fWords;
2326 paragraph->fIndents = this->fIndents;
2327 paragraph->rtlTextSize = this->rtlTextSize;
2328 paragraph->ltrTextSize = this->ltrTextSize;
2329 paragraph->fBidiRegions = this->fBidiRegions;
2331 paragraph->fUTF8IndexForUTF16Index = this->fUTF8IndexForUTF16Index;
2332 paragraph->fUTF16IndexForUTF8Index = this->fUTF16IndexForUTF8Index;
2333 paragraph->fUnresolvedGlyphs = this->fUnresolvedGlyphs;
2334 paragraph->isMiddleEllipsis = this->isMiddleEllipsis;
2335 paragraph->fUnresolvedCodepoints = this->fUnresolvedCodepoints;
2338 paragraph->fLines.emplace_back(line.CloneSelf());
2341 paragraph->fPicture = this->fPicture;
2342 paragraph->fFontSwitches = this->fFontSwitches;
2343 paragraph->fEmptyMetrics = this->fEmptyMetrics;
2344 paragraph->fStrutMetrics = this->fStrutMetrics;
2346 paragraph->fOldWidth = this->fOldWidth;
2347 paragraph->fOldHeight = this->fOldHeight;
2348 paragraph->fMaxWidthWithTrailingSpaces = this->fMaxWidthWithTrailingSpaces;
2349 paragraph->fOldMaxWidth = this->fOldMaxWidth;
2350 paragraph->allTextWidth = this->allTextWidth;
2352 paragraph->fUnicode = this->fUnicode;
2353 paragraph->fHasLineBreaks = this->fHasLineBreaks;
2354 paragraph->fHasWhitespacesInside = this->fHasWhitespacesInside;
2355 paragraph->fTrailingSpaces = this->fTrailingSpaces;
2356 paragraph->fLineNumber = this->fLineNumber;
2357 paragraph->fEllipsisRange = this->fEllipsisRange;
2359 for (auto& run : paragraph->fRuns) {
2360 run.setOwner(paragraph.get());
2362 for (auto& cluster : paragraph->fClusters) {
2363 cluster.setOwner(paragraph.get());
2365 for (auto& line : paragraph->fLines) {
2366 line.setParagraphImpl(paragraph.get());
2368 return paragraph;