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 .compositedBehind { | 8 .compositedBehind { |
9 width: 500px; | 9 width: 500px; |
10 height: 500px; | 10 height: 500px; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 | 46 |
47 function test() | 47 function test() |
48 { | 48 { |
49 runAfterDisplay(function() { | 49 runAfterDisplay(function() { |
50 if (window.internals) | 50 if (window.internals) |
51 window.internals.startTrackingRepaints(document); | 51 window.internals.startTrackingRepaints(document); |
52 | 52 |
53 window.scrollTo(0, 100); | 53 window.scrollTo(0, 100); |
54 | 54 |
55 if (window.internals) | 55 runAfterDisplay(function() { |
56 document.getElementById('layers').textContent = window.inter
nals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 56 if (window.internals) |
| 57 document.getElementById('layers').textContent = window.int
ernals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
57 | 58 |
58 if (window.testRunner) | 59 if (window.testRunner) |
59 testRunner.notifyDone(); | 60 testRunner.notifyDone(); |
| 61 }); |
60 }); | 62 }); |
61 } | 63 } |
62 </script> | 64 </script> |
63 | 65 |
64 </head> | 66 </head> |
65 | 67 |
66 | 68 |
67 | 69 |
68 <body onload="test()"> | 70 <body onload="test()"> |
69 <!-- | 71 <!-- |
70 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det
ail?id=128375 | 72 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det
ail?id=128375 |
71 A non-composited fixed-position element can get grouped into a composited
container. | 73 A non-composited fixed-position element can get grouped into a composited
container. |
72 In this case, repaint invalidations were incorrectly going to the RenderV
iew instead | 74 In this case, repaint invalidations were incorrectly going to the RenderV
iew instead |
73 of the composited container. The incorrect result was that the fixed-pos
ition element | 75 of the composited container. The incorrect result was that the fixed-pos
ition element |
74 never repainted, and it appeared to scroll along with the composited cont
ainer. | 76 never repainted, and it appeared to scroll along with the composited cont
ainer. |
75 --> | 77 --> |
76 <div class="compositedBehind"> </div> | 78 <div class="compositedBehind"> </div> |
77 | 79 |
78 <div class="containerOverlapsComposited"> | 80 <div class="containerOverlapsComposited"> |
79 <div class="fixed"></div> | 81 <div class="fixed"></div> |
80 </div> | 82 </div> |
81 | 83 |
82 <pre id="layers"></pre> | 84 <pre id="layers"></pre> |
83 </body> | 85 </body> |
84 | 86 |
85 </html> | 87 </html> |
OLD | NEW |