if (!mIsReflowing) {
PRBool isSafeToFlush; IsSafeToFlush(isSafeToFlush);  if (isSafeToFlush) {
PresShell::FlushPendingNotifications(){  if (!mIsReflowing) {    ProcessReflowCommands(PR_FALSE);  }  return NS_OK;}