Prevent chrome://net-internals/#export from flickering
commitb55be9ede35c10a2623c3c348768db92069d7f10
authoralexclarke <alexclarke@chromium.org>
Thu, 12 Mar 2015 11:31:00 +0000 (12 04:31 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 Mar 2015 11:31:52 +0000 (12 11:31 +0000)
tree3b5e50a166650e389b16a323e8f0b20703cdcdfd
parent34e1278e145473eeecf118e63f3530dfd3620f57
Prevent chrome://net-internals/#export from flickering

The problem:

1. Initially all the tabs are visible
2. A layout happens
3. index.js is run and it sets all the tabs to display: none
This results in the flickering.

By initially giving div main-tab-contents the style display: none and
removing that in initTabs_() we can prevent the flickering.

BUG=466068

Review URL: https://codereview.chromium.org/999813002

Cr-Commit-Position: refs/heads/master@{#320264}
chrome/browser/resources/net_internals/index.html
chrome/browser/resources/net_internals/main.js