| OLD | NEW |
| 1 <!-- Based on fast/repaint/relative-positioned-movement-repaint.html --> | 1 <!-- Based on fast/repaint/relative-positioned-movement-repaint.html --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 <style> | 3 <style> |
| 4 #block { | 4 #block { |
| 5 display: block; | 5 display: block; |
| 6 margin: 10px; | 6 margin: 10px; |
| 7 width: 400px; | 7 width: 400px; |
| 8 height: 60px; | 8 height: 60px; |
| 9 border: 1px solid black; | 9 border: 1px solid black; |
| 10 -webkit-backface-visibility: hidden; | 10 -webkit-backface-visibility: hidden; |
| 11 position: relative; | 11 position: relative; |
| 12 left: 10px; | 12 left: 10px; |
| 13 } | 13 } |
| 14 </style> | 14 </style> |
| 15 <script src="resources/paint-invalidation-test.js"></script> | 15 <script src="resources/paint-invalidation-test.js"></script> |
| 16 <script> | 16 <script> |
| 17 window.expectedPaintInvalidationObjects = [ | 17 if (window.testRunner) |
| 18 ]; | 18 testRunner.dumpAsText(); |
| 19 function paintInvalidationTest() | 19 function paintInvalidationTest() |
| 20 { | 20 { |
| 21 document.body.offsetTop; | 21 document.body.offsetTop; |
| 22 var div = document.getElementById("block"); | 22 var div = document.getElementById("block"); |
| 23 div.style.left = '50px'; | 23 div.style.left = '50px'; |
| 24 } | 24 } |
| 25 window.onload = runPaintInvalidationTest; | 25 window.onload = runPaintInvalidationTest; |
| 26 </script> | 26 </script> |
| 27 <div id="block">When this layer moves it shouldn't generate a repaint rect.</div
> | 27 <div id="block">When this layer moves it shouldn't generate a repaint rect.</div
> |
| OLD | NEW |