if (loadGroup && mDummyLayoutRequest) { rv = loadGroup->RemoveChannel(mDummyLayoutRequest, nsnull, NS_OK, nsnull); if (NS_FAILED(rv)) return rv;
if (gAsyncReflowDuringDocLoad) { nsCOMPtr<nsILoadGroup> loadGroup; if (mDocument) { rv = mDocument->GetDocumentLoadGroup(getter_AddRefs(loadGroup)); if (NS_FAILED(rv)) return rv; }
PresShell::RemoveDummyLayoutRequest(void){  nsresult rv = NS_OK;#ifdef ASYNC_REFLOW_DURING_DOC_LOAD  nsCOMPtr<nsILoadGroup> loadGroup;  if (mDocument) {    rv = mDocument->GetDocumentLoadGroup(getter_AddRefs(loadGroup));    if (NS_FAILED(rv)) return rv;  }  if (loadGroup && mDummyLayoutRequest) {    rv = loadGroup->RemoveChannel(mDummyLayoutRequest, nsnull, NS_OK, nsnull);    if (NS_FAILED(rv)) return rv;    mDummyLayoutRequest = nsnull;  }#ifdef DEBUG_nisheeth  printf("presshell=%p, Removed dummy layout request.\n", this);#endif#endif  return rv;}