HomeSort by relevance Sort by last modified time
    Searched refs:endingSelection (Results 1 - 23 of 23) sorted by null

  /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()));
125 setEndingSelection(VisibleSelection(VisiblePosition(firstPositionInOrBeforeNode(startNode)), endingSelection().isDirectional()));
184 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 148 if (currentSelection == typingCommand->endingSelection())
184 if (lastTypingCommand->endingSelection() != selectionForInsertion) {
254 if (!endingSelection().isNonOrphanedCaretOrRange())
308 VisiblePosition start(endingSelection().start(), endingSelection().affinity());
314 frame->editor()->markMisspellingsAfterTypingToWord(p1, endingSelection());
347 applyCommandToComposite(command, endingSelection());
354 if (!canAppendNewLineFeedToSelection(endingSelection()))
363 if (!canAppendNewLineFeedToSelection(endingSelection()))
374 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());
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();
248 setEndingSelection(VisibleSelection(firstPositionInNode(parent.get()), DOWNSTREAM, endingSelection().isDirectional()));
287 setEndingSelection(VisibleSelection(insertionPosition, DOWNSTREAM, endingSelection().isDirectional()))
    [all...]
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());
139 RefPtr<Range> currentSelection = endingSelection().firstRange();
145 // FIXME(<rdar://problem/5983974>): The endingSelection() may be incorrect here. Compute
174 startOfSelection = endingSelection().visibleStart()
    [all...]
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 59 if (!endingSelection().rootEditableElement())
62 VisiblePosition visibleEnd = endingSelection().visibleEnd();
63 VisiblePosition visibleStart = endingSelection().visibleStart();
76 setEndingSelection(VisibleSelection(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirectional()));
78 VisibleSelection selection = selectionForParagraphIteration(endingSelection());
99 setEndingSelection(VisibleSelection(start, end, endingSelection().isDirectional()));
113 setEndingSelection(VisibleSelection(positionBeforeNode(placeholder.get()), DOWNSTREAM, endingSelection().isDirectional()));
CompositeEditCommand.cpp 75 const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction editAction)
77 return adoptRef(new EditCommandComposition(document, startingSelection, endingSelection, editAction));
80 EditCommandComposition::EditCommandComposition(Document* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction editAction)
83 , m_endingSelection(endingSelection)
85 , m_endingRootEditableElement(endingSelection.rootEditableElement())
173 if (!endingSelection().isContentRichlyEditable()) {
215 command->m_composition = EditCommandComposition::create(document(), startingSelection(), endingSelection(), editingAction());
261 if (selection != command->endingSelection()) {
499 Position start = endingSelection().start();
500 Position end = endingSelection().end()
    [all...]
EditCommand.h 51 const VisibleSelection& endingSelection() const { return m_endingSelection; }
IndentOutdentCommand.cpp 119 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart());
193 Position originalSelectionEnd = endingSelection().end();
213 endOfCurrentParagraph = endingSelection().end();
ReplaceSelectionCommand.cpp     [all...]
CompositeEditCommand.h 52 const VisibleSelection& endingSelection() const { return m_endingSelection; }
63 EditCommandComposition(Document*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction);
ModifySelectionListLevel.cpp 175 if (!canIncreaseListLevel(endingSelection(), startListChild, endListChild))
258 if (!canDecreaseListLevel(endingSelection(), startListChild, endListChild))
ApplyStyleCommand.cpp 124 , m_start(endingSelection().start().downstream())
125 , m_end(endingSelection().end().upstream())
152 , m_start(endingSelection().start().downstream())
153 , m_end(endingSelection().end().upstream())
166 , m_start(endingSelection().start().downstream())
167 , m_end(endingSelection().end().upstream())
182 setEndingSelection(VisibleSelection(newStart, newEnd, VP_DEFAULT_AFFINITY, endingSelection().isDirectional()));
190 return endingSelection().start();
198 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()) {
665 m_endingPosition = endingSelection().start();
    [all...]
Editor.h 117 void respondToChangedContents(const VisibleSelection& endingSelection);
Editor.cpp 483 void Editor::respondToChangedContents(const VisibleSelection& endingSelection)
486 Node* node = endingSelection.start().deprecatedNode();
747 VisibleSelection newSelection(cmd->endingSelection());
788 VisibleSelection newSelection(cmd->endingSelection());
    [all...]

Completed in 1147 milliseconds