| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 iframe { | 4 iframe { |
| 5 height: 150px; | 5 height: 150px; |
| 6 width: 150px; | 6 width: 150px; |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 <script> | 9 <script> |
| 10 function doTest() | 10 function doTest() |
| 11 { | 11 { |
| 12 if (window.layoutTestController) { | 12 if (window.layoutTestController) { |
| 13 layoutTestController.dumpAsText(false); | 13 layoutTestController.dumpAsText(false); |
| 14 document.getElementById('layertree').innerText = layoutTestController.la
yerTreeAsText(); | 14 document.getElementById('layertree').innerText = layoutTestController.la
yerTreeAsText(); |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 window.addEventListener("load", doTest, false); | 17 window.addEventListener("load", doTest, false); |
| 18 if (window.internals) | 18 if (window.internals) { |
| 19 internals.setForceCompositingMode(document, true); | 19 internals.setForceCompositingMode(document, true); |
| 20 internals.setEnableCompositingForScrollableFrames(document, true); |
| 21 } |
| 20 </script> | 22 </script> |
| 21 </head> | 23 </head> |
| 22 <body> | 24 <body> |
| 23 <!-- this should not generate a layer and the layer tree should be empty --> | 25 <!-- this should not generate a layer and the layer tree should be empty --> |
| 24 <iframe src="resources/subframe-small.html"></iframe> | 26 <iframe src="resources/subframe-small.html"></iframe> |
| 25 <pre id="layertree"></pre> | 27 <pre id="layertree"></pre> |
| 26 </body> | 28 </body> |
| 27 </html> | 29 </html> |
| OLD | NEW |