vm->UpdateView(view, &bounds, 0);
vm->UpdateView(view, bounds, 0);
void ImageLoader::UpdateFrames(){  PRInt32 i, n = mFrames.Count();  for (i = 0; i < n; i++) {    nsIFrame* frame = (nsIFrame*) mFrames.ElementAt(i);    // XXX installed colormap should be presentation-context/window state    nsIWidget* window;         frame->GetWindow(window);    if (!gXXXInstalledColorMap && mImage) {      nsColorMap* cmap = mImage->GetColorMap();      if ((nsnull != cmap) && (cmap->NumColors > 0)) {        window->SetColorMap(cmap);      }      gXXXInstalledColorMap = PR_TRUE;    }    // Determine damaged area and tell view manager to redraw it    nsPoint offset;    nsRect bounds;    frame->GetRect(bounds);    nsIView* view;         frame->GetOffsetFromView(offset, view);    nsIViewManager* vm = view->GetViewManager();    bounds.x = offset.x;    bounds.y = offset.y;    vm->UpdateView(view, &bounds, 0);    NS_RELEASE(vm);    NS_RELEASE(view);  }}