| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <style> | 2 <style> |
| 3 #scroller { | 3 #scroller { |
| 4 overflow: scroll; | 4 overflow: scroll; |
| 5 height: 300px; | 5 height: 300px; |
| 6 width: 300px; | 6 width: 300px; |
| 7 background-color: red; | 7 background-color: red; |
| 8 } | 8 } |
| 9 | 9 |
| 10 #outer { | 10 #outer { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 if (layer.children) { | 41 if (layer.children) { |
| 42 for (var i = 0; i < layer.children.length; i++) { | 42 for (var i = 0; i < layer.children.length; i++) { |
| 43 if (isUsingCompositedScrolling(layer.children[i])) | 43 if (isUsingCompositedScrolling(layer.children[i])) |
| 44 return true; | 44 return true; |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 return false; | 47 return false; |
| 48 } | 48 } |
| 49 | 49 |
| 50 if (window.internals) | 50 if (window.internals) |
| 51 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(
true); | 51 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 52 | 52 |
| 53 if (window.testRunner) { | 53 if (window.testRunner) { |
| 54 window.testRunner.dumpAsText(); | 54 window.testRunner.dumpAsText(); |
| 55 window.testRunner.waitUntilDone(); | 55 window.testRunner.waitUntilDone(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 var result = ""; | 58 var result = ""; |
| 59 | 59 |
| 60 onload = function() { | 60 onload = function() { |
| 61 if (window.internals) { | 61 if (window.internals) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 75 result += "Fail.\n" | 75 result += "Fail.\n" |
| 76 } | 76 } |
| 77 | 77 |
| 78 if (window.testRunner) { | 78 if (window.testRunner) { |
| 79 window.testRunner.setCustomTextOutput(result); | 79 window.testRunner.setCustomTextOutput(result); |
| 80 window.testRunner.notifyDone(); | 80 window.testRunner.notifyDone(); |
| 81 } | 81 } |
| 82 }); | 82 }); |
| 83 }; | 83 }; |
| 84 </script> | 84 </script> |
| OLD | NEW |