for (PRInt32 i = mFontMetrics.Count()-1; i >= 0; --i) { nsIFontMetrics* fm = NS_STATIC_CAST(nsIFontMetrics*, mFontMetrics[i]);
PRInt32 i, n = mFontMetrics.Count();  for (i = 0; i < n; i++) { nsIFontMetrics* fm = (nsIFontMetrics*) mFontMetrics.ElementAt(i);
nsresult nsFontCache::Flush(){  for (PRInt32 i = mFontMetrics.Count()-1; i >= 0; --i) {    nsIFontMetrics* fm = NS_STATIC_CAST(nsIFontMetrics*, mFontMetrics[i]);    // Destroy() will unhook our device context from the fm so that we won't    // waste time in triggering the notification of FontMetricsDeleted()    // in the subsequent release    fm->Destroy();    NS_RELEASE(fm);  }  mFontMetrics.Clear();  return NS_OK;}