return mFrameSelection->AddSelectionListener(aNewListener);
if (!mSelectionListeners) return NS_ERROR_FAILURE; if (!inNewListener) return NS_ERROR_NULL_POINTER; nsresult result; nsCOMPtr<nsISupports> isupports = do_QueryInterface(inNewListener , &result); if (NS_SUCCEEDED(result)) result = mSelectionListeners->AppendElement(isupports) ? NS_OK : NS_ERROR_FAILURE; return result;
nsDOMSelection::AddSelectionListener(nsIDOMSelectionListener* aNewListener){  return mFrameSelection->AddSelectionListener(aNewListener);}