Home | History | Annotate | Download | only in editing

Lines Matching refs:Position

56 Position InsertTextCommand::prepareForTextInsertion(const Position& p)
58 Position pos = p;
59 // Prepare for text input by looking at the specified position.
64 return Position(textNode.get(), 0);
70 return Position(textNode.get(), 0);
86 Position start = endingSelection().start();
87 Position end = endingSelection().end();
94 Position endPosition(start.node(), start.deprecatedEditingOffset() + text.length());
125 Position startPosition(endingSelection().start());
127 Position placeholder;
132 Position downstream(startPosition.downstream());
147 // and so deleteInsignificantText could remove it. Save the position before the node in case that happens.
148 Position positionBeforeStartNode(positionInParentBeforeNode(startPosition.node()));
157 Position endPosition;
174 endPosition = Position(textNode, offset + text.length());
218 Position InsertTextCommand::insertTab(const Position& pos)
220 Position insertPos = VisiblePosition(pos, DOWNSTREAM).deepEquivalent();
228 return Position(node, offset + 1);
252 // return the position following the new tab
253 return Position(spanNode->lastChild(), caretMaxOffset(spanNode->lastChild()));