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

Side by Side Diff: LayoutTests/compositing/overflow/opt-into-composited-scrolling-positioned-ancestor.html

Issue 14858004: Clean up the way layout tests force elements to opt in/out of composited scrolling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 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 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .container { 6 .container {
7 width: 200px; 7 width: 200px;
8 height: 200px; 8 height: 200px;
9 overflow: scroll; 9 overflow: scroll;
10 margin: 20px; 10 margin: 20px;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 background-color: blue; 44 background-color: blue;
45 } 45 }
46 46
47 </style> 47 </style>
48 <script src="resources/automatically-opt-into-composited-scrolling.js"></scrip t> 48 <script src="resources/automatically-opt-into-composited-scrolling.js"></scrip t>
49 <script> 49 <script>
50 if (window.testRunner) 50 if (window.testRunner)
51 testRunner.dumpAsText(); 51 testRunner.dumpAsText();
52 52
53 if (window.internals) 53 if (window.internals)
54 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable d(true); 54 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable dMode(window.internals.settings.AcceleratedCompositingForOverflowScrollEnabled);
55 55
56 function doTest() 56 function doTest()
57 { 57 {
58 var predecessor = document.getElementById('predecessor'); 58 var predecessor = document.getElementById('predecessor');
59 var ancestor = document.getElementById('ancestor'); 59 var ancestor = document.getElementById('ancestor');
60 var container = document.getElementById('container'); 60 var container = document.getElementById('container');
61 var firstChild = document.getElementById('firstChild'); 61 var firstChild = document.getElementById('firstChild');
62 var secondChild = document.getElementById('secondChild'); 62 var secondChild = document.getElementById('secondChild');
63 63
64 // Force a synchronous style recalc and layout. 64 // Force a synchronous style recalc and layout.
(...skipping 15 matching lines...) Expand all
80 <div class="positioned" id="predecessor"></div> 80 <div class="positioned" id="predecessor"></div>
81 <div class="positioned" id="ancestor"> 81 <div class="positioned" id="ancestor">
82 <div class="container" id="container"> 82 <div class="container" id="container">
83 <div class="scrolled" id="firstChild"></div> 83 <div class="scrolled" id="firstChild"></div>
84 <div class="scrolled" id="secondChild"></div> 84 <div class="scrolled" id="secondChild"></div>
85 </div> 85 </div>
86 </div> 86 </div>
87 <pre id="console"></pre> 87 <pre id="console"></pre>
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698