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

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

Issue 480803002: Merge CompositedScrollingForFrames into PreferCompositingToLCDText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
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.setCompositedScrollingForFramesEnabled(true); 12 internals.settings.setPreferCompositingToLCDTextEnabled(true);
13 } 13 }
14 function doTest() 14 function doTest()
15 { 15 {
16 if (window.testRunner) { 16 if (window.testRunner) {
17 testRunner.dumpAsText(); 17 testRunner.dumpAsText();
18 if (window.internals) 18 if (window.internals)
19 document.getElementById("result").innerText = window.internals.nonFast ScrollableRects(document).length ? "FAIL" : "PASS"; 19 document.getElementById("result").innerText = window.internals.nonFast ScrollableRects(document).length ? "FAIL" : "PASS";
20 } 20 }
21 } 21 }
22 window.addEventListener("load", doTest, false); 22 window.addEventListener("load", doTest, false);
23 </script> 23 </script>
24 </head> 24 </head>
25 <body> 25 <body>
26 <iframe id="scrollable-iframe" src="resources/subframe.html" style="width: 100 px; height: 100px"></iframe> 26 <iframe id="scrollable-iframe" src="resources/subframe.html" style="width: 100 px; height: 100px"></iframe>
27 <iframe id="non-scrollable-iframe" src="resources/subframe.html" style="width: 2000px; height: 2000px"></iframe> 27 <iframe id="non-scrollable-iframe" src="resources/subframe.html" style="width: 2000px; height: 2000px"></iframe>
28 <pre id="result"></pre> 28 <pre id="result"></pre>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698