mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
style: Run restyle_hints_state.html onload, so it doesn't interact with children_changed.
This commit is contained in:
parent
63d9f2f56e
commit
51b6568273
1 changed files with 16 additions and 11 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue