Index: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html |
diff --git a/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html b/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html |
index c38a1e1cda8e192ca13c82d69f3ea48b9d36bcdc..ddbdf1f00eb4c61098841709cf542d9429b0d964 100644 |
--- a/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html |
+++ b/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html |
@@ -67,8 +67,7 @@ var expectedScrollEventsOccurred = '1'; |
function firstGestureScroll() |
{ |
iframe = touchtarget; |
- iframeBody = iframe.contentDocument.body; |
- iframeDocumentElement = iframe.contentDocument.documentElement; |
+ iframeScrollingElement = iframe.contentDocument.scrollingElement; |
debug("first gesture"); |
eventSender.gestureScrollBegin(10, 72); |
@@ -80,7 +79,7 @@ function firstGestureScroll() |
eventSender.gestureScrollEnd(0, 0); |
// Make sure the actual iframe got fully scrolled |
- shouldBe('iframeBody.scrollHeight - iframeBody.scrollTop', 'iframe.clientHeight'); |
+ shouldBe('iframeScrollingElement.scrollHeight - iframeScrollingElement.scrollTop', 'iframe.clientHeight'); |
// Wait for layout. |
checkScrollOffset(); |