blob: 8891dfd2f1510b2afe7dfaf9e7c1425bbbf5675c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<html>
<head>
<style>
iframe {
height: 150px;
width: 150px;
}
</style>
<script>
function doTest()
{
document.getElementById('iframe').contentDocument.body.offsetWidth; // See wkbug.com/41999
if (window.testRunner) {
testRunner.dumpAsText();
document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
}
}
window.addEventListener("load", doTest, false);
if (window.internals) {
internals.settings.setForceCompositingMode(true);
internals.settings.setAcceleratedCompositingForScrollableFramesEnabled(true);
}
</script>
</head>
<body>
<!-- this should not generate a layer and the layer tree should be empty -->
<iframe id="iframe" src="resources/subframe-small.html"></iframe>
<pre id="layertree"></pre>
</body>
</html>
|