gecko-dev/accessible
Masayuki Nakano 043e93a8ba Bug 1451672 - part 21: Refine TextEditor::TypedText() r=m_kato
According to existing comments, TextEditor::TypedText() and
HTMLEditor::TypedText() are intentional bottleneck to debug.  However, only
for that purpose, it and its internal methods are made virtual.  This really
doesn't make sense.

So, this patch creates TextEditor::OnInputText() for callers of TypedText()
with non-empty string, TextEditor::OnInputParagraphSeparator() for callers
of TypedText() with eTypeBreak (Enter key or insertParagraphSeparator),
HTMLEditor::OnInputLineBreak() for callers of TypedText() with eTypeBR
(Shift + Enter or insertLineBreak).  Additionally, this creates internal
non-virtual methods for XPCOM methods which are used as internal methods of
TypedText().  One is InsertTextAsAction() for nsIPlatintextEditor.insertText().
the other is InsertParagraphSeparator() for nsIPlaintextEditor.insertLineBreak().

Although those new methods are not have "WithTransaction" postfix, they must
be clearer they'll use transactions since user input and actions should be
undo-able.

MozReview-Commit-ID: AmOkMqovIKA

--HG--
extra : rebase_source : 9c0f4b25fa2a36ad2f3394f72eb290824c31d82a
2018-04-16 23:43:36 +09:00
..
aom Bug 1436263 - Part 4: Remove unnecessary `virtual` and `final` from non-overriding final virtual function declarations. r=froydnj 2018-02-09 01:31:38 -08:00
atk Bug 1449530 - fix bustage of a11cb2c5d1f9c CLOSED TREE 2018-04-03 11:00:48 -04:00
base Bug 1429903 part 2. Stop using nsIDOMEventTarget in xpidl. r=mccr8 2018-04-20 00:49:30 -04:00
generic Bug 1451672 - part 21: Refine TextEditor::TypedText() r=m_kato 2018-04-16 23:43:36 +09:00
html Bug 1454241: Remove nsINode::eDATA_NODE. r=bz 2018-04-20 03:58:00 +02:00
interfaces Bug 1420119 - avoid issues with make's timestamp caching; r=nalexander 2018-02-13 16:04:31 -05:00
ipc Bug 1454628 - fixed compilation with --disable-accessibility builds; r=aklotz 2018-04-17 13:01:19 -04:00
jsat Bug 1454851 - Remove gestures and all input management. r=yzen 2018-04-19 15:45:57 -07:00
mac Backed out 8 changesets (bug 1451169) on request from njn a=backout 2018-04-11 11:22:05 +03:00
other Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00
tests Bug 1455052 part 12. Remove JS uses of nsIDOMEvent. r=masayuki,kmag 2018-04-20 12:55:31 -04:00
windows Bug 1454233: Remove nsINode::eDOCUMENT. r=bz 2018-04-20 01:30:11 +02:00
xpcom Bug 1444991 - Part 1: Read webidl's Bindings.conf, and pass it into xpidl, r=mccr8 2018-04-17 19:20:58 -04:00
xul Bug 1455392 - Remove checkState from nsIDOMXULCheckboxElement and nsIDOMXULButtonElement;r=bz,surkov 2018-04-20 09:37:03 -07:00
.eslintrc.js Bug 1436389 - Update complexity rules to adapt for the algorithm in the new ESLint. r=mossop 2018-02-07 16:16:09 +00:00
moz.build Bug 1329977 - creating doc accessibles for existing content documents. r=surkov 2017-10-31 09:48:07 -04:00