diff --git a/editor/libeditor/HTMLEditRules.h b/editor/libeditor/HTMLEditRules.h index c5f26e75e5cd..cff064caf202 100644 --- a/editor/libeditor/HTMLEditRules.h +++ b/editor/libeditor/HTMLEditRules.h @@ -590,7 +590,12 @@ protected: */ 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