зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1319458: Mark <body> as display:none during pageload of talos glterrain test. r=jmaher
MozReview-Commit-ID: LdUVInFYrDn
This commit is contained in:
Родитель
5c0be72ef2
Коммит
a4b633bdc7
|
@ -364,6 +364,11 @@
|
|||
|
||||
// The full test starts here
|
||||
function test() {
|
||||
// We initially hide the <body>, to reduce the chance of spinning our wheels
|
||||
// with incremental ASAP-paint-mode paints during pageload. Now that onload
|
||||
// has fired, we un-hide it:
|
||||
document.body.style.display = "";
|
||||
|
||||
gResults = {values: [], names: [], raw: []};
|
||||
// This test measures average frame interval during WebGL animation as follows:
|
||||
// 1. Creates a new WebGL canvas.
|
||||
|
@ -393,7 +398,7 @@
|
|||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="test();" style="overflow:hidden; margin:0">
|
||||
<body onload="test();" style="overflow:hidden; margin:0; display:none">
|
||||
<canvas id="c"></canvas>
|
||||
<img src="grass.jpeg" style="display:none" id="grass"/>
|
||||
</body>
|
||||
|
|
Загрузка…
Ссылка в новой задаче