if (aUpdateViews && mViewManager) { mViewManager->BeginUpdateViewBatch(); }
PresShell::FlushPendingNotifications(PRBool aUpdateViews){  PRBool isSafeToFlush;  IsSafeToFlush(isSafeToFlush);  if (isSafeToFlush) {    if (aUpdateViews && mViewManager) {      mViewManager->BeginUpdateViewBatch();    }    ProcessReflowCommands(PR_FALSE);    if (aUpdateViews && mViewManager) {      mViewManager->EndUpdateViewBatch(NS_VMREFRESH_IMMEDIATE);    }  }  return NS_OK;}