| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
| 6 iframe { | 6 iframe { |
| 7 margin: 20px; | 7 margin: 20px; |
| 8 height: 200px; | 8 height: 200px; |
| 9 width: 200px; | 9 width: 200px; |
| 10 border: 1px solid black; | 10 border: 1px solid black; |
| 11 } | 11 } |
| 12 | 12 |
| 13 .composited { | 13 .composited { |
| 14 -webkit-transform: translateZ(0); | 14 transform: translateZ(0); |
| 15 } | 15 } |
| 16 | 16 |
| 17 </style> | 17 </style> |
| 18 <script src="../../resources/run-after-display.js"></script> | 18 <script src="../../resources/run-after-display.js"></script> |
| 19 <script type="text/javascript" charset="utf-8"> | 19 <script type="text/javascript" charset="utf-8"> |
| 20 function doTest() | 20 function doTest() |
| 21 { | 21 { |
| 22 if (window.testRunner) | 22 if (window.testRunner) |
| 23 testRunner.waitUntilDone(); | 23 testRunner.waitUntilDone(); |
| 24 | 24 |
| 25 runAfterDisplay(function() { | 25 runAfterDisplay(function() { |
| 26 document.getElementById('iframe').className = 'composited'; | 26 document.getElementById('iframe').className = 'composited'; |
| 27 if (window.testRunner) | 27 if (window.testRunner) |
| 28 testRunner.notifyDone(); | 28 testRunner.notifyDone(); |
| 29 }); | 29 }); |
| 30 } | 30 } |
| 31 | 31 |
| 32 window.addEventListener('load', doTest, false); | 32 window.addEventListener('load', doTest, false); |
| 33 </script> | 33 </script> |
| 34 </head> | 34 </head> |
| 35 <body> | 35 <body> |
| 36 | 36 |
| 37 <!-- Test with already-composited iframe contents, and iframe itself composi
ted. --> | 37 <!-- Test with already-composited iframe contents, and iframe itself composi
ted. --> |
| 38 <!-- You should see a green square, no red. --> | 38 <!-- You should see a green square, no red. --> |
| 39 <iframe id="iframe" scrolling="no" src="resources/red-green-subframe.html"><
/iframe> | 39 <iframe id="iframe" scrolling="no" src="resources/red-green-subframe.html"><
/iframe> |
| 40 | 40 |
| 41 </body> | 41 </body> |
| 42 </html> | 42 </html> |
| OLD | NEW |