summaryrefslogtreecommitdiff
path: root/editor/libeditor/EditorBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/libeditor/EditorBase.h')
-rw-r--r--editor/libeditor/EditorBase.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/editor/libeditor/EditorBase.h b/editor/libeditor/EditorBase.h
index dbd00771ef..8680b57ae4 100644
--- a/editor/libeditor/EditorBase.h
+++ b/editor/libeditor/EditorBase.h
@@ -987,11 +987,17 @@ protected:
RefPtr<TextComposition> mComposition;
// Listens to all low level actions on the doc.
- nsTArray<OwningNonNull<nsIEditActionListener>> mActionListeners;
+ typedef AutoTArray<OwningNonNull<nsIEditActionListener>, 5>
+ AutoActionListenerArray;
+ AutoActionListenerArray mActionListeners;
// Just notify once per high level change.
- nsTArray<OwningNonNull<nsIEditorObserver>> mEditorObservers;
+ typedef AutoTArray<OwningNonNull<nsIEditorObserver>, 3>
+ AutoEditorObserverArray;
+ AutoEditorObserverArray mEditorObservers;
// Listen to overall doc state (dirty or not, just created, etc.).
- nsTArray<OwningNonNull<nsIDocumentStateListener>> mDocStateListeners;
+ typedef AutoTArray<OwningNonNull<nsIDocumentStateListener>, 1>
+ AutoDocumentStateListenerArray;
+ AutoDocumentStateListenerArray mDocStateListeners;
// Cached selection for AutoSelectionRestorer.
SelectionState mSavedSel;