mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00

It's a static method and called only with `EditorDOMPointBase` instances. So, we can add new API to `EditorDOMPointBase` instead. Note that it's changed to return container when the container is a data node rather than a text node. This should be better because no data node can have children. Depends on D117382 Differential Revision: https://phabricator.services.mozilla.com/D117490