Optimize WidgetColorizer::convertDocumentToDarkTheme
In one case I saw this function take 1-2s when changing the theme on a large api documentation text. By leveraging an edit block transaction, the performance goes back to a stable millisecond realm for me.