mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00

`HTMLEditRules::ApplyBlockStyle()` stores `curBlock` and `newBlock` during its loop to keep handling from deeper child to ancestor, and may do two things for a `curNode`. If `curBlock` and/or `newBlock` is moved from expected container when it sets one of or both of them, this patch check whether mutation event listeners change the DOM tree. Additionally, this patch also checks whether `curNode' is moved by mutation event listener at first step of two jobs for it. Differential Revision: https://phabricator.services.mozilla.com/D32689 --HG-- extra : moz-landing-system : lando