if (mLoadingSheets.Count() > 0) { Stop(); } NS_IF_RELEASE(mParsers); mLoadedSheets.Enumerate(ReleaseSheet); mLoadingSheets.Enumerate(DeleteHashLoadData); mPendingDocSheets.EnumerateForwards(DeletePendingData, nsnull); mPendingAlternateSheets.EnumerateForwards(DeleteLoadData, nsnull); mSheetMapTable.Enumerate(DeleteSheetMap);
NS_ASSERTION((!mLoadingDatas.IsInitialized()) || mLoadingDatas.Count() == 0, "How did we get destroyed when there are loading data?"); NS_ASSERTION((!mPendingDatas.IsInitialized()) || mPendingDatas.Count() == 0, "How did we get destroyed when there are pending data?");
CSSLoaderImpl::~CSSLoaderImpl(void){  if (mLoadingSheets.Count() > 0) {    Stop();  }  NS_IF_RELEASE(mParsers);  mLoadedSheets.Enumerate(ReleaseSheet);  mLoadingSheets.Enumerate(DeleteHashLoadData);  mPendingDocSheets.EnumerateForwards(DeletePendingData, nsnull);  mPendingAlternateSheets.EnumerateForwards(DeleteLoadData, nsnull);  mSheetMapTable.Enumerate(DeleteSheetMap);}