else {  nsCOMPtr<nsIPresState> presState; nsGenericHTMLElement::GetPrimaryPresState(this, nsIStatefulFrame::eCheckboxType, getter_AddRefs(presState));   if (presState) { nsAutoString value; presState->GetStateProperty("checked", value); } }  if (value == "1") *aValue = PR_TRUE; else *aValue = PR_FALSE;
nsHTMLInputElement::GetChecked(PRBool* aValue){  nsIFormControlFrame* formControlFrame = nsnull;  if (NS_OK == nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame)) {      if (nsnull != formControlFrame) {      nsString value("0");      formControlFrame->GetProperty(nsHTMLAtoms::checked, value);      if (value == "1")        *aValue = PR_TRUE;      else        *aValue = PR_FALSE;    }  }  return NS_OK;      }