mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00

Only for solving the order of `AutoEditInitRulesTrigger` destruction when `HTMLEditor::Init()` calls `TextEditor::Init()`, `TextEditor` has unnecessary counter and the initialization code is made harder to understand. Therefore, this patch makes `TextEditor::Init()` and `HTMLEditor::Init()` directly call `InitEditorContentAndSelection()` at appropriate time. Additionally, `HTMLEditor::Init()` can call `EditorBase::Init()` instead of `TextEditor::Init()` since `TextEditor::Init()` does nothing for `HTMLEditor` actually. Differential Revision: https://phabricator.services.mozilla.com/D45793 --HG-- extra : moz-landing-system : lando