Backed out changeset d92f391b3b0c (bug 1922838) for backing out bug 1915351
This commit is contained in:
@@ -178,7 +178,7 @@ static const nsAttrValue::EnumTable kInputTypeTable[] = {
|
||||
|
||||
// Default type is 'text'.
|
||||
static const nsAttrValue::EnumTable* kInputDefaultType =
|
||||
&kInputTypeTable[std::size(kInputTypeTable) - 2];
|
||||
&kInputTypeTable[ArrayLength(kInputTypeTable) - 2];
|
||||
|
||||
static const nsAttrValue::EnumTable kCaptureTable[] = {
|
||||
{"user", nsIFilePicker::captureUser},
|
||||
@@ -5418,12 +5418,12 @@ bool HTMLInputElement::ParseAttribute(int32_t aNamespaceID, nsAtom* aAttribute,
|
||||
FormControlType(kInputDefaultType->value) == FormControlType::InputText,
|
||||
"Someone forgot to update kInputDefaultType when adding a new "
|
||||
"input type.");
|
||||
MOZ_ASSERT(kInputTypeTable[std::size(kInputTypeTable) - 1].tag == nullptr,
|
||||
MOZ_ASSERT(kInputTypeTable[ArrayLength(kInputTypeTable) - 1].tag == nullptr,
|
||||
"Last entry in the table must be the nullptr guard");
|
||||
MOZ_ASSERT(
|
||||
FormControlType(kInputTypeTable[std::size(kInputTypeTable) - 2].value) ==
|
||||
FormControlType::InputText,
|
||||
"Next to last entry in the table must be the \"text\" entry");
|
||||
MOZ_ASSERT(FormControlType(
|
||||
kInputTypeTable[ArrayLength(kInputTypeTable) - 2].value) ==
|
||||
FormControlType::InputText,
|
||||
"Next to last entry in the table must be the \"text\" entry");
|
||||
|
||||
if (aNamespaceID == kNameSpaceID_None) {
|
||||
if (aAttribute == nsGkAtoms::type) {
|
||||
|
||||
Reference in New Issue
Block a user