Bug 1460509 - part 32: Mark HTMLEditRules::CacheInlineStyles() as MOZ_MUST_USE since it may cause destroying the editor and returns NS_ERROR_EDITOR_DESTROYED in such case r=m_kato

MozReview-Commit-ID: FJHxJ1j02l1

--HG--
extra : rebase_source : e881022bc486e3a8446afff6e3014dad6a79d292
This commit is contained in:
Masayuki Nakano 2018-05-14 23:24:40 +09:00
Родитель 5c4be41f42
Коммит f82870c55b
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -590,7 +590,12 @@ protected:
*/ */
MOZ_MUST_USE nsresult RemoveListStructure(Element& aListElement); MOZ_MUST_USE nsresult RemoveListStructure(Element& aListElement);
nsresult CacheInlineStyles(nsINode* aNode); /**
* CacheInlineStyles() caches style of aNode into mCachedStyles.
* This may cause flushing layout at retrieving computed value of CSS
* properties.
*/
MOZ_MUST_USE nsresult CacheInlineStyles(nsINode* aNode);
/** /**
* ReapplyCachedStyles() restores some styles which are disappeared during * ReapplyCachedStyles() restores some styles which are disappeared during