In bug 594267 we stopped calling WillPaint on hidden documents. I don't know why we didn't do the same for DidPaint in that bug. I think we should.
Created attachment 529212 [details] [diff] [review]
Created attachment 529285 [details] [diff] [review]
patch for checkin
This was green on try.