зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5c4be41f42
Коммит
f82870c55b
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче