| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 | 3 |
| 4 <head> | 4 <head> |
| 5 <script src="../../resources/run-after-layout-and-paint.js"></script> | 5 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 6 | 6 |
| 7 <style> | 7 <style> |
| 8 #fixed { | 8 #fixed { |
| 9 position: fixed; | 9 position: fixed; |
| 10 bottom: 30px; | 10 bottom: 30px; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 window.internals.startTrackingRepaints(document); | 35 window.internals.startTrackingRepaints(document); |
| 36 | 36 |
| 37 window.scrollTo(0, 500); | 37 window.scrollTo(0, 500); |
| 38 | 38 |
| 39 runAfterLayoutAndPaint(function() { | 39 runAfterLayoutAndPaint(function() { |
| 40 window.scrollTo(0, 0); | 40 window.scrollTo(0, 0); |
| 41 | 41 |
| 42 runAfterLayoutAndPaint(function() { | 42 runAfterLayoutAndPaint(function() { |
| 43 if (window.internals) | 43 if (window.internals) |
| 44 document.getElementById('layers').textContent = | 44 document.getElementById('layers').textContent = |
| 45 window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCL
UDES_REPAINT_RECTS); | 45 window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCL
UDES_PAINT_INVALIDATIONS); |
| 46 | 46 |
| 47 if (window.testRunner) | 47 if (window.testRunner) |
| 48 testRunner.notifyDone(); | 48 testRunner.notifyDone(); |
| 49 }); | 49 }); |
| 50 }); | 50 }); |
| 51 } | 51 } |
| 52 </script> | 52 </script> |
| 53 </head> | 53 </head> |
| 54 | 54 |
| 55 <body style="height: 4000px;"> | 55 <body style="height: 4000px;"> |
| 56 <div id="fixed"> | 56 <div id="fixed"> |
| 57 <div id="abs"> | 57 <div id="abs"> |
| 58 Hi! | 58 Hi! |
| 59 </div> | 59 </div> |
| 60 </div> | 60 </div> |
| 61 <pre id="layers"></pre> | 61 <pre id="layers"></pre> |
| 62 </body> | 62 </body> |
| 63 | 63 |
| 64 </html> | 64 </html> |
| OLD | NEW |