if (!*aResult) { PRUint32 count, i;  rv = mChildList->Count(&count); if (NS_FAILED(rv)) return rv;  for (i=0; i<count; i++) { nsIDocumentLoader* loader;  loader = NS_STATIC_CAST(nsIDocumentLoader*, mChildList->ElementAt(i));  if (loader) { (void) loader->IsBusy(aResult); NS_RELEASE(loader);  if (*aResult) break; } }
else { mChildList->EnumerateForwards(nsDocLoaderImpl::IsBusyEnumerator, (void*)&aResult);
nsDocLoaderImpl::IsBusy(PRBool * aResult){  nsresult rv;  //  // A document loader is busy if either:  //  //   1. It is currently loading a document (ie. one or more URIs)  //   2. One of it's child document loaders is busy...  //  *aResult = PR_FALSE;  /* Is this document loader busy? */  if (mIsLoadingDocument) {    rv = mLoadGroup->IsPending(aResult);    if (NS_FAILED(rv)) return rv;  }  /* Otherwise, check its child document loaders... */  if (!*aResult) {    PRUint32 count, i;    rv = mChildList->Count(&count);    if (NS_FAILED(rv)) return rv;    for (i=0; i<count; i++) {      nsIDocumentLoader* loader;      loader = NS_STATIC_CAST(nsIDocumentLoader*, mChildList->ElementAt(i));      if (loader) {        (void) loader->IsBusy(aResult);        NS_RELEASE(loader);        if (*aResult) break;      }    }  }  return NS_OK;}