| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <div style="position: absolute; overflow:scroll; width:200px; height:200px"> | 2 <div style="position: absolute; overflow:scroll; width:200px; height:200px"> |
| 3 <div id="foo2" style="height: 1000px; width: 150px; background: lightblue; tr
ansform: translateZ(0) "></div> | 3 <div id="foo2" style="height: 1000px; width: 150px; background: lightblue; tr
ansform: translateZ(0) "></div> |
| 4 <div id="foo" style="height: 1000px; width: 100px; position: absolute; top: 0p
x; left: 0px; background: lightgray"></div> | 4 <div id="foo" style="height: 1000px; width: 100px; position: absolute; top: 0p
x; left: 0px; background: lightgray"></div> |
| 5 </div> | 5 </div> |
| 6 <script src="../../resources/run-after-display.js"></script> | 6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 7 <script> | 7 <script> |
| 8 // This test verifies that a repaint request for a squashed layer that is inside
of a scrolling container and much taller | 8 // This test verifies that a repaint request for a squashed layer that is inside
of a scrolling container and much taller |
| 9 // than the viewport does not receive an incorrect paint invalidation rect when
it is invalidated. In particular, the invalidation | 9 // than the viewport does not receive an incorrect paint invalidation rect when
it is invalidated. In particular, the invalidation |
| 10 // rect should not be clipped to the visible viewport. | 10 // rect should not be clipped to the visible viewport. |
| 11 | 11 |
| 12 if (window.testRunner) { | 12 function repaintTest() { |
| 13 testRunner.dumpAsText(); | 13 document.querySelector("#foo").style.background = 'red'; |
| 14 testRunner.waitUntilDone(); | |
| 15 } | 14 } |
| 16 runAfterDisplay(function() { | |
| 17 if (window.internals) | |
| 18 window.internals.startTrackingRepaints(document); | |
| 19 | |
| 20 document.querySelector("#foo").style.background = 'red'; | |
| 21 | |
| 22 if (window.testRunner) | |
| 23 testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document
, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS)); | |
| 24 | 15 |
| 25 if (window.internals) | 16 runRepaintTest(); |
| 26 window.internals.stopTrackingRepaints(document); | |
| 27 | |
| 28 if (window.testRunner) | |
| 29 testRunner.notifyDone(); | |
| 30 }); | |
| 31 | |
| 32 </script> | 17 </script> |
| OLD | NEW |