if (value.Equals(NS_LITERAL_STRING("1"))) { *aValue = PR_TRUE; } else { *aValue = PR_FALSE; }
nsHTMLInputElement::GetChecked(PRBool* aValue){  nsAutoString value(NS_LITERAL_STRING("0"));  // No need to flush here, if there's no frame created for this input  // yet, we know our own checked state.  nsIFormControlFrame* formControlFrame = GetFormControlFrame(PR_FALSE);  if (formControlFrame) {    formControlFrame->GetProperty(nsHTMLAtoms::checked, value);  }  else {    // Retrieve the presentation state instead.    nsCOMPtr<nsIPresState> presState;    GetPrimaryPresState(this, getter_AddRefs(presState));    // Obtain the value property from the presentation state.    if (presState) {      presState->GetStateProperty(NS_LITERAL_STRING("checked"), value);    }  }    if (value.Equals(NS_LITERAL_STRING("1"))) {    *aValue = PR_TRUE;  } else {    *aValue = PR_FALSE;  }  return NS_OK;      }