for (j = (PRInt8) 1; j < (PRInt8)nsISelectionController::NUM_SELECTIONTYPES; j++){ if (mDomSelections[j]){ PRBool iscollapsed; mDomSelections[j]->GetIsCollapsed(&iscollapsed); if (!iscollapsed){ aSlowCheck = PR_TRUE; } } }
nsSelection::LookUpSelection(nsIContent *aContent, PRInt32 aContentOffset, PRInt32 aContentLength,                             SelectionDetails **aReturnDetails, PRBool aSlowCheck){  if (!aContent || !aReturnDetails)    return NS_ERROR_NULL_POINTER;  STATUS_CHECK_RETURN_MACRO();  *aReturnDetails = nsnull;  PRInt8 j;  for (j = (PRInt8) 0; j < (PRInt8)nsISelectionController::NUM_SELECTIONTYPES; j++){    if (mDomSelections[j])     mDomSelections[j]->LookUpSelection(aContent, aContentOffset, aContentLength, aReturnDetails, (SelectionType)(1<<j), aSlowCheck);  }  return NS_OK;}