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

Side by Side Diff: LayoutTests/compositing/squashing/opacity-squashed-owner.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 <style> 2 <style>
3 .set { 3 .set {
4 position: absolute; 4 position: absolute;
5 top: 8px; 5 top: 8px;
6 } 6 }
7 .box { 7 .box {
8 height: 100px; 8 height: 100px;
9 width: 100px; 9 width: 100px;
10 background-color: lightblue; 10 background-color: lightblue;
(...skipping 17 matching lines...) Expand all
28 <!-- This div will be the "owner" of the squashing layer --> 28 <!-- This div will be the "owner" of the squashing layer -->
29 <div id="target" class="composited box"></div> 29 <div id="target" class="composited box"></div>
30 <!-- These divs will be squashed into a layer containing them and the owner --> 30 <!-- These divs will be squashed into a layer containing them and the owner -->
31 <div class="squashed" style="top: 4px"></div> 31 <div class="squashed" style="top: 4px"></div>
32 <div class="squashed" style="top: 54px"></div> 32 <div class="squashed" style="top: 54px"></div>
33 <pre id="layers">Layer tree goes here in DRT</pre> 33 <pre id="layers">Layer tree goes here in DRT</pre>
34 <script> 34 <script>
35 if (window.testRunner) 35 if (window.testRunner)
36 testRunner.dumpAsText(); 36 testRunner.dumpAsText();
37 37
38 if (window.testRunner) {
39 internals.settings.setLayerSquashingEnabled(true);
40 }
41 document.getElementById("target").classList.add("opaque"); 38 document.getElementById("target").classList.add("opaque");
42 39
43 var layersResult = document.getElementById('layers'); 40 var layersResult = document.getElementById('layers');
44 if (window.testRunner) 41 if (window.testRunner)
45 layersResult.innerText = window.internals.layerTreeAsText(document); 42 layersResult.innerText = window.internals.layerTreeAsText(document);
46 </script> 43 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698