mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 50143: All radio buttons should be unchecked before checking new one when restoring frame state r=jst@netscape.com
This commit is contained in:
parent
3d8b2da92b
commit
80059f709d
@ -402,12 +402,9 @@ nsGfxRadioControlFrame::RestoreState(nsIPresContext* aPresContext, nsIPresState*
|
||||
mIsRestored = PR_TRUE;
|
||||
nsAutoString string;
|
||||
aState->GetStateProperty(NS_ConvertASCIItoUCS2("checked"), string);
|
||||
PRBool state = (string.EqualsWithConversion(NS_STRING_TRUE)) ? PR_TRUE : PR_FALSE;
|
||||
|
||||
SetRadioState(aPresContext, state); // sets mChecked
|
||||
SetProperty(aPresContext, nsHTMLAtoms::checked, string);
|
||||
mRestoredChecked = mChecked;
|
||||
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -402,12 +402,9 @@ nsGfxRadioControlFrame::RestoreState(nsIPresContext* aPresContext, nsIPresState*
|
||||
mIsRestored = PR_TRUE;
|
||||
nsAutoString string;
|
||||
aState->GetStateProperty(NS_ConvertASCIItoUCS2("checked"), string);
|
||||
PRBool state = (string.EqualsWithConversion(NS_STRING_TRUE)) ? PR_TRUE : PR_FALSE;
|
||||
|
||||
SetRadioState(aPresContext, state); // sets mChecked
|
||||
SetProperty(aPresContext, nsHTMLAtoms::checked, string);
|
||||
mRestoredChecked = mChecked;
|
||||
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user