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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-with-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 <style> 2 <style>
3 div { 3 div {
4 border: black solid 1px; 4 border: black solid 1px;
5 } 5 }
6 6
7 .composited { 7 .composited {
8 transform: translateZ(0); 8 transform: translateZ(0);
9 } 9 }
10 10
(...skipping 29 matching lines...) Expand all
40 </style> 40 </style>
41 41
42 <script> 42 <script>
43 if (window.testRunner) { 43 if (window.testRunner) {
44 testRunner.dumpAsTextWithPixelResults(); 44 testRunner.dumpAsTextWithPixelResults();
45 testRunner.waitUntilDone(); 45 testRunner.waitUntilDone();
46 } 46 }
47 47
48 if (window.internals) { 48 if (window.internals) {
49 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); 49 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
50 window.internals.settings.setLayerSquashingEnabled(true);
51 } 50 }
52 51
53 function runTest() { 52 function runTest() {
54 var clientRect = document.getElementById('targetLink').getBoundingClientRect (); 53 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
55 x = (clientRect.left + clientRect.right) / 2; 54 x = (clientRect.left + clientRect.right) / 2;
56 y = (clientRect.top + clientRect.bottom) / 2; 55 y = (clientRect.top + clientRect.bottom) / 2;
57 56
58 if (window.eventSender) { 57 if (window.eventSender) {
59 eventSender.gestureShowPress(x, y); 58 eventSender.gestureShowPress(x, y);
60 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); 59 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
61 } 60 }
62 } 61 }
63 62
64 window.onload = runTest; 63 window.onload = runTest;
65 </script> 64 </script>
66 <div class='fixed composited'></div> 65 <div class='fixed composited'></div>
67 <div class='container'> 66 <div class='container'>
68 <div class='composited'></div> 67 <div class='composited'></div>
69 <div class='squash-spacer'></div> 68 <div class='squash-spacer'></div>
70 <div class='target'> 69 <div class='target'>
71 <a href='#' id='targetLink'>Target Link.</a> 70 <a href='#' id='targetLink'>Target Link.</a>
72 </div> 71 </div>
73 <div class='filler'></div> 72 <div class='filler'></div>
74 </div> 73 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698