Index: LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html |
diff --git a/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html b/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html |
index d264e4f9817479958495dc390206772eeec62cf2..398425943ca582052cfd8ed00b679608ad26512a 100644 |
--- a/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html |
+++ b/LayoutTests/fast/scroll-behavior/subframe-interrupted-scroll.html |
@@ -13,8 +13,7 @@ |
<script type="text/javascript"> |
function jsScroll(y) { |
var subframe = document.getElementById('subframe'); |
- var currentX = subframe.contentDocument.documentElement.scrollTop; |
- subframe.contentWindow.scrollTo(currentX, y, {behavior: 'smooth'}); |
+ subframe.contentWindow.scrollTo({top: y, behavior: 'smooth'}); |
} |
function doTest() |