if (!mDummyLayoutRequest) { AddDummyLayoutRequest();
if (gAsyncReflowDuringDocLoad) { NS_PRECONDITION(mRCCreatedDuringLoad >= 0, "PresShell's reflow command queue is in a bad state."); if (mDocumentLoading) { PRInt32 flags; aRC->GetFlags(&flags); flags |= NS_RC_CREATED_DURING_DOCUMENT_LOAD; aRC->SetFlags(flags); mRCCreatedDuringLoad++;  if (!mDummyLayoutRequest) { AddDummyLayoutRequest(); }  #ifdef DEBUG_nisheeth printf("presshell=%p, mRCCreatedDuringLoad=%d\n", this, mRCCreatedDuringLoad); #endif
PresShell::ReflowCommandAdded(nsIReflowCommand* aRC){#ifdef ASYNC_REFLOW_DURING_DOC_LOAD  NS_PRECONDITION(mRCCreatedDuringLoad >= 0, "PresShell's reflow command queue is in a bad state.");  if (mDocumentLoading) {    PRInt32 flags;    aRC->GetFlags(&flags);    flags |= NS_RC_CREATED_DURING_DOCUMENT_LOAD;    aRC->SetFlags(flags);        mRCCreatedDuringLoad++;    if (!mDummyLayoutRequest) {      AddDummyLayoutRequest();    }#ifdef DEBUG_nisheeth    printf("presshell=%p, mRCCreatedDuringLoad=%d\n", this, mRCCreatedDuringLoad);#endif  }#endif  return NS_OK;}