if (PR_FALSE == mBatching) result = NS_ERROR_FAILURE; mBatching = PR_FALSE; if (mChangesDuringBatching){
mBatching--; NS_ASSERTION(mBatching >=0,"Bad mBatching"); if (mBatching == 0 && mChangesDuringBatching){
nsRangeList::EndBatchChanges(){  nsresult result(NS_OK);  if (PR_FALSE == mBatching)    result = NS_ERROR_FAILURE;   mBatching = PR_FALSE;  if (mChangesDuringBatching){    mChangesDuringBatching = PR_FALSE;    NotifySelectionListeners();  }  return result;}