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

Side by Side Diff: LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html

Issue 206463009: Rip out Settings::fixedPositionCreatesStackingContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo 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 <head> 3 <head>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 if (window.internals) { 8 if (window.internals)
9 internals.settings.setAcceleratedCompositingForFixedPositionEnabled( true); 9 internals.settings.setAcceleratedCompositingForFixedPositionEnabled( true);
10 internals.settings.setFixedPositionCreatesStackingContext(true);
11 }
12 10
13 function test() 11 function test()
14 { 12 {
15 document.body.offsetHeight; 13 document.body.offsetHeight;
16 if (window.internals) 14 if (window.internals)
17 window.internals.startTrackingRepaints(document); 15 window.internals.startTrackingRepaints(document);
18 16
19 window.scrollTo(0, 1000); 17 window.scrollTo(0, 1000);
20 window.scrollTo(0, 100); 18 window.scrollTo(0, 100);
21 19
22 if (window.internals) 20 if (window.internals)
23 document.getElementById('repaintRects').textContent = window.int ernals.repaintRectsAsText(document); 21 document.getElementById('repaintRects').textContent = window.int ernals.repaintRectsAsText(document);
24 } 22 }
25 </script> 23 </script>
26 </head> 24 </head>
27 <body style="height:2000px" onload="test()"> 25 <body style="height:2000px" onload="test()">
28 <div style="position: fixed; top: 100px; left: 100px; width: 200px; height: 200px"></div> 26 <div style="position: fixed; top: 100px; left: 100px; width: 200px; height: 200px"></div>
29 There should be no repaints here: 27 There should be no repaints here:
30 <pre id="repaintRects"></pre> 28 <pre id="repaintRects"></pre>
31 </body> 29 </body>
32 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698