if (mLoadingSheets.Count() > 0) { URLKey key(aURL); SheetLoadData* loadData = (SheetLoadData*)mLoadingSheets.Get(&key);
if (mLoadingDatas.Count() > 0 || mPendingDatas.Count() > 0) {  SheetLoadData* loadData = nsnull; mLoadingDatas.Get(aURL, &loadData); if (!loadData) { mPendingDatas.Get(aURL, &loadData); if (loadData) {   mPendingDatas.Remove(aURL); } }
CSSLoaderImpl::StopLoadingSheet(nsIURI* aURL){  NS_ENSURE_TRUE(aURL, NS_ERROR_NULL_POINTER);  if (mLoadingSheets.Count() > 0) {    URLKey key(aURL);    SheetLoadData* loadData = (SheetLoadData*)mLoadingSheets.Get(&key);    if (loadData) {      Cleanup(key, loadData);    }  }  return NS_OK;}