| Index: LayoutTests/fast/canvas/resources/repaint.js
|
| diff --git a/LayoutTests/fast/canvas/resources/repaint.js b/LayoutTests/fast/canvas/resources/repaint.js
|
| index e4b713a38496d29f317547368cf074e0abf96907..3a29deeee90d05d955fbbbaaaf2f1fa0c614d22a 100644
|
| --- a/LayoutTests/fast/canvas/resources/repaint.js
|
| +++ b/LayoutTests/fast/canvas/resources/repaint.js
|
| @@ -1,10 +1,13 @@
|
| +if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +
|
| function runRepaintTest()
|
| {
|
| - if (window.testRunner) {
|
| - document.body.offsetTop;
|
| - testRunner.display();
|
| - repaintTest();
|
| - } else {
|
| - setTimeout(repaintTest, 100);
|
| - }
|
| + window.requestAnimationFrame(function() {
|
| + window.setTimeout(function() {
|
| + repaintTest();
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + }, 0);
|
| + });
|
| }
|
|
|