diff --git a/editor/libeditor/HTMLEditRules.cpp b/editor/libeditor/HTMLEditRules.cpp index fa9d7cd5f1d2..8002a40597d2 100644 --- a/editor/libeditor/HTMLEditRules.cpp +++ b/editor/libeditor/HTMLEditRules.cpp @@ -768,9 +768,9 @@ HTMLEditRules::DidDoAction(Selection* aSelection, case EditAction::indent: case EditAction::outdent: case EditAction::align: - return DidMakeBasicBlock(aInfo, aResult); + return DidMakeBasicBlock(); case EditAction::setAbsolutePosition: { - nsresult rv = DidMakeBasicBlock(aInfo, aResult); + nsresult rv = DidMakeBasicBlock(); if (NS_WARN_IF(NS_FAILED(rv))) { return rv; } @@ -4483,8 +4483,7 @@ HTMLEditRules::MakeBasicBlock(nsAtom& blockType) } nsresult -HTMLEditRules::DidMakeBasicBlock(RulesInfo* aInfo, - nsresult aResult) +HTMLEditRules::DidMakeBasicBlock() { MOZ_ASSERT(IsEditorDataAvailable()); diff --git a/editor/libeditor/HTMLEditRules.h b/editor/libeditor/HTMLEditRules.h index 1ad133e252c0..1efe8fa7e768 100644 --- a/editor/libeditor/HTMLEditRules.h +++ b/editor/libeditor/HTMLEditRules.h @@ -406,7 +406,13 @@ protected: nsresult WillMakeBasicBlock(const nsAString& aBlockType, bool* aCancel, bool* aHandled); nsresult MakeBasicBlock(nsAtom& aBlockType); - nsresult DidMakeBasicBlock(RulesInfo* aInfo, nsresult aResult); + + /** + * Called after creating a basic block, indenting, outdenting or aligning + * contents. This method inserts moz-
element if start container of + * Selection needs it. + */ + MOZ_MUST_USE nsresult DidMakeBasicBlock(); /** * Called before changing an element to absolute positioned.