Home
last modified time | relevance | path

Searched refs:endingSelection (Results 1 – 22 of 22) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/editing/
DInsertTextCommand.cpp74 forcedEndingSelection.setIsDirectional(endingSelection().isDirectional()); in setEndingSelectionWithoutValidation()
82 if (!endingSelection().isRange()) in performTrivialReplace()
88 Position start = endingSelection().start(); in performTrivialReplace()
95 …setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectiona… in performTrivialReplace()
102 Position start = endingSelection().start(); in performOverwrite()
116 …setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectiona… in performOverwrite()
125 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
130 if (endingSelection().isRange()) { in doApply()
133 bool endOfSelectionWasAtStartOfBlock = isStartOfBlock(endingSelection().visibleEnd()); in doApply()
138 if (endingSelection().isNone()) in doApply()
[all …]
DBreakBlockquoteCommand.cpp48 if (endingSelection().isNone()) in doApply()
52 if (endingSelection().isRange()) in doApply()
58 ASSERT(!endingSelection().isNone()); in doApply()
60 if (endingSelection().isNone()) in doApply()
63 VisiblePosition visiblePos = endingSelection().visibleStart(); in doApply()
67 Position pos = endingSelection().start().downstream(); in doApply()
82 …on(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirection… in doApply()
92 …on(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirection… in doApply()
126 …leSelection(VisiblePosition(firstPositionInOrBeforeNode(startNode)), endingSelection().isDirection… in doApply()
185 …on(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirection… in doApply()
DTypingCommand.cpp151 if (currentSelection == typingCommand->endingSelection()) in updateSelectionIfDifferentFromCurrentSelection()
183 if (lastTypingCommand->endingSelection() != selectionForInsertion) { in insertText()
250 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
304 VisiblePosition start(endingSelection().start(), endingSelection().affinity()); in markMisspellingsAfterTyping()
310 frame->spellChecker().markMisspellingsAfterTypingToWord(p1, endingSelection()); in markMisspellingsAfterTyping()
344 applyCommandToComposite(command, endingSelection()); in insertTextRunWithoutNewlines()
351 if (!canAppendNewLineFeedToSelection(endingSelection())) in insertLineBreak()
360 if (!canAppendNewLineFeedToSelection(endingSelection())) in insertParagraphSeparator()
371 if (enclosingNodeOfType(endingSelection().start(), &isTableStructureNode)) { in insertParagraphSeparatorInQuotedContent()
382 Element* root = endingSelection().rootEditableElement(); in makeEditableRootEmpty()
[all …]
DInsertListCommand.cpp108 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
111 if (!endingSelection().rootEditableElement()) in doApply()
114 VisiblePosition visibleEnd = endingSelection().visibleEnd(); in doApply()
115 VisiblePosition visibleStart = endingSelection().visibleStart(); in doApply()
125 …ction(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirection… in doApply()
126 if (!endingSelection().rootEditableElement()) in doApply()
131 if (endingSelection().isRange()) { in doApply()
132 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); in doApply()
143 RefPtrWillBeRawPtr<Range> currentSelection = endingSelection().firstRange(); in doApply()
176 startOfSelection = endingSelection().visibleStart(); in doApply()
[all …]
DMoveSelectionCommand.cpp42 ASSERT(endingSelection().isNonOrphanedRange()); in doApply()
49 Position selectionEnd = endingSelection().end(); in doApply()
54 Position selectionStart = endingSelection().start(); in doApply()
66 pos = endingSelection().start(); in doApply()
70 …setEndingSelection(VisibleSelection(pos, endingSelection().affinity(), endingSelection().isDirecti… in doApply()
DCreateLinkCommand.cpp42 if (endingSelection().isNone()) in doApply()
48 if (endingSelection().isRange()) in doApply()
51 insertNodeAt(anchorElement.get(), endingSelection().start()); in doApply()
54 …chorElement), positionInParentAfterNode(*anchorElement), DOWNSTREAM, endingSelection().isDirection… in doApply()
DInsertLineBreakCommand.cpp68 VisibleSelection selection = endingSelection(); in doApply()
101 setEndingSelection(VisibleSelection(endingPosition, endingSelection().isDirectional())); in doApply()
109 …sibleSelection(positionInParentAfterNode(*nodeToInsert), DOWNSTREAM, endingSelection().isDirection… in doApply()
114 …sibleSelection(positionInParentAfterNode(*nodeToInsert), DOWNSTREAM, endingSelection().isDirection… in doApply()
139 …setEndingSelection(VisibleSelection(endingPosition, DOWNSTREAM, endingSelection().isDirectional())… in doApply()
158 setEndingSelection(endingSelection().visibleEnd()); in doApply()
DInsertParagraphSeparatorCommand.cpp101 m_style->prepareToApplyAt(endingSelection().start()); in applyStyleAfterInsertion()
112 if (!isEndOfBlock(endingSelection().visibleStart())) in shouldUseDefaultParagraphElement()
150 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
153 Position insertionPosition = endingSelection().start(); in doApply()
155 EAffinity affinity = endingSelection().affinity(); in doApply()
158 if (endingSelection().isRange()) { in doApply()
161 insertionPosition = endingSelection().start(); in doApply()
162 affinity = endingSelection().affinity(); in doApply()
257 …tion(VisibleSelection(firstPositionInNode(parent.get()), DOWNSTREAM, endingSelection().isDirection… in doApply()
302 …setEndingSelection(VisibleSelection(insertionPosition, DOWNSTREAM, endingSelection().isDirectional… in doApply()
[all …]
DTextInsertionBaseCommand.cpp43 …d> command, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection) in applyTextInsertionCommand() argument
45 bool changeSelection = selectionForInsertion != endingSelection; in applyTextInsertionCommand()
52 command->setEndingSelection(endingSelection); in applyTextInsertionCommand()
53 frame->selection().setSelection(endingSelection); in applyTextInsertionCommand()
DCompositeEditCommand.cpp77 …const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction edi… in create() argument
79 …efWillBeNoop(new EditCommandComposition(document, startingSelection, endingSelection, editAction)); in create()
82 …, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction e… in EditCommandComposition() argument
85 , m_endingSelection(endingSelection) in EditCommandComposition()
87 , m_endingRootEditableElement(endingSelection.rootEditableElement()) in EditCommandComposition()
178 if (!endingSelection().isContentRichlyEditable()) { in apply()
219 …n = EditCommandComposition::create(&document(), startingSelection(), endingSelection(), editingAct… in ensureComposition()
255 if (selection != command->endingSelection()) { in applyCommandToComposite()
489 Position start = endingSelection().start(); in replaceSelectedTextInNode()
490 Position end = endingSelection().end(); in replaceSelectedTextInNode()
[all …]
DApplyBlockElementCommand.cpp60 if (!endingSelection().rootEditableElement()) in doApply()
63 VisiblePosition visibleEnd = endingSelection().visibleEnd(); in doApply()
64 VisiblePosition visibleStart = endingSelection().visibleStart(); in doApply()
77 …ction(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirection… in doApply()
83 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); in doApply()
104 setEndingSelection(VisibleSelection(start, end, endingSelection().isDirectional())); in doApply()
118 …(VisibleSelection(positionBeforeNode(placeholder.get()), DOWNSTREAM, endingSelection().isDirection… in formatSelection()
DEditCommand.cpp47 …ment* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection) in EditCommand() argument
54 setEndingSelection(endingSelection); in EditCommand()
DReplaceSelectionCommand.cpp843 m_startOfInsertedContent = endingSelection().visibleStart().deepEquivalent(); in mergeEndIfNeeded()
844 m_endOfInsertedContent = endingSelection().visibleEnd().deepEquivalent(); in mergeEndIfNeeded()
903 VisibleSelection selection = endingSelection(); in doApply()
954 visibleStart = endingSelection().visibleStart(); in doApply()
962 insertionPos = endingSelection().start(); in doApply()
971 visibleStart = endingSelection().visibleStart(); in doApply()
981 setEndingSelection(endingSelection().visibleStart().previous()); in doApply()
983 insertionPos = endingSelection().start(); in doApply()
992 Node* br = endingSelection().start().deprecatedNode(); in doApply()
1199 m_startOfInsertedContent = endingSelection().visibleStart().deepEquivalent().downstream(); in doApply()
[all …]
DIndentOutdentCommand.cpp129 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart()); in outdentParagraph()
209 Position originalSelectionEnd = endingSelection().end(); in outdentRegion()
228 endOfCurrentParagraph = VisiblePosition(endingSelection().end()); in outdentRegion()
DUnlinkCommand.cpp41 if (!endingSelection().isNonOrphanedRange()) in doApply()
DTextInsertionBaseCommand.h43 …eCommand>, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection);
DCompositeEditCommand.h53 const VisibleSelection& endingSelection() const { return m_endingSelection; } in endingSelection() function
62 …*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction);
DEditCommand.h52 const VisibleSelection& endingSelection() const { return m_endingSelection; } in endingSelection() function
DDeleteSelectionCommand.cpp208 && endingSelection().isRange()) { in initializePositionData()
674 m_endingPosition = endingSelection().start(); in mergeParagraphs()
778 m_selectionToDelete = endingSelection(); in doApply()
818 …setEndingSelection(VisibleSelection(m_endingPosition, affinity, endingSelection().isDirectional())… in doApply()
851 …setEndingSelection(VisibleSelection(m_endingPosition, affinity, endingSelection().isDirectional())… in doApply()
DApplyStyleCommand.cpp128 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand()
129 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand()
156 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand()
157 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand()
170 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand()
171 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand()
186 …setEndingSelection(VisibleSelection(newStart, newEnd, VP_DEFAULT_AFFINITY, endingSelection().isDir… in updateStartEnd()
194 return endingSelection().start(); in startPosition()
202 return endingSelection().end(); in endPosition()
DEditor.cpp530 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) in respondToChangedContents() argument
533 Node* node = endingSelection.start().deprecatedNode(); in respondToChangedContents()
690 VisibleSelection newSelection(cmd->endingSelection()); in appliedEditing()
737 VisibleSelection newSelection(cmd->endingSelection()); in reappliedEditing()
DEditor.h109 void respondToChangedContents(const VisibleSelection& endingSelection);