Home | History | Annotate | Download | only in editing

Lines Matching refs:Position

55 void InsertLineBreakCommand::insertNodeAfterPosition(Node* node, const Position& pos)
57 // Insert the BR after the caret position. In the case the
58 // position is a block, do an append. We don't want to insert
67 void InsertLineBreakCommand::insertNodeBeforePosition(Node* node, const Position& pos)
69 // Insert the BR after the caret position. In the case the
70 // position is a block, do an append. We don't want to insert
80 bool InsertLineBreakCommand::shouldUseBreakElement(const Position& insertionPos)
82 // An editing position like [input, 0] actually refers to the position before
85 Position p(rangeCompliantEquivalent(insertionPos));
97 Position pos(caret.deepEquivalent());
119 VisiblePosition endingPosition(Position(nodeToInsert.get(), 0));
125 if (!isStartOfParagraph(VisiblePosition(Position(nodeToInsert.get(), 0))))
139 Position endingPosition = Position(textNode, 0);
144 Position positionBeforeTextNode(positionInParentBeforeNode(textNode));
154 endingPosition = Position(nbspNode.get(), 0);