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

Side by Side Diff: LayoutTests/compositing/geometry/fixed-position-iframe-composited-page-scale.html

Issue 476273003: Rename acceleratedCompositingForFixedPosition to preferCompositingToLCDText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm-fixedpos: rebase Created 6 years, 4 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 <style> 4 <style>
5 .fixed-no-z-index { 5 .fixed-no-z-index {
6 position: absolute; 6 position: absolute;
7 left: 10px; 7 left: 10px;
8 } 8 }
9 .fixed-with-z-index { 9 .fixed-with-z-index {
10 position: fixed; 10 position: fixed;
11 z-index: 1; 11 z-index: 1;
12 left: 10px; 12 left: 10px;
13 } 13 }
14 </style> 14 </style>
15 <script> 15 <script>
16 if (window.internals && window.eventSender) { 16 if (window.internals && window.eventSender) {
17 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t rue); 17 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
18 window.eventSender.setPageScaleFactor(2, 0, 0); 18 window.eventSender.setPageScaleFactor(2, 0, 0);
19 } 19 }
20 function test() { 20 function test() {
21 if (window.testRunner) 21 if (window.testRunner)
22 testRunner.dumpAsTextWithPixelResults(); 22 testRunner.dumpAsTextWithPixelResults();
23 23
24 var d = document.getElementById('frame').contentDocument.open(); 24 var d = document.getElementById('frame').contentDocument.open();
25 d.write("<div style='position:fixed; z-index: 1; left; 10px;'>TEST</div>"); 25 d.write("<div style='position:fixed; z-index: 1; left; 10px;'>TEST</div>");
26 d.close(); 26 d.close();
27 } 27 }
28 </script> 28 </script>
29 </head> 29 </head>
30 <body onload="test();" style="width:2000px;height:2000px;"> 30 <body onload="test();" style="width:2000px;height:2000px;">
31 <div class="fixed-no-z-index">TEST</div><br> 31 <div class="fixed-no-z-index">TEST</div><br>
32 <iframe id="frame"></iframe> 32 <iframe id="frame"></iframe>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698