Lines Matching refs:offset
51 VisiblePosition::VisiblePosition(Node *node, int offset, EAffinity affinity)
53 ASSERT(offset >= 0);
54 init(Position(node, offset), affinity);
123 int offset;
124 p.getInlineBoxAndOffset(m_affinity, primaryDirection, box, offset);
131 if ((renderer->isReplaced() || renderer->isBR()) && offset == box->caretRightmostOffset())
134 offset = box->direction() == LTR ? renderer->previousOffset(offset) : renderer->nextOffset(offset);
139 if (offset > caretMinOffset && offset < caretMaxOffset)
142 if (box->direction() == LTR ? offset < caretMinOffset : offset > caretMaxOffset) {
151 offset = prevBox->caretRightmostOffset();
155 ASSERT(offset == box->caretLeftmostOffset());
180 offset = box->caretRightmostOffset();
189 offset = box->caretRightmostOffset();
219 offset = primaryDirection == LTR ? box->caretMinOffset() : box->caretMaxOffset();
224 p = Position(renderer->node(), offset);
265 int offset;
266 p.getInlineBoxAndOffset(m_affinity, primaryDirection, box, offset);
273 if ((renderer->isReplaced() || renderer->isBR()) && offset == box->caretLeftmostOffset())
276 offset = box->direction() == LTR ? renderer->nextOffset(offset) : renderer->previousOffset(offset);
281 if (offset > caretMinOffset && offset < caretMaxOffset)
284 if (box->direction() == LTR ? offset > caretMaxOffset : offset < caretMinOffset) {
293 offset = nextBox->caretLeftmostOffset();
297 ASSERT(offset == box->caretRightmostOffset());
323 offset = box->caretLeftmostOffset();
332 offset = box->caretLeftmostOffset();
362 offset = primaryDirection == LTR ? box->caretMaxOffset() : box->caretMinOffset();
367 p = Position(renderer->node(), offset);
523 unsigned offset = pos.deprecatedEditingOffset();
525 if (offset >= length)
530 U16_NEXT(characters, offset, length, ch);