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

Side by Side Diff: LayoutTests/fast/repaint/fixed.html

Issue 191693002: Delay scrollContents until the next paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix layout tests 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title></title> 3 <title></title>
4 <script src="../../resources/run-after-display.js"></script>
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 5 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
5 <script type="text/javascript"> 6 <script type="text/javascript">
6 function repaintTest() 7 if (window.testRunner)
7 { 8 testRunner.waitUntilDone();
9
10 function scrollAndRepaint()
11 {
12 window.scrollTo(0, 20);
13 runAfterDisplay(function() {
14 runRepaintTest();
15 if (window.testRunner)
16 testRunner.notifyDone();
17 });
18 }
19
20 function repaintTest()
21 {
8 document.getElementById('t').style.background='green'; 22 document.getElementById('t').style.background='green';
9 } 23 }
10 </script> 24 </script>
11 </head> 25 </head>
12 <body style="height:2000px;" onload="runRepaintTest()"> 26 <body style="height:2000px;" onload="scrollAndRepaint()">
13 <p style="position: relative; top: 20px;"> 27 <p style="position: relative; top: 20px;">
14 Repaint test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=1145 2">http://bugs.webkit.org/show_bug.cgi?id=11452</a> 28 Repaint test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=1145 2">http://bugs.webkit.org/show_bug.cgi?id=11452</a>
15 REGRESSION (r16736-r16801): Incorrect repaint of fixed boxes</i>. 29 REGRESSION (r16736-r16801): Incorrect repaint of fixed boxes</i>.
16 </p> 30 </p>
17 <div id="t" style="position: fixed; width: 100px; height: 100px; background: red"></div> 31 <div id="t" style="position: fixed; width: 100px; height: 100px; background: red"></div>
18 <script>
19 window.scrollTo(0, 20);
20 </script>
21 </body> 32 </body>
22 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698