nsPresContext::StopLoadImage(nsIFrame* aTargetFrame, nsIFrameImageLoader* aLoader)
nsPresContext::StopLoadImage(void* aKey, nsIFrameImageLoader* aLoader)
nsPresContext::StopLoadImage(nsIFrame* aTargetFrame,                             nsIFrameImageLoader* aLoader){  PRInt32 i, n = mImageLoaders.Count();  nsIFrameImageLoader* loader;  for (i = 0; i < n; i++) {    loader = (nsIFrameImageLoader*) mImageLoaders.ElementAt(i);    if (loader == aLoader) {      // Remove frame from list of interested frames for this loader      loader->RemoveFrame(aTargetFrame);      // If loader is no longer loading for anybody and its safe to      // nuke it, nuke it.      PRBool safe;      loader->SafeToDestroy(&safe);      if (safe) {        loader->StopImageLoad();        NS_RELEASE(loader);        mImageLoaders.RemoveElementAt(i);        n--;        i--;      }    }  }  return NS_OK;}