Bug 1717156 - part 2: Get rid of nsIEditor::eEditorWidgetMask and its accessor r=m_kato

With the previous patch, we know `nsIEditor::eEditorWidgetMask` always
matches with `EditorBase::IsTextEditor()`.  And it's not referred from JS
(including comm-central and BlueGriffon).  So, we can get rid of it.

Differential Revision: https://phabricator.services.mozilla.com/D118262
This commit is contained in:
Masayuki Nakano
2021-06-22 00:18:06 +00:00
parent 69f41c858e
commit d6c4790121
6 changed files with 2 additions and 21 deletions

View File

@@ -1707,9 +1707,6 @@ nsresult TextControlState::PrepareEditor(const nsAString* aValue) {
editorFlags |= nsIEditor::eEditorPasswordMask;
}
// All nsTextControlFrames are widgets
editorFlags |= nsIEditor::eEditorWidgetMask;
// Spell check is diabled at creation time. It is enabled once
// the editor comes into focus.
editorFlags |= nsIEditor::eEditorSkipSpellCheck;