style: Run restyle_hints_state.html onload, so it doesn't interact with children_changed.

This commit is contained in:
Emilio Cobos Álvarez 2016-08-11 12:38:06 -07:00
parent 63d9f2f56e
commit 51b6568273
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -29,7 +29,11 @@
* we're not getting as much test coverage there as we'd like. When we
* implement attribute-based restyle hints, we can stop dirtying the subtree
* on attribute modifications, and these tests will start to be more useful.
*
* Also, note that we use window.onload in order to prevent the restyle
* hints to interact with any content appended notifications.
*/
window.onload = function() {
window.dummy = 0;
var $ = document.getElementById.bind(document);
function syncRestyle() { window.dummy += $("fs2").offsetTop; }
@ -41,5 +45,6 @@
$('cb').checked = true;
syncRestyle();
$('fs2').disabled = true;
}
</script>
</body>