small naming mismatch: updateStyleCache vs. styleSummary
Also stylecache/stylesummary could be misunderstood to be cache/summary of all style, while it is about the style of the currently selected/focussed text.
So would propose to use "current" to mark that out: updateCurrentStyleCache, currentStyleCache
Not perfectly happy with that, would welcome better proposals if you have.