| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html id="htmlTag"> | 2 <html id="htmlTag"> |
| 3 | 3 |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 #fixed { | 6 #fixed { |
| 7 -webkit-transform: translatez(0); | 7 -webkit-transform: translatez(0); |
| 8 position: fixed; | 8 position: fixed; |
| 9 z-index: 1; | 9 z-index: 1; |
| 10 width: 400px; | 10 width: 400px; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 testRunner.dumpAsText(); | 51 testRunner.dumpAsText(); |
| 52 | 52 |
| 53 if (window.internals) | 53 if (window.internals) |
| 54 internals.settings.setLayerSquashingEnabled(true); | 54 internals.settings.setLayerSquashingEnabled(true); |
| 55 | 55 |
| 56 function runTest() | 56 function runTest() |
| 57 { | 57 { |
| 58 if (!window.internals) | 58 if (!window.internals) |
| 59 return; | 59 return; |
| 60 | 60 |
| 61 testRunner.display(); | |
| 62 | |
| 63 // Display the test results only after test is done so that it does not
affect repaint rect results. | 61 // Display the test results only after test is done so that it does not
affect repaint rect results. |
| 64 document.getElementById('testResults').style.display = "block"; | 62 document.getElementById('testResults').style.display = "block"; |
| 65 // Case 1 | 63 // Case 1 |
| 66 document.getElementById('Case1').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 64 document.getElementById('Case1').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
| 67 | 65 |
| 68 // Case 2 | 66 // Case 2 |
| 69 window.scrollTo(0, 80); | 67 window.scrollTo(0, 80); |
| 70 document.getElementById('Case2').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 68 document.getElementById('Case2').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
| 71 } | 69 } |
| 72 </script> | 70 </script> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 86 <div id="testResults"> | 84 <div id="testResults"> |
| 87 CASE 1, original layer tree: | 85 CASE 1, original layer tree: |
| 88 <pre id="Case1"></pre> | 86 <pre id="Case1"></pre> |
| 89 | 87 |
| 90 CASE 2, scrolling y to 80, the "container" element should remain positioned
with respect to the scrolled document, the fixed-pos layer compensates for the n
ew scroll position: | 88 CASE 2, scrolling y to 80, the "container" element should remain positioned
with respect to the scrolled document, the fixed-pos layer compensates for the n
ew scroll position: |
| 91 <pre id="Case2"></pre> | 89 <pre id="Case2"></pre> |
| 92 </div> | 90 </div> |
| 93 | 91 |
| 94 </body> | 92 </body> |
| 95 </html> | 93 </html> |
| OLD | NEW |