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

Side by Side Diff: LayoutTests/compositing/squashing/selection-repaint-with-gaps.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 .overlap { 3 .overlap {
4 height: 500px; 4 height: 500px;
5 width: 300px; 5 width: 300px;
6 transform: translateZ(0); 6 transform: translateZ(0);
7 } 7 }
8 8
9 .item { 9 .item {
10 height: 50px; 10 height: 50px;
(...skipping 21 matching lines...) Expand all
32 </div> 32 </div>
33 <div id="output" style="display: none"> 33 <div id="output" style="display: none">
34 <pre id="case1"></pre> 34 <pre id="case1"></pre>
35 <pre id="case2"></pre> 35 <pre id="case2"></pre>
36 </div> 36 </div>
37 <script> 37 <script>
38 if (window.testRunner) { 38 if (window.testRunner) {
39 testRunner.dumpAsText(); 39 testRunner.dumpAsText();
40 testRunner.waitUntilDone(); 40 testRunner.waitUntilDone();
41 } 41 }
42 42
43 if (window.internals)
44 window.internals.settings.setLayerSquashingEnabled(true);
45
46 runAfterDisplay(function() 43 runAfterDisplay(function()
47 { 44 {
48 if (window.internals) 45 if (window.internals)
49 window.internals.startTrackingRepaints(document); 46 window.internals.startTrackingRepaints(document);
50 var selection = getSelection(); 47 var selection = getSelection();
51 48
52 // Case 1: selection that does not have any gaps. 49 // Case 1: selection that does not have any gaps.
53 selection.setBaseAndExtent(document.querySelector("#item1"), 0, document .querySelector("#item1"), 1); 50 selection.setBaseAndExtent(document.querySelector("#item1"), 0, document .querySelector("#item1"), 1);
54 51
55 if (window.internals) { 52 if (window.internals) {
(...skipping 14 matching lines...) Expand all
70 window.internals.stopTrackingRepaints(document); 67 window.internals.stopTrackingRepaints(document);
71 } 68 }
72 69
73 document.querySelector('#output').style.display = 'block'; 70 document.querySelector('#output').style.display = 'block';
74 71
75 72
76 if (window.testRunner) 73 if (window.testRunner)
77 testRunner.notifyDone(); 74 testRunner.notifyDone();
78 }); 75 });
79 </script> 76 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698