| OLD | NEW |
| 1 <!-- Based on fast/repaint/repaint-in-iframe.html --> | 1 <!-- Based on fast/repaint/repaint-in-iframe.html --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <script src="resources/paint-invalidation-test.js"></script> | 5 <script src="resources/paint-invalidation-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 window.onload = function() { | 7 window.onload = function() { |
| 8 runPaintInvalidationTest(); | 8 runPaintInvalidationTest(); |
| 9 }; | 9 }; |
| 10 | 10 |
| 11 window.expectedPaintInvalidationObjects = [ | |
| 12 "LayoutBlockFlow DIV", | |
| 13 ]; | |
| 14 function paintInvalidationTest() { | 11 function paintInvalidationTest() { |
| 15 document.getElementsByTagName('iframe')[0] | 12 document.getElementsByTagName('iframe')[0] |
| 16 .contentDocument | 13 .contentDocument |
| 17 .getElementsByTagName('div')[0] | 14 .getElementsByTagName('div')[0] |
| 18 .style | 15 .style |
| 19 .backgroundColor = 'green'; | 16 .backgroundColor = 'green'; |
| 20 } | 17 } |
| 21 </script> | 18 </script> |
| 22 </head> | 19 </head> |
| 23 <div style="height: 400px"></div> | 20 <div style="height: 400px"></div> |
| 24 <iframe srcdoc="<div style='height: 50px; width: 50px; background-color: red;'><
/div>"></iframe> | 21 <iframe srcdoc="<div style='height: 50px; width: 50px; background-color: red;'><
/div>"></iframe> |
| OLD | NEW |