OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #iframe1 { | 5 #iframe1 { |
6 position: absolute; | 6 position: absolute; |
7 top: 100px; | 7 top: 100px; |
8 left: 50px; | 8 left: 50px; |
9 width: 200px; | 9 width: 200px; |
10 height: 200px; | 10 height: 200px; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 rects = window.internals.touchEventTargetClientRects(document); | 48 rects = window.internals.touchEventTargetClientRects(document); |
49 var sortedRects = new Array(); | 49 var sortedRects = new Array(); |
50 for (var i = 0; i < rects.length; ++i) | 50 for (var i = 0; i < rects.length; ++i) |
51 sortedRects[i] = rects[i]; | 51 sortedRects[i] = rects[i]; |
52 sortedRects.sort(sortRects); | 52 sortedRects.sort(sortRects); |
53 for (var i = 0; i < rects.length; ++i) | 53 for (var i = 0; i < rects.length; ++i) |
54 log("[" + i + "]: (" + sortedRects[i].left + ", " + sortedRects[
i].top + ", " + sortedRects[i].width + ", " + sortedRects[i].height + ")"); | 54 log("[" + i + "]: (" + sortedRects[i].left + ", " + sortedRects[
i].top + ", " + sortedRects[i].width + ", " + sortedRects[i].height + ")"); |
55 } | 55 } |
56 </script> | 56 </script> |
57 </body> | 57 </body> |
OLD | NEW |