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

Unified Diff: LayoutTests/compositing/rtl/rtl-fixed-overflow-scrolled.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/rtl/rtl-fixed-overflow-scrolled.html
diff --git a/LayoutTests/compositing/rtl/rtl-fixed-overflow-scrolled.html b/LayoutTests/compositing/rtl/rtl-fixed-overflow-scrolled.html
index 92fa51682ca71c6500bc6d3f5e18e93ba8a2005f..b62017b39af094ae70a8b1154520936cc704d167 100644
--- a/LayoutTests/compositing/rtl/rtl-fixed-overflow-scrolled.html
+++ b/LayoutTests/compositing/rtl/rtl-fixed-overflow-scrolled.html
@@ -1,5 +1,6 @@
<html>
<head>
+<script src="../../resources/run-after-display.js"></script>
<style>
body {
direction: rtl;
@@ -49,9 +50,11 @@
window.setTimeout(function() {
window.scrollTo(offset, 0);
if (window.testRunner) {
- if (top == self)
- document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
- testRunner.notifyDone();
+ runAfterDisplay(function() {
+ if (top == self)
+ document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
+ testRunner.notifyDone();
+ });
}
}, 0);
}

Powered by Google App Engine
This is Rietveld 408576698