Unprefix -moz-read-write / -moz-read-only

This commit is contained in:
Andy 2025-06-29 02:10:26 -07:00 committed by roytam1
commit 4cc014cb6b
25 changed files with 75 additions and 75 deletions

View file

@ -2198,13 +2198,13 @@ nsGenericHTMLFormElement::IntrinsicState() const
}
// Make the text controls read-write
if (!state.HasState(NS_EVENT_STATE_MOZ_READWRITE) &&
if (!state.HasState(NS_EVENT_STATE_READWRITE) &&
IsTextOrNumberControl(/*aExcludePassword*/ false)) {
bool roState = GetBoolAttr(nsGkAtoms::readonly);
if (!roState) {
state |= NS_EVENT_STATE_MOZ_READWRITE;
state &= ~NS_EVENT_STATE_MOZ_READONLY;
state |= NS_EVENT_STATE_READWRITE;
state &= ~NS_EVENT_STATE_READONLY;
}
}