| Index: LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
|
| diff --git a/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html b/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
|
| index 018449be5a62c02256bc719af5e3fcc881559d14..77182642e1452a88aaf3c393231439d6c8a49324 100644
|
| --- a/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
|
| +++ b/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
|
| @@ -46,6 +46,7 @@
|
|
|
| </head>
|
|
|
| +<script src="../../resources/run-after-display.js"></script>
|
| <script src="../../fast/repaint/resources/repaint.js"></script>
|
|
|
| <script>
|
| @@ -64,14 +65,11 @@
|
|
|
| // Force DumpRenderTree to do a layout and repaint here, this is where the repaintRect
|
| // goes wrong because it does not get updated for a newly composited element.
|
| - if (window.testRunner)
|
| - testRunner.display();
|
| -
|
| - window.setTimeout(function() {
|
| + runAfterDisplay(function() {
|
| // Scrolling a little will demonstrate whether the repaint rect is correct or not.
|
| document.getElementById('scrolldiv').scrollTop = 500;
|
| testRunner.notifyDone();
|
| - }, 0);
|
| + });
|
| }
|
|
|
| </script>
|
|
|