mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00

This patch makes `HTMLEditRules::PinSelectionToNewBlock()` use `StaticRange` instead of `nsRange` for comparing a point and a range (i.e., the DOM tree won't be changed during it's alive). Unfortunately, we still have allocation cost, but we can save the cost of registering and unregistering mutation observer and computing common ancestor of the range. Differential Revision: https://phabricator.services.mozilla.com/D35145 --HG-- extra : moz-landing-system : lando