Bug 1740230 - Remove some prefs for pseudo-classes that we have shipped/unshipped successfully. r=dholbert
And remove code for :-moz-submit-invalid completely. Differential Revision: https://phabricator.services.mozilla.com/D130737
This commit is contained in:
@@ -224,8 +224,8 @@ class HTMLFormElement final : public nsGenericHTMLElement,
|
||||
void OnSubmitClickEnd();
|
||||
|
||||
/**
|
||||
* This method will update the form validity so the submit controls states
|
||||
* will be updated (for -moz-submit-invalid pseudo-class).
|
||||
* This method will update the form validity.
|
||||
*
|
||||
* This method has to be called by form elements whenever their validity state
|
||||
* or status regarding constraint validation changes.
|
||||
*
|
||||
@@ -237,16 +237,6 @@ class HTMLFormElement final : public nsGenericHTMLElement,
|
||||
*/
|
||||
void UpdateValidity(bool aElementValidityState);
|
||||
|
||||
/**
|
||||
* Returns the form validity based on the last UpdateValidity() call.
|
||||
*
|
||||
* @return Whether the form was valid the last time UpdateValidity() was
|
||||
* called.
|
||||
*
|
||||
* @note This method may not return the *current* validity state!
|
||||
*/
|
||||
bool GetValidity() const { return !mInvalidElementsCount; }
|
||||
|
||||
/**
|
||||
* This method check the form validity and make invalid form elements send
|
||||
* invalid event if needed.
|
||||
@@ -594,7 +584,6 @@ class HTMLFormElement final : public nsGenericHTMLElement,
|
||||
/**
|
||||
* Number of invalid and candidate for constraint validation elements in the
|
||||
* form the last time UpdateValidity has been called.
|
||||
* @note Should only be used by UpdateValidity() and GetValidity()!
|
||||
*/
|
||||
int32_t mInvalidElementsCount;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user