mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
cc2af30635
This patch makes `EditorBase::NotifyDocumentListeners()` notify `ComposerCommandsUpdater` via `HTMLEditor::mComposerCommandsUpdater` directly. Therefore, `ComposerCommandsUpdater` can stop inheriting `nsIDocumentStateListener`. Note that this patch also makes `ComposerCommandsUpdater::UpdateCommandGroup()` not take `nsAString` as its parameter because inlinning the `nsIDocumentStateListener` requires `ComposerCommandsUpdater.h` to include `nsAString.h`, but it's redundant and `UpdateCommandGroup()` just compares it with literal strings. Therefore, using `enum class` for specifying command group is faster. Differential Revision: https://phabricator.services.mozilla.com/D61357 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
crashtests | ||
res | ||
test | ||
ComposerCommandsUpdater.cpp | ||
ComposerCommandsUpdater.h | ||
moz.build | ||
nsEditingSession.cpp | ||
nsEditingSession.h | ||
nsIEditingSession.idl |