Index: LayoutTests/fast/scroll-behavior/subframe-element-scroll.html |
diff --git a/LayoutTests/fast/scroll-behavior/subframe-element-scroll.html b/LayoutTests/fast/scroll-behavior/subframe-element-scroll.html |
index c7864174f11d842f46e4773a440d45b21e9bcd9f..69e02d4cba4f52e3b310347f4bd37743abda38a4 100644 |
--- a/LayoutTests/fast/scroll-behavior/subframe-element-scroll.html |
+++ b/LayoutTests/fast/scroll-behavior/subframe-element-scroll.html |
@@ -34,9 +34,9 @@ |
scrollToOptions.left = testCase.x; |
if (testCase.y) |
scrollToOptions.top = testCase.y; |
- subframe.contentDocument.body.scroll(scrollToOptions); |
+ subframe.contentDocument.scrollingElement.scroll(scrollToOptions); |
} else { |
- subframe.contentDocument.body.scroll(testCase.x, testCase.y); |
+ subframe.contentDocument.scrollingElement.scroll(testCase.x, testCase.y); |
} |
} |
@@ -68,7 +68,7 @@ |
} |
var subframe = document.getElementById("subframe"); |
- var scrollBehaviorTest = new ScrollBehaviorTest(subframe.contentDocument.body, |
+ var scrollBehaviorTest = new ScrollBehaviorTest(subframe.contentDocument.scrollingElement, |
subframe.contentDocument, |
testCases, |
getEndPosition, |