OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="stylesheet" href="compositor-touch-hit-rects.css"> | 4 <link rel="stylesheet" href="compositor-touch-hit-rects.css"> |
5 <style> | 5 <style> |
6 html { | 6 html { |
7 font-size: 10px; | 7 font-size: 10px; |
8 } | 8 } |
9 .testcase, .testcase * { | 9 .testcase, .testcase * { |
10 border: 1px solid red; | 10 border: 1px solid red; |
(...skipping 13 matching lines...) Expand all Loading... |
24 document.documentElement.setAttribute('dumpRenderTree', 'true'); | 24 document.documentElement.setAttribute('dumpRenderTree', 'true'); |
25 | 25 |
26 function handler() {}; | 26 function handler() {}; |
27 frameElement.addHandlers = function() { | 27 frameElement.addHandlers = function() { |
28 document.getElementById('child').addEventListener('touchstart', handler, fal
se); | 28 document.getElementById('child').addEventListener('touchstart', handler, fal
se); |
29 } | 29 } |
30 frameElement.removeHandlers = function() { | 30 frameElement.removeHandlers = function() { |
31 document.getElementById('child').removeEventListener('touchstart', handler,
false); | 31 document.getElementById('child').removeEventListener('touchstart', handler,
false); |
32 } | 32 } |
33 // Scroll so the div is just slighly clipped. | 33 // Scroll so the div is just slighly clipped. |
34 document.documentElement.scrollTop = 40; | 34 document.body.scrollTop = 40; |
35 </script> | 35 </script> |
36 </body> | 36 </body> |
37 </html> | 37 </html> |
OLD | NEW |