Bug 1380415 part 2. Remove XPCOM constraint validation APIs. r=mccr8

This commit is contained in:
Boris Zbarsky
2017-07-13 23:46:28 -04:00
parent c81a5d320c
commit 7883a597ca
27 changed files with 38 additions and 180 deletions

View File

@@ -1277,9 +1277,6 @@ NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLInputElement)
nsIConstraintValidation)
NS_INTERFACE_TABLE_TAIL_INHERITING(nsGenericHTMLFormElementWithState)
// nsIConstraintValidation
NS_IMPL_NSICONSTRAINTVALIDATION_EXCEPT_SETCUSTOMVALIDITY(HTMLInputElement)
// nsIDOMNode
nsresult
@@ -7123,14 +7120,12 @@ HTMLInputElement::GetStep() const
// nsIConstraintValidation
NS_IMETHODIMP
void
HTMLInputElement::SetCustomValidity(const nsAString& aError)
{
nsIConstraintValidation::SetCustomValidity(aError);
UpdateState(true);
return NS_OK;
}
bool
@@ -7336,13 +7331,6 @@ HTMLInputElement::UpdateBarredFromConstraintValidation()
IsDisabled());
}
void
HTMLInputElement::GetValidationMessage(nsAString& aValidationMessage,
ErrorResult& aRv)
{
aRv = GetValidationMessage(aValidationMessage);
}
nsresult
HTMLInputElement::GetValidationMessage(nsAString& aValidationMessage,
ValidityStateType aType)