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

Side by Side Diff: LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 3
4 <head> 4 <head>
5 <script src="../../resources/run-after-display.js"></script> 5 <script src="../../resources/run-after-display.js"></script>
6 <style> 6 <style>
7 7
8 .compositedBehind { 8 .compositedBehind {
9 width: 500px; 9 width: 500px;
10 height: 500px; 10 height: 500px;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 function test() 48 function test()
49 { 49 {
50 runAfterDisplay(function() { 50 runAfterDisplay(function() {
51 if (window.internals) 51 if (window.internals)
52 window.internals.startTrackingRepaints(document); 52 window.internals.startTrackingRepaints(document);
53 53
54 window.scrollTo(0, 100); 54 window.scrollTo(0, 100);
55 55
56 if (window.internals) 56 runAfterDisplay(function() {
57 document.getElementById('layers').textContent = window.inter nals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 57 if (window.internals)
58 document.getElementById('layers').textContent = window.int ernals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
58 59
59 if (window.testRunner) 60 if (window.testRunner)
60 testRunner.notifyDone(); 61 testRunner.notifyDone();
62 });
61 }); 63 });
62 } 64 }
63 </script> 65 </script>
64 66
65 </head> 67 </head>
66 68
67 69
68 70
69 <body onload="test()"> 71 <body onload="test()">
70 <!-- 72 <!--
71 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det ail?id=128375 73 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det ail?id=128375
72 A non-composited fixed-position element can get grouped into a composited container. 74 A non-composited fixed-position element can get grouped into a composited container.
73 In this case, repaint invalidations were incorrectly going to the RenderV iew instead 75 In this case, repaint invalidations were incorrectly going to the RenderV iew instead
74 of the composited container. The incorrect result was that the fixed-pos ition element 76 of the composited container. The incorrect result was that the fixed-pos ition element
75 never repainted, and it appeared to scroll along with the composited cont ainer. 77 never repainted, and it appeared to scroll along with the composited cont ainer.
76 --> 78 -->
77 <div class="compositedBehind"> </div> 79 <div class="compositedBehind"> </div>
78 80
79 <div class="containerOverlapsComposited"> 81 <div class="containerOverlapsComposited">
80 <div class="fixed"></div> 82 <div class="fixed"></div>
81 </div> 83 </div>
82 84
83 <pre id="layers"></pre> 85 <pre id="layers"></pre>
84 </body> 86 </body>
85 87
86 </html> 88 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698