Home | History | Annotate | Download | only in page

Lines Matching refs:selection

46     Node* node = frame->selection()->selection().base().anchorNode();
73 return m_frame->selection()->selection();
76 static Position anchorPosition(const VisibleSelection& selection)
78 Position anchor = selection.isBaseFirst() ? selection.start() : selection.end();
82 static Position focusPosition(const VisibleSelection& selection)
84 Position focus = selection.isBaseFirst() ? selection.end() : selection.start();
88 static Position basePosition(const VisibleSelection& selection)
90 return rangeCompliantEquivalent(selection.base());
93 static Position extentPosition(const VisibleSelection& selection)
95 return rangeCompliantEquivalent(selection.extent());
174 return !m_frame->selection()->isRange();
182 SelectionController* selection = m_frame->selection();
187 if (selection->isNone())
189 if (selection->isCaret())
198 return m_frame->selection()->isNone() ? 0 : 1;
210 m_frame->selection()->moveTo(VisiblePosition(node, offset, DOWNSTREAM));
218 const VisibleSelection& selection = m_frame->selection()->selection();
219 m_frame->selection()->moveTo(VisiblePosition(selection.end(), DOWNSTREAM));
227 const VisibleSelection& selection = m_frame->selection()->selection();
228 m_frame->selection()->moveTo(VisiblePosition(selection.start(), DOWNSTREAM));
235 m_frame->selection()->clear();
250 m_frame->selection()->moveTo(visibleBase, visibleExtent);
261 m_frame->selection()->moveTo(VisiblePosition(node, offset, DOWNSTREAM));
311 m_frame->selection()->modify(alter, direction, granularity, false);
328 SelectionController* selection = m_frame->selection();
329 selection->expandUsingGranularity(CharacterGranularity);
330 selection->setExtent(VisiblePosition(node, offset, DOWNSTREAM));
343 // If you're hitting this, you've added broken multi-range selection support
352 const VisibleSelection& selection = m_frame->selection()->selection();
353 return selection.firstRange();
360 m_frame->selection()->clear();
370 SelectionController* selection = m_frame->selection();
372 if (selection->isNone()) {
373 selection->setSelection(VisibleSelection(r));
377 RefPtr<Range> range = selection->selection().toNormalizedRange();
380 // We don't support discontiguous selection. We don't do anything if r and range don't intersect.
384 selection->setSelection(VisibleSelection(r->startPosition(), range->endPosition(), DOWNSTREAM));
387 selection->setSelection(VisibleSelection(r));
390 // We don't support discontiguous selection. We don't do anything if r and range don't intersect.
394 selection->setSelection(VisibleSelection(range.get()));
397 selection->setSelection(VisibleSelection(range->startPosition(), r->endPosition(), DOWNSTREAM));
407 SelectionController* selection = m_frame->selection();
409 if (selection->isNone())
413 selection->modify(SelectionController::EXTEND, SelectionController::BACKWARD, CharacterGranularity);
415 RefPtr<Range> selectedRange = selection->selection().toNormalizedRange();
430 SelectionController* selection = m_frame->selection();
432 if (!n || selection->isNone())
437 RefPtr<Range> selectedRange = selection->selection().toNormalizedRange();
472 return plainText(m_frame->selection()->selection().toNormalizedRange().get());