| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../resources/run-after-display.js"></script> |
| 3 <style> | 4 <style> |
| 4 .composited { | 5 .composited { |
| 5 -webkit-transform: translatez(0); | 6 -webkit-transform: translatez(0); |
| 6 } | 7 } |
| 7 | 8 |
| 8 .box { | 9 .box { |
| 9 width: 100px; | 10 width: 100px; |
| 10 height: 100px; | 11 height: 100px; |
| 11 } | 12 } |
| 12 | 13 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 50 } |
| 50 | 51 |
| 51 .smallbox:hover { | 52 .smallbox:hover { |
| 52 background-color: lime; | 53 background-color: lime; |
| 53 } | 54 } |
| 54 | 55 |
| 55 </style> | 56 </style> |
| 56 <script> | 57 <script> |
| 57 if (window.internals) | 58 if (window.internals) |
| 58 internals.settings.setLayerSquashingEnabled(true); | 59 internals.settings.setLayerSquashingEnabled(true); |
| 59 if (window.testRunner) | 60 if (window.testRunner) { |
| 60 testRunner.dumpAsText(); | 61 testRunner.dumpAsText(); |
| 61 | 62 testRunner.waitUntilDone(); |
| 63 } |
| 64 |
| 62 function runTest() | 65 function runTest() |
| 63 { | 66 { |
| 64 testRunner.display(); | 67 runAfterDisplay(executeTestCases); |
| 68 } |
| 65 | 69 |
| 70 function executeTestCases() |
| 71 { |
| 66 window.internals.startTrackingRepaints(document); | 72 window.internals.startTrackingRepaints(document); |
| 67 document.getElementById('Case1').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 73 document.getElementById('Case1').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
| 68 window.internals.stopTrackingRepaints(document); | 74 window.internals.stopTrackingRepaints(document); |
| 69 | 75 |
| 70 eventSender.mouseMoveTo(0, 0); | 76 eventSender.mouseMoveTo(0, 0); |
| 71 window.internals.startTrackingRepaints(document); | 77 window.internals.startTrackingRepaints(document); |
| 72 hoverOverOuterDiv(); | 78 hoverOverOuterDiv(); |
| 73 document.getElementById('Case2').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 79 document.getElementById('Case2').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
| 74 window.internals.stopTrackingRepaints(document); | 80 window.internals.stopTrackingRepaints(document); |
| 75 | 81 |
| 76 eventSender.mouseMoveTo(0, 0); | 82 eventSender.mouseMoveTo(0, 0); |
| 77 window.internals.startTrackingRepaints(document); | 83 window.internals.startTrackingRepaints(document); |
| 78 hoverOverInnerDiv(); | 84 hoverOverInnerDiv(); |
| 79 document.getElementById('Case3').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 85 document.getElementById('Case3').textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
| 80 window.internals.stopTrackingRepaints(document); | 86 window.internals.stopTrackingRepaints(document); |
| 81 | 87 |
| 82 // Display the test results only after test is done so that it does not
affect repaint rect results. | 88 // Display the test results only after test is done so that it does not
affect repaint rect results. |
| 83 document.getElementById('testResults').style.display = "block"; | 89 document.getElementById('testResults').style.display = "block"; |
| 90 |
| 91 if (window.testRunner) |
| 92 testRunner.notifyDone(); |
| 84 } | 93 } |
| 85 | 94 |
| 86 function hoverOverOuterDiv() | 95 function hoverOverOuterDiv() |
| 87 { | 96 { |
| 88 internals.setIsCursorVisible(document, true); | 97 internals.setIsCursorVisible(document, true); |
| 89 eventSender.mouseMoveTo(10, 65); | 98 eventSender.mouseMoveTo(10, 65); |
| 90 | 99 |
| 91 } | 100 } |
| 92 | 101 |
| 93 function hoverOverInnerDiv() | 102 function hoverOverInnerDiv() |
| (...skipping 17 matching lines...) Expand all Loading... |
| 111 CASE 1, original layer tree | 120 CASE 1, original layer tree |
| 112 <pre id="Case1"></pre> | 121 <pre id="Case1"></pre> |
| 113 | 122 |
| 114 CASE 2, hovering over the outer div | 123 CASE 2, hovering over the outer div |
| 115 <pre id="Case2"></pre> | 124 <pre id="Case2"></pre> |
| 116 | 125 |
| 117 CASE 3, hovering over the inner div | 126 CASE 3, hovering over the inner div |
| 118 <pre id="Case3"></pre> | 127 <pre id="Case3"></pre> |
| 119 </div> | 128 </div> |
| 120 </body> | 129 </body> |
| OLD | NEW |