Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1722662 - Make Element::{Add,Remove}States handle change notifica…
…tions correctly. r=smaug The style system uses the changed bits to compute the old state, so if it's inaccurate it might cause styles to be incorrectly invalidated. This causes issues because with the next patch the autofill jsm calls removeManuallyManagedStates(AUTOFILL), then addManuallyManagedStates(AUTOFILL | AUTOFILL_PREVIEW), and if the input didn't have AUTOFILL before we'd incorrectly detect it as not changing with the next patch. Also make them not virtual anymore since nobody overrides them. An alternative to this would be to assert that we don't yet have the state we're adding (or that we have the state we're removing), and handle it in the callers. But this is a bit more convenient. Differential Revision: https://phabricator.services.mozilla.com/D122013
- Loading branch information