if (!mPendingReflowEvent && mReflowCommands.Count() > 0) { ReflowEvent* ev; ev = new ReflowEvent((nsIPresShell*) this, mEventQueue);
if (!mPendingReflowEvent && !mIsReflowing && mReflowCommands.Count() > 0) { ReflowEvent* ev = new ReflowEvent(NS_STATIC_CAST(nsIPresShell*, this)); mEventQueue->PostEvent(ev); mPendingReflowEvent = PR_TRUE;
PresShell::PostReflowEvent(){  if (!mPendingReflowEvent && mReflowCommands.Count() > 0) {    ReflowEvent* ev;        ev = new ReflowEvent((nsIPresShell*) this, mEventQueue);    #ifdef DEBUG    if (VERIFY_REFLOW_NOISY_RC & gVerifyReflowFlags) {      printf("\n*** PresShell::PostReflowEvent(), this=%p, event=%p\n", this, ev);    }#endif    mPendingReflowEvent = PR_TRUE;  }}