+2
−2
+17
−62
+6
−30
Loading
`nsRange`s need to keep track of all `Selection` instances they are in, while maintaining an as-small-as-possible memory footprint. The approach of using a linked list to store the selection pointers led to a performance regression because of the necessary allocations of the selection wrapper class. Since the `AutoTArray` has an identical size, the list can easily be replaced. Differential Revision: https://phabricator.services.mozilla.com/D176908