Index: LayoutTests/compositing/overflow/resources/automatically-opt-into-composited-scrolling.js |
diff --git a/LayoutTests/compositing/overflow/resources/automatically-opt-into-composited-scrolling.js b/LayoutTests/compositing/overflow/resources/automatically-opt-into-composited-scrolling.js |
index 312dd31110f5727db7ade650e26c304f590d85e4..004b68e53039cac7fe05f79e9d882268d2bb629b 100644 |
--- a/LayoutTests/compositing/overflow/resources/automatically-opt-into-composited-scrolling.js |
+++ b/LayoutTests/compositing/overflow/resources/automatically-opt-into-composited-scrolling.js |
@@ -13,6 +13,9 @@ function write(str) |
function didOptIn(element) |
{ |
// Force a synchronous style recalc and layout. |
+ document.body.style.overflow = 'scroll'; |
+ document.body.offsetTop; |
+ document.body.style.overflow = ''; |
document.body.offsetTop; |
var nonFastScrollableRects = window.internals.nonFastScrollableRects(document); |
@@ -33,6 +36,9 @@ function getStackingOrder(element) |
{ |
var divElements = []; |
// Force a synchronous style recalc and layout. |
+ document.body.style.overflow = 'scroll'; |
+ document.body.offsetTop; |
+ document.body.style.overflow = ''; |
document.body.offsetTop; |
var stackingOrder = window.internals.nodesFromRect(document, 100, 75, 200, 200, 200, 200, false, false, false); |