Lines Matching defs:impl
225 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
226 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
227 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
228 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
231 for (auto& line : impl->lines()) {
270 ParagraphImpl* impl = static_cast<ParagraphImpl*>(paragraph.get());
272 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
273 auto& line = impl->lines()[0];
1046 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1047 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
1048 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
1049 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
1052 for (auto& line : impl->lines()) {
1133 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1134 REPORTER_ASSERT(reporter, impl->runs().size() == 4);
1135 REPORTER_ASSERT(reporter, impl->styles().size() == 4);
1136 REPORTER_ASSERT(reporter, impl->lines().size() == 2);
1138 auto rects = paragraph->getRectsForRange(0, impl->text().size(), RectHeightStyle::kMax, RectWidthStyle::kTight);
1142 impl->lines()[0].scanStyles(
1148 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text1));
1152 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text2));
1156 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text3));
1160 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text41));
1169 impl->lines()[1].scanStyles(
1175 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text42));
1209 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1211 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
1212 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
1213 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
1216 impl->lines()[0].scanStyles(
1220 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text));
1255 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1257 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
1258 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
1259 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
1262 impl->lines()[0].scanStyles(
1266 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text));
1298 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1299 REPORTER_ASSERT(reporter, impl->runs().size() == 5);
1300 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
1301 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
1359 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1360 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
1361 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
1428 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1429 REPORTER_ASSERT(reporter, impl->runs().size() == 2);
1430 REPORTER_ASSERT(reporter, impl->styles().size() == 2); // paragraph style does not count
1431 REPORTER_ASSERT(reporter, impl->lines().size() == 1ull);
1521 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1522 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
1662 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1664 REPORTER_ASSERT(reporter, impl->text().size() == std::string{text}.length());
1665 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
1666 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
1667 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
1668 REPORTER_ASSERT(reporter, impl->lines().size() == paragraph_style.getMaxLines());
1672 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[0].baseline(), 24.121f, epsilon));
1674 SkScalarNearlyEqual(impl->lines()[0].offset().fY, expected_y, epsilon));
1677 SkScalarNearlyEqual(impl->lines()[1].offset().fY, expected_y, epsilon));
1680 SkScalarNearlyEqual(impl->lines()[2].offset().fY, expected_y, epsilon));
1683 SkScalarNearlyEqual(impl->lines()[3].offset().fY, expected_y, epsilon));
1686 SkScalarNearlyEqual(impl->lines()[13].offset().fY, expected_y, epsilon));
1689 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign());
1692 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(0, 0).position == 0);
1693 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(1, 1).position == 0);
1694 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(1, 35).position == 68);
1695 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(1, 70).position == 134);
1696 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(2000, 35).position == 134);
1747 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1749 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
1750 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
1751 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
1752 REPORTER_ASSERT(reporter, impl->lines().size() == paragraph_style.getMaxLines());
1756 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[0].baseline(), 24.121f, epsilon));
1758 SkScalarNearlyEqual(impl->lines()[0].offset().fY, expected_y, epsilon));
1761 SkScalarNearlyEqual(impl->lines()[1].offset().fY, expected_y, epsilon));
1764 SkScalarNearlyEqual(impl->lines()[2].offset().fY, expected_y, epsilon));
1767 SkScalarNearlyEqual(impl->lines()[3].offset().fY, expected_y, epsilon));
1770 SkScalarNearlyEqual(impl->lines()[13].offset().fY, expected_y, epsilon));
1776 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[0]), 0, epsilon));
1777 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[1]), 0, epsilon));
1778 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[2]), 0, epsilon));
1779 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[3]), 0, epsilon));
1780 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[13]), 0, epsilon));
1783 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign());
1833 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1835 REPORTER_ASSERT(reporter, impl->text().size() == std::string{text}.length());
1836 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
1837 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
1838 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
1839 REPORTER_ASSERT(reporter, impl->lines().size() == paragraph_style.getMaxLines());
1843 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[0].baseline(), 24.121f, epsilon));
1845 SkScalarNearlyEqual(impl->lines()[0].offset().fY, expected_y, epsilon));
1848 SkScalarNearlyEqual(impl->lines()[1].offset().fY, expected_y, epsilon));
1851 SkScalarNearlyEqual(impl->lines()[2].offset().fY, expected_y, epsilon));
1854 SkScalarNearlyEqual(impl->lines()[3].offset().fY, expected_y, epsilon));
1857 SkScalarNearlyEqual(impl->lines()[13].offset().fY, expected_y, epsilon));
1863 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[0]), 0, epsilon));
1864 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[1]), 0, epsilon));
1865 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[2]), 0, epsilon));
1866 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[3]), 0, epsilon));
1867 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[13]), 0, epsilon));
1870 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign());
1923 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1925 REPORTER_ASSERT(reporter, impl->text().size() == std::string{text}.length());
1926 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
1927 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
1928 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
1931 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[0].baseline(), 24.121f, EPSILON100));
1933 SkScalarNearlyEqual(impl->lines()[0].offset().fY, expected_y, EPSILON100));
1936 SkScalarNearlyEqual(impl->lines()[1].offset().fY, expected_y, EPSILON100));
1939 SkScalarNearlyEqual(impl->lines()[2].offset().fY, expected_y, EPSILON100));
1942 SkScalarNearlyEqual(impl->lines()[3].offset().fY, expected_y, EPSILON100));
1945 SkScalarNearlyEqual(impl->lines()[12].offset().fY, expected_y, EPSILON100));
1951 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[0]), 0, EPSILON100));
1952 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[1]), 0, EPSILON100));
1953 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[2]), 0, EPSILON100));
1954 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(calculate(impl->lines()[3]), 0, EPSILON100));
1957 paragraph_style.getTextAlign() == impl->paragraphStyle().getTextAlign());
1990 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
1995 for (auto& line : impl->lines()) {
1996 if (&line == &impl->lines().back()) {
2004 for (auto& run : impl->runs()) {
2054 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
2088 for (auto& line : impl->lines()) {
2089 ptrdiff_t num = &line - impl->lines().data();
2204 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
2207 for (auto& line : impl->lines()) {
2294 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
2296 REPORTER_ASSERT(reporter, impl->runs().size() == 3);
2297 REPORTER_ASSERT(reporter, impl->styles().size() == 3);
2298 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
2299 auto& line = impl->lines()[0];
2368 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
2370 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
2371 REPORTER_ASSERT(reporter, impl->lines().size() == 7);
2372 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
2373 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
2413 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
2415 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
2416 REPORTER_ASSERT(reporter, impl->lines().size() == 2);
2417 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
2418 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
2451 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
2452 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
2502 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
2503 REPORTER_ASSERT(reporter, impl->runs().size() == 3);
2550 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
2551 REPORTER_ASSERT(reporter, impl->runs().size() == 3);
3196 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
3197 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
3358 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
3359 REPORTER_ASSERT(reporter, impl->lines().size() == 2);
3420 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
3422 REPORTER_ASSERT(reporter, impl->lines().size() == 2);
3719 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
3720 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
3722 impl->lines().begin()->scanStyles(StyleType::kLetterSpacing,
3729 impl->lines().begin()->scanStyles(StyleType::kWordSpacing,
3768 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
3769 REPORTER_ASSERT(reporter, impl->text().size() == std::string{text}.length());
3770 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
3771 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
3772 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
3773 REPORTER_ASSERT(reporter, impl->lines().size() == 4);
3775 REPORTER_ASSERT(reporter, impl->lines()[0].width() > TestCanvasWidth / 2 - 20);
3776 REPORTER_ASSERT(reporter, impl->lines()[1].width() > TestCanvasWidth / 2 - 20);
3777 REPORTER_ASSERT(reporter, impl->lines()[2].width() > TestCanvasWidth / 2 - 20);
3814 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
3817 REPORTER_ASSERT(reporter, impl->lines().size() == 3);
3818 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[0].width(), 285.858f, EPSILON100));
3819 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[1].width(), 329.709f, EPSILON100));
3820 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[2].width(), 120.619f, EPSILON100));
3821 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[0].height(), 39.00f, EPSILON100));
3822 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[1].height(), 39.00f, EPSILON100));
3823 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->lines()[2].height(), 05.00f, EPSILON100));
3854 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
3856 REPORTER_ASSERT(reporter, impl->lines().size() == 7);
3858 REPORTER_ASSERT(reporter, impl->lines()[0].offset().fY == 0);
3859 REPORTER_ASSERT(reporter, impl->lines()[1].offset().fY == 70);
3860 REPORTER_ASSERT(reporter, impl->lines()[2].offset().fY == 140);
3861 REPORTER_ASSERT(reporter, impl->lines()[3].offset().fY == 210);
3862 REPORTER_ASSERT(reporter, impl->lines()[4].offset().fY == 280); // Empty line
3863 REPORTER_ASSERT(reporter, impl->lines()[5].offset().fY == 350);
3864 REPORTER_ASSERT(reporter, impl->lines()[6].offset().fY == 420);
3898 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
3900 REPORTER_ASSERT(reporter, impl->lines().size() == 8);
3901 for (auto& line : impl->lines()) {
3902 if (&line != impl->lines().end() - 1) {
3999 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4001 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
4002 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
4003 REPORTER_ASSERT(reporter, impl->lines().size() == 12);
4007 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
4008 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
4009 REPORTER_ASSERT(reporter, impl->lines().size() == 6);
4042 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4045 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
4047 auto& line = impl->lines()[0];
4049 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
4082 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4096 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
4144 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4146 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
4147 REPORTER_ASSERT(reporter, impl->styles().size() == 1);
4149 for (auto& line : impl->lines()) {
4197 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4200 for (auto& line : impl->lines()) {
4342 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4344 REPORTER_ASSERT(reporter, impl->runs().size() == 6 + spaceRun);
4351 auto robotoAdvance = impl->runs()[0].advance().fX +
4352 impl->runs()[1].advance().fX;
4353 robotoAdvance += impl->runs()[2].advance().fX;
4356 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->runs()[2 + spaceRun].advance().fX, 139.125f, EPSILON100));
4357 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->runs()[3 + spaceRun].advance().fX, 27.999f, EPSILON100));
4358 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->runs()[4 + spaceRun].advance().fX, 62.248f, EPSILON100));
4359 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(impl->runs()[5 + spaceRun].advance().fX, 27.999f, EPSILON100));
4362 REPORTER_ASSERT(reporter, impl->runs()[3 + spaceRun].correctAscent() != impl->runs()[5 + spaceRun].correctAscent());
4363 REPORTER_ASSERT(reporter, impl->runs()[3 + spaceRun].correctDescent() != impl->runs()[5 + spaceRun].correctDescent());
4405 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4406 REPORTER_ASSERT(reporter, impl->lines().size() == 4);
4511 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4513 REPORTER_ASSERT(reporter, impl->lines().size() == 4);
4618 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4620 REPORTER_ASSERT(reporter, impl->lines().size() == 4);
4725 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4727 REPORTER_ASSERT(reporter, impl->lines().size() == 4);
4883 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4886 auto& tnum_line = impl->lines()[0];
4887 auto& pnum_line = impl->lines()[1];
4892 REPORTER_ASSERT(reporter, impl->clusters()[0].width() == impl->clusters()[1].width());
4894 REPORTER_ASSERT(reporter, impl->clusters()[5].width() != impl->clusters()[6].width());
4896 REPORTER_ASSERT(reporter, impl->clusters()[2].width() == impl->clusters()[7].width());
4923 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4924 for (size_t i = 0; i < impl->runs().size() - 1; ++i) {
4925 auto first = impl->runs()[i].textRange();
4926 auto next = impl->runs()[i + 1].textRange();
4951 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4952 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
4953 auto& run = impl->runs().front();
4992 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
4993 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
4996 for (auto& run : impl->runs()) {
4998 impl->text().begin() + run.textRange().start, 0, run.textRange().width(),
5034 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
5036 auto found = cache.findParagraph(impl);
5038 auto added = cache.updateParagraph(impl);
5070 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
5073 auto found = cache.findParagraph(impl);
5075 auto added = cache.updateParagraph(impl);
5118 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
5121 auto found = cache.findParagraph(impl);
5123 auto added = cache.updateParagraph(impl);
5156 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
5159 auto found = cache.findParagraph(impl);
5161 auto added = cache.updateParagraph(impl);
5445 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
5446 REPORTER_ASSERT(reporter, impl->runs().size() == 2);
5448 REPORTER_ASSERT(reporter, impl->runs().front().size() == 4);
5449 REPORTER_ASSERT(reporter, impl->runs().front().glyphs()[0] == impl->runs().front().glyphs()[2]);
5450 REPORTER_ASSERT(reporter, impl->runs().front().glyphs()[1] == impl->runs().front().glyphs()[3]);
5452 REPORTER_ASSERT(reporter, impl->runs().back().size() == 2);
5453 REPORTER_ASSERT(reporter, impl->runs().back().glyphs()[0] == impl->runs().back().glyphs()[1]);
5712 SkDEBUGCODE(auto impl = static_cast<ParagraphImpl*>(paragraph.get());)
5713 SkASSERT(metrics.size() == impl->lines().size());
5715 SkDEBUGCODE(auto& line = impl->lines()[i];)
5776 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
5777 REPORTER_ASSERT(reporter, SkScalarIsFinite(impl->getPicture()->cullRect().height()));
5778 REPORTER_ASSERT(reporter, SkScalarIsFinite(impl->getPicture()->cullRect().width()));
5852 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
5853 REPORTER_ASSERT(reporter, impl->runs().size() == (10 + 11));
5879 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
5880 REPORTER_ASSERT(reporter, impl->runs().size() == 5);
5881 REPORTER_ASSERT(reporter, impl->runs()[0].textRange().width() == 4); // "abc "
5882 REPORTER_ASSERT(reporter, impl->runs()[1].textRange().width() == 2); // "{unresolved}"
5883 REPORTER_ASSERT(reporter, impl->runs()[2].textRange().width() == 1); // " "
5884 REPORTER_ASSERT(reporter, impl->runs()[3].textRange().width() == 2); // "{unresolved}"
5885 REPORTER_ASSERT(reporter, impl->runs()[4].textRange().width() == 4); // " def"
6467 //auto impl = static_cast<ParagraphImpl*>(paragraph.get());
6794 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
6795 REPORTER_ASSERT(reporter, impl->runs().size() == 1);
6796 REPORTER_ASSERT(reporter, impl->styles().size() == 1); // paragraph style does not count
6797 REPORTER_ASSERT(reporter, impl->styles()[0].fStyle.equals(text_style));
6800 for (auto& line : impl->lines()) {
6841 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
6844 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
6846 auto boxes1 = impl->getRectsForRange(0, 2, RectHeightStyle::kTight, RectWidthStyle::kTight);
6849 auto boxes2 = impl->getRectsForRange(0, 3, RectHeightStyle::kTight, RectWidthStyle::kTight);
6931 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
6932 REPORTER_ASSERT(reporter, impl->runs().size() > 1); // It's not the simple case
6934 for (auto& run : impl->runs()) {
6945 REPORTER_ASSERT(reporter, impl->lineNumber() == 1); // But it's still one line
6973 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
6975 for (auto& run : impl->runs()) {
6985 REPORTER_ASSERT(reporter, impl->lineNumber() == 1); // But it's still one line
7198 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
7199 REPORTER_ASSERT(reporter, impl->lines().size() == 1);
7203 impl->lines().data()->scanStyles(StyleType::kDecorations,
7495 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
7497 auto& line = impl->lines()[0];
7532 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
7534 auto& line = impl->lines()[1];
7654 auto impl = static_cast<ParagraphImpl*>(paragraph.get());
7655 REPORTER_ASSERT(reporter, impl->placeholders().size() == 1);
7659 for (auto& line : impl->lines()) {