Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/core/editing/
DInsertTextCommand.cpp83 forcedEndingSelection.setIsDirectional(endingSelection().isDirectional()); in setEndingSelectionWithoutValidation()
91 if (!endingSelection().isRange()) in performTrivialReplace()
97 Position start = endingSelection().start(); in performTrivialReplace()
104 …setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectiona… in performTrivialReplace()
111 Position start = endingSelection().start(); in performOverwrite()
125 …setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectiona… in performOverwrite()
134 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
139 if (endingSelection().isRange()) { in doApply()
146 if (endingSelection().isNone()) in doApply()
153 Position startPosition(endingSelection().start()); in doApply()
[all …]
DTypingCommand.cpp149 if (currentSelection == typingCommand->endingSelection()) in updateSelectionIfDifferentFromCurrentSelection()
181 if (lastTypingCommand->endingSelection() != selectionForInsertion) { in insertText()
248 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
302 VisiblePosition start(endingSelection().start(), endingSelection().affinity()); in markMisspellingsAfterTyping()
308 frame->spellChecker().markMisspellingsAfterTypingToWord(p1, endingSelection()); in markMisspellingsAfterTyping()
342 applyCommandToComposite(command, endingSelection()); in insertTextRunWithoutNewlines()
349 if (!canAppendNewLineFeedToSelection(endingSelection())) in insertLineBreak()
358 if (!canAppendNewLineFeedToSelection(endingSelection())) in insertParagraphSeparator()
369 if (enclosingNodeOfType(endingSelection().start(), &isTableStructureNode)) { in insertParagraphSeparatorInQuotedContent()
380 Element* root = endingSelection().rootEditableElement(); in makeEditableRootEmpty()
[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()
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()
DInsertListCommand.cpp109 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
112 if (!endingSelection().rootEditableElement()) in doApply()
115 VisiblePosition visibleEnd = endingSelection().visibleEnd(); in doApply()
116 VisiblePosition visibleStart = endingSelection().visibleStart(); in doApply()
126 …ction(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirection… in doApply()
129 if (endingSelection().isRange()) { in doApply()
130 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); in doApply()
141 RefPtr<Range> currentSelection = endingSelection().firstRange(); in doApply()
174 startOfSelection = endingSelection().visibleStart(); in doApply()
176 startOfCurrentParagraph = startOfNextParagraph(endingSelection().visibleStart()); in doApply()
[all …]
DCreateLinkCommand.cpp42 if (endingSelection().isNone()) in doApply()
48 if (endingSelection().isRange()) in doApply()
51 insertNodeAt(anchorElement.get(), endingSelection().start()); in doApply()
54 ….get()), positionInParentAfterNode(anchorElement.get()), DOWNSTREAM, endingSelection().isDirection… 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()
DInsertLineBreakCommand.cpp93 VisibleSelection selection = endingSelection(); in doApply()
126 setEndingSelection(VisibleSelection(endingPosition, endingSelection().isDirectional())); in doApply()
134 …Selection(positionInParentAfterNode(nodeToInsert.get()), DOWNSTREAM, endingSelection().isDirection… in doApply()
139 …Selection(positionInParentAfterNode(nodeToInsert.get()), DOWNSTREAM, endingSelection().isDirection… in doApply()
164 …setEndingSelection(VisibleSelection(endingPosition, DOWNSTREAM, endingSelection().isDirectional())… in doApply()
183 setEndingSelection(endingSelection().visibleEnd()); in doApply()
DCompositeEditCommand.cpp95 …const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction edi… in create() argument
97 …return adoptRef(new EditCommandComposition(document, startingSelection, endingSelection, editActio… in create()
100 …, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction e… in EditCommandComposition() argument
103 , m_endingSelection(endingSelection) in EditCommandComposition()
105 , m_endingRootEditableElement(endingSelection.rootEditableElement()) in EditCommandComposition()
193 if (!endingSelection().isContentRichlyEditable()) { in apply()
235 …n = EditCommandComposition::create(&document(), startingSelection(), endingSelection(), editingAct… in ensureComposition()
281 if (selection != command->endingSelection()) { in applyCommandToComposite()
519 Position start = endingSelection().start(); in replaceSelectedTextInNode()
520 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()
79 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); in doApply()
100 setEndingSelection(VisibleSelection(start, end, endingSelection().isDirectional())); in doApply()
114 …(VisibleSelection(positionBeforeNode(placeholder.get()), DOWNSTREAM, endingSelection().isDirection… in formatSelection()
DReplaceSelectionCommand.cpp833 m_startOfInsertedContent = endingSelection().visibleStart().deepEquivalent(); in mergeEndIfNeeded()
834 m_endOfInsertedContent = endingSelection().visibleEnd().deepEquivalent(); in mergeEndIfNeeded()
885 VisibleSelection selection = endingSelection(); in doApply()
936 visibleStart = endingSelection().visibleStart(); in doApply()
944 insertionPos = endingSelection().start(); in doApply()
953 visibleStart = endingSelection().visibleStart(); in doApply()
963 setEndingSelection(endingSelection().visibleStart().previous()); in doApply()
965 insertionPos = endingSelection().start(); in doApply()
974 Node* br = endingSelection().start().deprecatedNode(); in doApply()
1181 m_startOfInsertedContent = endingSelection().visibleStart().deepEquivalent().downstream(); in doApply()
[all …]
DEditCommand.cpp47 …ment* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection) in EditCommand() argument
54 setEndingSelection(endingSelection); in EditCommand()
DIndentOutdentCommand.cpp129 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart()); in outdentParagraph()
204 Position originalSelectionEnd = endingSelection().end(); in outdentRegion()
223 endOfCurrentParagraph = endingSelection().end(); in outdentRegion()
DUnlinkCommand.cpp41 if (!endingSelection().isNonOrphanedRange()) in doApply()
DTextInsertionBaseCommand.h43 …eCommand>, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection);
DModifySelectionListLevel.cpp175 if (!canIncreaseListLevel(endingSelection(), startListChild, endListChild)) in doApply()
257 if (!canDecreaseListLevel(endingSelection(), startListChild, endListChild)) in doApply()
DEditCommand.h51 const VisibleSelection& endingSelection() const { return m_endingSelection; } in endingSelection() function
DDeleteSelectionCommand.cpp218 && endingSelection().isRange()) { in initializePositionData()
667 m_endingPosition = endingSelection().start(); in mergeParagraphs()
771 m_selectionToDelete = endingSelection(); in doApply()
811 …setEndingSelection(VisibleSelection(m_endingPosition, affinity, endingSelection().isDirectional())… in doApply()
844 …setEndingSelection(VisibleSelection(m_endingPosition, affinity, endingSelection().isDirectional())… in doApply()
DCompositeEditCommand.h53 const VisibleSelection& endingSelection() const { return m_endingSelection; } in endingSelection() function
60 …*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction);
DApplyStyleCommand.cpp125 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand()
126 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand()
153 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand()
154 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand()
167 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand()
168 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand()
183 …setEndingSelection(VisibleSelection(newStart, newEnd, VP_DEFAULT_AFFINITY, endingSelection().isDir… in updateStartEnd()
191 return endingSelection().start(); in startPosition()
199 return endingSelection().end(); in endPosition()
DEditor.cpp534 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) in respondToChangedContents() argument
537 Node* node = endingSelection.start().deprecatedNode(); in respondToChangedContents()
771 VisibleSelection newSelection(cmd->endingSelection()); in appliedEditing()
816 VisibleSelection newSelection(cmd->endingSelection()); in reappliedEditing()
DEditor.h107 void respondToChangedContents(const VisibleSelection& endingSelection);