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

Unified Diff: LayoutTests/fast/repaint/resources/fixed-move-after-keyboard-scroll-iframe.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/fast/repaint/resources/fixed-move-after-keyboard-scroll-iframe.html
diff --git a/LayoutTests/fast/repaint/resources/fixed-move-after-keyboard-scroll-iframe.html b/LayoutTests/fast/repaint/resources/fixed-move-after-keyboard-scroll-iframe.html
index 67b33536795cfdffb76d985d93bcb2d3ac00ff25..552c97056a8e2bb56931825a5d4497acf2050ae5 100644
--- a/LayoutTests/fast/repaint/resources/fixed-move-after-keyboard-scroll-iframe.html
+++ b/LayoutTests/fast/repaint/resources/fixed-move-after-keyboard-scroll-iframe.html
@@ -1,8 +1,16 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <script src="../../../resources/run-after-display.js"></script>
<script src="text-based-repaint.js"></script>
<script type="text/javascript">
+ function runRepaintTestAfterDisplay()
+ {
+ runAfterDisplay(function() {
+ runRepaintTest();
+ });
+ }
+
function repaintTest()
{
document.getElementById('toMove').style.left = "150px";
@@ -10,9 +18,11 @@
if (window.testRunner)
window.testRunner.notifyDone();
}
+
if (window.testRunner)
window.testRunner.waitUntilDone();
- document.addEventListener("scroll", runRepaintTest, false);
+
+ document.addEventListener("scroll", runRepaintTestAfterDisplay, false);
</script>
</head>
<body style="height: 820;">

Powered by Google App Engine
This is Rietveld 408576698