| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="resources/paint-invalidation-test.js"></script> | 2 <script src="resources/paint-invalidation-test.js"></script> |
| 3 <script> | 3 <script> |
| 4 window.expectedPaintInvalidationObjects = [ | |
| 5 "LayoutBlockFlow DIV id='overflow1'", | |
| 6 "LayoutBlockFlow DIV id='overflow2'", | |
| 7 ]; | |
| 8 function paintInvalidationTest() { | 4 function paintInvalidationTest() { |
| 9 document.getElementById('overflow1').style.overflow = "visible"; | 5 document.getElementById('overflow1').style.overflow = "visible"; |
| 10 document.getElementById('overflow2').style.overflow = "hidden"; | 6 document.getElementById('overflow2').style.overflow = "hidden"; |
| 11 } | 7 } |
| 12 onload = runPaintInvalidationTest; | 8 onload = runPaintInvalidationTest; |
| 13 </script> | 9 </script> |
| 14 <style> | 10 <style> |
| 15 body { | 11 body { |
| 16 margin: 0; | 12 margin: 0; |
| 17 } | 13 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 <!-- We should not repaint composited descendants on overflow style changes (ver
ified with the text expectation). | 36 <!-- We should not repaint composited descendants on overflow style changes (ver
ified with the text expectation). |
| 41 The compositor should handle any visual change caused by the change of overflow
clipping (verified with the pixel expectation). --> | 37 The compositor should handle any visual change caused by the change of overflow
clipping (verified with the pixel expectation). --> |
| 42 <div id="overflow1"> | 38 <div id="overflow1"> |
| 43 <div class="composited-child"></div> | 39 <div class="composited-child"></div> |
| 44 <div class="composited-child overflow-child"></div> | 40 <div class="composited-child overflow-child"></div> |
| 45 </div> | 41 </div> |
| 46 <div id="overflow2"> | 42 <div id="overflow2"> |
| 47 <div class="composited-child"></div> | 43 <div class="composited-child"></div> |
| 48 <div class="composited-child overflow-child"></div> | 44 <div class="composited-child overflow-child"></div> |
| 49 </div> | 45 </div> |
| OLD | NEW |