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

Side by Side Diff: LayoutTests/compositing/force-compositing-mode/overflow-iframe-layer.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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 iframe { 4 iframe {
5 height: 150px; 5 height: 150px;
6 width: 150px; 6 width: 150px;
7 } 7 }
8 </style> 8 </style>
9 <script> 9 <script>
10 if (window.internals) { 10 if (window.internals) {
11 internals.settings.setCompositedScrollingForFramesEnabled(true); 11 internals.settings.setPreferCompositingToLCDTextEnabled(true);
12 } 12 }
13 function doTest() 13 function doTest()
14 { 14 {
15 document.getElementById('iframe').contentDocument.body.offsetWidth; // See wkbug.com/41999 15 document.getElementById('iframe').contentDocument.body.offsetWidth; // See wkbug.com/41999
16 if (window.testRunner) { 16 if (window.testRunner) {
17 testRunner.dumpAsText(); 17 testRunner.dumpAsText();
18 document.getElementById('layertree').innerText = window.internals.layerT reeAsText(document); 18 document.getElementById('layertree').innerText = window.internals.layerT reeAsText(document);
19 } 19 }
20 } 20 }
21 window.addEventListener("load", doTest, false); 21 window.addEventListener("load", doTest, false);
22 </script> 22 </script>
23 </head> 23 </head>
24 <body> 24 <body>
25 <!-- this should generate a layer due to overflow --> 25 <!-- this should generate a layer due to overflow -->
26 <iframe id="iframe" src="resources/subframe-big.html"></iframe> 26 <iframe id="iframe" src="resources/subframe-big.html"></iframe>
27 <pre id="layertree"></pre> 27 <pre id="layertree"></pre>
28 </body> 28 </body>
29 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698