Lines Matching refs:endOffset
52 unsigned length = documentMarker.endOffset() - documentMarker.startOffset();
101 addMarker(markedText.startContainer(), DocumentMarker(type, markedText.startOffset(), markedText.endOffset(), description, hash));
109 addMarker(markedText.startContainer(), DocumentMarker(type, markedText.startOffset(), markedText.endOffset(), description, hash));
118 unsigned endOffset = markedText.endOffset();
119 addMarker(markedText.startContainer(), DocumentMarker(startOffset, endOffset, activeMatch));
120 if (endOffset > startOffset) {
145 int endOffset = markedText.endOffset();
146 removeMarkers(markedText.startContainer(), startOffset, endOffset - startOffset, markerTypes, shouldRemovePartiallyOverlappingMarker);
174 return startOffset < rhv->endOffset();
184 return lhv->endOffset() < rhv->startOffset();
189 return marker->endOffset() < startOffset;
197 ASSERT(newMarker.endOffset() >= newMarker.startOffset());
198 if (newMarker.endOffset() == newMarker.startOffset())
215 if (list->isEmpty() || list->last()->endOffset() < newMarker.startOffset()) {
239 for (MarkerList::iterator i = firstOverlapping; i != list->end() && (*i)->startOffset() <= (*inserted)->endOffset(); ) {
241 (*inserted)->setEndOffset(std::max((*inserted)->endOffset(), (*i)->endOffset()));
267 unsigned endOffset = startOffset + length - 1;
273 if (marker->startOffset() > endOffset)
280 if (marker->endOffset() > endOffset)
281 marker->setEndOffset(endOffset);
318 unsigned endOffset = startOffset + length;
324 if (marker.startOffset() >= endOffset)
347 if (marker.endOffset() > endOffset) {
349 newRight.setStartOffset(endOffset);
453 if (node == startContainer && marker->endOffset() <= static_cast<unsigned>(range->startOffset()))
455 if (node == endContainer && marker->startOffset() >= static_cast<unsigned>(range->endOffset()))
680 int endOffset = node == endContainer ? range->endOffset() : INT_MAX;
681 setMarkersActive(node, startOffset, endOffset, active);
685 void DocumentMarkerController::setMarkersActive(Node* node, unsigned startOffset, unsigned endOffset, bool active)
699 if ((*marker)->startOffset() >= endOffset)
730 if (node == startContainer && marker->endOffset() <= static_cast<unsigned>(range->startOffset()))
732 if (node == endContainer && marker->startOffset() >= static_cast<unsigned>(range->endOffset()))
753 fprintf(stderr, " %d:[%d:%d](%d)", marker->type(), marker->startOffset(), marker->endOffset(), marker->activeMatch());