mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
56d2a88c44
Currently, `AutoStyleCacheArray` has style information of all 19 styles. However, its element type, `StyleCache` has `nsString` instance. Therefore, the initializing cost is not reasonable since in most cases most of the `StyleCache` instances are not used actually. This patch makes `HTMLEditor::GetInlineStyles()` append elements only for applied styles and `HTMLEditor::ReapplyCachedStyles()` look for current value from an instance with new `IndexOf()` method. Therefore, this patch may make slower if a lot of styles are applied. However, we can expect that it's rare case. Differential Revision: https://phabricator.services.mozilla.com/D61262 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl |