Home
last modified time | relevance | path

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

12

/external/webkit/Source/WebCore/editing/
DTypingCommand.cpp144 if (currentSelection == typingCommand->endingSelection()) in updateSelectionIfDifferentFromCurrentSelection()
194 if (lastTypingCommand->endingSelection() != selectionForInsertion) { in insertText()
283 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
339 VisiblePosition start(endingSelection().start(), endingSelection().affinity()); in markMisspellingsAfterTyping()
349 …document()->frame()->editor()->markMisspellingsAfterTypingToWord(p1, endingSelection(), !strippedP… in markMisspellingsAfterTyping()
407 if (endingSelection() != command->endingSelection()) { in insertTextRunWithoutNewlines()
408 command->setStartingSelection(endingSelection()); in insertTextRunWithoutNewlines()
409 command->setEndingSelection(endingSelection()); in insertTextRunWithoutNewlines()
418 if (!canAppendNewLineFeed(endingSelection())) in insertLineBreak()
427 if (!canAppendNewLineFeed(endingSelection())) in insertParagraphSeparator()
[all …]
DInsertTextCommand.cpp74 if (!endingSelection().isRange()) in performTrivialReplace()
80 Position start = endingSelection().start().parentAnchoredEquivalent(); in performTrivialReplace()
81 Position end = endingSelection().end().parentAnchoredEquivalent(); in performTrivialReplace()
100 setEndingSelection(VisibleSelection(endingSelection().visibleEnd())); in performTrivialReplace()
110 if (!endingSelection().isNonOrphanedCaretOrRange()) in input()
115 if (endingSelection().isRange()) { in input()
121 Position startPosition(endingSelection().start()); in input()
202 setEndingSelection(VisibleSelection(endingSelection().end(), endingSelection().affinity())); in input()
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()
128 if (endingSelection().isRange()) { in doApply()
129 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); in doApply()
138 RefPtr<Range> currentSelection = endingSelection().firstRange(); in doApply()
173 startOfSelection = endingSelection().visibleStart(); in doApply()
175 startOfCurrentParagraph = startOfNextParagraph(endingSelection().visibleStart()); in doApply()
180 endOfSelection = endingSelection().visibleEnd(); 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()
68 setEndingSelection(VisibleSelection(pos, endingSelection().affinity())); in doApply()
DBreakBlockquoteCommand.cpp47 if (endingSelection().isNone()) in doApply()
51 if (endingSelection().isRange()) in doApply()
57 ASSERT(!endingSelection().isNone()); in doApply()
59 if (endingSelection().isNone()) in doApply()
62 VisiblePosition visiblePos = endingSelection().visibleStart(); in doApply()
66 Position pos = endingSelection().start().downstream(); in doApply()
DCreateLinkCommand.cpp43 if (endingSelection().isNone()) in doApply()
49 if (endingSelection().isRange()) in doApply()
52 insertNodeAt(anchorElement.get(), endingSelection().start()); in doApply()
DInsertParagraphSeparatorCommand.cpp101 m_style->prepareToApplyAt(endingSelection().start()); in applyStyleAfterInsertion()
112 if (!isEndOfBlock(endingSelection().visibleStart())) in shouldUseDefaultParagraphElement()
149 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
152 Position insertionPosition = endingSelection().start(); in doApply()
154 EAffinity affinity = endingSelection().affinity(); in doApply()
157 if (endingSelection().isRange()) { in doApply()
160 insertionPosition = endingSelection().start(); in doApply()
161 affinity = endingSelection().affinity(); in doApply()
DCompositeEditCommand.cpp304 …:create(document(), firstPositionInNode(document()->documentElement()), endingSelection().start()); in inputText()
373 if (endingSelection().isRange()) in deleteSelection()
511 VisibleSelection selection = endingSelection(); in rebalanceWhitespace()
835 VisiblePosition caretAfterDelete = endingSelection().visibleStart(); in cleanupAfterDeletion()
925 if (preserveSelection && !endingSelection().isNone()) { in moveParagraphs()
926 VisiblePosition visibleStart = endingSelection().visibleStart(); in moveParagraphs()
927 VisiblePosition visibleEnd = endingSelection().visibleEnd(); in moveParagraphs()
984 document()->frame()->editor()->clearMisspellingsAndBadGrammar(endingSelection()); in moveParagraphs()
1011 ASSERT(endingSelection().isCaretOrRange()); in moveParagraphs()
1017 document()->frame()->editor()->markMisspellingsAndBadGrammar(endingSelection()); in moveParagraphs()
[all …]
DApplyBlockElementCommand.cpp58 if (!endingSelection().isNonOrphanedCaretOrRange()) in doApply()
61 if (!endingSelection().rootEditableElement()) in doApply()
64 VisiblePosition visibleEnd = endingSelection().visibleEnd(); in doApply()
65 VisiblePosition visibleStart = endingSelection().visibleStart(); in doApply()
77 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); in doApply()
DReplaceSelectionCommand.cpp757 … m_firstNodeInserted = endingSelection().visibleStart().deepEquivalent().deprecatedNode(); in mergeEndIfNeeded()
810 VisibleSelection selection = endingSelection(); in doApply()
860 visibleStart = endingSelection().visibleStart(); in doApply()
868 insertionPos = endingSelection().start(); in doApply()
885 setEndingSelection(endingSelection().visibleStart().previous()); in doApply()
887 insertionPos = endingSelection().start(); in doApply()
896 Node* br = endingSelection().start().deprecatedNode(); in doApply()
1079 …m_firstNodeInserted = endingSelection().visibleStart().deepEquivalent().downstream().deprecatedNod… in doApply()
1081 … m_lastLeafInserted = endingSelection().visibleEnd().deepEquivalent().upstream().deprecatedNode(); in doApply()
1104 lastPositionToSelect = endingSelection().visibleStart().deepEquivalent(); in doApply()
[all …]
DIndentOutdentCommand.cpp119 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart()); in outdentParagraph()
192 Position originalSelectionEnd = endingSelection().end(); in outdentRegion()
212 endOfCurrentParagraph = endingSelection().end(); in outdentRegion()
DInsertLineBreakCommand.cpp91 VisibleSelection selection = endingSelection(); in doApply()
181 setEndingSelection(endingSelection().visibleEnd()); in doApply()
DUnlinkCommand.cpp41 if (!endingSelection().isNonOrphanedRange()) in doApply()
DModifySelectionListLevel.cpp175 if (!canIncreaseListLevel(endingSelection(), startListChild, endListChild)) in doApply()
258 if (!canDecreaseListLevel(endingSelection(), startListChild, endListChild)) in doApply()
DEditCommand.h50 const VisibleSelection& endingSelection() const { return m_endingSelection; } in endingSelection() function
DDeleteSelectionCommand.cpp216 && endingSelection().isRange()) { in initializePositionData()
652 m_endingPosition = endingSelection().start(); in mergeParagraphs()
725 m_endingPosition = endingSelection().start(); in calculateTypingStyleAfterDelete()
752 m_selectionToDelete = endingSelection(); in doApply()
DApplyStyleCommand.cpp126 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand()
127 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand()
154 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand()
155 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand()
168 , m_start(endingSelection().start().downstream()) in ApplyStyleCommand()
169 , m_end(endingSelection().end().upstream()) in ApplyStyleCommand()
192 return endingSelection().start(); in startPosition()
200 return endingSelection().end(); in endPosition()
DEditCommand.cpp65 if (!endingSelection().isContentRichlyEditable()) { in apply()
DEditor.h134 void respondToChangedContents(const VisibleSelection& endingSelection);
DEditor.cpp500 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) in respondToChangedContents() argument
503 Node* node = endingSelection.start().deprecatedNode(); in respondToChangedContents()
993 VisibleSelection newSelection(cmd->endingSelection()); in appliedEditing()
1037 VisibleSelection newSelection(cmd->endingSelection()); in reappliedEditing()
/external/webkit/Source/WebCore/
DChangeLog-2005-08-2347322 startingSelection and endingSelection, making them work more sensibly in the
47329 and endingSelection for the command being applied to the endingSelection of
47332 to endingSelection.
47335 to endingSelection.
47337 to endingSelection.
47343 (TypingCommandImpl::insertText): Remove extraneous call to reset endingSelection. This has
47346 to endingSelection.
47347 … (TypingCommandImpl::deleteKeyPressed): Remove extraneous call to reset endingSelection. This has
47350 …(khtml::EditCommandImpl::endingSelection): Remove extraneous call to reset endingSelection. This h…
DChangeLog-2006-05-107494 replace operation is applied, because endingSelection isn't the
7495 endingSelection of the last operation when the replace operation
30955 (WebCore::EditCommandPtr::endingSelection):
30963 (WebCore::EditCommand::endingSelection):
DChangeLog-2006-12-3113840 the selection to a more appropriate place. Change the endingSelection
35376 … (WebCore::Frame::reappliedEditing): Restore the endingSelection(), not the startingSelection().
41828 the endingSelection is at the start of an editable region.
DChangeLog-2008-08-1014813 endingSelection() at [movedPlaceholder, 0] if it does so. Re-fetch insertedPlaceholder
15252 about the incorrect endingSelection()s.
41828 the old endingSelection(), so we must recompute it. Added a FIXME. Added a few comments.
75495 the command's endingSelection and sets it as selection.
DChangeLog-2009-06-1615850 …ingCommand creates the selection to delete but it doesn't change the endingSelection. So we can t…
40354 (WebCore::EditCommand::endingSelection):
73723 … Don't store the endingSelection() in selection, just call endingSelection() in the few places it's

12