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

Side by Side Diff: LayoutTests/compositing/overflow/dynamic-composited-scrolling-status.html

Issue 26110004: Defer the real work in updateCompositingLayers until it's really needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch for landing Created 7 years, 2 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 #container { 5 #container {
6 width: 200px; 6 width: 200px;
7 height: 200px; 7 height: 200px;
8 overflow: auto; 8 overflow: auto;
9 } 9 }
10 10
11 #content { 11 #content {
12 width: 100px; 12 width: 100px;
13 height: 100px; 13 height: 100px;
14 background-color: yellow; 14 background-color: yellow;
15 } 15 }
16 </style> 16 </style>
17 17
18 <script type="text/javascript" charset="utf-8"> 18 <script type="text/javascript" charset="utf-8">
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.dumpAsText(); 20 testRunner.dumpAsText();
21 21
22 if (window.internals) 22 if (window.internals)
23 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable d(true); 23 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable d(true);
24 24
25 function doTest() 25 function doTest()
26 { 26 {
27 document.getElementById('content').style.height = '1000px'; 27 document.getElementById('content').style.height = '1000px';
28 document.body.offsetHeight;
29 28
30 if (window.internals) 29 if (window.internals) {
30 window.internals.forceCompositingUpdate(document);
31 document.getElementById('result').innerText = window.internals.nonFastSc rollableRects(document).length ? "FAIL" : "PASS"; 31 document.getElementById('result').innerText = window.internals.nonFastSc rollableRects(document).length ? "FAIL" : "PASS";
32 }
32 } 33 }
33 34
34 window.addEventListener('load', doTest, false); 35 window.addEventListener('load', doTest, false);
35 </script> 36 </script>
36 </head> 37 </head>
37 38
38 <body> 39 <body>
39 <div id="container"> 40 <div id="container">
40 <div id="content"></div> 41 <div id="content"></div>
41 </div> 42 </div>
42 <pre id="result"></pre> 43 <pre id="result"></pre>
43 </body> 44 </body>
44 </html> 45 </html>
45 46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698