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