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

Side by Side Diff: LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-scroll.html

Issue 190723007: Fix tests to be compatible with Android scale initialization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove substantive change, change only tests Created 6 years, 7 months 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 .fixed { 5 .fixed {
6 position: fixed; 6 position: fixed;
7 width: 10px; 7 width: 10px;
8 height: 10px; 8 height: 10px;
9 background-color: silver; 9 background-color: silver;
10 } 10 }
11 ::-webkit-scrollbar {
12 width: 0px;
13 height: 0px;
14 }
11 </style> 15 </style>
12 <script> 16 <script>
13 if (window.testRunner) { 17 if (window.testRunner) {
14 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
15 testRunner.waitUntilDone(); 19 testRunner.waitUntilDone();
16 } 20 }
17 if (window.internals && window.eventSender) { 21 if (window.internals && window.eventSender) {
18 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t rue); 22 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t rue);
19 23
20 addEventListener("load", function() { 24 addEventListener("load", function() {
(...skipping 12 matching lines...) Expand all
33 }, 0); 37 }, 0);
34 }, 0); 38 }, 0);
35 }, false); 39 }, false);
36 } 40 }
37 </script> 41 </script>
38 </head> 42 </head>
39 43
40 <!-- Fixed position elements may skip compositing without a scrollable 44 <!-- Fixed position elements may skip compositing without a scrollable
41 ancestor. To make sure this test covers the intended scenario, we force the 45 ancestor. To make sure this test covers the intended scenario, we force the
42 body element to be tall, so that the FrameView is scrolling. --> 46 body element to be tall, so that the FrameView is scrolling. -->
43 <body style="height: 4000px;"> 47 <body style="width: 4000px; height: 4000px;">
44 <div style="height: 1000px"> 48 <div style="height: 1000px">
45 Not scaled: 49 Not scaled:
46 <pre id="layerTree"></pre> 50 <pre id="layerTree"></pre>
47 Scale=0.5: 51 Scale=0.5:
48 <pre id="layerTreeScaledDown"></pre> 52 <pre id="layerTreeScaledDown"></pre>
49 Scale=1.5: 53 Scale=1.5:
50 <pre id="layerTreeScaledUp"></pre> 54 <pre id="layerTreeScaledUp"></pre>
51 </div> 55 </div>
52 <!-- The layer tree should always be the same, regardless of page scale, except on platforms that enable the applyPageScaleFactorInCompositor Setting. --> 56 <!-- The layer tree should always be the same, regardless of page scale, except on platforms that enable the applyPageScaleFactorInCompositor Setting. -->
53 <!-- No layer in any case. --> 57 <!-- No layer in any case. -->
54 <div class="fixed" style="top: -100px"></div> 58 <div class="fixed" style="top: -100px"></div>
55 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la yer when scaled down; no layer when not scaled or scaled up. --> 59 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la yer when scaled down; no layer when not scaled or scaled up. -->
56 <div class="fixed"></div> 60 <div class="fixed"></div>
57 <div class="fixed" style="top: 0px; left: 1000px"></div> 61 <div class="fixed" style="top: 0px; left: 1000px"></div>
58 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la yer when not scaled and scaled down; no layer scaled up. --> 62 <!-- When applyPageScaleFactorInCompositor is true, this will have composited la yer when not scaled and scaled down; no layer scaled up. -->
59 <div class="fixed" style="top: 0px; left: 600px"></div> 63 <div class="fixed" style="top: 0px; left: 600px"></div>
60 <!-- Always has composited layer. --> 64 <!-- Always has composited layer. -->
61 <div class="fixed" style="top: 0px; left: 0px"></div> 65 <div class="fixed" style="top: 0px; left: 0px"></div>
62 </body> 66 </body>
63 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698