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

Unified Diff: LayoutTests/compositing/squashing/squash-above-fixed-2.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/squashing/squash-above-fixed-2.html
diff --git a/LayoutTests/compositing/squashing/squash-above-fixed-2.html b/LayoutTests/compositing/squashing/squash-above-fixed-2.html
index c2fc3c04ca83773b676a9641cef00992664c7118..b16def88f5c2489f5d7abb4da08721456252ceed 100644
--- a/LayoutTests/compositing/squashing/squash-above-fixed-2.html
+++ b/LayoutTests/compositing/squashing/squash-above-fixed-2.html
@@ -2,6 +2,7 @@
<html id="htmlTag">
<head>
+<script src="../../resources/run-after-display.js"></script>
<style>
#fixed {
-webkit-transform: translatez(0);
@@ -47,8 +48,10 @@ body {
</style>
<script>
- if (window.testRunner)
+ if (window.testRunner) {
testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
if (window.internals)
internals.settings.setLayerSquashingEnabled(true);
@@ -65,7 +68,12 @@ body {
// Case 2
window.scrollTo(0, 80);
- document.getElementById('Case2').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
+ runAfterDisplay(function() {
+ document.getElementById('Case2').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ });
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698