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; }
NS_IMPL_ICONTENT_NO_SETPARENT_NO_SETDOCUMENT_NO_FOCUS_USING_GENERIC(mInner)
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;}