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