зеркало из https://github.com/mozilla/gecko-dev.git
dfa4091f3b
There is 2 overloads. One is `TextServicesDocument`'s method, and the latter is for `nsIEditActionListener`. The latter could occur if `TextServicesDocument` is added to the editor when there is no inline spellchecker, `EditorSpellCheck` or `mozSpellChecker`. https://searchfox.org/mozilla-central/rev/d2f8488b6a704443a5c5bfc6d2878171b5f0d393/editor/libeditor/EditorBase.cpp#2388,2391,2393,2396,2398 I don't know whether this is possible case, but unfortunately, `nsIEditActionListener::DidJoinNodes()` is not implemented by JS and implemented only by `TextServicesDocument`. Therefore, we can make it "noscript" and use non-scriptable classes as arguments. This patch makes them get jointed point and removed content node and the joining direction for fixing bug 1735608. Unfortunately, there is no test framework to check the result in `TextServicesDocument` nor the new path. The latter should be tested when we fix bug 1735608 later. Differential Revision: https://phabricator.services.mozilla.com/D130458 |
||
---|---|---|
.. | ||
tests | ||
EditorSpellCheck.cpp | ||
EditorSpellCheck.h | ||
FilteredContentIterator.cpp | ||
FilteredContentIterator.h | ||
TextServicesDocument.cpp | ||
TextServicesDocument.h | ||
moz.build | ||
nsComposeTxtSrvFilter.cpp | ||
nsComposeTxtSrvFilter.h | ||
nsIInlineSpellChecker.idl |