Bug 565904 - "HTMLOptGroupElement and HTMLOptionElement are not form controls but are listed in nsIFormControl" [r=smaug]

This commit is contained in:
Mounir Lamouri 2010-05-27 06:51:00 -04:00
parent e8d689713a
commit 717325985e
4 changed files with 0 additions and 10 deletions

View File

@ -48,8 +48,6 @@ class nsFormSubmission;
enum FormControlsTypes { enum FormControlsTypes {
NS_FORM_FIELDSET = 1, NS_FORM_FIELDSET = 1,
NS_FORM_LABEL, NS_FORM_LABEL,
NS_FORM_OPTION,
NS_FORM_OPTGROUP,
NS_FORM_OUTPUT, NS_FORM_OUTPUT,
NS_FORM_SELECT, NS_FORM_SELECT,
NS_FORM_TEXTAREA, NS_FORM_TEXTAREA,

View File

@ -2725,8 +2725,6 @@ nsGenericHTMLFormElement::IsLabelableControl() const
PRInt32 type = GetType(); PRInt32 type = GetType();
return type != NS_FORM_FIELDSET && return type != NS_FORM_FIELDSET &&
type != NS_FORM_LABEL && type != NS_FORM_LABEL &&
type != NS_FORM_OPTION &&
type != NS_FORM_OPTGROUP &&
type != NS_FORM_OBJECT; type != NS_FORM_OBJECT;
} }

View File

@ -202,8 +202,6 @@ ShouldBeInElements(nsIFormControl* aFormControl)
// //
// NS_FORM_INPUT_IMAGE // NS_FORM_INPUT_IMAGE
// NS_FORM_LABEL // NS_FORM_LABEL
// NS_FORM_OPTION
// NS_FORM_OPTGROUP
return PR_FALSE; return PR_FALSE;
} }

View File

@ -224,10 +224,6 @@ EmbedContextMenuInfo::SetFormControlType(nsIDOMEventTarget *originalTarget)
break; break;
case NS_FORM_LABEL: case NS_FORM_LABEL:
break; break;
case NS_FORM_OPTION:
break;
case NS_FORM_OPTGROUP:
break;
case NS_FORM_SELECT: case NS_FORM_SELECT:
break; break;
case NS_FORM_TEXTAREA: case NS_FORM_TEXTAREA: