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

Side by Side Diff: LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe-scroll.html

Issue 206463009: Rip out Settings::fixedPositionCreatesStackingContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo Created 6 years, 9 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 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 if (window.internals && window.eventSender) { 9 if (window.internals && window.eventSender) {
10 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t rue); 10 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(t rue);
11 window.internals.settings.setFixedPositionCreatesStackingContext(true);
12 11
13 addEventListener("load", function() { 12 addEventListener("load", function() {
14 window.eventSender.setPageScaleFactor(0.5, 0, 0); 13 window.eventSender.setPageScaleFactor(0.5, 0, 0);
15 setTimeout(function() { 14 setTimeout(function() {
16 var layerTreeScaledDown = internals.layerTreeAsText(document.getElementB yId("iframe").contentDocument); 15 var layerTreeScaledDown = internals.layerTreeAsText(document.getElementB yId("iframe").contentDocument);
17 16
18 window.eventSender.setPageScaleFactor(1.5, 0, 0); 17 window.eventSender.setPageScaleFactor(1.5, 0, 0);
19 setTimeout(function() { 18 setTimeout(function() {
20 var layerTreeScaledUp = internals.layerTreeAsText(document.getElementB yId("iframe").contentDocument); 19 var layerTreeScaledUp = internals.layerTreeAsText(document.getElementB yId("iframe").contentDocument);
21 // Because logical size of the frame is unchanged, the layer tree in t he frame should not be affected by the page scale. 20 // Because logical size of the frame is unchanged, the layer tree in t he frame should not be affected by the page scale.
22 document.getElementById("result").innerText = 21 document.getElementById("result").innerText =
23 layerTreeScaledUp == layerTreeScaledDown ? "PASS" : "FAIL"; 22 layerTreeScaledUp == layerTreeScaledDown ? "PASS" : "FAIL";
24 testRunner.notifyDone(); 23 testRunner.notifyDone();
25 }, 0); 24 }, 0);
26 }, 0); 25 }, 0);
27 }, false); 26 }, false);
28 } 27 }
29 </script> 28 </script>
30 </head> 29 </head>
31 <body> 30 <body>
32 <iframe id="iframe" src="resources/fixed-position-out-of-view-frame-scroll.html" style="width: 800px; height: 600px"></iframe> 31 <iframe id="iframe" src="resources/fixed-position-out-of-view-frame-scroll.html" style="width: 800px; height: 600px"></iframe>
33 <pre id="result"></pre> 32 <pre id="result"></pre>
34 </body> 33 </body>
35 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698