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

MozReview-Commit-ID: 3lP4jp2nOQy

--HG--
extra : rebase_source : d59d4d56370266f454b498811cb82d346636e244
This commit is contained in:
Masayuki Nakano 2018-05-17 18:34:00 +09:00
Родитель c46d6b402b
Коммит 93cbe764ca
1 изменённых файлов: 9 добавлений и 1 удалений

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

@ -327,7 +327,15 @@ protected:
bool* aCancel, bool* aHandled,
const nsAString* aItemType = nullptr);
nsresult WillRemoveList(bool aOrdered, bool* aCancel, bool* aHandled);
nsresult WillIndent(bool* aCancel, bool* aHandled);
/**
* Called before indenting around Selection. This method actually tries to
* indent the contents.
*
* @param aCancel Returns true if the operation is canceled.
* @param aHandled Returns true if the edit action is handled.
*/
MOZ_MUST_USE nsresult WillIndent(bool* aCancel, bool* aHandled);
/**
* Called before indenting around Selection and it's in CSS mode.