Bug 1702670 - Fix state management for "last value change was interactive" for inputs / textareas. r=smaug

This and "value changed" affect the "too long" and "too short" validity
states.

The validity state tracking code is quite messy...

Differential Revision: https://phabricator.services.mozilla.com/D111254
This commit is contained in:
Emilio Cobos Álvarez
2021-04-08 16:02:17 +00:00
parent 276b517317
commit 393cf02d79
5 changed files with 79 additions and 16 deletions

View File

@@ -200,7 +200,9 @@ class HTMLInputElement final : public TextControlElement,
virtual EventStates IntrinsicState() const override;
public:
void SetLastValueChangeWasInteractive(bool);
void ValueChangedOrLastValueChangeWasInteractiveChanged();
// TextControlElement
virtual nsresult SetValueChanged(bool aValueChanged) override;
virtual bool IsSingleLineTextControl() const override;