return NS_ERROR_FAILURE;
short reason = mFrameSelection->PopReason(); for (PRUint32 i = 0; i < cnt;i++) { nsCOMPtr<nsISupports> isupports(dont_AddRef(mSelectionListeners->ElementAt(i))); nsCOMPtr<nsISelectionListener> thisListener = do_QueryInterface(isupports); if (thisListener) thisListener->NotifySelectionChanged(domdoc,this, reason); } return NS_OK;
nsSelection::NotifySelectionListeners(SelectionType aType){  PRInt8 index = GetIndexFromSelectionType(aType);  if (index >=0)  {    return mDomSelections[index]->NotifySelectionListeners();  }  return NS_ERROR_FAILURE;}