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