Lines Matching defs:pos
3956 auto pos = paragraph->getGlyphPositionAtCoordinate(610, 100).position;
3957 result = paragraph->getRectsForRange(0, pos, rect_height_style, rect_width_style);
3961 pos = paragraph->getGlyphPositionAtCoordinate(580, 100).position;
3962 result = paragraph->getRectsForRange(0, pos, rect_height_style, rect_width_style);
3966 pos = paragraph->getGlyphPositionAtCoordinate(560, 100).position;
3967 result = paragraph->getRectsForRange(0, pos, rect_height_style, rect_width_style);
5196 auto pos = paragraph->getGlyphPositionAtCoordinate(0, 21);
5197 REPORTER_ASSERT(reporter, pos.affinity == Affinity::kDownstream && pos.position == 4);
6268 auto pos = paragraph->getGlyphPositionAtCoordinate(check.first, 0);
6269 REPORTER_ASSERT(reporter, pos.affinity == check.second.affinity);
6270 REPORTER_ASSERT(reporter, pos.position == check.second.position);
6392 auto pos = paragraph->getGlyphPositionAtCoordinate(pointX, 2);
6393 //SkDebugf("@%f[%d]: %d %s\n", pointX, i, pos.position, pos.affinity == Affinity::kDownstream ? "D" : "U");
6395 REPORTER_ASSERT(reporter, (pos.position + i) == SkToInt(str.size()) - (pos.affinity == Affinity::kDownstream ? 1 : 0));
6669 auto pos = paragraph->getGlyphPositionAtCoordinate(check.first, 0);
6670 REPORTER_ASSERT(reporter, pos.affinity == check.second.affinity);
6671 REPORTER_ASSERT(reporter, pos.position == check.second.position);
7207 case 0: REPORTER_ASSERT(reporter, context.pos == 0 && context.size == 1);
7211 case 1: REPORTER_ASSERT(reporter, context.pos == 0 && context.size == 2);
7215 case 2: REPORTER_ASSERT(reporter, context.pos == 2 && context.size == 1);
7219 case 3: REPORTER_ASSERT(reporter, context.pos == 2 && context.size == 2);
7223 case 4: REPORTER_ASSERT(reporter, context.pos == 4 && context.size == 1);
7227 case 5: REPORTER_ASSERT(reporter, context.pos == 4 && context.size == 1); // No space at the end