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

Side by Side Diff: LayoutTests/compositing/geometry/fixed-position-composited-page-scale-scroll.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 -webkit-transform:translateZ(0); 13 -webkit-transform:translateZ(0);
14 } 14 }
15 </style> 15 </style>
16 <script> 16 <script>
17 if (window.internals && window.eventSender) { 17 if (window.internals && window.eventSender) {
18 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t rue); 18 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
19 window.eventSender.setPageScaleFactor(2, 0, 0); 19 window.eventSender.setPageScaleFactor(2, 0, 0);
20 } 20 }
21 function test() { 21 function test() {
22 window.scrollTo(100,100); 22 window.scrollTo(100,100);
23 if (window.testRunner) 23 if (window.testRunner)
24 testRunner.dumpAsText(); 24 testRunner.dumpAsText();
25 } 25 }
26 </script> 26 </script>
27 </head> 27 </head>
28 <body onload="test();" style="width:2000px;height:2000px;"> 28 <body onload="test();" style="width:2000px;height:2000px;">
29 <div class="fixed-no-z-index">This test should not hit an assertion in RenderGeo metryMap in debug builds</div><br> 29 <div class="fixed-no-z-index">This test should not hit an assertion in RenderGeo metryMap in debug builds</div><br>
30 <div class="fixed-with-z-index">This test should not hit an assertion in RenderG eometryMap in debug builds</div> 30 <div class="fixed-with-z-index">This test should not hit an assertion in RenderG eometryMap in debug builds</div>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698