return result;
channel->SetContentType(NS_LITERAL_CSTRING("text/css"));     nsCOMPtr<nsIUnicharStreamLoader> streamLoader; rv = NS_NewUnicharStreamLoader(getter_AddRefs(streamLoader), channel, aLoadData);  #ifdef DEBUG mSyncCallback = PR_FALSE; #endif  if (NS_FAILED(rv)) { LOG_ERROR(("  Failed to create stream loader")); SheetComplete(aLoadData, PR_FALSE); return rv; }  mLoadingDatas.Put(aLoadData->mURI, aLoadData); aLoadData->mIsLoading = PR_TRUE;  return NS_OK;
CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData){  nsresult result = NS_OK;  SheetLoadData* loadingData = (SheetLoadData*)mLoadingSheets.Get(&aKey);  if (loadingData) {  // already loading this sheet, glom on to the load    while (loadingData->mNext) {      loadingData = loadingData->mNext;    }    loadingData->mNext = aData;  }  else {  // not loading, go load it    nsIUnicharStreamLoader* loader;    nsIURL* urlClone = CloneURL(aKey.mURL); // don't give the key to netlib, it munges it    if (urlClone) {      result = NS_NewUnicharStreamLoader(&loader, urlClone, DoneLoadingStyle, aData);      NS_RELEASE(urlClone);      if (NS_SUCCEEDED(result)) {        mLoadingSheets.Put(&aKey, aData);        // grab any pending alternates that have this URL        loadingData = aData;        PRInt32 index = 0;        while (index < mPendingAlternateSheets.Count()) {          SheetLoadData* data = (SheetLoadData*)mPendingAlternateSheets.ElementAt(index);          if (aKey.mURL->Equals(data->mURL)) {            mPendingAlternateSheets.RemoveElementAt(index);            loadingData->mNext = data;            loadingData = data;          }          else {            index++;          }        }      }    }  }  return result;}