Bug 1460509 - part 71: Mark HTMLEditRules::WillMakeDefListItem() as MOZ_MUST_USE since it may return NS_ERROR_EDITOR_DESTROYED r?m_kato
MozReview-Commit-ID: LrLmebLbwWm
--- a/editor/libeditor/HTMLEditRules.h
+++ b/editor/libeditor/HTMLEditRules.h
@@ -396,18 +396,29 @@ protected:
*
* @param aChange Amount to change z-index.
* @param aCancel Returns true if the operation is canceled.
* @param aHandled Returns true if the edit action is handled.
*/
MOZ_MUST_USE nsresult
WillRelativeChangeZIndex(int32_t aChange, bool* aCancel, bool* aHandled);
- nsresult WillMakeDefListItem(const nsAString* aBlockType, bool aEntireList,
- bool* aCancel, bool* aHandled);
+ /**
+ * Called before creating aDefinitionListItemTag around Selection. This
+ * method just calls WillMakeList() with "dl" as aListType and
+ * aDefinitionListItemTag as aItemType.
+ *
+ * @param aDefinitionListItemTag Should be "dt" or "dd".
+ * @param aEntireList XXX not sure
+ * @param aCancel Returns true if the operation is canceled.
+ * @param aHandled Returns true if the edit action is handled.
+ */
+ MOZ_MUST_USE nsresult
+ WillMakeDefListItem(const nsAString* aBlockType, bool aEntireList,
+ bool* aCancel, bool* aHandled);
/**
* WillMakeBasicBlock() called before changing block style around Selection.
* This method actually does something with calling MakeBasicBlock().
*
* @param aBlockType Necessary block style as string.
* @param aCancel Returns true if the operation is canceled.
* @param aHandled Returns true if the edit action is handled.