/external/chromium_org/third_party/WebKit/Source/core/editing/ |
CreateLinkCommand.cpp | 42 if (endingSelection().isNone()) 48 if (endingSelection().isRange()) 51 insertNodeAt(anchorElement.get(), endingSelection().start()); 54 setEndingSelection(VisibleSelection(positionInParentBeforeNode(anchorElement.get()), positionInParentAfterNode(anchorElement.get()), DOWNSTREAM, endingSelection().isDirectional()));
|
UnlinkCommand.cpp | 41 if (!endingSelection().isNonOrphanedRange())
|
MoveSelectionCommand.cpp | 42 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()));
|
TextInsertionBaseCommand.cpp | 43 void TextInsertionBaseCommand::applyTextInsertionCommand(Frame* frame, PassRefPtr<TextInsertionBaseCommand> command, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection) 45 bool changeSelection = selectionForInsertion != endingSelection; 52 command->setEndingSelection(endingSelection); 53 frame->selection().setSelection(endingSelection);
|
BreakBlockquoteCommand.cpp | 48 if (endingSelection().isNone()) 52 if (endingSelection().isRange()) 58 ASSERT(!endingSelection().isNone()); 60 if (endingSelection().isNone()) 63 VisiblePosition visiblePos = endingSelection().visibleStart(); 67 Position pos = endingSelection().start().downstream(); 82 setEndingSelection(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirectional())); 92 setEndingSelection(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirectional())); 126 setEndingSelection(VisibleSelection(VisiblePosition(firstPositionInOrBeforeNode(startNode)), endingSelection().isDirectional())); 185 setEndingSelection(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirectional())) [all...] |
InsertTextCommand.cpp | 83 forcedEndingSelection.setIsDirectional(endingSelection().isDirectional()); 91 if (!endingSelection().isRange()) 97 Position start = endingSelection().start(); 104 setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectional())); 111 Position start = endingSelection().start(); 125 setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectional())); 134 if (!endingSelection().isNonOrphanedCaretOrRange()) 139 if (endingSelection().isRange()) [all...] |
TypingCommand.cpp | 149 if (currentSelection == typingCommand->endingSelection()) 181 if (lastTypingCommand->endingSelection() != selectionForInsertion) { 248 if (!endingSelection().isNonOrphanedCaretOrRange()) 302 VisiblePosition start(endingSelection().start(), endingSelection().affinity()); 308 frame->spellChecker().markMisspellingsAfterTypingToWord(p1, endingSelection()); 342 applyCommandToComposite(command, endingSelection()); 349 if (!canAppendNewLineFeedToSelection(endingSelection())) 358 if (!canAppendNewLineFeedToSelection(endingSelection())) 369 if (enclosingNodeOfType(endingSelection().start(), &isTableStructureNode)) [all...] |
InsertLineBreakCommand.cpp | 93 VisibleSelection selection = endingSelection(); 126 setEndingSelection(VisibleSelection(endingPosition, endingSelection().isDirectional())); 134 setEndingSelection(VisibleSelection(positionInParentAfterNode(nodeToInsert.get()), DOWNSTREAM, endingSelection().isDirectional())); 139 setEndingSelection(VisibleSelection(positionInParentAfterNode(nodeToInsert.get()), DOWNSTREAM, endingSelection().isDirectional())); 164 setEndingSelection(VisibleSelection(endingPosition, DOWNSTREAM, endingSelection().isDirectional())); 177 // Even though this applyStyle operates on a Range, it still sets an endingSelection(). 181 // So, this next call sets the endingSelection() to a caret just after the line break 183 setEndingSelection(endingSelection().visibleEnd());
|
InsertListCommand.cpp | 109 if (!endingSelection().isNonOrphanedCaretOrRange()) 112 if (!endingSelection().rootEditableElement()) 115 VisiblePosition visibleEnd = endingSelection().visibleEnd(); 116 VisiblePosition visibleStart = endingSelection().visibleStart(); 126 setEndingSelection(VisibleSelection(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirectional())); 129 if (endingSelection().isRange()) { 130 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); 141 RefPtr<Range> currentSelection = endingSelection().firstRange(); 147 // FIXME(<rdar://problem/5983974>): The endingSelection() may be incorrect here. Compute 174 startOfSelection = endingSelection().visibleStart() [all...] |
InsertParagraphSeparatorCommand.cpp | 101 m_style->prepareToApplyAt(endingSelection().start()); 112 if (!isEndOfBlock(endingSelection().visibleStart())) 150 if (!endingSelection().isNonOrphanedCaretOrRange()) 153 Position insertionPosition = endingSelection().start(); 155 EAffinity affinity = endingSelection().affinity(); 158 if (endingSelection().isRange()) { 161 insertionPosition = endingSelection().start(); 162 affinity = endingSelection().affinity(); 257 setEndingSelection(VisibleSelection(firstPositionInNode(parent.get()), DOWNSTREAM, endingSelection().isDirectional())); 302 setEndingSelection(VisibleSelection(insertionPosition, DOWNSTREAM, endingSelection().isDirectional())) [all...] |
EditCommand.h | 51 const VisibleSelection& endingSelection() const { return m_endingSelection; }
|
TextInsertionBaseCommand.h | 43 static void applyTextInsertionCommand(Frame*, PassRefPtr<TextInsertionBaseCommand>, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection);
|
EditCommand.cpp | 47 EditCommand::EditCommand(Document* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection) 54 setEndingSelection(endingSelection);
|
ApplyBlockElementCommand.cpp | 60 if (!endingSelection().rootEditableElement()) 63 VisiblePosition visibleEnd = endingSelection().visibleEnd(); 64 VisiblePosition visibleStart = endingSelection().visibleStart(); 77 setEndingSelection(VisibleSelection(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirectional())); 79 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); 100 setEndingSelection(VisibleSelection(start, end, endingSelection().isDirectional())); 114 setEndingSelection(VisibleSelection(positionBeforeNode(placeholder.get()), DOWNSTREAM, endingSelection().isDirectional()));
|
CompositeEditCommand.cpp | 95 const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction editAction) 97 return adoptRef(new EditCommandComposition(document, startingSelection, endingSelection, editAction)); 100 EditCommandComposition::EditCommandComposition(Document* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction editAction) 103 , m_endingSelection(endingSelection) 105 , m_endingRootEditableElement(endingSelection.rootEditableElement()) 193 if (!endingSelection().isContentRichlyEditable()) { 235 command->m_composition = EditCommandComposition::create(&document(), startingSelection(), endingSelection(), editingAction()); 281 if (selection != command->endingSelection()) { 519 Position start = endingSelection().start(); 520 Position end = endingSelection().end() [all...] |
IndentOutdentCommand.cpp | 129 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart()); 204 Position originalSelectionEnd = endingSelection().end(); 223 endOfCurrentParagraph = endingSelection().end();
|
ReplaceSelectionCommand.cpp | [all...] |
CompositeEditCommand.h | 53 const VisibleSelection& endingSelection() const { return m_endingSelection; } 60 EditCommandComposition(Document*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction);
|
ModifySelectionListLevel.cpp | 175 if (!canIncreaseListLevel(endingSelection(), startListChild, endListChild)) 257 if (!canDecreaseListLevel(endingSelection(), startListChild, endListChild))
|
ApplyStyleCommand.cpp | 125 , m_start(endingSelection().start().downstream()) 126 , m_end(endingSelection().end().upstream()) 153 , m_start(endingSelection().start().downstream()) 154 , m_end(endingSelection().end().upstream()) 167 , m_start(endingSelection().start().downstream()) 168 , m_end(endingSelection().end().upstream()) 183 setEndingSelection(VisibleSelection(newStart, newEnd, VP_DEFAULT_AFFINITY, endingSelection().isDirectional())); 191 return endingSelection().start(); 199 return endingSelection().end(); [all...] |
DeleteSelectionCommand.cpp | 214 // Only apply this rule if the endingSelection is a range selection. If it is a caret, then other operations have created 218 && endingSelection().isRange()) { 667 m_endingPosition = endingSelection().start(); [all...] |
Editor.h | 107 void respondToChangedContents(const VisibleSelection& endingSelection);
|
Editor.cpp | 534 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) 537 Node* node = endingSelection.start().deprecatedNode(); 771 VisibleSelection newSelection(cmd->endingSelection()); 816 VisibleSelection newSelection(cmd->endingSelection()); [all...] |