OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="stylesheet" href="resources/compositor-touch-hit-rects.css"> | 4 <link rel="stylesheet" href="resources/compositor-touch-hit-rects.css"> |
5 <style> | 5 <style> |
6 .scroll { | 6 .scroll { |
7 overflow-y: scroll; | 7 overflow-y: scroll; |
8 overflow-x: hidden; | 8 overflow-x: hidden; |
9 border: 1px solid lightgrey; | 9 border: 1px solid lightgrey; |
10 height: 50px; | 10 height: 50px; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 preRunHandlerForTest['overflowWithHandler'] = function(e) { | 118 preRunHandlerForTest['overflowWithHandler'] = function(e) { |
119 document.getElementById('scroll4').scrollTop = 20; | 119 document.getElementById('scroll4').scrollTop = 20; |
120 document.getElementById('overflowWithHandler').scrollTop = 18; | 120 document.getElementById('overflowWithHandler').scrollTop = 18; |
121 }; | 121 }; |
122 | 122 |
123 preRunHandlerForTest['overflowwithborder'] = function(e) { | 123 preRunHandlerForTest['overflowwithborder'] = function(e) { |
124 document.getElementById('overflowwithborder').scrollTop = 18; | 124 document.getElementById('overflowwithborder').scrollTop = 18; |
125 }; | 125 }; |
126 | 126 |
127 if (window.internals) { | 127 if (window.internals) { |
128 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(
true); | 128 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
129 } | 129 } |
130 </script> | 130 </script> |
131 </body> | 131 </body> |
OLD | NEW |