Issue #2790 - Part 1: Add: event state, pseudo-class mapping, SetAutofilled methods

This commit is contained in:
MeladJM 2025-07-18 06:28:23 +08:00 committed by roytam1
commit 13d1054046
9 changed files with 73 additions and 0 deletions

View file

@ -70,6 +70,15 @@ public:
}
NS_IMETHOD SetUserInput(const nsAString& aInput) override;
/**
* Sets or clears the autofilled state of this textarea element.
* This is used by the browser's autofill system to indicate when
* a value has been automatically filled (e.g., from saved form data).
*
* @param aAutofilled Whether the element should be marked as autofilled
*/
void SetAutofilled(bool aAutofilled);
// nsIFormControl
NS_IMETHOD_(uint32_t) GetType() const override { return NS_FORM_TEXTAREA; }
NS_IMETHOD Reset() override;