Lines Matching defs:endOffset
66 DocumentMarker marker = {type, textPiece->startOffset(exception), textPiece->endOffset(exception), description, false};
80 int endOffset = textPiece->endOffset();
81 removeMarkers(textPiece->startContainer(), startOffset, endOffset - startOffset, markerTypes, shouldRemovePartiallyOverlappingMarker);
90 ASSERT(newMarker.endOffset >= newMarker.startOffset);
91 if (newMarker.endOffset == newMarker.startOffset)
116 if (marker.type == newMarker.type && marker.endOffset >= newMarker.startOffset) {
130 if (marker.startOffset > newMarker.endOffset)
135 if (newMarker.endOffset <= marker.endOffset) {
136 newMarker.endOffset = marker.endOffset;
171 unsigned endOffset = startOffset + length - 1;
177 if (marker.startOffset > endOffset)
181 if (marker.endOffset < startOffset)
188 if (marker.endOffset > endOffset)
189 marker.endOffset = endOffset;
191 marker.endOffset += delta;
218 unsigned endOffset = startOffset + length;
223 if (marker.startOffset >= endOffset)
227 if (marker.endOffset <= startOffset || !markerTypes.contains(marker.type)) {
246 newLeft.endOffset = startOffset;
252 if (marker.endOffset > endOffset) {
254 newRight.startOffset = endOffset;
339 if (node == startContainer && it->endOffset <= static_cast<unsigned>(range->startOffset()))
341 if (node == endContainer && it->startOffset >= static_cast<unsigned>(range->endOffset()))
555 marker.endOffset += delta;
581 int endOffset = node == endContainer ? range->endOffset(ec) : INT_MAX;
582 setMarkersActive(node, startOffset, endOffset, active);
586 void DocumentMarkerController::setMarkersActive(Node* node, unsigned startOffset, unsigned endOffset, bool active)
600 if (marker.startOffset >= endOffset)
604 if (marker.endOffset < startOffset || marker.type != DocumentMarker::TextMatch)
634 if (node == startContainer && it->endOffset <= static_cast<unsigned>(range->startOffset()))
636 if (node == endContainer && it->startOffset >= static_cast<unsigned>(range->endOffset()))
656 unsigned endOffset = node == endContainer ? static_cast<unsigned>(range->endOffset()) : std::numeric_limits<unsigned>::max();
666 if (marker.startOffset >= endOffset)
670 if (marker.endOffset <= startOffset || !markerTypes.contains(marker.type)) {
692 fprintf(stderr, " %d:[%d:%d](%d)", markers[markerIndex].type, markers[markerIndex].startOffset, markers[markerIndex].endOffset, markers[markerIndex].activeMatch);