<div id="target1"></div>
<div id="target2"></div>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
    
    var target1 = document.getElementById("target1");
    target1.offsetTop;
    target1.style.display = "none";
    var embed = document.createElement("embed");
    embed.setAttribute("type", "x-webkit/x-webkit-unknown");
    target1.appendChild(embed);    

    var target2 = document.getElementById("target2");
    target2.offsetTop;
    target2.style.display = "none";
    var object = document.createElement("object");
    object.setAttribute("type", "x-webkit/x-webkit-unknown");
    target2.appendChild(embed);        
</script>
<p>This tests that we don&rsquo;t crash when forcing a style recalc when inside RenderIFrame::updateWidget.</p >
<p>SUCCESS - Did not crash!</p>
