Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deal with invalid
StaticRange
s and DOM mutations in Selection
.
Ranges inside of a `Selection` are expected to be sorted by their start point by the painting algorithms. Also, `StaticRange`s, which previously were not part of `Selection`, need to be considered for painting based on their `IsValid()` status. This is now added by introducing a second array for invalid static ranges and an additional re-ordering method which needs to be called before paint that moves ranges in between. A potential change in range endpoints can be determined by observing the `Document`s generation and by adding a flag that's set to true in `Selection::NotifySelectionObservers()`. Differential Revision: https://phabricator.services.mozilla.com/D198943 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1872535 gecko-commit: 20e975d790c813957b823a4418e599107ec2a097 gecko-reviewers: smaug
- Loading branch information