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

Side by Side Diff: LayoutTests/compositing/repaint/fixed-pos-with-composited-child.html

Issue 30383002: Merge 159961 "Defer the real work in updateCompositingLayers unt..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1675/
Patch Set: Created 7 years, 2 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 <style> 5 <style>
6 6
7 .fixedContainer { 7 .fixedContainer {
8 position: fixed; 8 position: fixed;
9 overflow:hidden; 9 overflow:hidden;
10 background-color: #a0a0a0; 10 background-color: #a0a0a0;
(...skipping 16 matching lines...) Expand all
27 testRunner.dumpAsText(); 27 testRunner.dumpAsText();
28 28
29 if (window.internals) { 29 if (window.internals) {
30 /* Note carefully, compositing for fixed position is _disabled_ here */ 30 /* Note carefully, compositing for fixed position is _disabled_ here */
31 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(fals e); 31 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(fals e);
32 internals.settings.setFixedPositionCreatesStackingContext(true); 32 internals.settings.setFixedPositionCreatesStackingContext(true);
33 } 33 }
34 34
35 function test() 35 function test()
36 { 36 {
37 document.body.offsetHeight; 37 testRunner.display();
38
38 if (window.internals) 39 if (window.internals)
39 window.internals.startTrackingRepaints(document); 40 window.internals.startTrackingRepaints(document);
40 41
41 window.scrollTo(0, 100); 42 window.scrollTo(0, 100);
42 43
43 if (window.internals) 44 if (window.internals)
44 document.getElementById('layers').textContent = window.internals.lay erTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 45 document.getElementById('layers').textContent = window.internals.lay erTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
45 } 46 }
46 </script> 47 </script>
47 </head> 48 </head>
(...skipping 17 matching lines...) Expand all
65 66
66 <!-- Scrolling should not cause either div to move around on the viewport. --> 67 <!-- Scrolling should not cause either div to move around on the viewport. -->
67 <div class="fixedContainer"> 68 <div class="fixedContainer">
68 <div id="foo"></div> 69 <div id="foo"></div>
69 </div> 70 </div>
70 71
71 <pre id="layers"></pre> 72 <pre id="layers"></pre>
72 </body> 73 </body>
73 74
74 </html> 75 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698