Lines Matching refs:selection
132 bool DragController::dragIsMove(SelectionController* selection)
134 return m_documentUnderMouse == m_dragInitiator && selection->isContentEditable() && !isCopyKeyDown();
137 // FIXME: This method is poorly named. We're just clearing the selection from the document this drag is exiting.
214 // If we were over another document clear the selection
320 operation = dragIsMove(innerFrame->selection()) ? DragOperationMove : DragOperationCopy;
345 frame->selection()->setSelection(dragCaret);
346 if (frame->selection()->isNone()) {
348 frame->selection()->setSelection(dragCaret);
351 return !frame->selection()->isNone() && frame->selection()->isContentEditable();
373 RefPtr<Range> innerRange = innerFrame->selection()->toNormalizedRange();
412 VisibleSelection dragCaret(m_page->dragCaretController()->selection());
422 if (dragIsMove(innerFrame->selection()) || dragCaret.isContentRichlyEditable()) {
431 if (dragIsMove(innerFrame->selection())) {
575 src->selection()->setSelection(VisibleSelection(range.get(), DOWNSTREAM));
681 if (src->selection()->isCaret() && src->selection()->isContentEditable()) {
683 // selected. In this case, we should expand the selection to
685 Position pos = src->selection()->base();
688 src->selection()->setSelection(VisibleSelection::selectionFromContentsOfNode(node));
701 if (isNodeInTextFormControl(src->selection()->start().node()))
704 RefPtr<Range> selectionRange = src->selection()->toNormalizedRange();