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

Unified Diff: LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html

Issue 191693002: Delay scrollContents until the next paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix nit Created 6 years, 9 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/repaint/fixed-pos-inside-composited-intermediate-layer.html
diff --git a/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html b/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html
index a29e4d4723f19c10ad1ffa5feb9eec312e38d4ac..fbef215afd5b0afcaf087bb6168ec9d8683faba9 100644
--- a/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html
+++ b/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html
@@ -52,11 +52,13 @@
window.scrollTo(0, 100);
- if (window.internals)
- document.getElementById('layers').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
+ runAfterDisplay(function() {
+ if (window.internals)
+ document.getElementById('layers').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- if (window.testRunner)
- testRunner.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
});
}
</script>

Powered by Google App Engine
This is Rietveld 408576698