| OLD | NEW |
| 1 <!-- This test asserts that blit-scrolling is disabled when blur is applied on a
layer | 1 <!-- This test asserts that blit-scrolling is disabled when blur is applied on a
layer |
| 2 that contains an intermediate layer which has a fixed positioned object insi
de. | 2 that contains an intermediate layer which has a fixed positioned object insi
de. |
| 3 One fixed black bar should be visible at the top of the page. The page shoul
d be scrolled | 3 One fixed black bar should be visible at the top of the page. The page shoul
d be scrolled |
| 4 100px and no red should be visible. The rest of the page should be green. | 4 100px and no red should be visible. The rest of the page should be green. |
| 5 --> | 5 --> |
| 6 <!DOCTYPE html> | 6 <!DOCTYPE html> |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <script> | 9 <script> |
| 10 if (window.testRunner) { | 10 if (window.testRunner) { |
| 11 // Force software rendering mode. | 11 // Force software rendering mode. |
| 12 window.testRunner.overridePreference("WebKitAcceleratedCompositi
ngEnabled", "0"); | 12 window.testRunner.overridePreference("WebKitAcceleratedCompositi
ngEnabled", "0"); |
| 13 window.testRunner.waitUntilDone(); |
| 13 } | 14 } |
| 14 </script> | 15 </script> |
| 15 <!-- Make sure the mock scrollbars are enabled after the call to overrid
ePreference, otherwise the setting will be overwritten. --> | 16 <!-- Make sure the mock scrollbars are enabled after the call to overrid
ePreference, otherwise the setting will be overwritten. --> |
| 16 <script src="../../compositing/resources/mock_scrollbars.js"></script> | 17 <script src="../../compositing/resources/mock_scrollbars.js"></script> |
| 17 <style> | 18 <style> |
| 18 body { | 19 body { |
| 19 margin: 0px; | 20 margin: 0px; |
| 20 border: 0px; | 21 border: 0px; |
| 21 padding: 0px; | 22 padding: 0px; |
| 22 } | 23 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 40 #redBox { | 41 #redBox { |
| 41 background-color: red; | 42 background-color: red; |
| 42 height: 200px; | 43 height: 200px; |
| 43 } | 44 } |
| 44 | 45 |
| 45 #greenBox { | 46 #greenBox { |
| 46 background-color: green; | 47 background-color: green; |
| 47 height: 1000px; | 48 height: 1000px; |
| 48 } | 49 } |
| 49 </style> | 50 </style> |
| 50 <script src="../../fast/repaint/resources/repaint.js"></script> | 51 <script src="../../resources/run-after-display.js"></script> |
| 51 <script type="text/javascript"> | 52 <script type="text/javascript"> |
| 52 function repaintTest() { | 53 function repaintTest() { |
| 53 window.scrollTo(0, 100); | 54 runAfterDisplay(function() { |
| 55 window.scrollTo(0, 100); |
| 56 if (window.testRunner) |
| 57 testRunner.notifyDone(); |
| 58 }); |
| 54 } | 59 } |
| 55 </script> | 60 </script> |
| 56 </head> | 61 </head> |
| 57 <body onload="runRepaintTest()"> | 62 <body onload="repaintTest()"> |
| 58 <div class="blur"> | 63 <div class="blur"> |
| 59 <div class="layer"> | 64 <div class="layer"> |
| 60 <div id="fixedBox"></div> | 65 <div id="fixedBox"></div> |
| 61 <div id="redBox"></div> | 66 <div id="redBox"></div> |
| 62 <div id="greenBox"></div> | 67 <div id="greenBox"></div> |
| 63 </div> | 68 </div> |
| 64 </div> | 69 </div> |
| 65 </body> | 70 </body> |
| 66 </html> | 71 </html> |
| OLD | NEW |