mDocument->EndLayout(ctxt, status, errorMsg);
ImageListener::OnStopRequest(nsIChannel* channel, nsISupports *ctxt,                             nsresult status, const PRUnichar *errorMsg){  if (nsnull == mNextStream) {    return NS_ERROR_FAILURE;  }  mDocument->EndLayout(ctxt, status, errorMsg);  return mNextStream->OnStopRequest(channel, ctxt, status, errorMsg);}