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