Index: LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html |
diff --git a/LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html b/LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html |
index d211a360d3644e47f7c8c57688ed18bf34b9a17c..9950713b9b6f89e6d3961f114a2b5a0358d124db 100644 |
--- a/LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html |
+++ b/LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html |
@@ -68,7 +68,7 @@ function recordScroll2(e) |
function autoscrollTestPart1() |
{ |
- if (iframe.contentDocument.body.scrollTop == 0) { |
+ if (iframe.contentDocument.scrollingElement.scrollTop == 0) { |
testFailed("Autoscroll should have scrolled the iframe downwards, but did not"); |
finishTest(); |
return; |
@@ -76,7 +76,7 @@ function autoscrollTestPart1() |
testPassed("Autoscroll should have scrolled the iframe downwards, and did."); |
- middleTermScrollOffset = iframe.contentDocument.body.scrollTop; |
+ middleTermScrollOffset = iframe.contentDocument.scrollingElement.scrollTop; |
iframeDocument.addEventListener("scroll", recordScroll2); |
// Move mouse to the upper autoscroll border belt. |
@@ -86,7 +86,7 @@ function autoscrollTestPart1() |
function autoscrollTestPart2() |
{ |
- shouldBeTrue("iframe.contentDocument.body.scrollTop < middleTermScrollOffset") |
+ shouldBeTrue("iframe.contentDocument.scrollingElement.scrollTop < middleTermScrollOffset") |
finishTest(); |
} |