Restore disabled state for all form controls. Bug 306616, r+sr=peterv

This commit is contained in:
bzbarsky%mit.edu 2005-09-01 18:58:31 +00:00
Родитель ee14fcb836
Коммит c0f7402b61
1 изменённых файлов: 3 добавлений и 11 удалений

Просмотреть файл

@ -2441,18 +2441,10 @@ nsHTMLInputElement::DoneCreatingElement()
SET_BOOLBIT(mBitField, BF_PARSER_CREATING, PR_FALSE);
//
// Restore state for checkbox, radio, text and file
// Restore state as needed. Note that disabled state applies to all control
// types.
//
PRBool restoredCheckedState = PR_FALSE;
switch (mType) {
case NS_FORM_INPUT_CHECKBOX:
case NS_FORM_INPUT_RADIO:
case NS_FORM_INPUT_TEXT:
case NS_FORM_INPUT_FILE:
case NS_FORM_INPUT_HIDDEN:
restoredCheckedState = RestoreFormControlState(this, this);
break;
}
PRBool restoredCheckedState = RestoreFormControlState(this, this);
//
// If restore does not occur, we initialize .checked using the CHECKED