Index: LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html |
diff --git a/LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html b/LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html |
index e2a3368ea389b104fc91b37fe5b905ce066af7b9..5c063abe7a5ae22178c88a0291346e20691cfbfa 100644 |
--- a/LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html |
+++ b/LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html |
@@ -17,8 +17,10 @@ iframe { |
var frame = document.getElementById('scrollable-iframe'); |
shouldBe('internals.nonFastScrollableRects(document).length', '1'); |
frame.style.display = 'none'; |
+ document.body.offsetTop; // Force layout |
shouldBe('internals.nonFastScrollableRects(document).length', '0'); |
frame.style.display = ''; |
+ document.body.offsetTop; // Force layout |
shouldBe('internals.nonFastScrollableRects(document).length', '1'); |
} |
} |