Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <script src="../../resources/run-after-display.js"></script> | |
| 3 | |
| 4 <!-- The second two divs form a combined squashing layer. display:none'ing the f irst of them will resize the squashing layer. --> | |
| 5 <div style="width: 500px; height: 500px; -webkit-transform: translateZ(0)"></div > | |
| 6 <div style="position: absolute; top: 55px; left: 55px; width: 500px; height: 500 px; background-color: lightblue"></div> | |
| 7 <div id="to-be-removed" style="position: absolute; top: 0px; left: 0px; width: 5 0px; height: 50px; background-color: lightgray"></div> | |
| 8 | |
| 9 <pre id="output" style="display: none"></pre> | |
| 10 <script> | |
| 11 // This test checks that resizing a squashing layer such that the offset of cont ent squashed into it relative to the squashing | |
| 12 // container causes a repaint of its bounds within the updated squashing layer g eometry. | |
| 13 if (window.testRunner) { | |
| 14 testRunner.dumpAsText(); | |
| 15 testRunner.waitUntilDone(); | |
| 16 } | |
| 17 | |
| 18 if (window.internals) | |
| 19 internals.settings.setLayerSquashingEnabled(true); | |
| 20 | |
| 21 setTimeout(function() { | |
| 22 if (window.internals) | |
| 23 window.internals.startTrackingRepaints(document); | |
| 24 document.querySelector("#to-be-removed").style.display = 'none'; | |
| 25 | |
| 26 var output = document.querySelector("#output"); | |
| 27 if (window.internals) { | |
| 28 output.textContent = window.internals.layerTreeAsText(document, internal s.LAYER_TREE_INCLUDES_REPAINT_RECTS); | |
| 29 window.internals.stopTrackingRepaints(document); | |
| 30 } | |
| 31 output.style.display = 'block'; | |
| 32 | |
| 33 if (window.testRunner) | |
| 34 testRunner.notifyDone(); | |
| 35 | |
| 36 }, 2000); | |
|
Ian Vollick
2014/06/13 02:42:48
Oof, that's a very big timeout. Why's this necessa
chrishtr
2014/06/13 04:24:24
Ugh, that's me being sloppy. I changed from runAft
| |
| 37 </script> | |
| OLD | NEW |