mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
52cffc3290
nsITransactionListener::AddListener() and nsITransactionListener::RemoveListener() are of course virtual methods. Additionally, they are safe to call without grabbing the TransactionManager's instance with local variable. Therefore, if EditorBase has methods to add/remove transaction listener to/from its transaction manager, we don't need EditorBase::GetTransactionManager() anymore. So, this patch adds AddTransactionListener() and RemoveTransactionListener() to EditorBase and TransactionManager, and remove EditorBase::GetTransactionManager() (not nsIEditor's one). MozReview-Commit-ID: FkPa1YgfagD --HG-- extra : rebase_source : 8ef7796136804e3d7604c5ca5417fb3379606b93 |
||
---|---|---|
.. | ||
tests | ||
moz.build | ||
nsITransaction.idl | ||
nsITransactionListener.idl | ||
nsITransactionManager.idl | ||
nsTransactionManagerCID.h | ||
TransactionItem.cpp | ||
TransactionItem.h | ||
TransactionManager.cpp | ||
TransactionManager.h | ||
TransactionManagerFactory.cpp | ||
TransactionStack.cpp | ||
TransactionStack.h |