| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 | 3 |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 | 6 |
| 7 .fixedContainer { | 7 .fixedContainer { |
| 8 position: fixed; | 8 position: fixed; |
| 9 overflow:hidden; | 9 overflow:hidden; |
| 10 background-color: #a0a0a0; | 10 background-color: #a0a0a0; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 testRunner.dumpAsText(); | 27 testRunner.dumpAsText(); |
| 28 | 28 |
| 29 if (window.internals) { | 29 if (window.internals) { |
| 30 /* Note carefully, compositing for fixed position is _disabled_ here */ | 30 /* Note carefully, compositing for fixed position is _disabled_ here */ |
| 31 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(fals
e); | 31 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(fals
e); |
| 32 internals.settings.setFixedPositionCreatesStackingContext(true); | 32 internals.settings.setFixedPositionCreatesStackingContext(true); |
| 33 } | 33 } |
| 34 | 34 |
| 35 function test() | 35 function test() |
| 36 { | 36 { |
| 37 document.body.offsetHeight; | 37 testRunner.display(); |
| 38 |
| 38 if (window.internals) | 39 if (window.internals) |
| 39 window.internals.startTrackingRepaints(document); | 40 window.internals.startTrackingRepaints(document); |
| 40 | 41 |
| 41 window.scrollTo(0, 100); | 42 window.scrollTo(0, 100); |
| 42 | 43 |
| 43 if (window.internals) | 44 if (window.internals) |
| 44 document.getElementById('layers').textContent = window.internals.lay
erTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 45 document.getElementById('layers').textContent = window.internals.lay
erTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
| 45 } | 46 } |
| 46 </script> | 47 </script> |
| 47 </head> | 48 </head> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 65 | 66 |
| 66 <!-- Scrolling should not cause either div to move around on the viewport. --> | 67 <!-- Scrolling should not cause either div to move around on the viewport. --> |
| 67 <div class="fixedContainer"> | 68 <div class="fixedContainer"> |
| 68 <div id="foo"></div> | 69 <div id="foo"></div> |
| 69 </div> | 70 </div> |
| 70 | 71 |
| 71 <pre id="layers"></pre> | 72 <pre id="layers"></pre> |
| 72 </body> | 73 </body> |
| 73 | 74 |
| 74 </html> | 75 </html> |
| OLD | NEW |