Lines Matching refs:selection
228 if (frame->selection()->isContentEditable()) {
232 … frame->selection()->setSelection(VisibleSelection(replacementRange.get(), SEL_DEFAULT_AFFINITY));
257 … frame->selection()->setSelection(VisibleSelection(replacementRange.get(), SEL_DEFAULT_AFFINITY));
299 RefPtr<Range> range = frame->selection()->toNormalizedRange();
314 …if (frame->selection()->isNone() || !frame->selection()->isContentEditable() || frame->selection()…
362 // concentrate on a given area containing the selection
365 // to use the root editable element of the selection start as the positional base.
367 Element* selectionRoot = frame->selection()->rootEditableElement();
412 static bool shouldUseSelection(const VisiblePosition& position, const VisibleSelection& selection)
414 RefPtr<Range> selectedRange = selection.toNormalizedRange();
439 …VisibleSelection selection = m_page->focusController()->focusedOrMainFrame()->selection()->selecti…
440 if (shouldUseSelection(position, selection)) {
441 performDictionaryLookupForSelection(DictionaryPopupInfo::HotKey, frame, selection);
471 …LookupForSelection(DictionaryPopupInfo::Type type, Frame* frame, const VisibleSelection& selection)
473 RefPtr<Range> selectedRange = selection.toNormalizedRange();
480 VisiblePosition selectionStart = selection.visibleStart();
481 VisiblePosition selectionEnd = selection.visibleEnd();
591 if (!frame || frame->selection()->isNone()) {
602 if (!frame || frame->selection()->isNone()) {