Bug 74639: Preserve frame state through form demotion, don't store uninitialized frame state, r=nisheeth@netscape.com, sr=jst@netscape.com
This commit is contained in:
@@ -626,6 +626,11 @@ NS_IMETHODIMP nsGfxCheckboxControlFrame::SaveState(nsIPresContext* aPresContext,
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aState);
|
||||
|
||||
// Don't save state before we are initialized
|
||||
if (!mDidInit) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
CheckState stateCheck = GetCheckboxState();
|
||||
PRBool defaultStateBool = PR_FALSE;
|
||||
nsresult res = GetDefaultCheckState(&defaultStateBool);
|
||||
|
||||
Reference in New Issue
Block a user