Home | History | Annotate | Download | only in editing

Lines Matching refs:m_selection

105         m_selection.setIsDirectional(true);
119 Element* selectionRoot = m_selection.rootEditableElement();
125 Element* selectionRoot = m_selection.rootEditableElement();
129 Node* node = m_selection.base().containerNode();
136 setSelection(VisibleSelection(pos.deepEquivalent(), pos.deepEquivalent(), pos.affinity(), m_selection.isDirectional()), options, align);
149 setSelection(VisibleSelection(pos, affinity, m_selection.isDirectional()), options);
207 if (m_selection.base() == newSelection.base())
213 if (m_selection == newSelection)
230 m_selection = s;
244 if (guard->hasOneRef() && !m_selection.isNonOrphanedCaretOrRange())
258 if (m_selection == s) {
265 VisibleSelection oldSelection = m_selection;
267 m_selection = s;
324 respondToNodeModification(node, removingNodeRemovesPosition(node, m_selection.base()), removingNodeRemovesPosition(node, m_selection.extent()),
325 removingNodeRemovesPosition(node, m_selection.start()), removingNodeRemovesPosition(node, m_selection.end()));
336 Position start = m_selection.start();
337 Position end = m_selection.end();
344 if (m_selection.isBaseFirst())
345 m_selection.setWithoutValidation(start, end);
347 m_selection.setWithoutValidation(end, start);
357 if (m_selection.isBaseFirst())
358 m_selection.setWithoutValidation(m_selection.start(), m_selection.end());
360 m_selection.setWithoutValidation(m_selection.end(), m_selection.start());
361 } else if (RefPtrWillBeRawPtr<Range> range = m_selection.firstRange()) {
374 m_selection.start().document()->renderView()->clearSelection();
409 Position base = updatePositionAfterAdoptingTextReplacement(m_selection.base(), node, offset, oldLength, newLength);
410 Position extent = updatePositionAfterAdoptingTextReplacement(m_selection.extent(), node, offset, oldLength, newLength);
411 Position start = updatePositionAfterAdoptingTextReplacement(m_selection.start(), node, offset, oldLength, newLength);
412 Position end = updatePositionAfterAdoptingTextReplacement(m_selection.end(), node, offset, oldLength, newLength);
437 Position base = updatePostionAfterAdoptingTextNodesMerged(m_selection.base(), oldNode, offset);
438 Position extent = updatePostionAfterAdoptingTextNodesMerged(m_selection.extent(), oldNode, offset);
439 Position start = updatePostionAfterAdoptingTextNodesMerged(m_selection.start(), oldNode, offset);
440 Position end = updatePostionAfterAdoptingTextNodesMerged(m_selection.end(), oldNode, offset);
461 Position base = updatePostionAfterAdoptingTextNodeSplit(m_selection.base(), oldNode);
462 Position extent = updatePostionAfterAdoptingTextNodeSplit(m_selection.extent(), oldNode);
463 Position start = updatePostionAfterAdoptingTextNodeSplit(m_selection.start(), oldNode);
464 Position end = updatePostionAfterAdoptingTextNodeSplit(m_selection.end(), oldNode);
470 if (base == m_selection.base() && extent == m_selection.extent() && start == m_selection.start() && end == m_selection.end())
479 return WebCore::directionOfEnclosingBlock(m_selection.extent());
489 VisiblePosition startPosition = m_selection.visibleStart();
490 VisiblePosition endPosition = m_selection.visibleEnd();
513 Position start = m_selection.start();
514 Position end = m_selection.end();
518 if (m_selection.isDirectional()) {
522 if (m_selection.isBaseFirst())
549 m_selection.setBase(start);
550 m_selection.setExtent(end);
552 m_selection.setBase(end);
553 m_selection.setExtent(start);
561 return isGetStart ? m_selection.visibleStart() : m_selection.visibleEnd();
567 return m_selection.isBaseFirst() ? m_selection.visibleEnd() : m_selection.visibleStart();
608 VisiblePosition pos(m_selection.extent(), m_selection.affinity());
650 VisiblePosition pos(m_selection.extent(), m_selection.affinity());
695 pos = VisiblePosition(m_selection.end(), m_selection.affinity());
697 pos = VisiblePosition(m_selection.start(), m_selection.affinity());
699 pos = VisiblePosition(m_selection.extent(), m_selection.affinity()).right(true);
703 pos = rightWordPosition(VisiblePosition(m_selection.extent(), m_selection.affinity()), skipsSpaceWhenMovingRight);
729 pos = VisiblePosition(m_selection.end(), m_selection.affinity());
731 pos = VisiblePosition(m_selection.extent(), m_selection.affinity()).next(CanSkipOverEditingBoundary);
734 pos = nextWordPositionForPlatform(VisiblePosition(m_selection.extent(), m_selection.affinity()));
737 pos = nextSentencePosition(VisiblePosition(m_selection.extent(), m_selection.affinity()));
772 VisiblePosition pos(m_selection.extent(), m_selection.affinity());
813 VisiblePosition pos(m_selection.extent(), m_selection.affinity());
863 pos = VisiblePosition(m_selection.start(), m_selection.affinity());
865 pos = VisiblePosition(m_selection.end(), m_selection.affinity());
867 pos = VisiblePosition(m_selection.extent(), m_selection.affinity()).left(true);
871 pos = leftWordPosition(VisiblePosition(m_selection.extent(), m_selection.affinity()), skipsSpaceWhenMovingRight);
896 pos = VisiblePosition(m_selection.start(), m_selection.affinity());
898 pos = VisiblePosition(m_selection.extent(), m_selection.affinity()).previous(CanSkipOverEditingBoundary);
901 pos = previousWordPosition(VisiblePosition(m_selection.extent(), m_selection.affinity()));
904 pos = previousSentencePosition(VisiblePosition(m_selection.extent(), m_selection.affinity()));
941 trialFrameSelection->setSelection(m_selection);
944 if (trialFrameSelection->selection().isRange() && m_selection.isCaret() && !dispatchSelectStart())
950 bool wasRange = m_selection.isRange();
951 VisiblePosition originalStartPosition = m_selection.visibleStart();
992 m_selection.setIsDirectional(shouldAlwaysUseDirectionalSelection(m_frame) || alter == AlterationExtend);
1000 if (!m_selection.isCaret()
1007 VisibleSelection newSelection = m_selection;
1009 if (m_selection.isBaseFirst() != newSelection.isBaseFirst())
1010 position = m_selection.visibleBase();
1015 if (!m_frame || !m_frame->editor().behavior().shouldAlwaysGrowSelectionWhenExtendingToBoundary() || m_selection.isCaret() || !isBoundary(granularity))
1055 trialFrameSelection->setSelection(m_selection);
1065 pos = VisiblePosition(direction == DirectionUp ? m_selection.start() : m_selection.end(), m_selection.affinity());
1067 m_selection.setAffinity(direction == DirectionUp ? UPSTREAM : DOWNSTREAM);
1070 pos = VisiblePosition(m_selection.extent(), m_selection.affinity());
1072 m_selection.setAffinity(DOWNSTREAM);
1121 m_selection.setIsDirectional(shouldAlwaysUseDirectionalSelection(m_frame) || alter == AlterationExtend);
1136 pos = m_selection.start();
1139 pos = m_selection.end();
1142 pos = m_selection.base();
1145 pos = m_selection.extent();
1154 VisiblePosition visiblePosition(pos, m_selection.affinity());
1187 if (m_selection.isBaseFirst())
1195 if (m_selection.isBaseFirst())
1204 setSelection(VisibleSelection(pos.deepEquivalent(), m_selection.extent(), pos.affinity(), selectionHasDirection), CloseTyping | ClearTypingStyle | userTriggered);
1210 setSelection(VisibleSelection(m_selection.base(), pos.deepEquivalent(), pos.affinity(), selectionHasDirection), CloseTyping | ClearTypingStyle | userTriggered);
1215 return CaretBase::caretRenderer(m_selection.start().deprecatedNode());
1226 if (!isNonOrphanedCaret(m_selection))
1228 else if (updateCaretRect(m_frame->document(), VisiblePosition(m_selection.start(), m_selection.affinity())))
1255 m_absCaretBounds = absoluteBoundsForLocalRect(m_selection.start().deprecatedNode(), localCaretRectWithoutUpdate());
1264 Node* node = m_selection.start().deprecatedNode();
1278 CaretBase::invalidateCaretRect(m_selection.start().deprecatedNode(), recomputeCaretRect());
1283 if (m_selection.isCaret() && m_caretPaint)
1284 CaretBase::paintCaret(m_selection.start().deprecatedNode(), context, paintOffset, clipRect);
1308 if (m_selection.visibleStart().isNull() || m_selection.visibleEnd().isNull())
1311 Position start(m_selection.visibleStart().deepEquivalent());
1312 Position end(m_selection.visibleEnd().deepEquivalent());
1384 root = highestEditableRoot(m_selection.start());
1385 if (Node* shadowRoot = m_selection.nonBoundaryShadowTreeRootNode())
1390 root = m_selection.nonBoundaryShadowTreeRootNode();
1434 return m_selection.firstRange();
1445 if (m_selection.start().isNotNull() && m_selection.end().isNotNull()) {
1447 cache->selectionChanged(m_selection.start().containerNode());
1527 if (m_shouldShowBlockCursor && m_selection.isCaret()) {
1561 // Construct a new VisibleSolution, since m_selection is not necessarily valid, and the following steps
1563 VisibleSelection selection(m_selection.visibleStart(), forwardPosition.isNotNull() ? forwardPosition : m_selection.visibleEnd());
1624 return focusedElement->containsIncludingShadowDOM(m_selection.start().anchorNode());
1816 Node* selectStartTarget = m_selection.extent().containerNode();
1837 m_selection.clearChangeObserver();
1866 m_selection.setChangeObserver(*this);
1873 m_selection.clearChangeObserver();
1882 m_selection.formatForDebugger(buffer, length);
1887 m_selection.showTreeForThis();
1894 visitor->trace(m_selection);