return mDomSelections[index]->NotifySelectionListeners();
rv = shell->GetDocument(getter_AddRefs(doc)); if (NS_FAILED(rv)) doc = 0; domdoc = do_QueryInterface(doc);
nsSelection::NotifySelectionListeners(SelectionType aType){  PRInt8 index = GetIndexFromSelectionType(aType);  if (index >=0)  {    return mDomSelections[index]->NotifySelectionListeners();  }  return NS_ERROR_FAILURE;}