return result;
return NS_OK;
nsHTMLOptionElement::SetSelected(PRBool aValue){  nsIFormControlFrame* fcFrame = nsnull;  // DO NOT flush pending reflows here  nsresult result = GetPrimaryFrame(fcFrame, PR_FALSE);  if (NS_SUCCEEDED(result) && fcFrame) {    nsISelectControlFrame* selectFrame = nsnull;    result = fcFrame->QueryInterface(NS_GET_IID(nsISelectControlFrame),                                     (void **) &selectFrame);    if (NS_SUCCEEDED(result) && (selectFrame)) {      PRInt32 indx;      GetIndex(&indx);      if (indx >= 0) {        // this will flush pending reflows        return selectFrame->SetOptionSelected(indx, aValue);      }    }  } else {    // Note: The select content obj maintains all the PresState    // so defer to it to get the answer    nsCOMPtr<nsIDOMNode> parentNode;    result = NS_OK;    GetParentNode(getter_AddRefs(parentNode));    nsCOMPtr<nsISelectElement> selectElement(do_QueryInterface(parentNode));    if (selectElement) {      return selectElement->SetOptionSelected(this, aValue);    }  }  return result;}