Fix flashing in devtools views

I was seeing a flash of white when using devtools. Eventually I tracked this down to http://crbug.com/279472 and ported the fix. Note that embedding apps need to do this for every WebContents they create.