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,17 +29,22 @@
|
||||||
* we're not getting as much test coverage there as we'd like. When we
|
* 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
|
* implement attribute-based restyle hints, we can stop dirtying the subtree
|
||||||
* on attribute modifications, and these tests will start to be more useful.
|
* 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.dummy = 0;
|
window.onload = function() {
|
||||||
var $ = document.getElementById.bind(document);
|
window.dummy = 0;
|
||||||
function syncRestyle() { window.dummy += $("fs2").offsetTop; }
|
var $ = document.getElementById.bind(document);
|
||||||
syncRestyle();
|
function syncRestyle() { window.dummy += $("fs2").offsetTop; }
|
||||||
$('fs1').disabled = true;
|
syncRestyle();
|
||||||
syncRestyle();
|
$('fs1').disabled = true;
|
||||||
$('fs1').disabled = false;
|
syncRestyle();
|
||||||
syncRestyle();
|
$('fs1').disabled = false;
|
||||||
$('cb').checked = true;
|
syncRestyle();
|
||||||
syncRestyle();
|
$('cb').checked = true;
|
||||||
$('fs2').disabled = true;
|
syncRestyle();
|
||||||
|
$('fs2').disabled = true;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue