Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: LayoutTests/animations/display-none-terminates-animation.html

Issue 145133006: Remove the recalc style timer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moar raf Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/layer-tree-model.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/display-none-terminates-animation.html
diff --git a/LayoutTests/animations/display-none-terminates-animation.html b/LayoutTests/animations/display-none-terminates-animation.html
index ecc529fed89e3be83e5c21aee7de9f9c1f6ad071..601e6992fc94cf8efea086f9adf06c9885ce384f 100644
--- a/LayoutTests/animations/display-none-terminates-animation.html
+++ b/LayoutTests/animations/display-none-terminates-animation.html
@@ -43,14 +43,18 @@
function onStart(e) {
log('INFO: Start event fired');
target.removeEventListener('webkitAnimationStart', onStart);
- setTimeout(setDisplayNone, 100);
+ requestAnimationFrame(function() {
+ setTimeout(setDisplayNone, 100);
+ });
}
var leftPropertyWhenSetDisplayNone;
function setDisplayNone() {
leftPropertyWhenSetDisplayNone = getComputedStyle(target).left;
target.style.display = 'none';
- setTimeout(setDisplayBlock, 100);
+ requestAnimationFrame(function() {
+ setTimeout(setDisplayBlock, 100);
+ });
}
function setDisplayBlock() {
« no previous file with comments | « no previous file | LayoutTests/inspector/layer-tree-model.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698