selection 535 Source/core/accessibility/AXRenderObject.cpp || (roleValue() == WebAreaRole && document.frame()->selection().isFocusedAndActive())) selection 1595 Source/core/accessibility/AXRenderObject.cpp return m_renderer->frame()->selection().selection(); selection 1615 Source/core/accessibility/AXRenderObject.cpp frame->selection().setSelection(VisibleSelection(Position(node, range.start, Position::PositionIsOffsetInAnchor), selection 1656 Source/core/accessibility/AXRenderObject.cpp if (!doc.frame()->selection().isFocusedAndActive() || doc.focusedElement() != element) selection 1865 Source/core/accessibility/AXRenderObject.cpp VisibleSelection visibleSelection = selection(); selection 233 Source/core/accessibility/AXRenderObject.h VisibleSelection selection() const; selection 1127 Source/core/css/SelectorChecker.cpp return element.document().frame() && element.document().frame()->selection().isFocusedAndActive(); selection 181 Source/core/dom/CharacterData.cpp document().frame()->selection().didUpdateCharacterData(this, offsetOfReplacedData, oldLength, newLength); selection 3572 Source/core/dom/Document.cpp frame->selection().didChangeFocus(); selection 3652 Source/core/dom/Document.cpp frame->selection().nodeWillBeRemoved(*n); selection 3672 Source/core/dom/Document.cpp frame->selection().nodeWillBeRemoved(n); selection 3712 Source/core/dom/Document.cpp m_frame->selection().didMergeTextNodes(oldNode, offset); selection 3726 Source/core/dom/Document.cpp m_frame->selection().didSplitTextNode(oldNode); selection 4567 Source/core/dom/Document.cpp m_frame->selection().updateSecureKeyboardEntryIfActive(); selection 2171 Source/core/dom/Element.cpp if (this == frame->selection().rootEditableElement()) selection 2176 Source/core/dom/Element.cpp frame->selection().setSelection(newSelection); selection 2177 Source/core/dom/Element.cpp frame->selection().revealSelection(); selection 79 Source/core/editing/ApplyBlockElementCommand.cpp VisibleSelection selection = selectionForParagraphIteration(endingSelection()); selection 80 Source/core/editing/ApplyBlockElementCommand.cpp VisiblePosition startOfSelection = selection.visibleStart(); selection 81 Source/core/editing/ApplyBlockElementCommand.cpp VisiblePosition endOfSelection = selection.visibleEnd(); selection 144 Source/core/editing/CompositeEditCommand.cpp void EditCommandComposition::setStartingSelection(const VisibleSelection& selection) selection 146 Source/core/editing/CompositeEditCommand.cpp m_startingSelection = selection; selection 147 Source/core/editing/CompositeEditCommand.cpp m_startingRootEditableElement = selection.rootEditableElement(); selection 150 Source/core/editing/CompositeEditCommand.cpp void EditCommandComposition::setEndingSelection(const VisibleSelection& selection) selection 152 Source/core/editing/CompositeEditCommand.cpp m_endingSelection = selection; selection 153 Source/core/editing/CompositeEditCommand.cpp m_endingRootEditableElement = selection.rootEditableElement(); selection 242 Source/core/editing/CompositeEditCommand.cpp void CompositeEditCommand::applyCommandToComposite(PassRefPtr<CompositeEditCommand> command, const VisibleSelection& selection) selection 245 Source/core/editing/CompositeEditCommand.cpp if (selection != command->endingSelection()) { selection 246 Source/core/editing/CompositeEditCommand.cpp command->setStartingSelection(selection); selection 247 Source/core/editing/CompositeEditCommand.cpp command->setEndingSelection(selection); selection 553 Source/core/editing/CompositeEditCommand.cpp void CompositeEditCommand::deleteSelection(const VisibleSelection &selection, bool smartDelete, bool mergeBlocksAfterDelete, bool expandForSpecialElements, bool sanitizeMarkup) selection 555 Source/core/editing/CompositeEditCommand.cpp if (selection.isRange()) selection 556 Source/core/editing/CompositeEditCommand.cpp applyCommandToComposite(DeleteSelectionCommand::create(selection, smartDelete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup)); selection 695 Source/core/editing/CompositeEditCommand.cpp VisibleSelection selection = endingSelection(); selection 696 Source/core/editing/CompositeEditCommand.cpp if (selection.isNone()) selection 699 Source/core/editing/CompositeEditCommand.cpp rebalanceWhitespaceAt(selection.start()); selection 700 Source/core/editing/CompositeEditCommand.cpp if (selection.isRange()) selection 701 Source/core/editing/CompositeEditCommand.cpp rebalanceWhitespaceAt(selection.end()); selection 81 Source/core/editing/DeleteSelectionCommand.cpp DeleteSelectionCommand::DeleteSelectionCommand(const VisibleSelection& selection, bool smartDelete, bool mergeBlocksAfterDelete, bool expandForSpecialElements, bool sanitizeMarkup) selection 82 Source/core/editing/DeleteSelectionCommand.cpp : CompositeEditCommand(*selection.start().document()) selection 91 Source/core/editing/DeleteSelectionCommand.cpp , m_selectionToDelete(selection) selection 713 Source/core/editing/DeleteSelectionCommand.cpp document().frame()->selection().clearTypingStyle(); selection 735 Source/core/editing/DeleteSelectionCommand.cpp document().frame()->selection().setTypingStyle(m_typingStyle); selection 41 Source/core/editing/DeleteSelectionCommand.h static PassRefPtr<DeleteSelectionCommand> create(const VisibleSelection& selection, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = false, bool sanitizeMarkup = true) selection 43 Source/core/editing/DeleteSelectionCommand.h return adoptRef(new DeleteSelectionCommand(selection, smartDelete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup)); selection 43 Source/core/editing/EditCommand.cpp setStartingSelection(m_document->frame()->selection().selection()); selection 73 Source/core/editing/EditCommand.cpp void EditCommand::setStartingSelection(const VisibleSelection& selection) selection 78 Source/core/editing/EditCommand.cpp composition->setStartingSelection(selection); selection 80 Source/core/editing/EditCommand.cpp command->m_startingSelection = selection; selection 91 Source/core/editing/EditCommand.cpp void EditCommand::setEndingSelection(const VisibleSelection& selection) selection 96 Source/core/editing/EditCommand.cpp composition->setEndingSelection(selection); selection 98 Source/core/editing/EditCommand.cpp command->m_endingSelection = selection; selection 689 Source/core/editing/EditingStyle.cpp TriState EditingStyle::triStateOfStyle(const VisibleSelection& selection) const selection 691 Source/core/editing/EditingStyle.cpp if (!selection.isCaretOrRange()) selection 694 Source/core/editing/EditingStyle.cpp if (selection.isCaret()) selection 695 Source/core/editing/EditingStyle.cpp return triStateOfStyle(EditingStyle::styleAtSelectionStart(selection).get()); selection 699 Source/core/editing/EditingStyle.cpp for (Node* node = selection.start().deprecatedNode(); node; node = NodeTraversal::next(*node)) { selection 713 Source/core/editing/EditingStyle.cpp if (node == selection.end().deprecatedNode()) selection 972 Source/core/editing/EditingStyle.cpp RefPtr<EditingStyle> typingStyle = document->frame()->selection().typingStyle(); selection 1235 Source/core/editing/EditingStyle.cpp PassRefPtr<EditingStyle> EditingStyle::styleAtSelectionStart(const VisibleSelection& selection, bool shouldUseBackgroundColorInEffect) selection 1237 Source/core/editing/EditingStyle.cpp if (selection.isNone()) selection 1240 Source/core/editing/EditingStyle.cpp Position position = adjustedSelectionStartForStyleComputation(selection); selection 1247 Source/core/editing/EditingStyle.cpp if (selection.isRange() && positionNode && positionNode->isTextNode() && position.computeOffsetInContainerNode() == positionNode->maxCharacterOffset()) selection 1260 Source/core/editing/EditingStyle.cpp if (shouldUseBackgroundColorInEffect && (selection.isRange() || hasTransparentBackgroundColor(style->m_mutableStyle.get()))) { selection 1261 Source/core/editing/EditingStyle.cpp RefPtrWillBeRawPtr<Range> range(selection.toNormalizedRange()); selection 1269 Source/core/editing/EditingStyle.cpp WritingDirection EditingStyle::textDirectionForSelection(const VisibleSelection& selection, EditingStyle* typingStyle, bool& hasNestedOrMultipleEmbeddings) selection 1273 Source/core/editing/EditingStyle.cpp if (selection.isNone()) selection 1276 Source/core/editing/EditingStyle.cpp Position position = selection.start().downstream(); selection 1283 Source/core/editing/EditingStyle.cpp if (selection.isRange()) { selection 1284 Source/core/editing/EditingStyle.cpp end = selection.end().upstream(); selection 1303 Source/core/editing/EditingStyle.cpp if (selection.isCaret()) { selection 1309 Source/core/editing/EditingStyle.cpp node = selection.visibleStart().deepEquivalent().deprecatedNode(); selection 1346 Source/core/editing/EditingStyle.cpp if (selection.isRange() && !end.deprecatedNode()->isDescendantOf(node)) selection 105 Source/core/editing/Editor.cpp m_editor->m_frame.selection().revealSelection(ScrollAlignment::alignToEdgeIfNeeded, RevealExtent); selection 112 Source/core/editing/Editor.cpp VisibleSelection selection = m_frame.selection().selection(); selection 114 Source/core/editing/Editor.cpp return selection; selection 117 Source/core/editing/Editor.cpp HTMLTextFormControlElement* textFormControlOfSelectionStart = enclosingTextFormControl(selection.start()); selection 119 Source/core/editing/Editor.cpp if (textFromControlOfTarget && (selection.start().isNull() || textFromControlOfTarget != textFormControlOfSelectionStart)) { selection 120 Source/core/editing/Editor.cpp if (RefPtrWillBeRawPtr<Range> range = textFromControlOfTarget->selection()) selection 121 Source/core/editing/Editor.cpp return VisibleSelection(range.get(), DOWNSTREAM, selection.isDirectional()); selection 123 Source/core/editing/Editor.cpp return selection; selection 182 Source/core/editing/Editor.cpp return m_frame.selection().rootEditableElement(); selection 187 Source/core/editing/Editor.cpp return m_frame.selection().isContentRichlyEditable(); selection 197 Source/core/editing/Editor.cpp return !m_frame.selection().isInPasswordField() && !dispatchCPPEvent(EventTypeNames::beforecut, ClipboardNumb); selection 202 Source/core/editing/Editor.cpp return !m_frame.selection().isInPasswordField() && !dispatchCPPEvent(EventTypeNames::beforecopy, ClipboardNumb); selection 236 Source/core/editing/Editor.cpp FrameSelection& selection = m_frame.selection(); selection 237 Source/core/editing/Editor.cpp return selection.isRange() && !selection.isInPasswordField(); selection 247 Source/core/editing/Editor.cpp FrameSelection& selection = m_frame.selection(); selection 248 Source/core/editing/Editor.cpp return selection.isRange() && selection.rootEditableElement(); selection 280 Source/core/editing/Editor.cpp return smartInsertDeleteEnabled() && m_frame.selection().granularity() == WordGranularity; selection 295 Source/core/editing/Editor.cpp if (m_frame.selection().isRange()) { selection 338 Source/core/editing/Editor.cpp if (m_frame.selection().isNone()) selection 363 Source/core/editing/Editor.cpp if (m_frame.selection().isInPasswordField()) selection 371 Source/core/editing/Editor.cpp if (m_frame.selection().isInPasswordField()) selection 488 Source/core/editing/Editor.cpp if (m_frame.selection().isNone() || !m_frame.selection().isContentEditable() || !fragment) selection 502 Source/core/editing/Editor.cpp if (m_frame.selection().isInPasswordField() || !spellChecker().isContinuousSpellCheckingEnabled()) selection 504 Source/core/editing/Editor.cpp spellChecker().chunkAndMarkAllMisspellingsAndBadGrammar(m_frame.selection().rootEditableElement()); selection 514 Source/core/editing/Editor.cpp return m_frame.selection().toNormalizedRange(); selection 527 Source/core/editing/Editor.cpp client().respondToChangedSelection(&m_frame, m_frame.selection().selectionType()); selection 545 Source/core/editing/Editor.cpp if (m_frame.selection().isCaret()) { selection 546 Source/core/editing/Editor.cpp if (enclosingNodeWithTag(m_frame.selection().selection().start(), ulTag)) selection 548 Source/core/editing/Editor.cpp } else if (m_frame.selection().isRange()) { selection 549 Source/core/editing/Editor.cpp Node* startNode = enclosingNodeWithTag(m_frame.selection().selection().start(), ulTag); selection 550 Source/core/editing/Editor.cpp Node* endNode = enclosingNodeWithTag(m_frame.selection().selection().end(), ulTag); selection 560 Source/core/editing/Editor.cpp if (m_frame.selection().isCaret()) { selection 561 Source/core/editing/Editor.cpp if (enclosingNodeWithTag(m_frame.selection().selection().start(), olTag)) selection 563 Source/core/editing/Editor.cpp } else if (m_frame.selection().isRange()) { selection 564 Source/core/editing/Editor.cpp Node* startNode = enclosingNodeWithTag(m_frame.selection().selection().start(), olTag); selection 565 Source/core/editing/Editor.cpp Node* endNode = enclosingNodeWithTag(m_frame.selection().selection().end(), olTag); selection 584 Source/core/editing/Editor.cpp Node* Editor::findEventTargetFrom(const VisibleSelection& selection) const selection 586 Source/core/editing/Editor.cpp Node* target = selection.start().element(); selection 595 Source/core/editing/Editor.cpp return findEventTargetFrom(m_frame.selection().selection()); selection 600 Source/core/editing/Editor.cpp switch (m_frame.selection().selectionType()) { selection 618 Source/core/editing/Editor.cpp if (m_frame.selection().isNone() || !style) selection 643 Source/core/editing/Editor.cpp EditingStyle::styleAtSelectionStart(m_frame.selection().selection(), propertyID == CSSPropertyBackgroundColor).get()); selection 648 Source/core/editing/Editor.cpp return EditingStyle::create(propertyID, value)->triStateOfStyle(m_frame.selection().selection()); selection 653 Source/core/editing/Editor.cpp RefPtr<EditingStyle> selectionStyle = EditingStyle::styleAtSelectionStart(m_frame.selection().selection(), selection 697 Source/core/editing/Editor.cpp m_frame.selection().clearTypingStyle(); selection 784 Source/core/editing/Editor.cpp VisibleSelection selection = selectionForCommand(triggeringEvent); selection 785 Source/core/editing/Editor.cpp if (!selection.isContentEditable()) selection 793 Source/core/editing/Editor.cpp selection = selectionForCommand(triggeringEvent); selection 794 Source/core/editing/Editor.cpp if (selection.isContentEditable()) { selection 795 Source/core/editing/Editor.cpp if (Node* selectionStart = selection.start().deprecatedNode()) { selection 802 Source/core/editing/Editor.cpp TypingCommand::insertText(*document.get(), text, selection, options, triggeringEvent && triggeringEvent->isComposition() ? TypingCommand::TextCompositionConfirm : TypingCommand::TextCompositionNone); selection 807 Source/core/editing/Editor.cpp toLocalFrame(page->focusController().focusedOrMainFrame())->selection().revealSelection(ScrollAlignment::alignCenterIfNeeded); selection 820 Source/core/editing/Editor.cpp VisiblePosition caret = m_frame.selection().selection().visibleStart(); selection 837 Source/core/editing/Editor.cpp VisiblePosition caret = m_frame.selection().selection().visibleStart(); selection 852 Source/core/editing/Editor.cpp RefPtrWillBeRawPtr<Range> selection = selectedRange(); selection 853 Source/core/editing/Editor.cpp if (shouldDeleteRange(selection.get())) { selection 856 Source/core/editing/Editor.cpp if (enclosingTextFormControl(m_frame.selection().start())) { selection 860 Source/core/editing/Editor.cpp writeSelectionToPasteboard(Pasteboard::generalPasteboard(), selection.get(), plainText); selection 872 Source/core/editing/Editor.cpp if (enclosingTextFormControl(m_frame.selection().start())) { selection 894 Source/core/editing/Editor.cpp if (m_frame.selection().isContentRichlyEditable()) selection 975 Source/core/editing/Editor.cpp m_frame.selection().revealSelection(alignment, revealExtentOption); selection 983 Source/core/editing/Editor.cpp VisibleSelection selection = m_frame.selection().selection(); selection 984 Source/core/editing/Editor.cpp if (!selection.isCaret()) selection 988 Source/core/editing/Editor.cpp VisiblePosition caret = selection.visibleStart(); selection 1008 Source/core/editing/Editor.cpp if (newSelection != m_frame.selection().selection()) selection 1009 Source/core/editing/Editor.cpp m_frame.selection().setSelection(newSelection); selection 1035 Source/core/editing/Editor.cpp bool selectionDidNotChangeDOMPosition = newSelection == m_frame.selection().selection(); selection 1036 Source/core/editing/Editor.cpp m_frame.selection().setSelection(newSelection, options); selection 1046 Source/core/editing/Editor.cpp client().respondToChangedSelection(&m_frame, m_frame.selection().selectionType()); selection 1081 Source/core/editing/Editor.cpp m_frame.selection().clearTypingStyle(); selection 1087 Source/core/editing/Editor.cpp if (m_frame.selection().typingStyle()) { selection 1088 Source/core/editing/Editor.cpp typingStyle = m_frame.selection().typingStyle()->copy(); selection 1094 Source/core/editing/Editor.cpp typingStyle->prepareToApplyAt(m_frame.selection().selection().visibleStart().deepEquivalent(), EditingStyle::PreserveWritingDirection); selection 1104 Source/core/editing/Editor.cpp m_frame.selection().setTypingStyle(typingStyle); selection 1115 Source/core/editing/Editor.cpp VisibleSelection selection = m_frame.selection().selection(); selection 1117 Source/core/editing/Editor.cpp RefPtrWillBeRawPtr<Range> resultRange = rangeOfString(target, selection.firstRange().get(), options); selection 1122 Source/core/editing/Editor.cpp m_frame.selection().setSelection(VisibleSelection(resultRange.get(), DOWNSTREAM)); selection 1123 Source/core/editing/Editor.cpp m_frame.selection().revealSelection(); selection 1234 Source/core/editing/Editor.cpp frame().selection().setShouldShowBlockCursor(m_overwriteModeEnabled); selection 286 Source/core/editing/Editor.h inline void Editor::setMark(const VisibleSelection& selection) selection 288 Source/core/editing/Editor.h m_mark = selection; selection 138 Source/core/editing/EditorCommand.cpp RefPtr<EditingStyle> selectionStyle = EditingStyle::styleAtSelectionStart(frame.selection().selection()); selection 214 Source/core/editing/EditorCommand.cpp VisibleSelection selection = frame.selection().selection(); selection 215 Source/core/editing/EditorCommand.cpp selection.expandUsingGranularity(granularity); selection 216 Source/core/editing/EditorCommand.cpp RefPtrWillBeRawPtr<Range> newRange = selection.toNormalizedRange(); selection 221 Source/core/editing/EditorCommand.cpp EAffinity affinity = frame.selection().affinity(); selection 222 Source/core/editing/EditorCommand.cpp frame.selection().setSelectedRange(newRange.get(), affinity, FrameSelection::CloseTyping); selection 243 Source/core/editing/EditorCommand.cpp WritingDirection selectionDirection = EditingStyle::textDirectionForSelection(frame.selection().selection(), selection 244 Source/core/editing/EditorCommand.cpp frame.selection().typingStyle(), hasNestedOrMultipleEmbeddings); selection 326 Source/core/editing/EditorCommand.cpp TypingCommand::deleteKeyPressed(*frame.document(), frame.selection().granularity() == WordGranularity ? TypingCommand::SmartDelete : 0); selection 384 Source/core/editing/EditorCommand.cpp bool selected = frame.selection().setSelectedRange(unionDOMRanges(mark.get(), frame.editor().selectedRange().get()).get(), DOWNSTREAM, FrameSelection::CloseTyping); selection 390 Source/core/editing/EditorCommand.cpp frame.editor().setMark(frame.selection().selection()); selection 624 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionBackward, CharacterGranularity, UserTriggered); selection 630 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionBackward, CharacterGranularity, UserTriggered); selection 636 Source/core/editing/EditorCommand.cpp return frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, LineGranularity, UserTriggered); selection 641 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionForward, LineGranularity, UserTriggered); selection 647 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, CharacterGranularity, UserTriggered); selection 653 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionForward, CharacterGranularity, UserTriggered); selection 659 Source/core/editing/EditorCommand.cpp return frame.selection().modify(FrameSelection::AlterationMove, DirectionLeft, CharacterGranularity, UserTriggered); selection 664 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionLeft, CharacterGranularity, UserTriggered); selection 673 Source/core/editing/EditorCommand.cpp return frame.selection().modify(FrameSelection::AlterationMove, distance, FrameSelection::DirectionDown, selection 682 Source/core/editing/EditorCommand.cpp return frame.selection().modify(FrameSelection::AlterationExtend, distance, FrameSelection::DirectionDown, selection 691 Source/core/editing/EditorCommand.cpp return frame.selection().modify(FrameSelection::AlterationMove, distance, FrameSelection::DirectionUp, selection 700 Source/core/editing/EditorCommand.cpp return frame.selection().modify(FrameSelection::AlterationExtend, distance, FrameSelection::DirectionUp, selection 706 Source/core/editing/EditorCommand.cpp return frame.selection().modify(FrameSelection::AlterationMove, DirectionRight, CharacterGranularity, UserTriggered); selection 711 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionRight, CharacterGranularity, UserTriggered); selection 717 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionBackward, DocumentBoundary, UserTriggered); selection 723 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionBackward, DocumentBoundary, UserTriggered); selection 729 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionBackward, LineBoundary, UserTriggered); selection 735 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionBackward, LineBoundary, UserTriggered); selection 741 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionBackward, ParagraphBoundary, UserTriggered); selection 747 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionBackward, ParagraphBoundary, UserTriggered); selection 753 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionBackward, SentenceBoundary, UserTriggered); selection 759 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionBackward, SentenceBoundary, UserTriggered); selection 765 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, DocumentBoundary, UserTriggered); selection 771 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionForward, DocumentBoundary, UserTriggered); selection 777 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, SentenceBoundary, UserTriggered); selection 783 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionForward, SentenceBoundary, UserTriggered); selection 789 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, LineBoundary, UserTriggered); selection 795 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionForward, LineBoundary, UserTriggered); selection 801 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, ParagraphBoundary, UserTriggered); selection 807 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionForward, ParagraphBoundary, UserTriggered); selection 813 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionBackward, ParagraphGranularity, UserTriggered); selection 819 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionBackward, ParagraphGranularity, UserTriggered); selection 825 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, ParagraphGranularity, UserTriggered); selection 831 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionForward, ParagraphGranularity, UserTriggered); selection 837 Source/core/editing/EditorCommand.cpp return frame.selection().modify(FrameSelection::AlterationMove, DirectionBackward, LineGranularity, UserTriggered); selection 842 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionBackward, LineGranularity, UserTriggered); selection 848 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionBackward, WordGranularity, UserTriggered); selection 854 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionBackward, WordGranularity, UserTriggered); selection 860 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, WordGranularity, UserTriggered); selection 866 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionForward, WordGranularity, UserTriggered); selection 872 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionLeft, WordGranularity, UserTriggered); selection 878 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionLeft, WordGranularity, UserTriggered); selection 884 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionRight, WordGranularity, UserTriggered); selection 890 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionRight, WordGranularity, UserTriggered); selection 896 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionLeft, LineBoundary, UserTriggered); selection 902 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionLeft, LineBoundary, UserTriggered); selection 908 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationMove, DirectionRight, LineBoundary, UserTriggered); selection 914 Source/core/editing/EditorCommand.cpp frame.selection().modify(FrameSelection::AlterationExtend, DirectionRight, LineBoundary, UserTriggered); selection 1009 Source/core/editing/EditorCommand.cpp frame.selection().selectAll(); selection 1031 Source/core/editing/EditorCommand.cpp RefPtrWillBeRawPtr<Range> selection = frame.editor().selectedRange(); selection 1032 Source/core/editing/EditorCommand.cpp if (!mark || !selection) selection 1034 Source/core/editing/EditorCommand.cpp frame.selection().setSelectedRange(unionDOMRanges(mark.get(), selection.get()).get(), DOWNSTREAM, FrameSelection::CloseTyping); selection 1045 Source/core/editing/EditorCommand.cpp frame.editor().setMark(frame.selection().selection()); selection 1080 Source/core/editing/EditorCommand.cpp const VisibleSelection& selection = frame.selection().selection(); selection 1081 Source/core/editing/EditorCommand.cpp if (mark.isNone() || selection.isNone()) selection 1083 Source/core/editing/EditorCommand.cpp frame.selection().setSelection(mark); selection 1084 Source/core/editing/EditorCommand.cpp frame.editor().setMark(selection); selection 1130 Source/core/editing/EditorCommand.cpp frame.selection().clear(); selection 1190 Source/core/editing/EditorCommand.cpp const VisibleSelection& selection = frame.editor().selectionForCommand(event); selection 1191 Source/core/editing/EditorCommand.cpp return (selection.isCaret() && selection.isContentEditable()) || selection.isRange(); selection 1209 Source/core/editing/EditorCommand.cpp const VisibleSelection& selection = frame.editor().selectionForCommand(event); selection 1210 Source/core/editing/EditorCommand.cpp return ((selection.isCaret() && selection.isContentEditable()) || selection.isRange()) selection 1216 Source/core/editing/EditorCommand.cpp const VisibleSelection& selection = frame.editor().selectionForCommand(event); selection 1217 Source/core/editing/EditorCommand.cpp return selection.isCaret() && selection.isContentEditable(); selection 1258 Source/core/editing/EditorCommand.cpp return frame.selection().isCaretOrRange() && frame.selection().isContentRichlyEditable() && frame.selection().rootEditableElement(); selection 1268 Source/core/editing/EditorCommand.cpp return frame.selection().isRange() && frame.selection().isContentEditable(); selection 1273 Source/core/editing/EditorCommand.cpp return frame.selection().isRange() && frame.selection().isContentRichlyEditable(); selection 1420 Source/core/editing/EditorCommand.cpp const VisibleSelection& selection = frame.selection().selection(); selection 1421 Source/core/editing/EditorCommand.cpp if (!selection.isNonOrphanedCaretOrRange() || !selection.isContentEditable()) selection 1423 Source/core/editing/EditorCommand.cpp Element* formatBlockElement = FormatBlockCommand::elementForFormatBlockCommand(selection.firstRange().get()); selection 236 Source/core/editing/FrameSelection.cpp document.frame()->selection().setSelection(s, options, align, granularity); selection 941 Source/core/editing/FrameSelection.cpp if (trialFrameSelection.selection().isRange() && m_selection.isCaret() && !dispatchSelectStart()) selection 1215 Source/core/editing/FrameSelection.cpp static bool isNonOrphanedCaret(const VisibleSelection& selection) selection 1217 Source/core/editing/FrameSelection.cpp return selection.isCaret() && !selection.start().isOrphan() && !selection.end().isOrphan(); selection 1333 Source/core/editing/FrameSelection.cpp if (!isStartOfDocument(selection().visibleStart())) selection 1335 Source/core/editing/FrameSelection.cpp if (!isEndOfDocument(selection().visibleEnd())) selection 1358 Source/core/editing/FrameSelection.cpp parent->selection().setSelection(newSelection); selection 1564 Source/core/editing/FrameSelection.cpp VisibleSelection selection(m_selection.visibleStart(), forwardPosition.isNotNull() ? forwardPosition : m_selection.visibleEnd()); selection 1566 Source/core/editing/FrameSelection.cpp if (!selection.isRange()) { selection 1575 Source/core/editing/FrameSelection.cpp Position startPos = selection.start(); selection 1579 Source/core/editing/FrameSelection.cpp Position endPos = selection.end(); selection 1586 Source/core/editing/FrameSelection.cpp if (startPos.isNotNull() && endPos.isNotNull() && selection.visibleStart() != selection.visibleEnd()) { selection 1691 Source/core/editing/FrameSelection.cpp static String extractSelectedText(const FrameSelection& selection, TextIteratorBehavior behavior) selection 1694 Source/core/editing/FrameSelection.cpp return plainText(selection.toNormalizedRange().get(), behavior).replace(0, ""); selection 95 Source/core/editing/FrameSelection.h const VisibleSelection& selection() const { return m_selection; } selection 97 Source/core/editing/FrameSelection.h void setSelection(const VisibleSelection& selection, TextGranularity granularity) { setSelection(selection, CloseTyping | ClearTypingStyle, AlignCursorOnScrollIfNeeded, granularity); } selection 104 Source/core/editing/InputMethodController.cpp VisibleSelection selection; selection 105 Source/core/editing/InputMethodController.cpp selection.setWithoutValidation(range->startPosition(), range->endPosition()); selection 106 Source/core/editing/InputMethodController.cpp m_frame.selection().setSelection(selection, 0); selection 162 Source/core/editing/InputMethodController.cpp Position start = m_frame.selection().start(); selection 163 Source/core/editing/InputMethodController.cpp Position end = m_frame.selection().end(); selection 188 Source/core/editing/InputMethodController.cpp if (m_frame.selection().isNone()) selection 195 Source/core/editing/InputMethodController.cpp unsigned baseOffset = m_frame.selection().base().downstream().deprecatedEditingOffset(); selection 238 Source/core/editing/InputMethodController.cpp if (m_frame.selection().isNone()) selection 290 Source/core/editing/InputMethodController.cpp Position base = m_frame.selection().base().downstream(); selection 291 Source/core/editing/InputMethodController.cpp Position extent = m_frame.selection().extent(); selection 313 Source/core/editing/InputMethodController.cpp m_frame.selection().setSelectedRange(selectedRange.get(), DOWNSTREAM, static_cast<FrameSelection::SetSelectionOption>(0)); selection 320 Source/core/editing/InputMethodController.cpp Node* editable = m_frame.selection().rootEditableElement(); selection 321 Source/core/editing/InputMethodController.cpp Position base = m_frame.selection().base().downstream(); selection 329 Source/core/editing/InputMethodController.cpp if (!baseNode || baseNode != m_frame.selection().extent().anchorNode()) selection 366 Source/core/editing/InputMethodController.cpp RefPtrWillBeRawPtr<Range> range = m_frame.selection().selection().firstRange(); selection 369 Source/core/editing/InputMethodController.cpp Node* editable = m_frame.selection().rootEditableElementOrTreeScopeRootNode(); selection 378 Source/core/editing/InputMethodController.cpp Element* rootEditableElement = m_frame.selection().rootEditableElement(); selection 386 Source/core/editing/InputMethodController.cpp return m_frame.selection().setSelectedRange(range.get(), VP_DEFAULT_AFFINITY, FrameSelection::CloseTyping); selection 68 Source/core/editing/InsertLineBreakCommand.cpp VisibleSelection selection = endingSelection(); selection 69 Source/core/editing/InsertLineBreakCommand.cpp if (!selection.isNonOrphanedCaretOrRange()) selection 72 Source/core/editing/InsertLineBreakCommand.cpp VisiblePosition caret(selection.visibleStart()); selection 144 Source/core/editing/InsertLineBreakCommand.cpp RefPtr<EditingStyle> typingStyle = document().frame()->selection().typingStyle(); selection 82 Source/core/editing/InsertListCommand.cpp bool InsertListCommand::selectionHasListOfType(const VisibleSelection& selection, const QualifiedName& listTag) selection 84 Source/core/editing/InsertListCommand.cpp VisiblePosition start = selection.visibleStart(); selection 89 Source/core/editing/InsertListCommand.cpp VisiblePosition end = startOfParagraph(selection.visibleEnd()); selection 131 Source/core/editing/InsertListCommand.cpp VisibleSelection selection = selectionForParagraphIteration(endingSelection()); selection 132 Source/core/editing/InsertListCommand.cpp ASSERT(selection.isRange()); selection 133 Source/core/editing/InsertListCommand.cpp VisiblePosition startOfSelection = selection.visibleStart(); selection 134 Source/core/editing/InsertListCommand.cpp VisiblePosition endOfSelection = selection.visibleEnd(); selection 140 Source/core/editing/InsertListCommand.cpp bool forceCreateList = !selectionHasListOfType(selection, listTag); selection 53 Source/core/editing/InsertListCommand.h bool selectionHasListOfType(const VisibleSelection& selection, const QualifiedName&); selection 141 Source/core/editing/InsertTextCommand.cpp if (EditingStyle* typingStyle = document().frame()->selection().typingStyle()) selection 219 Source/core/editing/InsertTextCommand.cpp if (RefPtr<EditingStyle> typingStyle = document().frame()->selection().typingStyle()) { selection 84 Source/core/editing/RemoveFormatCommand.cpp if (!frame->selection().selection().isNonOrphanedCaretOrRange()) selection 89 Source/core/editing/RemoveFormatCommand.cpp Node* root = frame->selection().rootEditableElement(); selection 134 Source/core/editing/ReplaceSelectionCommand.cpp ReplacementFragment::ReplacementFragment(Document* document, DocumentFragment* fragment, const VisibleSelection& selection) selection 147 Source/core/editing/ReplaceSelectionCommand.cpp RefPtr<Element> editableRoot = selection.rootEditableElement(); selection 181 Source/core/editing/ReplaceSelectionCommand.cpp m_fragment = createFragmentFromText(selection.toNormalizedRange().get(), evt->text()); selection 884 Source/core/editing/ReplaceSelectionCommand.cpp VisibleSelection selection = endingSelection(); selection 885 Source/core/editing/ReplaceSelectionCommand.cpp ASSERT(selection.isCaretOrRange()); selection 886 Source/core/editing/ReplaceSelectionCommand.cpp ASSERT(selection.start().deprecatedNode()); selection 887 Source/core/editing/ReplaceSelectionCommand.cpp if (!selection.isNonOrphanedCaretOrRange() || !selection.start().deprecatedNode()) selection 890 Source/core/editing/ReplaceSelectionCommand.cpp if (!selection.rootEditableElement()) selection 893 Source/core/editing/ReplaceSelectionCommand.cpp ReplacementFragment fragment(&document(), m_documentFragment.get(), selection); selection 898 Source/core/editing/ReplaceSelectionCommand.cpp if ((selection.start().deprecatedNode()->renderer() && selection.start().deprecatedNode()->renderer()->style()->userModify() == READ_WRITE_PLAINTEXT_ONLY) selection 899 Source/core/editing/ReplaceSelectionCommand.cpp && (selection.end().deprecatedNode()->renderer() && selection.end().deprecatedNode()->renderer()->style()->userModify() == READ_WRITE_PLAINTEXT_ONLY)) selection 903 Source/core/editing/ReplaceSelectionCommand.cpp m_insertionStyle = EditingStyle::create(selection.start()); selection 907 Source/core/editing/ReplaceSelectionCommand.cpp VisiblePosition visibleStart = selection.visibleStart(); selection 908 Source/core/editing/ReplaceSelectionCommand.cpp VisiblePosition visibleEnd = selection.visibleEnd(); selection 915 Source/core/editing/ReplaceSelectionCommand.cpp Position insertionPos = selection.start(); selection 917 Source/core/editing/ReplaceSelectionCommand.cpp bool selectionIsPlainText = !selection.isContentRichlyEditable(); selection 918 Source/core/editing/ReplaceSelectionCommand.cpp Element* currentRoot = selection.rootEditableElement(); selection 924 Source/core/editing/ReplaceSelectionCommand.cpp if (selection.isRange()) { selection 945 Source/core/editing/ReplaceSelectionCommand.cpp ASSERT(selection.isCaret()); selection 1014 Source/core/editing/ReplaceSelectionCommand.cpp frame->selection().clearTypingStyle(); selection 55 Source/core/editing/SpellChecker.cpp bool isSelectionInTextField(const VisibleSelection& selection) selection 57 Source/core/editing/SpellChecker.cpp HTMLTextFormControlElement* textControl = enclosingTextFormControl(selection.start()); selection 136 Source/core/editing/SpellChecker.cpp VisibleSelection selection = VisibleSelection::selectionFromContentsOfNode(element); selection 137 Source/core/editing/SpellChecker.cpp markMisspellingsAndBadGrammar(selection); selection 146 Source/core/editing/SpellChecker.cpp if (RefPtrWillBeRawPtr<Range> selectedRange = m_frame.selection().toNormalizedRange()) selection 157 Source/core/editing/SpellChecker.cpp VisibleSelection selection(m_frame.selection().selection()); selection 161 Source/core/editing/SpellChecker.cpp if (selection.start().deprecatedNode()) { selection 164 Source/core/editing/SpellChecker.cpp VisiblePosition start(selection.visibleStart()); selection 169 Source/core/editing/SpellChecker.cpp setStart(spellingSearchRange.get(), selection.visibleEnd()); selection 290 Source/core/editing/SpellChecker.cpp m_frame.selection().setSelection(VisibleSelection(badGrammarRange.get(), SEL_DEFAULT_AFFINITY)); selection 291 Source/core/editing/SpellChecker.cpp m_frame.selection().revealSelection(); selection 299 Source/core/editing/SpellChecker.cpp m_frame.selection().setSelection(VisibleSelection(misspellingRange.get(), DOWNSTREAM)); selection 300 Source/core/editing/SpellChecker.cpp m_frame.selection().revealSelection(); selection 372 Source/core/editing/SpellChecker.cpp if (newSelection != m_frame.selection().selection()) { selection 373 Source/core/editing/SpellChecker.cpp m_frame.selection().setSelection(newSelection); selection 379 Source/core/editing/SpellChecker.cpp m_frame.selection().moveTo(m_frame.selection().selection().visibleEnd()); selection 380 Source/core/editing/SpellChecker.cpp m_frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, CharacterGranularity); selection 390 Source/core/editing/SpellChecker.cpp void SpellChecker::markMisspellingsOrBadGrammar(const VisibleSelection& selection, bool checkSpelling, RefPtrWillBeRawPtr<Range>& firstMisspellingRange) selection 400 Source/core/editing/SpellChecker.cpp RefPtrWillBeRawPtr<Range> searchRange(selection.toNormalizedRange()); selection 431 Source/core/editing/SpellChecker.cpp return isSpellCheckingEnabledFor(m_frame.selection().start().deprecatedNode()); selection 434 Source/core/editing/SpellChecker.cpp void SpellChecker::markMisspellings(const VisibleSelection& selection, RefPtrWillBeRawPtr<Range>& firstMisspellingRange) selection 436 Source/core/editing/SpellChecker.cpp markMisspellingsOrBadGrammar(selection, true, firstMisspellingRange); selection 439 Source/core/editing/SpellChecker.cpp void SpellChecker::markBadGrammar(const VisibleSelection& selection) selection 442 Source/core/editing/SpellChecker.cpp markMisspellingsOrBadGrammar(selection, false, firstMisspellingRange); selection 545 Source/core/editing/SpellChecker.cpp if (m_frame.selection().isCaret()) { selection 547 Source/core/editing/SpellChecker.cpp Position caretPosition = m_frame.selection().end(); selection 596 Source/core/editing/SpellChecker.cpp m_frame.selection().moveTo(selectionRange->endPosition(), DOWNSTREAM); selection 598 Source/core/editing/SpellChecker.cpp m_frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, CharacterGranularity); selection 601 Source/core/editing/SpellChecker.cpp m_frame.selection().moveTo(m_frame.selection().selection().visibleEnd()); selection 602 Source/core/editing/SpellChecker.cpp m_frame.selection().modify(FrameSelection::AlterationMove, DirectionForward, CharacterGranularity); selection 642 Source/core/editing/SpellChecker.cpp VisiblePosition startOfSelection = m_frame.selection().selection().visibleStart(); selection 643 Source/core/editing/SpellChecker.cpp VisiblePosition endOfSelection = m_frame.selection().selection().visibleEnd(); selection 721 Source/core/editing/SpellChecker.cpp if (m_frame.selection().selection().isContentEditable() || caretBrowsing) { selection 722 Source/core/editing/SpellChecker.cpp VisiblePosition newStart(m_frame.selection().selection().visibleStart()); selection 761 Source/core/editing/SpellChecker.cpp if (!m_frame.selection().selection().isContentEditable()) selection 764 Source/core/editing/SpellChecker.cpp if (isSelectionInTextField(m_frame.selection().selection())) { selection 770 Source/core/editing/SpellChecker.cpp spellCheckOldSelection(m_frame.selection().selection(), empty, empty); selection 807 Source/core/editing/SpellChecker.cpp Node* node = findFirstMarkable(m_frame.selection().start().deprecatedNode()); selection 53 Source/core/editing/TextInsertionBaseCommand.cpp frame->selection().setSelection(endingSelection); selection 74 Source/core/editing/TextInsertionBaseCommand.cpp bool canAppendNewLineFeedToSelection(const VisibleSelection& selection) selection 76 Source/core/editing/TextInsertionBaseCommand.cpp Node* node = selection.rootEditableElement(); selection 100 Source/core/editing/TypingCommand.cpp if (!frame->selection().isRange()) selection 150 Source/core/editing/TypingCommand.cpp VisibleSelection currentSelection = frame->selection().selection(); selection 166 Source/core/editing/TypingCommand.cpp insertText(document, text, frame->selection().selection(), options, composition); selection 175 Source/core/editing/TypingCommand.cpp VisibleSelection currentSelection = frame->selection().selection(); selection 428 Source/core/editing/TypingCommand.cpp FrameSelection selection; selection 429 Source/core/editing/TypingCommand.cpp selection.setSelection(endingSelection()); selection 430 Source/core/editing/TypingCommand.cpp selection.modify(FrameSelection::AlterationExtend, DirectionBackward, granularity); selection 431 Source/core/editing/TypingCommand.cpp if (killRing && selection.isCaret() && granularity != CharacterGranularity) selection 432 Source/core/editing/TypingCommand.cpp selection.modify(FrameSelection::AlterationExtend, DirectionBackward, CharacterGranularity); selection 459 Source/core/editing/TypingCommand.cpp selection.modify(FrameSelection::AlterationExtend, DirectionBackward, granularity); selection 467 Source/core/editing/TypingCommand.cpp selectionToDelete = selection.selection(); selection 530 Source/core/editing/TypingCommand.cpp FrameSelection selection; selection 531 Source/core/editing/TypingCommand.cpp selection.setSelection(endingSelection()); selection 532 Source/core/editing/TypingCommand.cpp selection.modify(FrameSelection::AlterationExtend, DirectionForward, granularity); selection 533 Source/core/editing/TypingCommand.cpp if (killRing && selection.isCaret() && granularity != CharacterGranularity) selection 534 Source/core/editing/TypingCommand.cpp selection.modify(FrameSelection::AlterationExtend, DirectionForward, CharacterGranularity); selection 551 Source/core/editing/TypingCommand.cpp if (granularity == ParagraphBoundary && selection.selection().isCaret() && isEndOfParagraph(selection.selection().visibleEnd())) selection 552 Source/core/editing/TypingCommand.cpp selection.modify(FrameSelection::AlterationExtend, DirectionForward, CharacterGranularity); selection 554 Source/core/editing/TypingCommand.cpp selectionToDelete = selection.selection(); selection 1096 Source/core/editing/htmlediting.cpp Position adjustedSelectionStartForStyleComputation(const VisibleSelection& selection) selection 1103 Source/core/editing/htmlediting.cpp VisiblePosition visiblePosition(selection.start()); selection 1109 Source/core/editing/htmlediting.cpp if (selection.isCaret()) selection 409 Source/core/frame/DOMWindow.cpp m_frame->selection().updateSecureKeyboardEntryIfActive(); selection 2095 Source/core/frame/FrameView.cpp m_frame->selection().setCaretRectNeedsUpdate(); selection 2100 Source/core/frame/FrameView.cpp m_frame->selection().updateAppearance(); selection 271 Source/core/frame/LocalFrame.cpp return selection().selectedText(); selection 276 Source/core/frame/LocalFrame.cpp return selection().selectedTextForClipboard(); selection 569 Source/core/frame/LocalFrame.cpp if (!selection().isRange()) selection 576 Source/core/frame/LocalFrame.cpp IntRect paintingRect = enclosingIntRect(selection().bounds()); selection 84 Source/core/frame/LocalFrame.h FrameSelection& selection() const; selection 192 Source/core/frame/LocalFrame.h inline FrameSelection& LocalFrame::selection() const selection 215 Source/core/html/HTMLAnchorElement.cpp setRootEditableElementForSelectionOnMouseDown(document().frame()->selection().rootEditableElement()); selection 248 Source/core/html/HTMLAnchorElement.cpp if (down && document().frame() && document().frame()->selection().rootEditableElement() == rootEditableElement()) selection 347 Source/core/html/HTMLInputElement.cpp document().frame()->selection().revealSelection(); selection 252 Source/core/html/HTMLTextAreaElement.cpp document().frame()->selection().revealSelection(); selection 306 Source/core/html/HTMLTextAreaElement.cpp unsigned selectionLength = focused() ? computeLengthForSubmission(plainText(document().frame()->selection().selection().toNormalizedRange().get())) : 0; selection 308 Source/core/html/HTMLTextFormControlElement.cpp frame->selection().setSelection(newSelection); selection 351 Source/core/html/HTMLTextFormControlElement.cpp return indexForVisiblePosition(VisiblePosition(frame->selection().start())); selection 370 Source/core/html/HTMLTextFormControlElement.cpp return indexForVisiblePosition(VisiblePosition(frame->selection().end())); selection 409 Source/core/html/HTMLTextFormControlElement.cpp const VisibleSelection& selection = frame->selection().selection(); selection 410 Source/core/html/HTMLTextFormControlElement.cpp return selection.isDirectional() ? (selection.isBaseFirst() ? SelectionHasForwardDirection : SelectionHasBackwardDirection) : SelectionHasNoDirection; selection 479 Source/core/html/HTMLTextFormControlElement.cpp if (frame->selection().isRange() && userTriggered) selection 72 Source/core/html/HTMLTextFormControlElement.h PassRefPtrWillBeRawPtr<Range> selection() const; selection 430 Source/core/html/forms/TextFieldInputType.cpp unsigned selectionLength = element().focused() ? plainText(element().document().frame()->selection().selection().toNormalizedRange().get()).length() : 0; selection 260 Source/core/loader/FrameLoader.cpp m_frame->selection().prepareForDestruction(); selection 52 Source/core/page/DOMSelection.cpp Node* node = frame->selection().selection().base().anchorNode(); selection 77 Source/core/page/DOMSelection.cpp return m_frame->selection().selection(); selection 80 Source/core/page/DOMSelection.cpp static Position anchorPosition(const VisibleSelection& selection) selection 82 Source/core/page/DOMSelection.cpp Position anchor = selection.isBaseFirst() ? selection.start() : selection.end(); selection 86 Source/core/page/DOMSelection.cpp static Position focusPosition(const VisibleSelection& selection) selection 88 Source/core/page/DOMSelection.cpp Position focus = selection.isBaseFirst() ? selection.end() : selection.start(); selection 92 Source/core/page/DOMSelection.cpp static Position basePosition(const VisibleSelection& selection) selection 94 Source/core/page/DOMSelection.cpp return selection.base().parentAnchoredEquivalent(); selection 97 Source/core/page/DOMSelection.cpp static Position extentPosition(const VisibleSelection& selection) selection 99 Source/core/page/DOMSelection.cpp return selection.extent().parentAnchoredEquivalent(); selection 170 Source/core/page/DOMSelection.cpp return !m_frame->selection().isRange(); selection 178 Source/core/page/DOMSelection.cpp FrameSelection& selection = m_frame->selection(); selection 183 Source/core/page/DOMSelection.cpp if (selection.isNone()) selection 185 Source/core/page/DOMSelection.cpp if (selection.isCaret()) selection 194 Source/core/page/DOMSelection.cpp return m_frame->selection().isNone() ? 0 : 1; selection 211 Source/core/page/DOMSelection.cpp m_frame->selection().moveTo(VisiblePosition(createLegacyEditingPosition(node, offset), DOWNSTREAM)); selection 219 Source/core/page/DOMSelection.cpp const VisibleSelection& selection = m_frame->selection().selection(); selection 221 Source/core/page/DOMSelection.cpp if (selection.isNone()) { selection 226 Source/core/page/DOMSelection.cpp m_frame->selection().moveTo(VisiblePosition(selection.end(), DOWNSTREAM)); selection 234 Source/core/page/DOMSelection.cpp const VisibleSelection& selection = m_frame->selection().selection(); selection 236 Source/core/page/DOMSelection.cpp if (selection.isNone()) { selection 241 Source/core/page/DOMSelection.cpp m_frame->selection().moveTo(VisiblePosition(selection.start(), DOWNSTREAM)); selection 248 Source/core/page/DOMSelection.cpp m_frame->selection().clear(); selection 273 Source/core/page/DOMSelection.cpp m_frame->selection().moveTo(visibleBase, visibleExtent); selection 323 Source/core/page/DOMSelection.cpp m_frame->selection().modify(alter, direction, granularity); selection 349 Source/core/page/DOMSelection.cpp m_frame->selection().setExtent(VisiblePosition(createLegacyEditingPosition(node, offset), DOWNSTREAM)); selection 372 Source/core/page/DOMSelection.cpp return m_frame->selection().firstRange(); selection 379 Source/core/page/DOMSelection.cpp m_frame->selection().clear(); selection 398 Source/core/page/DOMSelection.cpp FrameSelection& selection = m_frame->selection(); selection 400 Source/core/page/DOMSelection.cpp if (selection.isNone()) { selection 401 Source/core/page/DOMSelection.cpp selection.setSelectedRange(newRange, VP_DEFAULT_AFFINITY); selection 405 Source/core/page/DOMSelection.cpp RefPtrWillBeRawPtr<Range> originalRange = selection.firstRange(); selection 430 Source/core/page/DOMSelection.cpp EAffinity affinity = selection.selection().affinity(); selection 431 Source/core/page/DOMSelection.cpp selection.setSelectedRange(merged.get(), affinity); selection 439 Source/core/page/DOMSelection.cpp FrameSelection& selection = m_frame->selection(); selection 441 Source/core/page/DOMSelection.cpp if (selection.isNone()) selection 445 Source/core/page/DOMSelection.cpp selection.modify(FrameSelection::AlterationExtend, DirectionBackward, CharacterGranularity); selection 447 Source/core/page/DOMSelection.cpp RefPtrWillBeRawPtr<Range> selectedRange = selection.selection().toNormalizedRange(); selection 461 Source/core/page/DOMSelection.cpp FrameSelection& selection = m_frame->selection(); selection 463 Source/core/page/DOMSelection.cpp if (!n || m_frame->document() != n->document() || selection.isNone()) selection 467 Source/core/page/DOMSelection.cpp RefPtrWillBeRawPtr<Range> selectedRange = selection.selection().toNormalizedRange(); selection 504 Source/core/page/DOMSelection.cpp return plainText(m_frame->selection().selection().toNormalizedRange().get()); selection 191 Source/core/page/DragController.cpp bool DragController::dragIsMove(FrameSelection& selection, DragData* dragData) selection 193 Source/core/page/DragController.cpp return m_documentUnderMouse == m_dragInitiator && selection.isContentEditable() && selection.isRange() && !isCopyKeyDown(dragData); selection 382 Source/core/page/DragController.cpp dragSession.operation = dragIsMove(innerFrame->selection(), dragData) ? DragOperationMove : DragOperationCopy; selection 429 Source/core/page/DragController.cpp frame->selection().setSelection(dragCaret); selection 430 Source/core/page/DragController.cpp if (frame->selection().isNone()) { selection 432 Source/core/page/DragController.cpp frame->selection().setSelection(dragCaret); selection 435 Source/core/page/DragController.cpp return !frame->selection().isNone() && frame->selection().isContentEditable(); selection 487 Source/core/page/DragController.cpp RefPtr<Element> rootEditableElement = innerFrame->selection().rootEditableElement(); selection 495 Source/core/page/DragController.cpp if (dragIsMove(innerFrame->selection(), dragData) || dragCaret.isContentRichlyEditable()) { selection 501 Source/core/page/DragController.cpp if (dragIsMove(innerFrame->selection(), dragData)) { selection 505 Source/core/page/DragController.cpp bool smartInsert = smartDelete && innerFrame->selection().granularity() == WordGranularity && dragData->canSmartReplace(); selection 623 Source/core/page/DragController.cpp if (src->selection().contains(dragOrigin)) { selection 719 Source/core/page/DragController.cpp source->selection().setSelection(VisibleSelection(range.get(), DOWNSTREAM)); selection 747 Source/core/page/DragController.cpp if (enclosingTextFormControl(src->selection().start())) { selection 750 Source/core/page/DragController.cpp RefPtrWillBeRawPtr<Range> selectionRange = src->selection().toNormalizedRange(); selection 784 Source/core/page/DragController.cpp IntRect draggingRect = enclosingIntRect(sourceFrame->selection().bounds()); selection 900 Source/core/page/DragController.cpp if (src->selection().isCaret() && src->selection().isContentEditable()) { selection 904 Source/core/page/DragController.cpp if (Node* node = enclosingAnchorElement(src->selection().base())) selection 905 Source/core/page/DragController.cpp src->selection().setSelection(VisibleSelection::selectionFromContentsOfNode(node)); selection 378 Source/core/page/EventHandler.cpp static void setSelectionIfNeeded(FrameSelection& selection, const VisibleSelection& newSelection) selection 380 Source/core/page/EventHandler.cpp if (selection.selection() != newSelection) selection 381 Source/core/page/EventHandler.cpp selection.setSelection(newSelection); selection 392 Source/core/page/EventHandler.cpp static VisibleSelection expandSelectionToRespectUserSelectAll(Node* targetNode, const VisibleSelection& selection) selection 396 Source/core/page/EventHandler.cpp return selection; selection 398 Source/core/page/EventHandler.cpp VisibleSelection newSelection(selection); selection 405 Source/core/page/EventHandler.cpp bool EventHandler::updateSelectionForMouseDownDispatchingSelectStart(Node* targetNode, const VisibleSelection& selection, TextGranularity granularity) selection 413 Source/core/page/EventHandler.cpp if (selection.isRange()) selection 420 Source/core/page/EventHandler.cpp m_frame->selection().setNonDirectionalSelectionIfNeeded(selection, granularity); selection 510 Source/core/page/EventHandler.cpp if (m_frame->selection().isRange()) { selection 566 Source/core/page/EventHandler.cpp if (!extendSelection && m_frame->selection().contains(vPoint)) { selection 577 Source/core/page/EventHandler.cpp VisibleSelection newSelection = m_frame->selection().selection(); selection 605 Source/core/page/EventHandler.cpp if (m_frame->selection().granularity() != CharacterGranularity) { selection 606 Source/core/page/EventHandler.cpp granularity = m_frame->selection().granularity(); selection 607 Source/core/page/EventHandler.cpp newSelection.expandUsingGranularity(m_frame->selection().granularity()); selection 764 Source/core/page/EventHandler.cpp VisiblePosition targetPosition = m_frame->selection().selection().visiblePositionRespectingEditingBoundary(hitTestResult.localPoint(), target); selection 771 Source/core/page/EventHandler.cpp VisibleSelection newSelection = m_frame->selection().selection(); selection 812 Source/core/page/EventHandler.cpp if (m_frame->selection().granularity() != CharacterGranularity) selection 813 Source/core/page/EventHandler.cpp newSelection.expandUsingGranularity(m_frame->selection().granularity()); selection 815 Source/core/page/EventHandler.cpp m_frame->selection().setNonDirectionalSelectionIfNeeded(newSelection, m_frame->selection().granularity(), selection 842 Source/core/page/EventHandler.cpp && m_frame->selection().isRange() selection 852 Source/core/page/EventHandler.cpp setSelectionIfNeeded(m_frame->selection(), newSelection); selection 857 Source/core/page/EventHandler.cpp m_frame->selection().notifyRendererOfSelectionChange(UserTriggered); selection 859 Source/core/page/EventHandler.cpp m_frame->selection().selectFrameElementInParentIfFullySelected(); selection 1040 Source/core/page/EventHandler.cpp return frame->selection().rootEditableElement() != node->rootEditableElement(); selection 1278 Source/core/page/EventHandler.cpp && m_frame->selection().isCaretOrRange() selection 1384 Source/core/page/EventHandler.cpp m_frame->selection().setCaretBlinkingSuspended(true); selection 1634 Source/core/page/EventHandler.cpp m_frame->selection().setCaretBlinkingSuspended(false); selection 2082 Source/core/page/EventHandler.cpp && m_frame->selection().isRange() selection 2083 Source/core/page/EventHandler.cpp && m_frame->selection().toNormalizedRange()->compareNode(element, IGNORE_EXCEPTION) == Range::NODE_INSIDE selection 2482 Source/core/page/EventHandler.cpp if (m_frame->selection().isRange()) { selection 2792 Source/core/page/EventHandler.cpp if (!m_frame->selection().contains(viewportPos) selection 2797 Source/core/page/EventHandler.cpp && (m_frame->selection().isContentEditable() || (mev.targetNode() && mev.targetNode()->isTextNode()))) { selection 2834 Source/core/page/EventHandler.cpp FrameSelection& selection = m_frame->selection(); selection 2835 Source/core/page/EventHandler.cpp Position start = selection.selection().start(); selection 2838 Source/core/page/EventHandler.cpp if (start.deprecatedNode() && (selection.rootEditableElement() || selection.isRange())) { selection 2839 Source/core/page/EventHandler.cpp RefPtrWillBeRawPtr<Range> selectionRange = selection.toNormalizedRange(); selection 3374 Source/core/page/EventHandler.cpp && !m_frame->selection().isInPasswordField(); selection 3981 Source/core/page/EventHandler.cpp if (m_frame->selection().contains(p)) { selection 3985 Source/core/page/EventHandler.cpp m_frame->selection().setSelection(newSelection); selection 251 Source/core/page/FocusController.cpp oldFrame->selection().setFocused(false); selection 256 Source/core/page/FocusController.cpp newFrame->selection().setFocused(true); selection 288 Source/core/page/FocusController.cpp toLocalFrame(m_focusedFrame.get())->selection().setFocused(focused); selection 357 Source/core/page/FocusController.cpp currentNode = frame->selection().start().deprecatedNode(); selection 418 Source/core/page/FocusController.cpp frame->selection().setSelection(newSelection); selection 605 Source/core/page/FocusController.cpp FrameSelection& selection = oldFocusedFrame->selection(); selection 606 Source/core/page/FocusController.cpp if (selection.isNone()) selection 613 Source/core/page/FocusController.cpp Node* selectionStartNode = selection.selection().start().deprecatedNode(); selection 620 Source/core/page/FocusController.cpp Node* root = selection.rootEditableElement(); selection 631 Source/core/page/FocusController.cpp selection.clear(); selection 690 Source/core/page/FocusController.cpp toLocalFrame(focusedOrMainFrame())->selection().pageActivationChanged(); selection 198 Source/core/rendering/HitTestResult.cpp return frame->selection().contains(m_hitTestLocation.point()); selection 1984 Source/core/rendering/RenderBlock.cpp caretPainter = frame()->selection().caretRenderer(); selection 1985 Source/core/rendering/RenderBlock.cpp isContentEditable = frame()->selection().rendererIsEditable(); selection 1999 Source/core/rendering/RenderBlock.cpp frame()->selection().paintCaret(paintInfo.context, paintOffset, paintInfo.rect); selection 404 Source/core/rendering/RenderImage.cpp if (document.printing() || !document.frame()->selection().isFocusedAndActive()) selection 380 Source/core/rendering/RenderLayerScrollableArea.cpp frame->selection().setCaretRectNeedsUpdate(); selection 430 Source/core/rendering/RenderListBox.cpp if (frame()->selection().isFocusedAndActive() && document().focusedElement() == node()) selection 464 Source/core/rendering/RenderListBox.cpp if (frame()->selection().isFocusedAndActive() && document().focusedElement() == node()) selection 1782 Source/core/rendering/RenderObject.cpp return frame()->selection().isFocusedAndActive() ? selection 1798 Source/core/rendering/RenderObject.cpp return frame()->selection().isFocusedAndActive() ? selection 274 Source/core/rendering/RenderTextControlSingleLine.cpp shouldDrawCapsLockIndicator = inputElement()->isPasswordField() && frame->selection().isFocusedAndActive() && document().focusedElement() == node() && PlatformKeyboardEvent::currentCapsLockState(); selection 742 Source/core/rendering/RenderTheme.cpp return node == document.focusedElement() && node->shouldHaveFocusAppearance() && frame && frame->selection().isFocusedAndActive(); selection 678 Source/core/rendering/RenderTreeAsText.cpp VisibleSelection selection = frame->selection().selection(); selection 679 Source/core/rendering/RenderTreeAsText.cpp if (selection.isCaret()) { selection 680 Source/core/rendering/RenderTreeAsText.cpp ts << "caret: position " << selection.start().deprecatedEditingOffset() << " of " << nodePosition(selection.start().deprecatedNode()); selection 681 Source/core/rendering/RenderTreeAsText.cpp if (selection.affinity() == UPSTREAM) selection 684 Source/core/rendering/RenderTreeAsText.cpp } else if (selection.isRange()) selection 685 Source/core/rendering/RenderTreeAsText.cpp ts << "selection start: position " << selection.start().deprecatedEditingOffset() << " of " << nodePosition(selection.start().deprecatedNode()) << "\n" selection 686 Source/core/rendering/RenderTreeAsText.cpp << "selection end: position " << selection.end().deprecatedEditingOffset() << " of " << nodePosition(selection.end().deprecatedNode()) << "\n"; selection 432 Source/core/svg/SVGSVGElement.cpp frame->selection().clear(); selection 197 Source/core/svg/SVGTextContentElement.cpp document().frame()->selection().setSelection(VisibleSelection(start, end)); selection 787 Source/core/testing/Internals.cpp return ClientRect::create(document->frame()->selection().absoluteCaretBounds()); selection 2278 Source/core/testing/Internals.cpp return ClientRect::create(document->frame()->selection().bounds()); selection 141 Source/web/ContextMenuClientImpl.cpp selectedFrame->selection().setSelection(VisibleSelection(pos)); selection 144 Source/web/ContextMenuClientImpl.cpp selectedFrame->selection().setSelection(VisibleSelection(pos)); selection 156 Source/web/ContextMenuClientImpl.cpp VisibleSelection selection = selectedFrame->selection().selection(); selection 157 Source/web/ContextMenuClientImpl.cpp if (!selection.isCaretOrRange()) selection 161 Source/web/ContextMenuClientImpl.cpp RefPtrWillBeRawPtr<Range> selectionRange = selection.toNormalizedRange(); selection 343 Source/web/ContextMenuClientImpl.cpp HTMLFormElement* form = selectedFrame->selection().currentForm(); selection 107 Source/web/SpellCheckerClientImpl.cpp VisibleSelection frameSelection = frame->selection().selection(); selection 113 Source/web/TextFinder.cpp VisibleSelection selection(m_ownerFrame.frame()->selection().selection()); selection 114 Source/web/TextFinder.cpp bool activeSelection = !selection.isNone(); selection 116 Source/web/TextFinder.cpp m_activeMatch = selection.firstRange().get(); selection 117 Source/web/TextFinder.cpp m_ownerFrame.frame()->selection().clear(); selection 575 Source/web/TextFinder.cpp m_ownerFrame.frame()->selection().clear(); selection 1086 Source/web/WebFrameImpl.cpp Element* editable = frame()->selection().rootEditableElementOrDocumentElement(); selection 1107 Source/web/WebFrameImpl.cpp Element* editable = frame()->selection().rootEditableElementOrDocumentElement(); selection 1214 Source/web/WebFrameImpl.cpp RefPtrWillBeRawPtr<Range> caretRange = frame()->selection().toNormalizedRange(); selection 1223 Source/web/WebFrameImpl.cpp frame()->selection().setSelection(VisibleSelection(markerRange.get()), CharacterGranularity); selection 1239 Source/web/WebFrameImpl.cpp return frame()->selection().start() != frame()->selection().end(); selection 1244 Source/web/WebFrameImpl.cpp return frame()->selection().toNormalizedRange(); selection 1253 Source/web/WebFrameImpl.cpp RefPtrWillBeRawPtr<Range> range = frame()->selection().toNormalizedRange(); selection 1271 Source/web/WebFrameImpl.cpp RefPtrWillBeRawPtr<Range> range = frame()->selection().toNormalizedRange(); selection 1280 Source/web/WebFrameImpl.cpp VisibleSelection selection(position); selection 1281 Source/web/WebFrameImpl.cpp selection.expandUsingGranularity(WordGranularity); selection 1283 Source/web/WebFrameImpl.cpp TextGranularity granularity = selection.isRange() ? WordGranularity : CharacterGranularity; selection 1284 Source/web/WebFrameImpl.cpp frame->selection().setSelection(selection, granularity); selection 1289 Source/web/WebFrameImpl.cpp FrameSelection& selection = frame()->selection(); selection 1290 Source/web/WebFrameImpl.cpp ASSERT(!selection.isNone()); selection 1291 Source/web/WebFrameImpl.cpp if (selection.isNone() || selection.isRange()) selection 1293 Source/web/WebFrameImpl.cpp selectWordAroundPosition(frame(), selection.selection().visibleStart()); selection 1305 Source/web/WebFrameImpl.cpp frame()->selection().setSelectedRange(range.get(), WebCore::VP_DEFAULT_AFFINITY, false); selection 1313 Source/web/WebFrameImpl.cpp frame()->selection().setSelection(newSelection, CharacterGranularity); selection 1318 Source/web/WebFrameImpl.cpp Element* editable = frame()->selection().rootEditableElement(); selection 1323 Source/web/WebFrameImpl.cpp frame()->selection().moveTo(position, UserTriggered); selection 1358 Source/web/WebFrameImpl.cpp frame()->selection().setCaretVisible(visible); selection 1371 Source/web/WebFrameImpl.cpp return frame()->selection().selection().visiblePositionRespectingEditingBoundary(result.localPoint(), node); selection 1610 Source/web/WebFrameImpl.cpp return hasSelection() ? WebRect(IntRect(frame()->selection().bounds(false))) : WebRect(); selection 1812 Source/web/WebFrameImpl.cpp VisibleSelection selection(frame()->selection().selection()); selection 1813 Source/web/WebFrameImpl.cpp if (!selection.isNone()) selection 1832 Source/web/WebFrameImpl.cpp frame()->selection().setSelection(VisibleSelection(activeMatch)); selection 1857 Source/web/WebFrameImpl.cpp frame()->selection().setSelection(VisibleSelection(activeMatch)); selection 114 Source/web/WebRange.cpp Element* selectionRoot = webFrame->selection().rootEditableElement(); selection 861 Source/web/WebViewImpl.cpp Element* root = toLocalFrame(frame)->selection().rootEditableElementOrDocumentElement(); selection 1879 Source/web/WebViewImpl.cpp if (element && localFrame->selection().selection().isNone()) { selection 1891 Source/web/WebViewImpl.cpp localFrame->selection().setSelection(VisibleSelection(position, SEL_DEFAULT_AFFINITY)); selection 2016 Source/web/WebViewImpl.cpp Element* editable = focused->selection().rootEditableElementOrDocumentElement(); selection 2034 Source/web/WebViewImpl.cpp FrameSelection& selection = focused->selection(); selection 2035 Source/web/WebViewImpl.cpp Node* node = selection.selection().rootEditableElement(); selection 2053 Source/web/WebViewImpl.cpp if (RefPtrWillBeRawPtr<Range> range = selection.selection().firstRange()) { selection 2159 Source/web/WebViewImpl.cpp FrameSelection& selection = frame->selection(); selection 2161 Source/web/WebViewImpl.cpp if (selection.isCaret()) { selection 2162 Source/web/WebViewImpl.cpp anchor = focus = selection.absoluteCaretBounds(); selection 2164 Source/web/WebViewImpl.cpp RefPtrWillBeRawPtr<Range> selectedRange = selection.toNormalizedRange(); selection 2190 Source/web/WebViewImpl.cpp if (!selection.selection().isBaseFirst()) selection 2242 Source/web/WebViewImpl.cpp FrameSelection& selection = frame->selection(); selection 2243 Source/web/WebViewImpl.cpp if (!selection.toNormalizedRange()) selection 2245 Source/web/WebViewImpl.cpp start = selection.start().primaryDirection() == RTL ? WebTextDirectionRightToLeft : WebTextDirectionLeftToRight; selection 2246 Source/web/WebViewImpl.cpp end = selection.end().primaryDirection() == RTL ? WebTextDirectionRightToLeft : WebTextDirectionLeftToRight; selection 2253 Source/web/WebViewImpl.cpp return frame->selection().selection().isBaseFirst(); selection 2432 Source/web/WebViewImpl.cpp toLocalFrame(focusedFrame)->selection().setFocused(false); selection 2476 Source/web/WebViewImpl.cpp localFrame->selection().clear(); selection 3748 Source/web/tests/WebFrameTest.cpp WebCore::RenderObject* renderer = mainFrame->frame()->selection().rootEditableElement()->renderer(); selection 3755 Source/web/tests/WebFrameTest.cpp renderer = mainFrame->frame()->selection().rootEditableElement()->renderer(); selection 4223 Source/web/tests/WebFrameTest.cpp RefPtrWillBeRawPtr<Range> selectionRange = frame->frame()->selection().toNormalizedRange(); selection 4256 Source/web/tests/WebFrameTest.cpp RefPtrWillBeRawPtr<Range> selectionRange = frame->frame()->selection().toNormalizedRange(); selection 368 public/web/WebFrameClient.h int identifier, int activeMatchOrdinal, const WebRect& selection) { }