| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style type="text/css" media="screen"> | 4 <style type="text/css" media="screen"> |
| 5 .subpixelPusher { | 5 .subpixelPusher { |
| 6 position: relative; | 6 position: relative; |
| 7 top: 0.4px; | 7 top: 0.4px; |
| 8 z-index: 1; | 8 z-index: 1; |
| 9 } | 9 } |
| 10 .container { | 10 .container { |
| 11 display: inline-block; | 11 display: inline-block; |
| 12 padding-left: 80px; | 12 padding-left: 80px; |
| 13 padding-top: 10px; | 13 padding-top: 10px; |
| 14 } | 14 } |
| 15 .transform { | 15 .transform { |
| 16 -webkit-transform: rotate3d(0, 0, 1, 45deg); | 16 -webkit-transform: rotate3d(0, 0, 1, 45deg); |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <script src="../repaint/resources/repaint.js" type="text/javascript"></script> | 19 <script src="../../resources/run-after-display.js" type="text/javascript"></scri
pt> |
| 20 <script> | 20 <script> |
| 21 if (window.testRunner) { | 21 if (window.testRunner) { |
| 22 testRunner.waitUntilDone(); | 22 testRunner.waitUntilDone(); |
| 23 testRunner.dumpAsTextWithPixelResults(); |
| 23 internals.settings.setMockScrollbarsEnabled(true); | 24 internals.settings.setMockScrollbarsEnabled(true); |
| 24 } | 25 } |
| 25 | 26 |
| 26 function setupIframes() { | 27 function setupIframes() { |
| 27 setupIframe(document.getElementById('iframe1').contentWindow.document); | 28 setupIframe(document.getElementById('iframe1').contentWindow.document); |
| 28 setupIframe(document.getElementById('iframe2').contentWindow.document); | 29 setupIframe(document.getElementById('iframe2').contentWindow.document); |
| 29 document.getElementById('iframe1').contentWindow.scrollTo(0, 10); | 30 document.getElementById('iframe1').contentWindow.scrollTo(0, 10); |
| 30 } | 31 } |
| 31 | 32 |
| 32 function setupIframe(iframe) { | 33 function setupIframe(iframe) { |
| 33 iframe.open('text/html', 'replace'); | 34 iframe.open('text/html', 'replace'); |
| 34 iframe.write("<!DOCTYPE html>\n<html><body style=\"background-color: silver;he
ight: 1000px;\"></body>"); | 35 iframe.write("<!DOCTYPE html>\n<html><body style=\"background-color: silver;he
ight: 1000px;\"></body>"); |
| 35 iframe.close(); | 36 iframe.close(); |
| 36 } | 37 } |
| 37 | 38 |
| 38 function repaintTest() { | 39 function repaintTest() { |
| 39 document.getElementById('iframe1').contentWindow.scrollTo(0, 0); | 40 document.getElementById('iframe1').contentWindow.scrollTo(0, 0); |
| 40 document.getElementById('iframe2').contentWindow.scrollTo(0, 10); | 41 document.getElementById('iframe2').contentWindow.scrollTo(0, 10); |
| 41 if (window.testRunner) | 42 if (window.testRunner) |
| 42 testRunner.notifyDone(); | 43 testRunner.notifyDone(); |
| 43 } | 44 } |
| 44 </script> | 45 </script> |
| 45 </head> | 46 </head> |
| 46 <body onload="setupIframes();runRepaintTest()"> | 47 <body onload="setupIframes();runAfterDisplay(repaintTest);"> |
| 47 <p>The iframes below should remain grey with no repaint artifacts when scrolli
ng.</p> | 48 <p>The iframes below should remain grey with no repaint artifacts when scrolli
ng.</p> |
| 48 <div> | 49 <div> |
| 49 <div class="container"> | 50 <div class="container"> |
| 50 <div class="transform"> | 51 <div class="transform"> |
| 51 <div class="subpixelPusher"> | 52 <div class="subpixelPusher"> |
| 52 <div class="subpixelPusher"> | 53 <div class="subpixelPusher"> |
| 53 <iframe id="iframe1" style="width: 150px; height: 200px;"></iframe> | 54 <iframe id="iframe1" style="width: 150px; height: 200px;"></iframe> |
| 54 </div> | 55 </div> |
| 55 </div> | 56 </div> |
| 56 </div> | 57 </div> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 72 </div> | 73 </div> |
| 73 </div> | 74 </div> |
| 74 </div> | 75 </div> |
| 75 </div> | 76 </div> |
| 76 </div> | 77 </div> |
| 77 </div> | 78 </div> |
| 78 </div> | 79 </div> |
| 79 </div> | 80 </div> |
| 80 </body> | 81 </body> |
| 81 </html> | 82 </html> |
| OLD | NEW |