nsresult result(NS_OK); mBatching--; NS_ASSERTION(mBatching >=0,"Bad mBatching"); if (mBatching == 0 && mChangesDuringBatching){ mChangesDuringBatching = PR_FALSE; NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL); } return result;
if (!mFrameSelection) return NS_OK; return mFrameSelection->EndBatchChanges();
nsSelection::EndBatchChanges(){  nsresult result(NS_OK);  mBatching--;  NS_ASSERTION(mBatching >=0,"Bad mBatching");  if (mBatching == 0 && mChangesDuringBatching){    mChangesDuringBatching = PR_FALSE;    NotifySelectionListeners(nsISelectionController::SELECTION_NORMAL);  }  return result;}