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

Side by Side Diff: LayoutTests/compositing/repaint/fixed-pos-with-composited-child.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 3
4 <head> 4 <head>
5 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 5 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
6 <style> 6 <style>
7 7
8 .fixedContainer { 8 .fixedContainer {
9 position: fixed; 9 position: fixed;
10 overflow:hidden; 10 overflow:hidden;
11 background-color: #a0a0a0; 11 background-color: #a0a0a0;
12 bottom: 0px; 12 bottom: 0px;
13 left: 0px; 13 left: 0px;
14 width:400px; 14 width:400px;
15 height: 100px; 15 height: 100px;
16 } 16 }
17 17
18 #foo { 18 #foo {
19 width:200px; 19 width:200px;
20 height: 100px; 20 height: 100px;
21 background-color: #00a0a0; 21 background-color: #00a0a0;
22 -webkit-transform:translateZ(0); 22 -webkit-transform:translateZ(0);
23 } 23 }
24 </style> 24 </style>
25 25
26 <script> 26 <script>
27 if (window.internals) { 27 if (window.internals) {
28 /* Note carefully, compositing for fixed position is _disabled_ here */ 28 /* Note carefully, compositing for fixed position is _disabled_ here */
29 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(fals e); 29 internals.settings.setPreferCompositingToLCDTextEnabled(false);
30 } 30 }
31 31
32 function repaintTest() 32 function repaintTest()
33 { 33 {
34 window.scrollTo(0, 100); 34 window.scrollTo(0, 100);
35 } 35 }
36 </script> 36 </script>
37 </head> 37 </head>
38 38
39 <body style="height:4000px;" onload="runRepaintTest()"> 39 <body style="height:4000px;" onload="runRepaintTest()">
(...skipping 13 matching lines...) Expand all
53 its own backing store. 53 its own backing store.
54 --> 54 -->
55 55
56 <!-- Scrolling should not cause either div to move around on the viewport. --> 56 <!-- Scrolling should not cause either div to move around on the viewport. -->
57 <div class="fixedContainer"> 57 <div class="fixedContainer">
58 <div id="foo"></div> 58 <div id="foo"></div>
59 </div> 59 </div>
60 </body> 60 </body>
61 61
62 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698