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