Home | History | Annotate | Download | only in accessibility

Lines Matching full:range

1222     VisiblePositionRange range = VisiblePositionRange(visSelection.visibleStart(), visSelection.visibleEnd());
1223 IntRect bounds = boundsForVisiblePositionRange(range);
1653 PassRefPtr<Range> AccessibilityRenderObject::ariaSelectedTextDOMRange() const
1659 RefPtr<Range> currentSelectionRange = selection().toNormalizedRange();
1665 return Range::create(currentSelectionRange->ownerDocument());
1667 RefPtr<Range> ariaRange = rangeOfContents(node);
1681 return Range::create(ariaRange->ownerDocument(), startPosition, endPosition);
1699 RefPtr<Range> ariaRange = ariaSelectedTextDOMRange();
1736 RefPtr<Range> ariaRange = ariaSelectedTextDOMRange();
1742 void AccessibilityRenderObject::setSelectedTextRange(const PlainTextRange& range)
1746 textControl->setSelectionRange(range.start, range.start + range.length);
1757 frame->selection()->setSelection(VisibleSelection(Position(node, range.start),
1758 Position(node, range.start + range.length), DOWNSTREAM));
1936 float range = maxValueForRange() - minValueForRange();
1939 value += range * (percentChange / 100);
2116 // a Range that we can convert to a WebCoreTextMarkerRange in the Obj-C file
2190 RefPtr<Range> range = Range::create(m_renderer->document());
2191 range->selectNodeContents(node, ec);
2192 CharacterIterator it(range.get());
2194 return VisiblePosition(it.range()->endContainer(ec), it.range()->endOffset(ec), UPSTREAM);
2214 RefPtr<Range> range = Range::create(m_renderer->document());
2215 range->setStart(node, 0, ec);
2216 range->setEnd(indexPosition.node(), indexPosition.deprecatedEditingOffset(), ec);
2217 return TextIterator::rangeLength(range.get());
2226 VisiblePositionRange range(visiblePositionRange);
2227 IntRect rect1 = range.start.absoluteCaretBounds();
2228 IntRect rect2 = range.end.absoluteCaretBounds();
2230 // readjust for position at the edge of a line. This is to exclude line rect that doesn't need to be accounted in the range bounds
2232 VisiblePosition endOfFirstLine = endOfLine(range.start);
2233 if (range.start == endOfFirstLine) {
2234 range.start.setAffinity(DOWNSTREAM);
2235 rect1 = range.start.absoluteCaretBounds();
2237 if (range.end == endOfFirstLine) {
2238 range.end.setAffinity(UPSTREAM);
2239 rect2 = range.end.absoluteCaretBounds();
2246 // if the rectangle spans lines and contains multiple text chars, use the range's bounding box intead
2248 RefPtr<Range> dataRange = makeRange(range.start, range.end);
2262 void AccessibilityRenderObject::setSelectedVisiblePositionRange(const VisiblePositionRange& range) const
2264 if (range.start.isNull() || range.end.isNull())
2268 if (range.start == range.end)
2269 m_renderer->document()->frame()->selection()->moveTo(range.start, true);
2271 VisibleSelection newSelection = VisibleSelection(range.start, range.end);
2355 // Given a line number, the range of characters of the text associated with this accessibility
2391 // return nil rather than an zero-length range (to match AppKit)
2398 // The composed character range in the text associated with this accessibility object that
2400 // range of characters (including surrogate pairs of multi-byte glyphs) at the given index.
2414 // specified by the given character range.
2415 String AccessibilityRenderObject::doAXStringForRange(const PlainTextRange& range) const
2420 if (!range.length)
2427 if (range.start + range.length > elementText.length())
2430 return elementText.substring(range.start, range.length);
2434 // specified by the given range. This is the bounding rectangle a sighted user would see
2436 IntRect AccessibilityRenderObject::doAXBoundsForRange(const PlainTextRange& range) const
2439 return boundsForVisiblePositionRange(visiblePositionRangeForRange(range));