Bug 1773070 - While at it use some better names for some bits. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D148538
This commit is contained in:
@@ -5955,7 +5955,7 @@ ElementState HTMLInputElement::IntrinsicState() const {
|
||||
|
||||
if (GetValidityState(VALIDITY_STATE_CUSTOM_ERROR) ||
|
||||
(mCanShowInvalidUI && ShouldShowValidityUI())) {
|
||||
state |= ElementState::MOZ_UI_INVALID;
|
||||
state |= ElementState::USER_INVALID;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5967,9 +5967,9 @@ ElementState HTMLInputElement::IntrinsicState() const {
|
||||
// 3. The element has already been modified or the user tried to submit the
|
||||
// form owner while invalid.
|
||||
if (mCanShowValidUI && ShouldShowValidityUI() &&
|
||||
(IsValid() || (!state.HasState(ElementState::MOZ_UI_INVALID) &&
|
||||
!mCanShowInvalidUI))) {
|
||||
state |= ElementState::MOZ_UI_VALID;
|
||||
(IsValid() ||
|
||||
(!state.HasState(ElementState::USER_INVALID) && !mCanShowInvalidUI))) {
|
||||
state |= ElementState::USER_VALID;
|
||||
}
|
||||
|
||||
// :in-range and :out-of-range only apply if the element currently has a
|
||||
|
||||
Reference in New Issue
Block a user