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

Side by Side Diff: LayoutTests/compositing/iframes/iframe-composited-scrolling.html

Issue 239533002: Combine settings about compositing scrollable frames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 iframe { 5 iframe {
6 height: 150px; 6 height: 150px;
7 width: 150px; 7 width: 150px;
8 } 8 }
9 </style> 9 </style>
10 <script> 10 <script>
11 if (window.internals) { 11 if (window.internals) {
12 internals.settings.setForceCompositingMode(true); 12 internals.settings.setForceCompositingMode(true);
13 internals.settings.setAcceleratedCompositingForScrollableFramesEnabled(tru e);
14 internals.settings.setCompositedScrollingForFramesEnabled(true); 13 internals.settings.setCompositedScrollingForFramesEnabled(true);
15 } 14 }
16 function doTest() 15 function doTest()
17 { 16 {
18 if (window.testRunner) { 17 if (window.testRunner) {
19 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
20 if (window.internals) 19 if (window.internals)
21 document.getElementById("result").innerText = window.internals.nonFast ScrollableRects(document).length ? "FAIL" : "PASS"; 20 document.getElementById("result").innerText = window.internals.nonFast ScrollableRects(document).length ? "FAIL" : "PASS";
22 } 21 }
23 } 22 }
24 window.addEventListener("load", doTest, false); 23 window.addEventListener("load", doTest, false);
25 </script> 24 </script>
26 </head> 25 </head>
27 <body> 26 <body>
28 <iframe id="scrollable-iframe" src="resources/subframe.html" style="width: 100 px; height: 100px"></iframe> 27 <iframe id="scrollable-iframe" src="resources/subframe.html" style="width: 100 px; height: 100px"></iframe>
29 <iframe id="non-scrollable-iframe" src="resources/subframe.html" style="width: 2000px; height: 2000px"></iframe> 28 <iframe id="non-scrollable-iframe" src="resources/subframe.html" style="width: 2000px; height: 2000px"></iframe>
30 <pre id="result"></pre> 29 <pre id="result"></pre>
31 </body> 30 </body>
32 </html> 31 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/force-compositing-mode/overflow-iframe-leave-compositing.html ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698