| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 div { | 5 div { |
| 6 border: black solid 1px; | 6 border: black solid 1px; |
| 7 } | 7 } |
| 8 | 8 |
| 9 .composited { | 9 .composited { |
| 10 transform: translateZ(0); | 10 transform: translateZ(0); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 </style> | 36 </style> |
| 37 | 37 |
| 38 <script> | 38 <script> |
| 39 if (window.testRunner) { | 39 if (window.testRunner) { |
| 40 testRunner.dumpAsText(); | 40 testRunner.dumpAsText(); |
| 41 testRunner.waitUntilDone(); | 41 testRunner.waitUntilDone(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 if (window.internals) { | 44 if (window.internals) { |
| 45 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); | 45 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 46 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(
true); | |
| 47 window.internals.settings.setLayerSquashingEnabled(true); | 46 window.internals.settings.setLayerSquashingEnabled(true); |
| 48 } | 47 } |
| 49 | 48 |
| 50 function runTest() { | 49 function runTest() { |
| 51 var clientRect = document.getElementById('targetLink').getBoundingClientRect
(); | 50 var clientRect = document.getElementById('targetLink').getBoundingClientRect
(); |
| 52 x = (clientRect.left + clientRect.right) / 2; | 51 x = (clientRect.left + clientRect.right) / 2; |
| 53 y = (clientRect.top + clientRect.bottom) / 2; | 52 y = (clientRect.top + clientRect.bottom) / 2; |
| 54 | 53 |
| 55 if (window.eventSender) { | 54 if (window.eventSender) { |
| 56 eventSender.gestureShowPress(x, y); | 55 eventSender.gestureShowPress(x, y); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 67 <div class='composited'></div> | 66 <div class='composited'></div> |
| 68 <div class='target'> | 67 <div class='target'> |
| 69 <a href='#' id='targetLink'>Target Link.</a> | 68 <a href='#' id='targetLink'>Target Link.</a> |
| 70 </div> | 69 </div> |
| 71 <div class='filler'></div> | 70 <div class='filler'></div> |
| 72 </div> | 71 </div> |
| 73 | 72 |
| 74 This test is successful if it doesn't crash. | 73 This test is successful if it doesn't crash. |
| 75 </body> | 74 </body> |
| 76 </html> | 75 </html> |
| OLD | NEW |