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

Side by Side Diff: LayoutTests/compositing/repaint/fixed-pos-with-composited-child.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 <!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 .fixedContainer { 8 .fixedContainer {
9 position: fixed; 9 position: fixed;
10 overflow:hidden; 10 overflow:hidden;
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 function test() 37 function test()
38 { 38 {
39 runAfterDisplay(function() { 39 runAfterDisplay(function() {
40 if (window.internals) 40 if (window.internals)
41 window.internals.startTrackingRepaints(document); 41 window.internals.startTrackingRepaints(document);
42 42
43 window.scrollTo(0, 100); 43 window.scrollTo(0, 100);
44 44
45 if (window.internals) 45 runAfterDisplay(function() {
46 document.getElementById('layers').textContent = window.internals .layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 46 if (window.internals)
47 document.getElementById('layers').textContent = window.interna ls.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
47 48
48 if (window.testRunner) 49 if (window.testRunner)
49 testRunner.notifyDone(); 50 testRunner.notifyDone();
50 }); 51 });
52 });
51 } 53 }
52 </script> 54 </script>
53 </head> 55 </head>
54 56
55 <body style="height:4000px;" onload="test()"> 57 <body style="height:4000px;" onload="test()">
56 <!-- 58 <!--
57 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det ail?id=151734 59 Among other duplicate bugs: https://code.google.com/p/chromium/issues/det ail?id=151734
58 60
59 In the current code, a layer may actually be composited, but not have its own backing store. 61 In the current code, a layer may actually be composited, but not have its own backing store.
60 In these cases, the layer paints into its composited ancestor with a back ing store. 62 In these cases, the layer paints into its composited ancestor with a back ing store.
(...skipping 10 matching lines...) Expand all
71 73
72 <!-- Scrolling should not cause either div to move around on the viewport. --> 74 <!-- Scrolling should not cause either div to move around on the viewport. -->
73 <div class="fixedContainer"> 75 <div class="fixedContainer">
74 <div id="foo"></div> 76 <div id="foo"></div>
75 </div> 77 </div>
76 78
77 <pre id="layers"></pre> 79 <pre id="layers"></pre>
78 </body> 80 </body>
79 81
80 </html> 82 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698