зеркало из https://github.com/mozilla/gecko-dev.git
Restore disabled state for all form controls. Bug 306616, r+sr=peterv
This commit is contained in:
Родитель
4df9bc7700
Коммит
a3127c2331
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче