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

Side by Side Diff: LayoutTests/compositing/squashing/visibility-composited-squashing.html

Issue 785333002: Delete the Layer Squashing runtime feature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 .set { 5 .set {
6 position: absolute; 6 position: absolute;
7 top: 8px; 7 top: 8px;
8 } 8 }
9 .box { 9 .box {
10 height: 100px; 10 height: 100px;
(...skipping 11 matching lines...) Expand all
22 visibility: hidden; 22 visibility: hidden;
23 } 23 }
24 .visible { 24 .visible {
25 visibility: visible; 25 visibility: visible;
26 } 26 }
27 .composited { 27 .composited {
28 transform: translateZ(1px); 28 transform: translateZ(1px);
29 } 29 }
30 </style> 30 </style>
31 <script> 31 <script>
32 if (window.testRunner) { 32 if (window.testRunner)
33 testRunner.waitUntilDone(); 33 testRunner.waitUntilDone();
34 internals.settings.setLayerSquashingEnabled(true); 34
35 }
36 requestAnimationFrame(function() { 35 requestAnimationFrame(function() {
37 requestAnimationFrame(function() { 36 requestAnimationFrame(function() {
38 document.getElementById('target1').classList.add('visible'); 37 document.getElementById('target1').classList.add('visible');
39 document.getElementById('target2').classList.add('visible'); 38 document.getElementById('target2').classList.add('visible');
40 setTimeout(function() { 39 setTimeout(function() {
41 if (window.testRunner) 40 if (window.testRunner)
42 testRunner.notifyDone(); 41 testRunner.notifyDone();
43 }); 42 });
44 }); 43 });
45 }); 44 });
46 </script> 45 </script>
47 </head> 46 </head>
48 <body> 47 <body>
49 <!-- This test checks that squashed RenderLayers are painted even if not all 48 <!-- This test checks that squashed RenderLayers are painted even if not all
50 of the RenderLayers squahed into a given GraphicsLayer are visible. --> 49 of the RenderLayers squahed into a given GraphicsLayer are visible. -->
51 <div class="set"> 50 <div class="set">
52 <div class="composited box"></div> 51 <div class="composited box"></div>
53 <div class="squashed hidden" style="top: 4px"></div> 52 <div class="squashed hidden" style="top: 4px"></div>
54 <div id="target1" class="squashed hidden" style="top: 54px"></div> 53 <div id="target1" class="squashed hidden" style="top: 54px"></div>
55 </div> 54 </div>
56 55
57 <div class="set" style="top: 116px"> 56 <div class="set" style="top: 116px">
58 <div class="composited box"></div> 57 <div class="composited box"></div>
59 <div id="target2" class="squashed hidden" style="top: 4px"></div> 58 <div id="target2" class="squashed hidden" style="top: 4px"></div>
60 <div class="squashed hidden" style="top: 54px"></div> 59 <div class="squashed hidden" style="top: 54px"></div>
61 </div> 60 </div>
62 </body> 61 </body>
63 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698