/external/chromium_org/third_party/WebKit/Source/core/editing/ |
D | InsertTextCommand.cpp | 75 forcedEndingSelection.setIsDirectional(endingSelection().isDirectional()); in setEndingSelectionWithoutValidation() 83 if (!endingSelection().isRange()) in performTrivialReplace() 89 Position start = endingSelection().start(); in performTrivialReplace() 96 …setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectiona… in performTrivialReplace() 103 Position start = endingSelection().start(); in performOverwrite() 117 …setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectiona… in performOverwrite() 126 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply() 131 if (endingSelection().isRange()) { in doApply() 134 bool endOfSelectionWasAtStartOfBlock = isStartOfBlock(endingSelection().visibleEnd()); in doApply() 139 if (endingSelection().isNone()) in doApply() [all …]
|
D | BreakBlockquoteCommand.cpp | 50 if (endingSelection().isNone()) in doApply() 54 if (endingSelection().isRange()) in doApply() 60 ASSERT(!endingSelection().isNone()); in doApply() 62 if (endingSelection().isNone()) in doApply() 65 VisiblePosition visiblePos = endingSelection().visibleStart(); in doApply() 69 Position pos = endingSelection().start().downstream(); in doApply() 84 …VisibleSelection(positionBeforeNode(breakElement.get()), DOWNSTREAM, endingSelection().isDirection… in doApply() 94 …VisibleSelection(positionBeforeNode(breakElement.get()), DOWNSTREAM, endingSelection().isDirection… in doApply() 128 …leSelection(VisiblePosition(firstPositionInOrBeforeNode(startNode)), endingSelection().isDirection… in doApply() 187 …VisibleSelection(positionBeforeNode(breakElement.get()), DOWNSTREAM, endingSelection().isDirection… in doApply()
|
D | TypingCommand.cpp | 151 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() 316 frame->spellChecker().markMisspellingsAfterTypingToWord(p1, endingSelection()); in markMisspellingsAfterTyping() 350 applyCommandToComposite(command, endingSelection()); in insertTextRunWithoutNewlines() 357 if (!canAppendNewLineFeedToSelection(endingSelection())) in insertLineBreak() 366 if (!canAppendNewLineFeedToSelection(endingSelection())) in insertParagraphSeparator() 377 if (enclosingNodeOfType(endingSelection().start(), &isTableStructureNode)) { in insertParagraphSeparatorInQuotedContent() 388 Element* root = endingSelection().rootEditableElement(); in makeEditableRootEmpty() [all …]
|
D | MoveSelectionCommand.cpp | 42 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()
|
D | InsertListCommand.cpp | 111 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply() 114 if (!endingSelection().rootEditableElement()) in doApply() 117 VisiblePosition visibleEnd = endingSelection().visibleEnd(); in doApply() 118 VisiblePosition visibleStart = endingSelection().visibleStart(); in doApply() 128 …ction(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirection… in doApply() 129 if (!endingSelection().rootEditableElement()) in doApply() 134 if (endingSelection().isRange()) { in doApply() 136 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); in doApply() 142 RefPtrWillBeRawPtr<Range> currentSelection = endingSelection().firstRange(); in doApply() 179 startOfCurrentParagraph = startOfNextParagraph(endingSelection().visibleStart()); in doApply() [all …]
|
D | CreateLinkCommand.cpp | 42 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()
|
D | InsertLineBreakCommand.cpp | 70 VisibleSelection selection = endingSelection(); in doApply() 103 setEndingSelection(VisibleSelection(endingPosition, endingSelection().isDirectional())); in doApply() 111 …sibleSelection(positionInParentAfterNode(*nodeToInsert), DOWNSTREAM, endingSelection().isDirection… in doApply() 116 …sibleSelection(positionInParentAfterNode(*nodeToInsert), DOWNSTREAM, endingSelection().isDirection… in doApply() 141 …setEndingSelection(VisibleSelection(endingPosition, DOWNSTREAM, endingSelection().isDirectional())… in doApply() 160 setEndingSelection(endingSelection().visibleEnd()); in doApply()
|
D | InsertParagraphSeparatorCommand.cpp | 104 m_style->prepareToApplyAt(endingSelection().start()); in applyStyleAfterInsertion() 115 if (!isEndOfBlock(endingSelection().visibleStart())) in shouldUseDefaultParagraphElement() 153 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply() 156 Position insertionPosition = endingSelection().start(); in doApply() 158 EAffinity affinity = endingSelection().affinity(); in doApply() 161 if (endingSelection().isRange()) { in doApply() 164 insertionPosition = endingSelection().start(); in doApply() 165 affinity = endingSelection().affinity(); in doApply() 260 …tion(VisibleSelection(firstPositionInNode(parent.get()), DOWNSTREAM, endingSelection().isDirection… in doApply() 305 …setEndingSelection(VisibleSelection(insertionPosition, DOWNSTREAM, endingSelection().isDirectional… in doApply() [all …]
|
D | TextInsertionBaseCommand.cpp | 43 …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()
|
D | CompositeEditCommand.cpp | 82 …const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction edi… in create() argument 84 …efWillBeNoop(new EditCommandComposition(document, startingSelection, endingSelection, editAction)); in create() 87 …, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction e… in EditCommandComposition() argument 90 , m_endingSelection(endingSelection) in EditCommandComposition() 92 , m_endingRootEditableElement(endingSelection.rootEditableElement()) in EditCommandComposition() 183 if (!endingSelection().isContentRichlyEditable()) { in apply() 224 …n = EditCommandComposition::create(&document(), startingSelection(), endingSelection(), editingAct… in ensureComposition() 260 if (selection != command->endingSelection()) { in applyCommandToComposite() 495 Position start = endingSelection().start(); in replaceSelectedTextInNode() 496 Position end = endingSelection().end(); in replaceSelectedTextInNode() [all …]
|
D | ApplyBlockElementCommand.cpp | 61 if (!endingSelection().rootEditableElement()) in doApply() 64 VisiblePosition visibleEnd = endingSelection().visibleEnd(); in doApply() 65 VisiblePosition visibleStart = endingSelection().visibleStart(); in doApply() 78 …ction(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirection… in doApply() 84 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); in doApply() 105 setEndingSelection(VisibleSelection(start, end, endingSelection().isDirectional())); in doApply() 119 …(VisibleSelection(positionBeforeNode(placeholder.get()), DOWNSTREAM, endingSelection().isDirection… in formatSelection()
|
D | ReplaceSelectionCommand.cpp | 860 m_startOfInsertedContent = endingSelection().visibleStart().deepEquivalent(); in mergeEndIfNeeded() 861 m_endOfInsertedContent = endingSelection().visibleEnd().deepEquivalent(); in mergeEndIfNeeded() 920 VisibleSelection selection = endingSelection(); in doApply() 971 visibleStart = endingSelection().visibleStart(); in doApply() 979 insertionPos = endingSelection().start(); in doApply() 988 visibleStart = endingSelection().visibleStart(); in doApply() 998 setEndingSelection(endingSelection().visibleStart().previous()); in doApply() 1000 insertionPos = endingSelection().start(); in doApply() 1009 Node* br = endingSelection().start().deprecatedNode(); in doApply() 1216 m_startOfInsertedContent = endingSelection().visibleStart().deepEquivalent().downstream(); in doApply() [all …]
|
D | EditCommand.cpp | 47 …ment* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection) in EditCommand() argument 54 setEndingSelection(endingSelection); in EditCommand()
|
D | UnlinkCommand.cpp | 41 if (!endingSelection().isNonOrphanedRange()) in doApply()
|
D | IndentOutdentCommand.cpp | 136 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart()); in outdentParagraph() 216 Position originalSelectionEnd = endingSelection().end(); in outdentRegion() 235 endOfCurrentParagraph = VisiblePosition(endingSelection().end()); in outdentRegion()
|
D | TextInsertionBaseCommand.h | 43 …eCommand>, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection);
|
D | CompositeEditCommand.h | 55 const VisibleSelection& endingSelection() const { return m_endingSelection; } in endingSelection() function 64 …*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction);
|
D | EditCommand.h | 47 const VisibleSelection& endingSelection() const { return m_endingSelection; } in endingSelection() function
|
D | DeleteSelectionCommand.cpp | 212 && endingSelection().isRange()) { in initializePositionData() 678 m_endingPosition = endingSelection().start(); in mergeParagraphs() 782 m_selectionToDelete = endingSelection(); in doApply() 822 …setEndingSelection(VisibleSelection(m_endingPosition, affinity, endingSelection().isDirectional())… in doApply() 855 …setEndingSelection(VisibleSelection(m_endingPosition, affinity, endingSelection().isDirectional())… in doApply()
|
D | ApplyStyleCommand.cpp | 131 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand() 132 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand() 159 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand() 160 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand() 173 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand() 174 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand() 189 …setEndingSelection(VisibleSelection(newStart, newEnd, VP_DEFAULT_AFFINITY, endingSelection().isDir… in updateStartEnd() 197 return endingSelection().start(); in startPosition() 205 return endingSelection().end(); in endPosition()
|
D | Editor.cpp | 549 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) in respondToChangedContents() argument 552 Node* node = endingSelection.start().deprecatedNode(); in respondToChangedContents() 667 VisibleSelection newSelection(cmd->endingSelection()); in appliedEditing() 714 VisibleSelection newSelection(cmd->endingSelection()); in reappliedEditing()
|
D | Editor.h | 99 void respondToChangedContents(const VisibleSelection& endingSelection);
|