| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script src="../../resources/run-after-display.js"></script> | 5 <script src="../../resources/run-after-display.js"></script> |
| 6 <script src="resources/link-highlight-helper.js"></script> | 6 <script src="resources/link-highlight-helper.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body onLoad="runTest();"> | 8 <body onLoad="runTest();"> |
| 9 <iframe id="targetFrame" src="resources/1-frame-noncomposited.html" style="posit
ion: relative; left: 10px; top: 10px; width: 400px; height: 150px;"></iframe> | 9 <iframe id="targetFrame" src="resources/1-frame-noncomposited.html" style="posit
ion: relative; left: 10px; top: 10px; width: 400px; height: 150px;"></iframe> |
| 10 <div style="position: relative; left: 10px; top: 20px; -webkit-transform: transl
ateZ(0);"> | 10 <div style="position: relative; left: 10px; top: 20px; transform: translateZ(0);
"> |
| 11 This test is successful if "Target Link" is covered by a green box with square c
orners, | 11 This test is successful if "Target Link" is covered by a green box with square c
orners, |
| 12 and the frame is partially scrolled. | 12 and the frame is partially scrolled. |
| 13 </div> | 13 </div> |
| 14 <script> | 14 <script> |
| 15 function runTest() { | 15 function runTest() { |
| 16 useMockHighlight(); | 16 useMockHighlight(); |
| 17 var targetFrame = document.getElementById("targetFrame"); | 17 var targetFrame = document.getElementById("targetFrame"); |
| 18 var clientRect = targetFrame.contentDocument.getElementById('targetLink').ge
tBoundingClientRect(); | 18 var clientRect = targetFrame.contentDocument.getElementById('targetLink').ge
tBoundingClientRect(); |
| 19 x = (clientRect.left + clientRect.right) / 2; | 19 x = (clientRect.left + clientRect.right) / 2; |
| 20 y = (clientRect.top + clientRect.bottom) / 2 + targetFrame.getBoundingClient
Rect().top; | 20 y = (clientRect.top + clientRect.bottom) / 2 + targetFrame.getBoundingClient
Rect().top; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 testRunner.notifyDone(); | 32 testRunner.notifyDone(); |
| 33 }); | 33 }); |
| 34 }); | 34 }); |
| 35 } else { | 35 } else { |
| 36 debug("This test requires DumpRenderTree."); | 36 debug("This test requires DumpRenderTree."); |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 </script> | 39 </script> |
| 40 </body> | 40 </body> |
| 41 </html> | 41 </html> |
| OLD | NEW |