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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/run-after-display.js"></script>
3 <style> 4 <style>
4 body { 5 body {
5 direction: rtl; 6 direction: rtl;
6 margin: 0px; 7 margin: 0px;
7 background-color: red; 8 background-color: red;
8 } 9 }
9 10
10 .positioned { 11 .positioned {
11 position: fixed; 12 position: fixed;
12 top: 50px; 13 top: 50px;
(...skipping 29 matching lines...) Expand all
42 testRunner.waitUntilDone(); 43 testRunner.waitUntilDone();
43 testRunner.dumpAsTextWithPixelResults(); 44 testRunner.dumpAsTextWithPixelResults();
44 } 45 }
45 46
46 // The far left coordinate of the document varies by window width. 47 // The far left coordinate of the document varies by window width.
47 var offset = document.body.clientWidth - document.body.scrollWidth + 1; 48 var offset = document.body.clientWidth - document.body.scrollWidth + 1;
48 49
49 window.setTimeout(function() { 50 window.setTimeout(function() {
50 window.scrollTo(offset, 0); 51 window.scrollTo(offset, 0);
51 if (window.testRunner) { 52 if (window.testRunner) {
52 if (top == self) 53 runAfterDisplay(function() {
53 document.getElementById('layertree').innerText = window.inte rnals.layerTreeAsText(document); 54 if (top == self)
54 testRunner.notifyDone(); 55 document.getElementById('layertree').innerText = window. internals.layerTreeAsText(document);
56 testRunner.notifyDone();
57 });
55 } 58 }
56 }, 0); 59 }, 0);
57 } 60 }
58 window.addEventListener('load', doTest, false); 61 window.addEventListener('load', doTest, false);
59 </script> 62 </script>
60 <body> 63 <body>
61 <div id="root"></div> 64 <div id="root"></div>
62 <div class="positioned indicator"></div> 65 <div class="positioned indicator"></div>
63 <div class="positioned layer"></div> 66 <div class="positioned layer"></div>
64 67
65 <pre id="layertree"></pre> 68 <pre id="layertree"></pre>
66 </body> 69 </body>
67 </html> 70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698