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

Side by Side Diff: LayoutTests/compositing/squashing/resize-squashing-layer-that-needs-full-repaint.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 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 3
4 <!-- The second two divs form a combined squashing layer. display:none'ing the f irst of them will resize the squashing layer. --> 4 <!-- The second two divs form a combined squashing layer. display:none'ing the f irst of them will resize the squashing layer. -->
5 <div style="width: 500px; height: 500px; transform: translateZ(0)"></div> 5 <div style="width: 500px; height: 500px; transform: translateZ(0)"></div>
6 <div style="position: absolute; top: 55px; left: 55px; width: 500px; height: 500 px; background-color: lightblue"></div> 6 <div style="position: absolute; top: 55px; left: 55px; width: 500px; height: 500 px; background-color: lightblue"></div>
7 <div id="to-be-removed" style="position: absolute; top: 0px; left: 0px; width: 5 0px; height: 50px; background-color: lightgray"></div> 7 <div id="to-be-removed" style="position: absolute; top: 0px; left: 0px; width: 5 0px; height: 50px; background-color: lightgray"></div>
8 8
9 <script> 9 <script>
10 // This test checks that resizing a squashing layer such that the offset of cont ent squashed into it relative to the squashing 10 // This test checks that resizing a squashing layer such that the offset of cont ent squashed into it relative to the squashing
11 // container causes a repaint of its bounds within the updated squashing layer g eometry. 11 // container causes a repaint of its bounds within the updated squashing layer g eometry.
12 if (window.internals)
13 internals.settings.setLayerSquashingEnabled(true);
14
15 function repaintTest() { 12 function repaintTest() {
16 document.querySelector("#to-be-removed").style.display = 'none'; 13 document.querySelector("#to-be-removed").style.display = 'none';
17 } 14 }
18 15
19 runRepaintTest(); 16 runRepaintTest();
20 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698