OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 | 3 |
4 <head> | 4 <head> |
5 <script src="../../resources/run-after-display.js"></script> | 5 <script src="../../resources/run-after-display.js"></script> |
6 <style> | 6 <style> |
7 | 7 |
8 .fixedContainer { | 8 .fixedContainer { |
9 position: fixed; | 9 position: fixed; |
10 overflow:hidden; | 10 overflow:hidden; |
(...skipping 25 matching lines...) Expand all Loading... |
36 } | 36 } |
37 | 37 |
38 function test() | 38 function test() |
39 { | 39 { |
40 runAfterDisplay(function() { | 40 runAfterDisplay(function() { |
41 if (window.internals) | 41 if (window.internals) |
42 window.internals.startTrackingRepaints(document); | 42 window.internals.startTrackingRepaints(document); |
43 | 43 |
44 window.scrollTo(0, 100); | 44 window.scrollTo(0, 100); |
45 | 45 |
46 if (window.internals) | 46 runAfterDisplay(function() { |
47 document.getElementById('layers').textContent = window.internals
.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 47 if (window.internals) |
| 48 document.getElementById('layers').textContent = window.interna
ls.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
48 | 49 |
49 if (window.testRunner) | 50 if (window.testRunner) |
50 testRunner.notifyDone(); | 51 testRunner.notifyDone(); |
51 }); | 52 }); |
| 53 }); |
52 } | 54 } |
53 </script> | 55 </script> |
54 </head> | 56 </head> |
55 | 57 |
56 <body style="height:4000px;" onload="test()"> | 58 <body style="height:4000px;" onload="test()"> |
57 <!-- | 59 <!-- |
58 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det
ail?id=151734 | 60 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det
ail?id=151734 |
59 | 61 |
60 In the current code, a layer may actually be composited, but not have its
own backing store. | 62 In the current code, a layer may actually be composited, but not have its
own backing store. |
61 In these cases, the layer paints into its composited ancestor with a back
ing store. | 63 In these cases, the layer paints into its composited ancestor with a back
ing store. |
(...skipping 10 matching lines...) Expand all Loading... |
72 | 74 |
73 <!-- Scrolling should not cause either div to move around on the viewport. --> | 75 <!-- Scrolling should not cause either div to move around on the viewport. --> |
74 <div class="fixedContainer"> | 76 <div class="fixedContainer"> |
75 <div id="foo"></div> | 77 <div id="foo"></div> |
76 </div> | 78 </div> |
77 | 79 |
78 <pre id="layers"></pre> | 80 <pre id="layers"></pre> |
79 </body> | 81 </body> |
80 | 82 |
81 </html> | 83 </html> |
OLD | NEW |