OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 if (window.internals) | 4 if (window.internals) { |
5 window.internals.setForceCompositingMode(document, true); | 5 window.internals.setForceCompositingMode(document, true); |
| 6 window.internals.setEnableCompositingForScrollableFrames(document, true)
; |
| 7 } |
6 function doTest() { | 8 function doTest() { |
7 if (window.layoutTestController) { | 9 if (window.layoutTestController) { |
8 document.getElementById("layertree").innerText = layoutTestController.
layerTreeAsText(); | 10 document.getElementById("layertree").innerText = layoutTestController.
layerTreeAsText(); |
9 layoutTestController.dumpAsText(); | 11 layoutTestController.dumpAsText(); |
10 } | 12 } |
11 } | 13 } |
12 window.addEventListener("load", doTest, false); | 14 window.addEventListener("load", doTest, false); |
13 </script> | 15 </script> |
14 </head> | 16 </head> |
15 <body> | 17 <body> |
16 <!-- in force compositing mode the body should get its own graphics layer --> | 18 <!-- in force compositing mode the body should get its own graphics layer --> |
17 <pre id="layertree"></pre> | 19 <pre id="layertree"></pre> |
18 </body> | 20 </body> |
19 </html> | 21 </html> |
OLD | NEW |