Lines Matching refs:endOfSelection
138 VisiblePosition endOfSelection = selection.visibleEnd();
139 VisiblePosition startOfLastParagraph = startOfParagraph(endOfSelection, CanSkipOverEditingBoundary);
151 // the new location of endOfSelection and use it as the end of the new selection.
156 // Save and restore endOfSelection and startOfLastParagraph when necessary
159 // the beginning of the document to the endOfSelection everytime this code is executed.
162 int indexForEndOfSelection = indexForVisiblePosition(endOfSelection, scope);
164 if (endOfSelection.isNull() || endOfSelection.isOrphan() || startOfLastParagraph.isNull() || startOfLastParagraph.isOrphan()) {
165 endOfSelection = visiblePositionForIndex(indexForEndOfSelection, scope.get());
166 // If endOfSelection is null, then some contents have been deleted from the document.
168 ASSERT(endOfSelection.isNotNull());
169 if (endOfSelection.isNull())
171 startOfLastParagraph = startOfParagraph(endOfSelection, CanSkipOverEditingBoundary);
183 setEndingSelection(endOfSelection);
186 endOfSelection = endingSelection().visibleEnd();
187 setEndingSelection(VisibleSelection(startOfSelection, endOfSelection, endingSelection().isDirectional()));