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:
Emilio Cobos Álvarez
2022-06-07 23:09:53 +00:00
parent e5aa261961
commit 9decd52335
7 changed files with 24 additions and 24 deletions

View File

@@ -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