mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
f3b99207af
First, we can split it with 3 parts: 1. preparation with current selection part. 2. handling deletion with collapsed selection part. 3. handling deletion with non-collapsed selection part. The first should leave in `WillDeleteSelection()`, but the others should be moved to independent methods. With this change, we need to fix an odd case when there is no visible node and `GetFirstSelectedTableCellElement()` returned error due to crossing the method boundary. The method returns error only when there is no selection ranges. In such case, we cannot handle deletion of current selection anyway. So, it must not be a problem to handle the error immediately after calling `GetFirstSelectedTableCellElement()`. Note that this shouldn't occur in normal cases since `WillDoAction()` checks it before calling `WillDeleteSelection()`. Differential Revision: https://phabricator.services.mozilla.com/D44453 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl |