TextBrowser: revert some of the recent optimizations

It was too hostile to delay setting the document upon first show
event and to keep everything in a buffer while hidden. It resulted
to noticeable flicker for views being shown for the first time, and
also auto scrolling becoming unreliable.