Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: LayoutTests/compositing/overflow/resources/automatically-opt-into-composited-scrolling.js

Issue 14863002: Only update composited-scrolling state once after layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updating expectations. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698