| Index: third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html
|
| diff --git a/third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html b/third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html
|
| index 2c9116e7a62d3734c76d1d6a9287f7ed4a4fa51b..d5530ed2e3f538eedd86a1dc52bed5243d598f4b 100644
|
| --- a/third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html
|
| +++ b/third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-anchor-point.html
|
| @@ -2,6 +2,7 @@
|
| <html>
|
| <head>
|
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
| + <script src="../../resources/run-after-layout-and-paint.js"></script>
|
| <style>
|
| .outer {
|
| width: 120px;
|
| @@ -27,16 +28,13 @@
|
| }
|
| </style>
|
| <script type="text/javascript" charset="utf-8">
|
| - if (window.testRunner)
|
| - testRunner.waitUntilDone();
|
| -
|
| function doTest()
|
| {
|
| - window.setTimeout(function() {
|
| - document.getElementById('inner').className = 'inner composited changed';
|
| - if (window.testRunner)
|
| - testRunner.notifyDone();
|
| - }, 0);
|
| + if (window.testRunner) {
|
| + runAfterLayoutAndPaint(function() {
|
| + document.getElementById('inner').className = 'inner composited changed';
|
| + }, true);
|
| + }
|
| }
|
| window.addEventListener('load', doTest, false);
|
| </script>
|
|
|