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

Side by Side Diff: LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position.html

Issue 465333004: Non-composited, fixed position should trigger main thread scrolling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix comment Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .transform {
6 width: 100px;
7 height: 30px;
8 -webkit-transform: translateZ(0);
9 }
10 .fixed { 5 .fixed {
11 position: fixed; 6 position: fixed;
12 left: 10px; 7 left: 10px;
13 top: 10px; 8 top: 10px;
14 } 9 }
15 </style> 10 </style>
16 11
17 <script type="text/javascript"> 12 <script>
18 if (window.internals) 13 if (window.internals)
19 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled (true); 14 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled (false);
20 15
21 if (window.testRunner) { 16 if (window.testRunner) {
22 testRunner.dumpAsText(); 17 testRunner.dumpAsText();
23 18
24 window.addEventListener("load", function() { 19 window.addEventListener("load", function() {
25 document.getElementById("layerTree").innerText = window.internals.layerT reeAsText(document); 20 document.getElementById("layerTree").innerText = window.internals.layerT reeAsText(document);
26 document.getElementById("mainThreadScrollingReasons").innerText = window .internals.mainThreadScrollingReasons(document); 21 document.getElementById("mainThreadScrollingReasons").innerText = window .internals.mainThreadScrollingReasons(document);
27 }, false); 22 }, false);
28 } 23 }
29 </script> 24 </script>
30 </head> 25 </head>
31 26
32 <body> 27 <body>
33 <div class="transform"> 28 <div class="fixed">TEST</div>
34 <!-- This element should neither be composited nor force main thread scrolli ng. -->
35 <div class="fixed">TEST</div>
36 </div>
37 29
38 <pre id="layerTree"></pre> 30 <pre id="layerTree"></pre>
39 <pre id="mainThreadScrollingReasons"></pre> 31 <pre id="mainThreadScrollingReasons"></pre>
40 </body> 32 </body>
41 </html> 33 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698