зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1059705 - revert the change which made nsIEditor builtinclass, r=masayuki
This commit is contained in:
Родитель
8108de6363
Коммит
8dfe1d7cf5
|
@ -1521,8 +1521,10 @@ nsTextEditorState::UnbindFromFrame(nsTextControlFrame* aFrame)
|
|||
// If the editor is modified but nsIEditorObserver::EditAction() hasn't been
|
||||
// called yet, we need to notify it here because editor may be destroyed
|
||||
// before EditAction() is called if selection listener causes flushing layout.
|
||||
bool isInEditAction = false;
|
||||
if (mTextListener && mEditor && mEditorInitialized &&
|
||||
mEditor->GetIsInEditAction()) {
|
||||
NS_SUCCEEDED(mEditor->GetIsInEditAction(&isInEditAction)) &&
|
||||
isInEditAction) {
|
||||
mTextListener->EditAction();
|
||||
}
|
||||
|
||||
|
|
|
@ -991,7 +991,9 @@ IMEContentObserver::FlushMergeableNotifications()
|
|||
}
|
||||
|
||||
// If we're in handling an edit action, this method will be called later.
|
||||
if (mEditor && mEditor->GetIsInEditAction()) {
|
||||
bool isInEditAction = false;
|
||||
if (mEditor && NS_SUCCEEDED(mEditor->GetIsInEditAction(&isInEditAction)) &&
|
||||
isInEditAction) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ interface nsIEditActionListener;
|
|||
interface nsIInlineSpellChecker;
|
||||
interface nsITransferable;
|
||||
|
||||
[builtinclass, scriptable, uuid(c3b61bc9-ccdd-4bcd-acd8-1b8dcbe6a247)]
|
||||
[scriptable, uuid(04714a01-e02f-4ef5-a388-612451d0db16)]
|
||||
|
||||
interface nsIEditor : nsISupports
|
||||
{
|
||||
|
@ -555,5 +555,5 @@ interface nsIEditor : nsISupports
|
|||
* nsIEditorObserver::BeforeEditAction() and nsIEditorObserver::EditAction()
|
||||
* or nsIEditorObserver::CancelEditAction(). Otherwise, false.
|
||||
*/
|
||||
[infallible, noscript] readonly attribute boolean isInEditAction;
|
||||
[noscript] readonly attribute boolean isInEditAction;
|
||||
};
|
||||
|
|
|
@ -22,7 +22,7 @@ class Element;
|
|||
|
||||
[ptr] native Element (mozilla::dom::Element);
|
||||
|
||||
[builtinclass, scriptable, uuid(9470bee7-cad3-4382-8fb4-6bdda9f0273a)]
|
||||
[scriptable, uuid(393a364f-e8e2-48a1-a271-a0067b6bac9b)]
|
||||
|
||||
interface nsIHTMLEditor : nsISupports
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
[builtinclass, scriptable, uuid(da8f244b-6ffc-4be1-8b1a-667abfe1d304)]
|
||||
[scriptable, uuid(b74fb158-1265-4102-91eb-edd0136b49f8)]
|
||||
interface nsIPlaintextEditor : nsISupports
|
||||
{
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче