nsHTMLOptionCollection::IndexOf(nsIContent* aOption) { nsCOMPtr<nsIDOMHTMLOptionElement> option;  if (mDirty && (nsnull != mSelect)) { GetOptions();
NS_IMETHOD IndexOf(nsIContent* aPossibleChild, PRInt32& aResult) const { return mInner.IndexOf(aPossibleChild, aResult);
nsHTMLOptionCollection::IndexOf(nsIContent* aOption){  nsCOMPtr<nsIDOMHTMLOptionElement> option;  if (mDirty && (nsnull != mSelect)) {    GetOptions();  }  if ((nsnull != aOption) &&    NS_SUCCEEDED(aOption->QueryInterface(kIDOMHTMLOptionElementIID, getter_AddRefs(option)))) {    return mElements.IndexOf(option);  }  return -1;}