Merge inbound to central, a=merge
MozReview-Commit-ID: DfRZi0gKjit
This commit is contained in:
@@ -1138,6 +1138,7 @@ HTMLInputElement::HTMLInputElement(already_AddRefed<mozilla::dom::NodeInfo>& aNo
|
||||
FromParser aFromParser, FromClone aFromClone)
|
||||
: nsGenericHTMLFormElementWithState(aNodeInfo, kInputDefaultType->value)
|
||||
, mAutocompleteAttrState(nsContentUtils::eAutocompleteAttrState_Unknown)
|
||||
, mAutocompleteInfoState(nsContentUtils::eAutocompleteAttrState_Unknown)
|
||||
, mDisabledChanged(false)
|
||||
, mValueChanged(false)
|
||||
, mLastValueChangeWasInteractive(false)
|
||||
@@ -1513,8 +1514,9 @@ HTMLInputElement::AfterSetAttr(int32_t aNameSpaceID, nsIAtom* aName,
|
||||
}
|
||||
}
|
||||
} else if (aName == nsGkAtoms::autocomplete) {
|
||||
// Clear the cached @autocomplete attribute state.
|
||||
// Clear the cached @autocomplete attribute and autocompleteInfo state.
|
||||
mAutocompleteAttrState = nsContentUtils::eAutocompleteAttrState_Unknown;
|
||||
mAutocompleteInfoState = nsContentUtils::eAutocompleteAttrState_Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1593,7 +1595,7 @@ HTMLInputElement::GetAutocomplete(nsAString& aValue)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
aValue.Truncate(0);
|
||||
aValue.Truncate();
|
||||
const nsAttrValue* attributeVal = GetParsedAttr(nsGkAtoms::autocomplete);
|
||||
|
||||
mAutocompleteAttrState =
|
||||
@@ -1617,9 +1619,10 @@ HTMLInputElement::GetAutocompleteInfo(Nullable<AutocompleteInfo>& aInfo)
|
||||
}
|
||||
|
||||
const nsAttrValue* attributeVal = GetParsedAttr(nsGkAtoms::autocomplete);
|
||||
mAutocompleteAttrState =
|
||||
mAutocompleteInfoState =
|
||||
nsContentUtils::SerializeAutocompleteAttribute(attributeVal, aInfo.SetValue(),
|
||||
mAutocompleteAttrState);
|
||||
mAutocompleteInfoState,
|
||||
true);
|
||||
}
|
||||
|
||||
int32_t
|
||||
|
||||
Reference in New Issue
Block a user