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

/external/chromium_org/third_party/WebKit/Source/core/editing/
H A DCreateLinkCommand.cpp42 if (endingSelection().isNone())
48 if (endingSelection().isRange())
51 insertNodeAt(anchorElement.get(), endingSelection().start());
54 setEndingSelection(VisibleSelection(positionInParentBeforeNode(*anchorElement), positionInParentAfterNode(*anchorElement), DOWNSTREAM, endingSelection().isDirectional()));
H A DUnlinkCommand.cpp41 if (!endingSelection().isNonOrphanedRange())
H A DMoveSelectionCommand.cpp42 ASSERT(endingSelection().isNonOrphanedRange());
49 Position selectionEnd = endingSelection().end();
54 Position selectionStart = endingSelection().start();
66 pos = endingSelection().start();
70 setEndingSelection(VisibleSelection(pos, endingSelection().affinity(), endingSelection().isDirectional()));
H A DInsertTextCommand.cpp75 forcedEndingSelection.setIsDirectional(endingSelection().isDirectional());
83 if (!endingSelection().isRange())
89 Position start = endingSelection().start();
96 setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectional()));
103 Position start = endingSelection().start();
117 setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectional()));
126 if (!endingSelection().isNonOrphanedCaretOrRange())
131 if (endingSelection()
[all...]
H A DTextInsertionBaseCommand.cpp43 void TextInsertionBaseCommand::applyTextInsertionCommand(LocalFrame* frame, PassRefPtrWillBeRawPtr<TextInsertionBaseCommand> command, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection) argument
45 bool changeSelection = selectionForInsertion != endingSelection;
52 command->setEndingSelection(endingSelection);
53 frame->selection().setSelection(endingSelection);
H A DBreakBlockquoteCommand.cpp50 if (endingSelection().isNone())
54 if (endingSelection().isRange())
60 ASSERT(!endingSelection().isNone());
62 if (endingSelection().isNone())
65 VisiblePosition visiblePos = endingSelection().visibleStart();
69 Position pos = endingSelection().start().downstream();
84 setEndingSelection(VisibleSelection(positionBeforeNode(breakElement.get()), DOWNSTREAM, endingSelection().isDirectional()));
94 setEndingSelection(VisibleSelection(positionBeforeNode(breakElement.get()), DOWNSTREAM, endingSelection().isDirectional()));
128 setEndingSelection(VisibleSelection(VisiblePosition(firstPositionInOrBeforeNode(startNode)), endingSelection().isDirectional()));
187 setEndingSelection(VisibleSelection(positionBeforeNode(breakElement.get()), DOWNSTREAM, endingSelection()
[all...]
H A DInsertLineBreakCommand.cpp70 VisibleSelection selection = endingSelection();
103 setEndingSelection(VisibleSelection(endingPosition, endingSelection().isDirectional()));
111 setEndingSelection(VisibleSelection(positionInParentAfterNode(*nodeToInsert), DOWNSTREAM, endingSelection().isDirectional()));
116 setEndingSelection(VisibleSelection(positionInParentAfterNode(*nodeToInsert), DOWNSTREAM, endingSelection().isDirectional()));
141 setEndingSelection(VisibleSelection(endingPosition, DOWNSTREAM, endingSelection().isDirectional()));
154 // Even though this applyStyle operates on a Range, it still sets an endingSelection().
158 // So, this next call sets the endingSelection() to a caret just after the line break
160 setEndingSelection(endingSelection().visibleEnd());
H A DTypingCommand.cpp151 if (currentSelection == typingCommand->endingSelection())
183 if (lastTypingCommand->endingSelection() != selectionForInsertion) {
250 if (!endingSelection().isNonOrphanedCaretOrRange())
304 VisiblePosition start(endingSelection().start(), endingSelection().affinity());
316 frame->spellChecker().markMisspellingsAfterTypingToWord(p1, endingSelection());
350 applyCommandToComposite(command, endingSelection());
357 if (!canAppendNewLineFeedToSelection(endingSelection()))
366 if (!canAppendNewLineFeedToSelection(endingSelection()))
377 if (enclosingNodeOfType(endingSelection()
[all...]
H A DInsertListCommand.cpp111 if (!endingSelection().isNonOrphanedCaretOrRange())
114 if (!endingSelection().rootEditableElement())
117 VisiblePosition visibleEnd = endingSelection().visibleEnd();
118 VisiblePosition visibleStart = endingSelection().visibleStart();
128 setEndingSelection(VisibleSelection(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirectional()));
129 if (!endingSelection().rootEditableElement())
134 if (endingSelection().isRange()) {
136 VisibleSelection selection = selectionForParagraphIteration(endingSelection());
142 RefPtrWillBeRawPtr<Range> currentSelection = endingSelection().firstRange();
160 // FIXME(<rdar://problem/5983974>): The endingSelection() ma
[all...]
H A DInsertParagraphSeparatorCommand.cpp104 m_style->prepareToApplyAt(endingSelection().start());
115 if (!isEndOfBlock(endingSelection().visibleStart()))
153 if (!endingSelection().isNonOrphanedCaretOrRange())
156 Position insertionPosition = endingSelection().start();
158 EAffinity affinity = endingSelection().affinity();
161 if (endingSelection().isRange()) {
164 insertionPosition = endingSelection().start();
165 affinity = endingSelection().affinity();
260 setEndingSelection(VisibleSelection(firstPositionInNode(parent.get()), DOWNSTREAM, endingSelection().isDirectional()));
305 setEndingSelection(VisibleSelection(insertionPosition, DOWNSTREAM, endingSelection()
[all...]
H A DTextInsertionBaseCommand.h43 static void applyTextInsertionCommand(LocalFrame*, PassRefPtrWillBeRawPtr<TextInsertionBaseCommand>, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection);
H A DEditCommand.cpp47 EditCommand::EditCommand(Document* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection) argument
54 setEndingSelection(endingSelection);
H A DApplyBlockElementCommand.cpp61 if (!endingSelection().rootEditableElement())
64 VisiblePosition visibleEnd = endingSelection().visibleEnd();
65 VisiblePosition visibleStart = endingSelection().visibleStart();
78 VisibleSelection newSelection(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirectional());
84 VisibleSelection selection = selectionForParagraphIteration(endingSelection());
105 setEndingSelection(VisibleSelection(start, end, endingSelection().isDirectional()));
119 setEndingSelection(VisibleSelection(positionBeforeNode(placeholder.get()), DOWNSTREAM, endingSelection().isDirectional()));
H A DCompositeEditCommand.cpp82 const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction editAction)
84 return adoptRefWillBeNoop(new EditCommandComposition(document, startingSelection, endingSelection, editAction));
87 EditCommandComposition::EditCommandComposition(Document* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction editAction) argument
90 , m_endingSelection(endingSelection)
92 , m_endingRootEditableElement(endingSelection.rootEditableElement())
183 if (!endingSelection().isContentRichlyEditable()) {
224 command->m_composition = EditCommandComposition::create(&document(), startingSelection(), endingSelection(), editingAction());
260 if (selection != command->endingSelection()) {
495 Position start = endingSelection().start();
496 Position end = endingSelection()
81 create(Document* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction editAction) argument
[all...]
H A DEditCommand.h47 const VisibleSelection& endingSelection() const { return m_endingSelection; } function in class:blink::EditCommand
H A DIndentOutdentCommand.cpp136 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart());
216 Position originalSelectionEnd = endingSelection().end();
235 endOfCurrentParagraph = VisiblePosition(endingSelection().end());
H A DReplaceSelectionCommand.cpp860 m_startOfInsertedContent = endingSelection().visibleStart().deepEquivalent();
861 m_endOfInsertedContent = endingSelection().visibleEnd().deepEquivalent();
920 VisibleSelection selection = endingSelection();
971 visibleStart = endingSelection().visibleStart();
979 insertionPos = endingSelection().start();
988 visibleStart = endingSelection().visibleStart();
998 setEndingSelection(endingSelection().visibleStart().previous());
1000 insertionPos = endingSelection().start();
1009 Node* br = endingSelection().start().deprecatedNode();
1216 m_startOfInsertedContent = endingSelection()
[all...]
H A DCompositeEditCommand.h55 const VisibleSelection& endingSelection() const { return m_endingSelection; } function in class:blink::FINAL
64 EditCommandComposition(Document*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction);
H A DApplyStyleCommand.cpp131 , m_start(endingSelection().start().downstream())
132 , m_end(endingSelection().end().upstream())
159 , m_start(endingSelection().start().downstream())
160 , m_end(endingSelection().end().upstream())
173 , m_start(endingSelection().start().downstream())
174 , m_end(endingSelection().end().upstream())
189 setEndingSelection(VisibleSelection(newStart, newEnd, VP_DEFAULT_AFFINITY, endingSelection().isDirectional()));
197 return endingSelection().start();
205 return endingSelection().end();
1384 // range so that the endingSelection() i
[all...]
H A DDeleteSelectionCommand.cpp208 // Only apply this rule if the endingSelection is a range selection. If it is a caret, then other operations have created
212 && endingSelection().isRange()) {
678 m_endingPosition = endingSelection().start();
782 m_selectionToDelete = endingSelection();
822 setEndingSelection(VisibleSelection(m_endingPosition, affinity, endingSelection().isDirectional()));
855 setEndingSelection(VisibleSelection(m_endingPosition, affinity, endingSelection().isDirectional()));
H A DEditor.h99 void respondToChangedContents(const VisibleSelection& endingSelection);
H A DEditor.cpp549 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) argument
552 Node* node = endingSelection.start().deprecatedNode();
667 VisibleSelection newSelection(cmd->endingSelection());
714 VisibleSelection newSelection(cmd->endingSelection());

Completed in 2360 milliseconds