SheetLoadData* loadData = (SheetLoadData*)mLoadingSheets.Get(&key);
SheetLoadData* loadData = NS_STATIC_CAST(SheetLoadData*, mLoadingDatas.Get(&key)); if (!loadData) { loadData = NS_STATIC_CAST(SheetLoadData*, mPendingDatas.Get(&key)); if (loadData) {   mPendingDatas.Remove(&key); } }
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;}