Bug 1460509 - part 70: Mark HTMLEditRules::WillMakeBasicBlock() as MOZ_MUST_USE since it may return NS_ERROR_EDITOR_DESTROYED r=m_kato

MozReview-Commit-ID: 6mfoqUWync8

--HG--
extra : rebase_source : 39e601c8acea5fbb340727e833147a4148eb23e1
This commit is contained in:
Masayuki Nakano 2018-05-17 20:01:19 +09:00
Родитель bb332ddad7
Коммит f176f48d03
1 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -403,7 +403,16 @@ protected:
nsresult WillMakeDefListItem(const nsAString* aBlockType, bool aEntireList, nsresult WillMakeDefListItem(const nsAString* aBlockType, bool aEntireList,
bool* aCancel, bool* aHandled); bool* aCancel, bool* aHandled);
nsresult WillMakeBasicBlock(const nsAString& aBlockType,
/**
* 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.
*/
MOZ_MUST_USE nsresult WillMakeBasicBlock(const nsAString& aBlockType,
bool* aCancel, bool* aHandled); bool* aCancel, bool* aHandled);
/** /**