| OLD | NEW |
| 1 <!-- Based on compositing/repaint/invalidations-on-composited-layers.html --> | 1 <!-- Based on compositing/repaint/invalidations-on-composited-layers.html --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 | 3 |
| 4 <!-- | 4 <!-- |
| 5 This test checks that repaint testing works with composited layers. | 5 This test checks that repaint testing works with composited layers. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <html> | 8 <html> |
| 9 <head> | 9 <head> |
| 10 <style type="text/css"> | 10 <style type="text/css"> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 left: 50px; | 21 left: 50px; |
| 22 top: 50px; | 22 top: 50px; |
| 23 width: 75px; | 23 width: 75px; |
| 24 height: 75px; | 24 height: 75px; |
| 25 background: green; | 25 background: green; |
| 26 } | 26 } |
| 27 | 27 |
| 28 </style> | 28 </style> |
| 29 <script src="resources/paint-invalidation-test.js"></script> | 29 <script src="resources/paint-invalidation-test.js"></script> |
| 30 <script> | 30 <script> |
| 31 window.expectedPaintInvalidationObjects = [ | |
| 32 "LayoutBlockFlow DIV id='parent'", | |
| 33 "LayoutBlockFlow (relative positioned) DIV id='child'", | |
| 34 ]; | |
| 35 function paintInvalidationTest() { | 31 function paintInvalidationTest() { |
| 36 var parent = document.getElementById('parent'); | 32 var parent = document.getElementById('parent'); |
| 37 var child = document.getElementById('child'); | 33 var child = document.getElementById('child'); |
| 38 | 34 |
| 39 child.style.background = 'blue'; | 35 child.style.background = 'blue'; |
| 40 parent.style.background = 'green'; | 36 parent.style.background = 'green'; |
| 41 } | 37 } |
| 42 | 38 |
| 43 runPaintInvalidationTest(); | 39 runPaintInvalidationTest(); |
| 44 </script> | 40 </script> |
| 45 </head> | 41 </head> |
| 46 <body> | 42 <body> |
| 47 <div id="parent"> | 43 <div id="parent"> |
| 48 <div id="child"></div> | 44 <div id="child"></div> |
| 49 </div> | 45 </div> |
| 50 </body> | 46 </body> |
| 51 </html> | 47 </html> |
| OLD | NEW |