5 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
24 if (window
.testRunner
) {
25 testRunner
.dumpAsText();
26 testRunner
.waitUntilDone();
29 if (window
.internals
) {
30 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(false);
33 window
.onload = function() {
35 window
.internals
.startTrackingRepaints(document
);
37 window
.scrollTo(0, 500);
39 runAfterLayoutAndPaint(function() {
40 window
.scrollTo(0, 0);
42 runAfterLayoutAndPaint(function() {
44 document
.getElementById('layers').textContent
=
45 window
.internals
.layerTreeAsText(document
, internals
.LAYER_TREE_INCLUDES_REPAINT_RECTS
);
47 if (window
.testRunner
)
48 testRunner
.notifyDone();
55 <body style=
"height: 4000px;">
61 <pre id=
"layers"></pre>