if (NS_SUCCEEDED(GetPrimaryFrame(this, formControlFrame))) { if (formControlFrame) { formControlFrame->GetProperty(nsHTMLAtoms::checked, value); }
GetPrimaryFrame(this, formControlFrame, PR_TRUE, PR_FALSE);  if (formControlFrame) { formControlFrame->GetProperty(nsHTMLAtoms::checked, value);
nsHTMLInputElement::GetChecked(PRBool* aValue){  nsAutoString value; value.AssignWithConversion("0");  nsIFormControlFrame* formControlFrame = nsnull;  if (NS_SUCCEEDED(GetPrimaryFrame(this, formControlFrame))) {    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.EqualsWithConversion("1")) {    *aValue = PR_TRUE;  } else {    *aValue = PR_FALSE;  }  return NS_OK;      }