Lines Matching refs:m_offset
76 , m_offset(offset)
77 , m_anchorType(anchorTypeForLegacyEditingPosition(m_anchorNode.get(), m_offset))
84 , m_offset(0)
93 , m_offset(offset)
106 m_offset = offset;
108 m_anchorType = anchorTypeForLegacyEditingPosition(m_anchorNode.get(), m_offset);
113 m_offset = offset;
115 m_anchorType = anchorTypeForLegacyEditingPosition(m_anchorNode.get(), m_offset);
141 return std::min(lastOffsetInNode(m_anchorNode.get()), m_offset);
166 if (m_offset <= 0 && m_anchorType != PositionIsAfterAnchor) {
171 if (!m_anchorNode->offsetInCharacters() && (m_anchorType == PositionIsAfterAnchor || static_cast<unsigned>(m_offset) == m_anchorNode->childNodeCount())
186 return m_anchorNode->childNode(m_offset - 1); // -1 converts to childNode((unsigned)-1) and returns null.
203 return m_anchorNode->childNode(m_offset);
328 return m_anchorType == PositionIsBeforeAnchor || m_offset <= 0;
335 return m_anchorType == PositionIsAfterAnchor || m_offset >= lastOffsetForEditing(deprecatedNode());
380 return !deprecatedNode()->parentNode() && m_offset <= 0;
387 return !deprecatedNode()->parentNode() && m_offset >= lastOffsetForEditing(deprecatedNode());
393 return m_offset;
396 return m_offset;
403 if (m_offset < start)
405 if (m_offset <= end) {
406 result += m_offset - start;
787 return !m_offset && m_anchorType != PositionIsAfterAnchor && !nodeIsUserSelectNone(deprecatedNode()->parentNode());
821 if (m_offset < static_cast<int>(box->start()) && !textRenderer->containsReversedText()) {
827 if (box->containsCaretOffset(m_offset))
829 return m_offset == 0 || m_offset == textRenderer->nextOffset(textRenderer->previousOffset(m_offset));
857 if (m_offset < static_cast<int>(box->start()) && !textRenderer->containsReversedText()) {
863 if (m_offset >= static_cast<int>(box->start()) && m_offset < static_cast<int>(box->start() + box->len()))
891 if (m_offset == pos.deprecatedEditingOffset())
895 if (m_offset != pos.deprecatedEditingOffset())
1226 fprintf(stderr, "Position [%s]: %s [%p] at %d\n", msg, deprecatedNode()->nodeName().utf8().data(), deprecatedNode(), m_offset);
1240 result += String::number(m_offset);
1264 fprintf(stderr, ", offset:%d\n", m_offset);