mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00

nsIEditActionListener::WillCreateElement() and nsIEditActionListener::DidCreateElement() are implemented only by m-c. So, we can remove a set of container node and offset in it from their argument. Instead, WillCreateElement() should take a node which will be next sibling of the new node. Note that only implementation of them is, HTMLEditRules::DidCreateElement(). So, we can get rid of them and can call HTMLEditRules::DidCreateElement() directly from EditorBase::CreateNode(). However, such change should be done in another bug which checks all nsIEditActionListener method implementations. MozReview-Commit-ID: 4LQEs2WwrVC --HG-- extra : rebase_source : ee1bee1413c578b2873a291c712b8ef46221db0f