selectFrame->SetOptionSelected(indx, aValue);
return selectFrame->SetOptionSelected(indx, aValue); } } } else {   nsCOMPtr<nsIDOMNode> parentNode; result = NS_ERROR_FAILURE; if (NS_SUCCEEDED(this->GetParentNode(getter_AddRefs(parentNode)))) { if (parentNode) { nsCOMPtr<nsISelectElement> selectElement(do_QueryInterface(parentNode)); if (selectElement) { return selectElement->SetOptionSelected(this, aValue); }
nsHTMLOptionElement::SetSelected(PRBool aValue){  nsIFormControlFrame* fcFrame = nsnull;  nsresult result = GetPrimaryFrame(fcFrame, PR_FALSE);  if (NS_SUCCEEDED(result) && (nsnull != fcFrame)) {    nsISelectControlFrame* selectFrame = nsnull;    result = fcFrame->QueryInterface(NS_GET_IID(nsISelectControlFrame),(void **) &selectFrame);    if (NS_SUCCEEDED(result) && (nsnull != selectFrame)) {      PRInt32 indx;      result = GetIndex(&indx);      if (NS_SUCCEEDED(result)) {        selectFrame->SetOptionSelected(indx, aValue);      }    }  }  return result;}