- * element.
- * @return Returns with NS_OK if this doesn't meat any
- * unexpected situation. If this method tries to
- * split the paragraph, marked as handled.
- */
- MOZ_CAN_RUN_SCRIPT
- MOZ_MUST_USE EditActionResult ReturnInParagraph(Element& aParentDivOrP);
-
/**
* ReturnInListItem() handles insertParagraph command (i.e., handling
* Enter key press) in a list item element.
diff --git a/editor/libeditor/HTMLEditor.h b/editor/libeditor/HTMLEditor.h
index 458cfff71baa..b07d7abaf383 100644
--- a/editor/libeditor/HTMLEditor.h
+++ b/editor/libeditor/HTMLEditor.h
@@ -1798,6 +1798,20 @@ class HTMLEditor final : public TextEditor,
Element& aParentDivOrP,
const EditorDOMPointBase
& aStartOfRightNode, nsIContent* aBRNode);
+ /**
+ * HandleInsertParagraphInParagraph() does the right thing for Enter key
+ * press or 'insertParagraph' command in aParentDivOrP. aParentDivOrP will
+ * be split at start of first selection range.
+ *
+ * @param aParentDivOrP The parent block. This must be or
+ * element.
+ * @return Returns with NS_OK if this doesn't meat any
+ * unexpected situation. If this method tries to
+ * split the paragraph, marked as handled.
+ */
+ MOZ_CAN_RUN_SCRIPT MOZ_MUST_USE EditActionResult
+ HandleInsertParagraphInParagraph(Element& aParentDivOrP);
+
protected: // Called by helper classes.
virtual void OnStartToHandleTopLevelEditSubAction(
EditSubAction aEditSubAction, nsIEditor::EDirection aDirection) override;