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.settings.setCompositedScrollingForFramesEnabled(true); | 5 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
6 } | 6 } |
7 function doTest() { | 7 function doTest() { |
8 if (window.testRunner) { | 8 if (window.testRunner) { |
9 document.getElementById("layertree").innerText = window.internals.laye
rTreeAsText(document); | 9 document.getElementById("layertree").innerText = window.internals.laye
rTreeAsText(document); |
10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
11 } | 11 } |
12 } | 12 } |
13 window.addEventListener("load", doTest, false); | 13 window.addEventListener("load", doTest, false); |
14 </script> | 14 </script> |
15 </head> | 15 </head> |
16 <body> | 16 <body> |
17 <!-- in force compositing mode the body should get its own graphics layer --> | 17 <!-- in force compositing mode the body should get its own graphics layer --> |
18 <pre id="layertree"></pre> | 18 <pre id="layertree"></pre> |
19 </body> | 19 </body> |
20 </html> | 20 </html> |
OLD | NEW |