| OLD | NEW |
| 1 <!-- Based on compositing/repaint/should-not-repaint-composited-transform.html -
-> | 1 <!-- Based on compositing/repaint/should-not-repaint-composited-transform.html -
-> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 <style> | 3 <style> |
| 4 #composited-box { | 4 #composited-box { |
| 5 width: 100px; | 5 width: 100px; |
| 6 height: 100px; | 6 height: 100px; |
| 7 border: solid 1px black; | 7 border: solid 1px black; |
| 8 transform:translate3D(0, 0, 0); | 8 transform:translate3D(0, 0, 0); |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| 11 <script src="resources/paint-invalidation-test.js"></script> | 11 <script src="resources/paint-invalidation-test.js"></script> |
| 12 <script> | 12 <script> |
| 13 window.expectedPaintInvalidationObjects = [ | |
| 14 ]; | |
| 15 function paintInvalidationTest() { | 13 function paintInvalidationTest() { |
| 16 document.getElementById('composited-box').style.webkitTransform = 'translate
3D(100px, 100px, 0)'; | 14 document.getElementById('composited-box').style.webkitTransform = 'translate
3D(100px, 100px, 0)'; |
| 17 } | 15 } |
| 18 window.onload = runPaintInvalidationTest; | 16 window.onload = runPaintInvalidationTest; |
| 19 </script> | 17 </script> |
| 20 <div id="composited-box"></div> | 18 <div id="composited-box"></div> |
| OLD | NEW |