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

Side by Side Diff: LayoutTests/compositing/force-compositing-mode/overflow-hidden-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 <script src="../../resources/run-after-display.js"></script> 3 <script src="../../resources/run-after-display.js"></script>
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.waitUntilDone(); 17 testRunner.waitUntilDone();
18 } 18 }
19 runAfterDisplay(function() { 19 runAfterDisplay(function() {
20 var iframe = document.getElementById("parent-iframe"); 20 var iframe = document.getElementById("parent-iframe");
21 iframe.contentDocument.body.setAttribute("style", "overflow:hidden"); 21 iframe.contentDocument.body.setAttribute("style", "overflow:hidden");
22 iframe.contentDocument.body.offsetWidth; // See bug 41999 22 iframe.contentDocument.body.offsetWidth; // See bug 41999
23 if (window.testRunner) { 23 if (window.testRunner) {
24 testRunner.dumpAsText(); 24 testRunner.dumpAsText();
25 document.getElementById('layertree').innerText = window.internals.laye rTreeAsText(document); 25 document.getElementById('layertree').innerText = window.internals.laye rTreeAsText(document);
26 testRunner.notifyDone(); 26 testRunner.notifyDone();
27 } 27 }
28 }); 28 });
29 } 29 }
30 window.addEventListener("load", doTest, false); 30 window.addEventListener("load", doTest, false);
31 </script> 31 </script>
32 </head> 32 </head>
33 <body> 33 <body>
34 <iframe id="parent-iframe" src="resources/subframe-big.html"></iframe> 34 <iframe id="parent-iframe" src="resources/subframe-big.html"></iframe>
35 <pre id="layertree"></pre> 35 <pre id="layertree"></pre>
36 </body> 36 </body>
37 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698