[`AutoStyleCacheArray` creates 19 `StyleCache` instances] from constructor. [`StyleCache` has `nsString` member variable](https://searchfox.org/mozilla-central/rev/c52d5f8025b5c9b2b4487159419ac9012762c40c/editor/libeditor/TypeInState.h#50) and most of the `nsString` instance are not used in most cases. Therefore, we should make it create `StyleCache` instance when it's necessary.
Bug 1609860 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
[`AutoStyleCacheArray` creates 19 `StyleCache` instances](https://searchfox.org/mozilla-central/rev/c52d5f8025b5c9b2b4487159419ac9012762c40c/editor/libeditor/TypeInState.h#68-86) from constructor. [`StyleCache` has `nsString` member variable](https://searchfox.org/mozilla-central/rev/c52d5f8025b5c9b2b4487159419ac9012762c40c/editor/libeditor/TypeInState.h#50) and most of the `nsString` instance are not used in most cases. Therefore, we should make it create `StyleCache` instance when it's necessary.