Lines Matching refs:paragraph
215 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
216 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
217 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
219 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
291 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
292 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
293 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
298 auto boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
302 boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
306 boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
309 boxes = paragraph->getRectsForRange(4, 17, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
365 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
366 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
367 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
369 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
381 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
421 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
422 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
423 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
425 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
437 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
477 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
478 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
479 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
481 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
493 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
533 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
534 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
535 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
540 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
548 boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
587 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
588 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
589 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
594 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
602 boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
641 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
642 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
643 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
648 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
656 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
694 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
695 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
696 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
701 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
709 boxes = paragraph->getRectsForRange(5, 6, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
812 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
813 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
814 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
819 auto boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
823 boxes = paragraph->getRectsForRange(175, 176, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
831 boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
834 boxes = paragraph->getRectsForRange(4, 45, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
935 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
936 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
937 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
942 auto boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
961 boxes = paragraph->getRectsForRange(30, 50, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
998 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
999 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
1000 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
1002 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1083 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1084 paragraph->layout(1000); in UNIX_ONLY_TEST()
1085 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1087 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
1089 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1094 …auto rects = paragraph->getRectsForRange(0, impl->text().size(), RectHeightStyle::kMax, RectWidthS… in UNIX_ONLY_TEST()
1158 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1159 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
1160 paragraph->paint(canvas.get(), 10.0, 15.0); in UNIX_ONLY_TEST()
1162 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
1164 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1204 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1205 paragraph->layout(VeryLongCanvasWidth); in UNIX_ONLY_TEST()
1206 paragraph->paint(canvas.get(), 10.0, 60.0); in UNIX_ONLY_TEST()
1208 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
1210 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1250 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1251 paragraph->layout(550); in UNIX_ONLY_TEST()
1253 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1258 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1269 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style… in UNIX_ONLY_TEST()
1273 boxes = paragraph->getRectsForRange(0, 40, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
1311 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1312 paragraph->layout(550); in UNIX_ONLY_TEST()
1314 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1318 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1321 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_wid… in UNIX_ONLY_TEST()
1322 …std::vector<TextBox> lineBoxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kMax, rect_w… in UNIX_ONLY_TEST()
1379 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1380 paragraph->layout(550); in UNIX_ONLY_TEST()
1381 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1383 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1390 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_wid… in UNIX_ONLY_TEST()
1391 …std::vector<TextBox> lineBoxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kMax, rect_w… in UNIX_ONLY_TEST()
1473 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1474 paragraph->layout(550); in UNIX_ONLY_TEST()
1476 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1479 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1482 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_wid… in UNIX_ONLY_TEST()
1483 …std::vector<TextBox> lineBoxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kMax, rect_w… in UNIX_ONLY_TEST()
1533 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1534 paragraph->layout(550); in UNIX_ONLY_TEST()
1535 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1539 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_wid… in UNIX_ONLY_TEST()
1540 …std::vector<TextBox> lineBoxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kMax, rect_w… in UNIX_ONLY_TEST()
1613 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1614 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
1615 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1617 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1697 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1698 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
1700 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1702 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1784 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1785 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
1786 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1788 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1869 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1870 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
1871 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1875 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
1878 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1941 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
1942 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
1943 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
1945 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
1966 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
1970 boxes = paragraph->getRectsForRange(240, 250, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
2005 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2006 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
2007 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2009 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
2020 auto boxes = paragraph->getRectsForRange(0, 30, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
2031 boxes = paragraph->getRectsForRange(240, 250, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
2072 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2073 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
2074 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2085 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
2149 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2150 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
2151 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2153 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
2239 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2240 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
2241 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2243 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
2311 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2312 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
2313 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2315 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
2317 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
2356 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2357 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
2358 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2360 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
2362 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
2397 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2398 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
2400 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
2403 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2407 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_sty… in UNIX_ONLY_TEST()
2448 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2449 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
2451 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
2454 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2459 …std::vector<TextBox> boxes = paragraph->getRectsForRange(36, 40, rect_height_style, rect_width_sty… in UNIX_ONLY_TEST()
2496 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2497 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
2499 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
2502 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2507 paragraph->getRectsForRange(36, 40, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
2545 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2546 paragraph->layout(550); in UNIX_ONLY_TEST()
2547 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2555 paragraph->getGlyphPositionAtCoordinate(-10000, -10000).position == 0); in UNIX_ONLY_TEST()
2556 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(-1, -1).position == 0); in UNIX_ONLY_TEST()
2557 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(0, 0).position == 0); in UNIX_ONLY_TEST()
2558 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(3, 3).position == 0); in UNIX_ONLY_TEST()
2559 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(35, 1).position == 1); in UNIX_ONLY_TEST()
2561 paragraph->getGlyphPositionAtCoordinate(300, 2).position == 11); in UNIX_ONLY_TEST()
2562 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(301, 2.2f).position == 11); in UNIX_ONLY_TEST()
2563 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(302, 2.6f).position == 11); in UNIX_ONLY_TEST()
2564 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(301, 2.1f).position == 11); in UNIX_ONLY_TEST()
2565 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(100000, 20).position == 18); in UNIX_ONLY_TEST()
2566 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(450, 20).position == 16); in UNIX_ONLY_TEST()
2567 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(100000, 90).position == 36); in UNIX_ONLY_TEST()
2568 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(-100000, 90).position == 18); in UNIX_ONLY_TEST()
2570 paragraph->getGlyphPositionAtCoordinate(20, -80).position == 1); in UNIX_ONLY_TEST()
2571 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(1, 90).position == 18); in UNIX_ONLY_TEST()
2572 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(1, 170).position == 36); in UNIX_ONLY_TEST()
2573 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(10000, 180).position == 72); in UNIX_ONLY_TEST()
2574 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(70, 180).position == 56); in UNIX_ONLY_TEST()
2575 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(1, 270).position == 72); in UNIX_ONLY_TEST()
2576 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(35, 90).position == 19); in UNIX_ONLY_TEST()
2577 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(10000, 10000).position == 77); in UNIX_ONLY_TEST()
2578 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(85, 10000).position == 75); in UNIX_ONLY_TEST()
2606 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2607 paragraph->layout(550); in UNIX_ONLY_TEST()
2608 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2619 auto result = paragraph->getRectsForRange(0, 0, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2623 auto result = paragraph->getRectsForRange(0, 1, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2632 auto result = paragraph->getRectsForRange(2, 8, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2641 auto result = paragraph->getRectsForRange(8, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2650 auto result = paragraph->getRectsForRange(30, 100, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2663 auto result = paragraph->getRectsForRange(19, 22, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2672 auto result = paragraph->getRectsForRange(21, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2709 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2710 paragraph->layout(550); in UNIX_ONLY_TEST()
2711 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2716 auto result = paragraph->getRectsForRange(0, 0, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2720 auto result = paragraph->getRectsForRange(0, 1, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2729 auto result = paragraph->getRectsForRange(2, 8, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2738 auto result = paragraph->getRectsForRange(8, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2777 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2778 paragraph->layout(550); in UNIX_ONLY_TEST()
2779 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2784 auto result = paragraph->getRectsForRange(0, 0, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2789 auto result = paragraph->getRectsForRange(0, 1, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2798 auto result = paragraph->getRectsForRange(2, 8, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2807 auto result = paragraph->getRectsForRange(8, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2816 auto result = paragraph->getRectsForRange(30, 150, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2851 auto result = paragraph->getRectsForRange(19, 22, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2865 auto result = paragraph->getRectsForRange(21, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2899 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
2900 paragraph->layout(550); in UNIX_ONLY_TEST()
2901 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
2906 auto result = paragraph->getRectsForRange(0, 0, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2911 auto result = paragraph->getRectsForRange(0, 1, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2920 auto result = paragraph->getRectsForRange(2, 8, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2929 auto result = paragraph->getRectsForRange(8, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2938 auto result = paragraph->getRectsForRange(30, 150, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2973 auto result = paragraph->getRectsForRange(19, 22, heightStyle, widthStyle); in UNIX_ONLY_TEST()
2987 auto result = paragraph->getRectsForRange(21, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3021 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3022 paragraph->layout(550); in UNIX_ONLY_TEST()
3023 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3028 auto result = paragraph->getRectsForRange(0, 0, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3033 auto result = paragraph->getRectsForRange(0, 1, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3042 auto result = paragraph->getRectsForRange(2, 8, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3051 auto result = paragraph->getRectsForRange(8, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3060 auto result = paragraph->getRectsForRange(30, 150, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3095 auto result = paragraph->getRectsForRange(19, 22, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3109 auto result = paragraph->getRectsForRange(21, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3141 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3142 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
3143 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3145 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
3151 auto result = paragraph->getRectsForRange(0, 0, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3155 auto first = paragraph->getRectsForRange(0, 1, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3156 auto second = paragraph->getRectsForRange(1, 2, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3157 auto last = paragraph->getRectsForRange(0, 2, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3162 auto first = paragraph->getRectsForRange(3, 4, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3163 auto second = paragraph->getRectsForRange(4, 5, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3164 auto last = paragraph->getRectsForRange(3, 5, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3169 auto first = paragraph->getRectsForRange(14, 15, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3170 auto second = paragraph->getRectsForRange(15, 16, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3171 auto third = paragraph->getRectsForRange(16, 17, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3172 auto last = paragraph->getRectsForRange(14, 17, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3208 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3209 paragraph->layout(550); in UNIX_ONLY_TEST()
3210 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3216 auto result = paragraph->getRectsForRange(0, 0, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3221 auto result = paragraph->getRectsForRange(0, 1, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3231 auto result = paragraph->getRectsForRange(2, 4, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3241 auto result = paragraph->getRectsForRange(4, 5, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3251 auto result = paragraph->getRectsForRange(4, 6, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3261 auto result = paragraph->getRectsForRange(5, 6, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3271 auto result = paragraph->getRectsForRange(21, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3302 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3303 paragraph->layout(550); in UNIX_ONLY_TEST()
3305 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3307 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
3313 auto result = paragraph->getRectsForRange(0, 0, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3318 auto result = paragraph->getRectsForRange(0, 1, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3328 auto result = paragraph->getRectsForRange(6, 7, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3364 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3365 paragraph->layout(550); in UNIX_ONLY_TEST()
3367 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3369 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
3377 auto result = paragraph->getRectsForRange(0, 0, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3381 auto result = paragraph->getRectsForRange(0, 1, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3390 auto result = paragraph->getRectsForRange(2, 4, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3399 auto result = paragraph->getRectsForRange(4, 6, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3408 auto result = paragraph->getRectsForRange(5, 6, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3417 auto result = paragraph->getRectsForRange(10, 12, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3426 auto result = paragraph->getRectsForRange(14, 18, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3435 auto result = paragraph->getRectsForRange(21, 21, heightStyle, widthStyle); in UNIX_ONLY_TEST()
3466 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3467 paragraph->layout(550); in UNIX_ONLY_TEST()
3468 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3471 … auto result = paragraph->getRectsForRange(0, 10, RectHeightStyle::kTight, RectWidthStyle::kMax); in UNIX_ONLY_TEST()
3477 … auto result = paragraph->getRectsForRange(0, 10, RectHeightStyle::kStrut, RectWidthStyle::kMax); in UNIX_ONLY_TEST()
3511 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3512 paragraph->layout(550); in UNIX_ONLY_TEST()
3513 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3516 … auto result1 = paragraph->getRectsForRange(0, 10, RectHeightStyle::kTight, RectWidthStyle::kMax); in UNIX_ONLY_TEST()
3520 … auto result2 = paragraph->getRectsForRange(0, 10, RectHeightStyle::kStrut, RectWidthStyle::kMax); in UNIX_ONLY_TEST()
3553 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3554 paragraph->layout(550); in UNIX_ONLY_TEST()
3555 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3557 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(0) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST()
3558 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(1) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST()
3559 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(2) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST()
3560 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(3) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST()
3561 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(4) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST()
3562 auto boxes = paragraph->getRectsForRange(5, 6, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3565 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(5) == SkRange<size_t>(5, 7)); in UNIX_ONLY_TEST()
3566 boxes = paragraph->getRectsForRange(6, 7, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3569 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(6) == SkRange<size_t>(5, 7)); in UNIX_ONLY_TEST()
3570 boxes = paragraph->getRectsForRange(7, 8, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3573 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(7) == SkRange<size_t>(7, 12)); in UNIX_ONLY_TEST()
3574 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(8) == SkRange<size_t>(7, 12)); in UNIX_ONLY_TEST()
3575 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(9) == SkRange<size_t>(7, 12)); in UNIX_ONLY_TEST()
3576 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(10) == SkRange<size_t>(7, 12)); in UNIX_ONLY_TEST()
3577 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(11) == SkRange<size_t>(7, 12)); in UNIX_ONLY_TEST()
3578 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(12) == SkRange<size_t>(12, 13)); in UNIX_ONLY_TEST()
3579 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(13) == SkRange<size_t>(13, 18)); in UNIX_ONLY_TEST()
3580 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(30) == SkRange<size_t>(30, 31)); in UNIX_ONLY_TEST()
3582 boxes = paragraph->getRectsForRange(12, 13, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3584 boxes = paragraph->getRectsForRange(13, 14, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3586 boxes = paragraph->getRectsForRange(18, 19, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3588 boxes = paragraph->getRectsForRange(19, 20, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3590 boxes = paragraph->getRectsForRange(24, 25, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3592 boxes = paragraph->getRectsForRange(25, 26, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3594 boxes = paragraph->getRectsForRange(30, 31, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3596 boxes = paragraph->getRectsForRange(31, 32, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
3599 auto outLen = static_cast<ParagraphImpl*>(paragraph.get())->text().size(); in UNIX_ONLY_TEST()
3600 …REPORTER_ASSERT(reporter, paragraph->getWordBoundary(outLen - 1) == SkRange<size_t>(outLen - 5, ou… in UNIX_ONLY_TEST()
3664 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3665 paragraph->layout(550); in UNIX_ONLY_TEST()
3666 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3668 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
3713 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3714 paragraph->layout(TestCanvasWidth / 2); in UNIX_ONLY_TEST()
3715 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3717 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
3757 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3758 paragraph->layout(TestCanvasWidth / scale); in UNIX_ONLY_TEST()
3760 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3763 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
3799 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3800 paragraph->layout(TestCanvasWidth - 300); in UNIX_ONLY_TEST()
3801 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3803 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
3841 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3842 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
3843 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3845 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
3847 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
3886 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3887 paragraph->layout(TestCanvasWidth - 300); in UNIX_ONLY_TEST()
3888 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3893 auto result = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
3896 result = paragraph->getRectsForRange(0, 119, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
3900 result = paragraph->getRectsForRange(122, 132, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
3905 auto pos = paragraph->getGlyphPositionAtCoordinate(610, 100).position; in UNIX_ONLY_TEST()
3906 result = paragraph->getRectsForRange(0, pos, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
3910 pos = paragraph->getGlyphPositionAtCoordinate(580, 100).position; in UNIX_ONLY_TEST()
3911 result = paragraph->getRectsForRange(0, pos, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
3915 pos = paragraph->getGlyphPositionAtCoordinate(560, 100).position; in UNIX_ONLY_TEST()
3916 result = paragraph->getRectsForRange(0, pos, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
3945 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3946 paragraph->layout(300); in UNIX_ONLY_TEST()
3948 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
3954 paragraph->layout(600); in UNIX_ONLY_TEST()
3955 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3987 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
3988 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
3989 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
3991 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4027 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4028 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
4029 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
4031 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4048 auto rect = paragraph->getRectsForRange(0, 12, RectHeightStyle::kMax, RectWidthStyle::kTight) in UNIX_ONLY_TEST()
4059 … auto r1 = paragraph->getRectsForRange(i, i + 1, RectHeightStyle::kMax, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
4089 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4090 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
4091 paragraph->paint(canvas.get(), 10.0, 15.0); in UNIX_ONLY_TEST()
4093 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4142 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4143 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
4144 paragraph->paint(canvas.get(), 10.0, 15.0); in UNIX_ONLY_TEST()
4146 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4206 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4207 paragraph->layout(TestCanvasWidth - 100); in UNIX_ONLY_TEST()
4208 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
4210 SkRect rect1 = SkRect::MakeXYWH(0, paragraph->getIdeographicBaseline(), in UNIX_ONLY_TEST()
4211 paragraph->getMaxWidth(), in UNIX_ONLY_TEST()
4212 paragraph->getIdeographicBaseline()); in UNIX_ONLY_TEST()
4213 SkRect rect2 = SkRect::MakeXYWH(0, paragraph->getAlphabeticBaseline(), in UNIX_ONLY_TEST()
4214 paragraph->getMaxWidth(), in UNIX_ONLY_TEST()
4215 paragraph->getAlphabeticBaseline()); in UNIX_ONLY_TEST()
4220 SkScalarNearlyEqual(paragraph->getIdeographicBaseline(), 79.035f, EPSILON100)); in UNIX_ONLY_TEST()
4222 SkScalarNearlyEqual(paragraph->getAlphabeticBaseline(), 63.305f, EPSILON100)); in UNIX_ONLY_TEST()
4283 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4284 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == -1); // Not shaped yet in UNIX_ONLY_TEST()
4285 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
4286 paragraph->paint(canvas.get(), 10.0, 15.0); in UNIX_ONLY_TEST()
4289 …REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 2); // From the text1 ("字典" - excluding… in UNIX_ONLY_TEST()
4291 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4350 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4351 paragraph->layout(550); in UNIX_ONLY_TEST()
4352 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
4354 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4361 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4365 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4374 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4383 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4392 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4401 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4410 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4456 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4457 paragraph->layout(550); in UNIX_ONLY_TEST()
4458 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
4460 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4468 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4472 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4481 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4490 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4499 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4508 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4517 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4563 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4564 paragraph->layout(550); in UNIX_ONLY_TEST()
4565 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
4567 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4576 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4580 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4589 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4598 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4607 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4616 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4625 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4670 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4671 paragraph->layout(550); in UNIX_ONLY_TEST()
4672 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
4674 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4682 auto boxes1 = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4685 auto boxes2 = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4693 auto boxes3 = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4701 auto boxes4 = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4709 auto boxes5 = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4717 auto boxes6 = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4725 auto boxes7 = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); in UNIX_ONLY_TEST()
4767 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4768 paragraph->layout(550); in UNIX_ONLY_TEST()
4769 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
4775 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4779 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
4788 auto boxes = paragraph->getRectsForRange(0, 2, rect_height_strut_style, rect_width_style); in UNIX_ONLY_TEST()
4827 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4828 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
4830 paragraph->paint(canvas.get(), 10.0, 15.0); in UNIX_ONLY_TEST()
4832 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4833 REPORTER_ASSERT(reporter, paragraph->lineNumber() == 3ull); in UNIX_ONLY_TEST()
4867 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4868 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
4870 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST()
4872 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4897 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4898 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
4900 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4938 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4939 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
4941 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
4981 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
4983 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
5018 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5019 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
5066 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5067 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
5104 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5105 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
5138 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5139 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
5140 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5143 auto pos = paragraph->getGlyphPositionAtCoordinate(0, 21); in UNIX_ONLY_TEST()
5145 auto rect = paragraph->getRectsForRange(4, 5, RectHeightStyle::kTight, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
5164 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5165 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
5166 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5180 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5181 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
5182 auto result = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
5183 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5222 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5223 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
5224 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5225 canvas.get()->translate(0, paragraph->getHeight() + 10); in UNIX_ONLY_TEST()
5276 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5277 paragraph->layout(400); in UNIX_ONLY_TEST()
5278 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5307 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5308 paragraph->layout(360); in UNIX_ONLY_TEST()
5309 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5316 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5317 paragraph->layout(360); in UNIX_ONLY_TEST()
5318 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5338 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5339 paragraph->layout(1000); in UNIX_ONLY_TEST()
5340 REPORTER_ASSERT(reporter, paragraph->getHeight() == 28); in UNIX_ONLY_TEST()
5384 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5385 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
5387 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
5397 paragraph->paint(canvas.get(), 100, 100); in UNIX_ONLY_TEST()
5433 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5434 paragraph->layout(250); in UNIX_ONLY_TEST()
5435 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5461 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5462 paragraph->layout(380); in UNIX_ONLY_TEST()
5463 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5492 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5493 paragraph->layout(50); in UNIX_ONLY_TEST()
5494 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5495 canvas.get()->translate(50, paragraph->getHeight() + 10); in UNIX_ONLY_TEST()
5496 …auto result = paragraph->getRectsForRange(0, strlen(text), RectHeightStyle::kTight, RectWidthStyle… in UNIX_ONLY_TEST()
5504 SkASSERT(width == paragraph->getMaxWidth()); in UNIX_ONLY_TEST()
5505 SkASSERT(height == paragraph->getHeight()); in UNIX_ONLY_TEST()
5506 SkASSERT(minWidth == paragraph->getMinIntrinsicWidth()); in UNIX_ONLY_TEST()
5507 SkASSERT(maxWidth == paragraph->getMaxIntrinsicWidth()); in UNIX_ONLY_TEST()
5550 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5551 paragraph->layout(100); in UNIX_ONLY_TEST()
5580 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5581 paragraph->layout(SK_ScalarInfinity); in UNIX_ONLY_TEST()
5582 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5648 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5649 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
5652 paragraph->getLineMetrics(metrics); in UNIX_ONLY_TEST()
5654 SkDEBUGCODE(auto impl = static_cast<ParagraphImpl*>(paragraph.get());) in UNIX_ONLY_TEST()
5664 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5665 …auto rects = paragraph->getRectsForRange(0, len * 4, RectHeightStyle::kMax, RectWidthStyle::kTight… in UNIX_ONLY_TEST()
5714 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5715 paragraph->layout(SK_ScalarInfinity); in UNIX_ONLY_TEST()
5716 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5718 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
5741 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5742 paragraph->layout(200); in UNIX_ONLY_TEST()
5745 paragraph->getLineMetrics(metrics); in UNIX_ONLY_TEST()
5789 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5790 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
5791 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5793 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
5816 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5817 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
5818 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5820 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST()
5845 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5846 paragraph->layout(300000.0f); in UNIX_ONLY_TEST()
5847 … REPORTER_ASSERT(reporter, paragraph->getMinIntrinsicWidth() <= paragraph->getMaxIntrinsicWidth()); in UNIX_ONLY_TEST()
5886 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5887 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
5936 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5937 paragraph->layout(500); in UNIX_ONLY_TEST()
5938 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
5939 canvas.get()->translate(0, paragraph->getHeight()); in UNIX_ONLY_TEST()
5940 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(paragraph->getHeight(), height)); in UNIX_ONLY_TEST()
5983 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
5984 paragraph->layout(300); in UNIX_ONLY_TEST()
5985 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6005 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6006 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST()
6007 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6019 …auto family = paragraph->getRectsForRange(0, 11, RectHeightStyle::kTight, RectWidthStyle::kTight);… in UNIX_ONLY_TEST()
6020 …auto face01 = paragraph->getRectsForRange(11, 13, RectHeightStyle::kTight, RectWidthStyle::kTight)… in UNIX_ONLY_TEST()
6021 …auto face02 = paragraph->getRectsForRange(13, 15, RectHeightStyle::kTight, RectWidthStyle::kTight)… in UNIX_ONLY_TEST()
6022 …auto face03 = paragraph->getRectsForRange(15, 17, RectHeightStyle::kTight, RectWidthStyle::kTight)… in UNIX_ONLY_TEST()
6023 …auto face04 = paragraph->getRectsForRange(17, 19, RectHeightStyle::kTight, RectWidthStyle::kTight)… in UNIX_ONLY_TEST()
6028 … auto rects = paragraph->getRectsForRange(j, i, RectHeightStyle::kTight, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
6034 auto res1 = paragraph->getGlyphPositionAtCoordinate(X - 5, Y); in UNIX_ONLY_TEST()
6036 auto res2 = paragraph->getGlyphPositionAtCoordinate(X + 5, Y); in UNIX_ONLY_TEST()
6062 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6063 paragraph->layout(80); in UNIX_ONLY_TEST()
6064 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6065 REPORTER_ASSERT(reporter, paragraph->getHeight() == 14.0f); in UNIX_ONLY_TEST()
6090 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6091 paragraph->layout(80); in UNIX_ONLY_TEST()
6092 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6093 REPORTER_ASSERT(reporter, paragraph->getHeight() == 28.0f); in UNIX_ONLY_TEST()
6129 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6130 paragraph->layout(950); in UNIX_ONLY_TEST()
6131 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6132 canvas.get()->translate(0, paragraph->getHeight()); in UNIX_ONLY_TEST()
6133 return paragraph->getMinIntrinsicWidth(); in UNIX_ONLY_TEST()
6159 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6160 paragraph->layout(300); in UNIX_ONLY_TEST()
6161 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6163 auto res1 = paragraph-> in UNIX_ONLY_TEST()
6164 getGlyphPositionAtCoordinate(paragraph->getMinIntrinsicWidth(),1); in UNIX_ONLY_TEST()
6167 auto res2 = paragraph-> in UNIX_ONLY_TEST()
6168 getGlyphPositionAtCoordinate(0,paragraph->getHeight() * 0.5); in UNIX_ONLY_TEST()
6171 auto res3 = paragraph-> in UNIX_ONLY_TEST()
6172 getGlyphPositionAtCoordinate(0,paragraph->getHeight() - 1); in UNIX_ONLY_TEST()
6192 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6193 paragraph->layout(500); in UNIX_ONLY_TEST()
6194 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6196 auto res1 = paragraph->getGlyphPositionAtCoordinate(0, 1); in UNIX_ONLY_TEST()
6212 auto res2 = paragraph->getGlyphPositionAtCoordinate(500, 1); in UNIX_ONLY_TEST()
6237 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6238 paragraph->layout(500); in UNIX_ONLY_TEST()
6239 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6241 auto height = paragraph->getHeight(); in UNIX_ONLY_TEST()
6242 auto res1 = paragraph->getGlyphPositionAtCoordinate(0, 0); in UNIX_ONLY_TEST()
6244 auto res2 = paragraph->getGlyphPositionAtCoordinate(0, height / 2); in UNIX_ONLY_TEST()
6246 auto res3 = paragraph->getGlyphPositionAtCoordinate(0, height); in UNIX_ONLY_TEST()
6270 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6271 paragraph->layout(100); in UNIX_ONLY_TEST()
6273 …canvas.get()->drawRect(SkRect::MakeXYWH(0, 0, paragraph->getMaxIntrinsicWidth(), paragraph->getHei… in UNIX_ONLY_TEST()
6274 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6275 canvas.get()->translate(0, paragraph->getHeight()); in UNIX_ONLY_TEST()
6278 auto res = paragraph->getGlyphPositionAtCoordinate(i * 10, 2); in UNIX_ONLY_TEST()
6314 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6315 paragraph->layout(100); in UNIX_ONLY_TEST()
6317 …auto res = paragraph->getRectsForRange(0, str.size(), RectHeightStyle::kTight, RectWidthStyle::kTi… in UNIX_ONLY_TEST()
6329 canvas.get()->drawRect(SkRect::MakeXYWH(0, 0, 1, paragraph->getHeight()), gray); in UNIX_ONLY_TEST()
6330 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6331 canvas.get()->translate(0, paragraph->getHeight()); in UNIX_ONLY_TEST()
6335 auto pos = paragraph->getGlyphPositionAtCoordinate(pointX, 2); in UNIX_ONLY_TEST()
6365 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6366 paragraph->layout(190); in UNIX_ONLY_TEST()
6367 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6379 paragraph->getLineMetrics(metrics); in UNIX_ONLY_TEST()
6409 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6410 paragraph->layout(190); in UNIX_ONLY_TEST()
6411 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6419 …canvas.get()->drawRect(SkRect::MakeXYWH(0, 0, paragraph->getMaxWidth(), paragraph->getHeight()), g… in UNIX_ONLY_TEST()
6433 … auto boxes = paragraph->getRectsForRange(0, 100, RectHeightStyle::kTight, RectWidthStyle::kTight); in UNIX_ONLY_TEST()
6454 paragraph->getLineMetrics(metrics); in UNIX_ONLY_TEST()
6489 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6490 paragraph->layout(500); in UNIX_ONLY_TEST()
6491 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6493 auto result = paragraph->getGlyphPositionAtCoordinate(41.0f, 0.0f); in UNIX_ONLY_TEST()
6518 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6519 paragraph->layout(60.0f); in UNIX_ONLY_TEST()
6520 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6523 paragraph->getLineMetrics(lm); in UNIX_ONLY_TEST()
6551 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local
6552 paragraph->layout(60.0f); in UNIX_ONLY_TEST()
6553 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST()
6555 paragraph->getLineMetrics(lm); in UNIX_ONLY_TEST()