Index: LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html |
diff --git a/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html b/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html |
index bc14a42e7011f269544cd56932b2e11a6c8f3bbf..a4672ecaa6209c2afcfa5f00184be52736d967b0 100644 |
--- a/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html |
+++ b/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html |
@@ -36,14 +36,14 @@ |
function autoscrollTestPart1() |
{ |
- iframeScrollTopAfterAnchor = iframeDocument.body.scrollTop; |
- if (iframeDocument.body.scrollTop == 0) |
+ iframeScrollTopAfterAnchor = iframeDocument.scrollingElement.scrollTop; |
+ if (iframeDocument.scrollingElement.scrollTop == 0) |
log("FAILED: anchor clicking within non-scrollable inner frame failed."); |
if (window.eventSender) { |
var textInIframe = iframeDocument.getElementById('textInFrame'); |
- var x = iframe.offsetLeft + textInIframe.offsetLeft - iframeDocument.body.scrollLeft + 7; |
- var y = iframe.offsetTop + textInIframe.offsetTop - iframeDocument.body.scrollTop + 7; |
+ var x = iframe.offsetLeft + textInIframe.offsetLeft - iframeDocument.scrollingElement.scrollLeft + 7; |
+ var y = iframe.offsetTop + textInIframe.offsetTop - iframeDocument.scrollingElement.scrollTop + 7; |
eventSender.dragMode = false; |
eventSender.mouseMoveTo(x, y); |
eventSender.mouseDown(); |
@@ -60,7 +60,7 @@ |
eventSender.mouseUp(); |
log("Document whose HTML or BODY tags have overflow:hidden should not autoscroll."); |
- if (iframeScrollTopAfterAnchor == iframeDocument.body.scrollTop) |
+ if (iframeScrollTopAfterAnchor == iframeDocument.scrollingElement.scrollTop) |
log("PASSED: the autoscroll has not happened."); |
else |
log("FAILED: the autoscroll has happened."); |