gecko-dev/editor
Masayuki Nakano a1f13e5b38 Bug 1447924 - part 5: Merge TextEditor::Undo()/Redo() with EditorBase::Undo()/Redo() r=m_kato
EditorBase::Undo() and EditorBase::Redo() implement only undo/redo function.
TextEditor::Undo() and TextEditor::Redo() call them with calling some
notification methods.  However, this causes redundant AutoRules instance
creation and doesn't make sense to separate them under current design.

Therefore this patch merges them into TextEditor.  Unfortunately, they are
XPCOM methods but we cannot implement proper overloads of non-virtual since
they are already minimized design.  Fortunately, reducing only one virtual
call per undo/redo isn't so effective.  So, let's keep simpler design.

Additionally, this patch makes them stop committing composition because
Chrome does not commit composition even if "undo"/"redo" is requested with
execCommand() during composition and it doesn't make sense to try to
undo/redo after committing composition since first undoable transaction
becomes the committing composition and committing composition causes
removing all transactions from redo transaction queue.

MozReview-Commit-ID: 78qlV2I9Lzk

--HG--
extra : rebase_source : 545c787d47fe02bf7e085be9d3ae028816750e69
2018-03-23 01:21:17 +09:00
..
composer Bug 1447924 - part 4: Optimize NumbeOfUndoItems(), NumbeOfRedoItems(), CanUndo() and CanRedo() of EditorBase r=m_kato 2018-03-23 00:08:38 +09:00
libeditor Bug 1447924 - part 5: Merge TextEditor::Undo()/Redo() with EditorBase::Undo()/Redo() r=m_kato 2018-03-23 01:21:17 +09:00
reftests Bug 1429573 - Use input[type=number] in textbox[type=number] implementation. r=Paolo,surkov 2018-02-09 21:54:36 +00:00
spellchecker Bug 1444630 - Don't update dictionary after calling UninitSpellChecker. r=masayuki 2018-03-20 14:27:06 +09:00
txmgr Bug 1447924 - part 5: Merge TextEditor::Undo()/Redo() with EditorBase::Undo()/Redo() r=m_kato 2018-03-23 01:21:17 +09:00
AsyncSpellCheckTestHelper.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
moz.build Bug 1442500 - Part 1. Rename editor/txtsvc to editor/spellchecker. r=masayuki 2018-03-02 12:55:26 +09:00
nsEditorCID.h
nsIDocumentStateListener.idl
nsIEditActionListener.idl Bug 1446533 part 10. Remove remaining nsIDOMCharacterData uses in editor. r=mystor 2018-03-19 15:45:55 -04:00
nsIEditor.idl Bug 662591 - HTMLEditor should set caret to start of first editable text node or before first editable inline node r=m_kato 2018-03-02 14:20:25 +09:00
nsIEditorMailSupport.idl Bug 1060051 - Make editor related interfaces builtin classes if it's possible r=Ehsan,smaug 2017-08-04 13:57:56 +09:00
nsIEditorObserver.idl Bug 1432528 - part 4: Remove nsIEditorObserver::BeforeEditAction() and nsIEditorObserver::CancelEditAction() because nobody implements them r=m_kato 2018-01-24 14:31:29 +09:00
nsIEditorSpellCheck.idl Bug 1424677 - Don't use wstring for nsIEditorSpellCheck. r=masayuki 2017-12-13 04:14:27 -06:00
nsIEditorStyleSheets.idl Bug 1060051 - Make editor related interfaces builtin classes if it's possible r=Ehsan,smaug 2017-08-04 13:57:56 +09:00
nsIEditorUtils.idl Bug 1060051 - Make editor related interfaces builtin classes if it's possible r=Ehsan,smaug 2017-08-04 13:57:56 +09:00
nsIHTMLAbsPosEditor.idl Bug 1433849 - Remove unused methods in nsIHTMLAbsPosEditor. r=masayuki 2018-02-01 10:55:25 +09:00
nsIHTMLEditor.idl Bug 1432944 part 2. Make nsIHTMLEditor.getSelectedElement return nsISupports. r=m_kato 2018-01-29 23:27:59 -05:00
nsIHTMLInlineTableEditor.idl Bug 1425547 - Remove unused methods from nsIHTMLInlineTableEditor. r=masayuki 2018-01-19 16:41:41 +09:00
nsIHTMLObjectResizer.idl Bug 1425652 - mosueDown, mouseUp and mouseMove should be removed from nsIHTMLObjectResizer. r=masayuki 2018-01-10 12:47:16 +09:00
nsIPlaintextEditor.idl Bug 1439812 - Move noscript methods of nsIPlainTextEditor to TextEditor. r=masayuki 2018-02-21 13:21:57 +09:00
nsITableEditor.idl Bug 1387317 - part1: Make AutoSelectionSetterAfterTableEdit use HTMLEditor instead of nsITableEditor r=m_kato 2017-08-08 10:57:19 +09:00
nsIURIRefObject.idl