mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-21 02:35:21 +00:00
e06533766b
Making them return next insertion point with `nsresult` makes the callers easier to understand. Therefore, this patch declares `MoveNodeResult` class newly and make them use it. And also we can get rid of the case of setting `*aInOutDestOffset` to -1 because it's a hacky case of `HTMLEditRules::MoveBlock()`. If we keep it, `MoveNodeSmart()` needs to compute new insertion point with different logic. Therefore, this patch makes `HTMLEditRules::MoveBlock()` adjust new insertion point with checking its argument. Differential Revision: https://phabricator.services.mozilla.com/D44199 --HG-- extra : moz-landing-system : lando