Avoid Window::GetComputedStyle when checking for display: none

This commit is contained in:
Alex Fong 2018-02-12 20:36:23 +08:00
parent 1d8e78720b
commit 8d09398230
5 changed files with 10 additions and 19 deletions

View file

@ -72327,7 +72327,7 @@
"testharness"
],
"mozilla/transitionend_safety.html": [
"778e43b049aa421bad7f86eb03d0955576a84ce0",
"16d238e94b2cc2843c9aee4210db43d496bb3114",
"testharness"
],
"mozilla/union.html": [

View file

@ -11,7 +11,6 @@
elem.textContent = 'hi there';
elem.style.transition = 'color 10ms';
elem.style.color = 'black';
elem.ontransitionend = t.step_func_done();
t.step_timeout(function() {
elem.style.color = 'red';
@ -20,6 +19,7 @@
document.body.removeChild(elem);
elem = null;
window.gc();
t.step_timeout(t.step_func_done(), 100);
}, 0);
}, 0);
}, 'Nodes cannot be GCed while a CSS transition is in effect.');