| Index: LayoutTests/compositing/iframes/overlapped-nested-iframes.html
|
| diff --git a/LayoutTests/compositing/iframes/overlapped-nested-iframes.html b/LayoutTests/compositing/iframes/overlapped-nested-iframes.html
|
| index 0d84b27cec771481ce4e5b69ed993af1b570cc68..d8690f5ac23716000a721ad25c3b4150808b7de4 100644
|
| --- a/LayoutTests/compositing/iframes/overlapped-nested-iframes.html
|
| +++ b/LayoutTests/compositing/iframes/overlapped-nested-iframes.html
|
| @@ -33,13 +33,19 @@
|
| window.setTimeout(function() {
|
| window.scrollTo(0, 100);
|
| // Force a paint, and give layers a chance to update.
|
| - if (window.testRunner)
|
| - testRunner.display();
|
| + if (window.internals) {
|
| + // FIXME: forcing the child iframes to do a compositing update here might not be appropriate.
|
| + // Is it more correct to actually force a layout in the actual code somewhere?
|
| + var frameDocument1 = document.getElementById('frame1').contentWindow.document;
|
| + window.internals.forceCompositingUpdate(frameDocument1);
|
| + var frameDocument2 = document.getElementById('frame2').contentWindow.document;
|
| + window.internals.forceCompositingUpdate(frameDocument2);
|
| + }
|
| window.setTimeout(function() {
|
| - if (window.testRunner) {
|
| + if (window.internals)
|
| document.getElementById('layers').innerHTML = window.internals.layerTreeAsText(document);
|
| + if (window.testRunner)
|
| testRunner.notifyDone();
|
| - }
|
| }, 0);
|
| }, 0);
|
| }
|
| @@ -50,10 +56,10 @@
|
| <body>
|
| <div id="banner"></div>
|
|
|
| - <!-- Tests that when scrolled so that one iframe is overlapped, both iframes
|
| + <!-- Tests that when scrolled so that one iframe is overlapped, both iframes
|
| and their contents become composited. -->
|
| - <iframe style="margin-top: 150px;" src="resources/intermediate-frame.html"></iframe>
|
| - <iframe src="resources/intermediate-frame.html"></iframe>
|
| + <iframe id="frame1" style="margin-top: 150px;" src="resources/intermediate-frame.html"></iframe>
|
| + <iframe id="frame2" src="resources/intermediate-frame.html"></iframe>
|
|
|
| <pre id="layers">Layer tree appears here in DRT.</pre>
|
| </body>
|
|
|