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

Side by Side Diff: LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.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: -300px; left: 100px; width: 88px; height: 88px; background-color: silver"></div> 26 <div style="position: fixed; top: -300px; left: 100px; width: 88px; height: 88px; background-color: silver"></div>
29 <div style="position: fixed; top: 1000px; left: 100px; width: 99px; height: 99px; background-color: silver"></div> 27 <div style="position: fixed; top: 1000px; left: 100px; width: 99px; height: 99px; background-color: silver"></div>
30 There should be no repaints here: 28 There should be no repaints here:
31 <pre id="repaintRects"></pre> 29 <pre id="repaintRects"></pre>
32 </body> 30 </body>
33 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698