if (NS_CONTENT_ATTR_HAS_VALUE == result) SetCheckboxState (aPresContext, checked ? eOn : eOff );
if (NS_CONTENT_ATTR_HAS_VALUE == result) { if (PR_TRUE == checked) SetProperty(nsHTMLAtoms::checked, NS_STRING_TRUE); else SetProperty(nsHTMLAtoms::checked, NS_STRING_FALSE); }  if (mWidget != nsnull) { SetColors(*aPresContext); mWidget->Enable(!nsFormFrame::GetDisabled(this)); }
nsCheckboxControlFrame::PostCreateWidget(nsIPresContext* aPresContext, nscoord& aWidth, nscoord& aHeight){  PRBool checked = PR_FALSE;  nsresult result = GetDefaultCheckState(&checked);  if (NS_CONTENT_ATTR_HAS_VALUE == result)    SetCheckboxState (aPresContext, checked ? eOn : eOff );}