From d542d41b92e90aa20f1bb3c4abd00f242b16dcc1 Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Mon, 29 Sep 2014 08:18:25 +0900 Subject: [PATCH] Bug 1043721 - Make test_animLengthUnits.xhtml use requestAnimationFrame; r=dholbert --- content/svg/content/test/test_animLengthUnits.xhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/svg/content/test/test_animLengthUnits.xhtml b/content/svg/content/test/test_animLengthUnits.xhtml index 9f136b49b256..6aeedae799c0 100644 --- a/content/svg/content/test/test_animLengthUnits.xhtml +++ b/content/svg/content/test/test_animLengthUnits.xhtml @@ -78,7 +78,7 @@ function main() { // Currently, changing the font-size on a parent doesn't force a resample (see // bug 508206) so we have to give the animation a chance to run - setTimeout("checkAfterChangeFontSize()",100); + window.requestAnimationFrame(checkAfterChangeFontSize); } function checkAfterChangeFontSize() { @@ -96,7 +96,7 @@ function checkAfterChangeFontSize() { circle.parentNode.setAttribute('font-size', '7px'); // Again, due to bug 508206 we need to give the animation a chance to resample - setTimeout("checkWhilstFrozen()",100); + window.requestAnimationFrame(checkWhilstFrozen); } function checkWhilstFrozen() {