/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), positionInParentAfterNode(*anchorElement), 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()));
|
InsertTextCommand.cpp | 75 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().isRange()) [all...] |
TextInsertionBaseCommand.cpp | 43 void TextInsertionBaseCommand::applyTextInsertionCommand(LocalFrame* frame, PassRefPtrWillBeRawPtr<TextInsertionBaseCommand> command, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection) 45 bool changeSelection = selectionForInsertion != endingSelection; 52 command->setEndingSelection(endingSelection); 53 frame->selection().setSelection(endingSelection);
|
BreakBlockquoteCommand.cpp | 50 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().isDirectional())) [all...] |
InsertLineBreakCommand.cpp | 70 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());
|
TypingCommand.cpp | 151 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().start(), &isTableStructureNode)) [all...] |
InsertListCommand.cpp | 111 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() may be incorrect here. Comput [all...] |
InsertParagraphSeparatorCommand.cpp | 104 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().isDirectional())) [all...] |
TextInsertionBaseCommand.h | 43 static void applyTextInsertionCommand(LocalFrame*, PassRefPtrWillBeRawPtr<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 | 61 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()));
|
CompositeEditCommand.cpp | 82 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) 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().end() [all...] |
EditCommand.h | 47 const VisibleSelection& endingSelection() const { return m_endingSelection; }
|
IndentOutdentCommand.cpp | 136 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart()); 216 Position originalSelectionEnd = endingSelection().end(); 235 endOfCurrentParagraph = VisiblePosition(endingSelection().end());
|
ReplaceSelectionCommand.cpp | [all...] |
CompositeEditCommand.h | 55 const VisibleSelection& endingSelection() const { return m_endingSelection; } 64 EditCommandComposition(Document*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction);
|
ApplyStyleCommand.cpp | 131 , 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(); [all...] |
DeleteSelectionCommand.cpp | 208 // Only apply this rule if the endingSelection is a range selection. If it is a caret, then other operations have created 212 && endingSelection().isRange()) { [all...] |
Editor.h | 99 void respondToChangedContents(const VisibleSelection& endingSelection);
|
Editor.cpp | 549 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) 552 Node* node = endingSelection.start().deprecatedNode(); 667 VisibleSelection newSelection(cmd->endingSelection()); 714 VisibleSelection newSelection(cmd->endingSelection()); [all...] |