Index: LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html |
diff --git a/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html b/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html |
index cadcd5c8a21b0916c0849ce8ddd852e066422faf..e9db4615e07a52dee63554eee3c184b63b290b1e 100644 |
--- a/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html |
+++ b/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html |
@@ -11,10 +11,10 @@ |
window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
document.execCommand("FindString", false, "target"); |
- document.getElementById("result").innerText = document.body.scrollTop === 860 ? "PASS" : "FAIL (scrollTop:" + document.body.scrollTop + ")"; |
+ document.getElementById("result").innerText = document.scrollingElement.scrollTop === 860 ? "PASS" : "FAIL (scrollTop:" + document.scrollingElement.scrollTop + ")"; |
window.internals.settings.setPreferCompositingToLCDTextEnabled(false); |
document.execCommand("FindString", false, "target"); |
- document.getElementById("result").innerText += document.body.scrollTop === 860 ? " PASS" : " FAIL (scrollTop:" + document.body.scrollTop + ")"; |
+ document.getElementById("result").innerText += document.scrollingElement.scrollTop === 860 ? " PASS" : " FAIL (scrollTop:" + document.scrollingElement.scrollTop + ")"; |
</script> |
</body> |