nsresult rv = nsDocument::StartDocumentLoad(aCommand, aChannel, aLoadGroup, aContainer, aDocListener, aReset);
nsresult rv = Init();  if (NS_FAILED(rv) && rv != NS_ERROR_ALREADY_INITIALIZED) { return rv; }  rv = nsDocument::StartDocumentLoad(aCommand, aChannel, aLoadGroup, aContainer, aDocListener, aReset);
nsImageDocument::StartDocumentLoad(const char* aCommand,                                   nsIChannel* aChannel,                                   nsILoadGroup* aLoadGroup,                                   nsISupports* aContainer,                                   nsIStreamListener **aDocListener,                                   PRBool aReset){  nsresult rv = nsDocument::StartDocumentLoad(aCommand,                                              aChannel, aLoadGroup,                                              aContainer,                                               aDocListener, aReset);  if (NS_FAILED(rv)) {    return rv;  }  // Create synthetic document  rv = CreateSyntheticDocument();  if (NS_OK != rv) {    return rv;  }  *aDocListener = new ImageListener(this);  return NS_OK;}