• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/WebKit-7537.78.2/win/

Lines Matching refs:offset

68 HRESULT AccessibleText::get_attributes(long offset, long* startOffset, long* endOffset, BSTR* textAttributes)
73 offset = convertSpecialOffset(offset);
78 HRESULT AccessibleText::get_caretOffset(long* offset)
88 *offset = caretOffset;
92 HRESULT AccessibleText::get_characterExtents(long offset, enum IA2CoordinateType coordType, long* x, long* y, long* width, long* height)
97 offset = convertSpecialOffset(offset);
103 IntRect boundingRect = m_object->boundsForVisiblePositionRange(VisiblePositionRange(VisiblePosition(Position(node, offset, Position::PositionIsOffsetInAnchor)), VisiblePosition(Position(node, offset+1, Position::PositionIsOffsetInAnchor))));
138 HRESULT AccessibleText::get_offsetAtPoint(long x, long y, enum IA2CoordinateType coordType, long* offset)
202 HRESULT AccessibleText::get_textBeforeOffset(long offset, enum IA2TextBoundaryType boundaryType, long* startOffset, long* endOffset, BSTR* text)
210 offset = convertSpecialOffset(offset);
212 if (offset < 0 || offset > m_object->stringValue().length())
216 VisiblePosition currentPosition = m_object->visiblePositionForIndex(offset);
218 int previousPos = std::max(0, static_cast<int>(offset-1));
244 textRange = m_object->visiblePositionRangeForRange(PlainTextRange(0, offset));
270 HRESULT AccessibleText::get_textAfterOffset(long offset, enum IA2TextBoundaryType boundaryType, long* startOffset, long* endOffset, BSTR* text)
279 offset = convertSpecialOffset(offset);
281 if (offset < 0 || offset > textLength)
284 VisiblePosition currentPosition = m_object->visiblePositionForIndex(offset);
290 textRange = m_object->visiblePositionRangeForRange(PlainTextRange(offset + 1, offset + 2));
312 textRange = m_object->visiblePositionRangeForRange(PlainTextRange(offset, textLength-offset));
337 HRESULT AccessibleText::get_textAtOffset(long offset, enum IA2TextBoundaryType boundaryType, long* startOffset, long* endOffset, BSTR* text)
347 offset = convertSpecialOffset(offset);
349 if (offset < 0 || offset > textLength)
353 VisiblePosition currentPosition = m_object->visiblePositionForIndex(offset);
357 textRange = m_object->visiblePositionRangeForRange(PlainTextRange(offset, 1));
412 HRESULT AccessibleText::setCaretOffset(long offset)
417 offset = convertSpecialOffset(offset);
423 m_object->document()->frame()->selection()->setSelection(VisibleSelection(VisiblePosition(Position(node, offset, Position::PositionIsOffsetInAnchor))));
539 HRESULT AccessibleText::get_attributeRange(long offset, BSTR filter, long* startOffset, long* endOffset, BSTR* attributeValues)
583 HRESULT AccessibleText::insertText(long offset, BSTR* text)
591 offset = convertSpecialOffset(offset);
597 addSelection(offset, offset);
624 HRESULT AccessibleText::pasteText(long offset)
632 offset = convertSpecialOffset(offset);
638 addSelection(offset, offset);
721 int AccessibleText::convertSpecialOffset(int offset)
725 if (offset == IA2_TEXT_OFFSET_LENGTH)
727 if (offset == IA2_TEXT_OFFSET_CARET) {
732 return offset;