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

Unified Diff: LayoutTests/compositing/overflow/resources/build-paint-order-lists.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/build-paint-order-lists.js
diff --git a/LayoutTests/compositing/overflow/resources/build-paint-order-lists.js b/LayoutTests/compositing/overflow/resources/build-paint-order-lists.js
index 85ffe90d3c61a1532c1bc728769b5379bcce4863..b90b636c573e00780382fcf211ecdc305cf5bb8b 100644
--- a/LayoutTests/compositing/overflow/resources/build-paint-order-lists.js
+++ b/LayoutTests/compositing/overflow/resources/build-paint-order-lists.js
@@ -3,6 +3,9 @@ function getPaintOrder(element)
var divElementsBeforePromote = [];
var divElementsAfterPromote = [];
// Force a style recalc.
+ document.body.style.overflow = 'scroll';
+ document.body.offsetTop;
+ document.body.style.overflow = '';
document.body.offsetTop;
var paintOrderListBeforePromote = window.internals.paintOrderListBeforePromote(element);

Powered by Google App Engine
This is Rietveld 408576698