forked from mirrors/gecko-dev
The primary patch in bug 1308876 causes frames to be reflowed less often with NS_FRAME_IS_DIRTY, particularly when multiple passes of reflow are required for the frame or one of its ancestors (which is generally the case for a document that ends up not having scrollbars). This change causes this assert to fire on various SVG tests such as layout/reftests/svg/svg-integration/conditions-outer-svg-01.xhtml . This happens because the outer SVG with conditional processing (in this test, systemLanguage="x") is reflowed due to its parent resizing, without NS_FRAME_IS_DIRTY set. This is a relatively normal thing to happen during reflow; we just didn't have any tests that exercise it. This patch adds a crashtest that triggers the assertion through the same mechanism, but with a dynamic change, rather than depending on the non-dirty reflow triggered by bug 1308876. (I confirmed locally that this test does trigger the assertion without this patch, when run in the crashtest harness.) I think fundamentally the assertion isn't valid, and we should instead be testing the condition that it asserts. MozReview-Commit-ID: D8hjAbjKyuL --HG-- extra : transplant_source : %98C%3A%B1%93jb%E7%3D%81%19%97%A6%04%0F%88%8B%D2%A35
28 lines
856 B
HTML
28 lines
856 B
HTML
<!--
|
|
Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
-->
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:svg="http://www.w3.org/2000/svg">
|
|
<head>
|
|
<title>Test of NS_FRAME_IS_NONDISPLAY / NS_FRAME_IS_DIRTY assertion</title>
|
|
<!-- reduced from layout/reftests/svg/svg-integration/conditions-outer-svg-01.xhtml
|
|
and modified to occur without bug 1308876 patches. -->
|
|
<style>
|
|
div { position: relative; height: 100px; width: 100px }
|
|
svg { position: absolute; top: 0; left: 0; height: 100%; width: 100% }
|
|
</style>
|
|
<script>
|
|
function run() {
|
|
var d = document.getElementById("d");
|
|
d.offsetHeight;
|
|
d.style.height = "50px";
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="run()">
|
|
<div id="d">
|
|
<svg:svg systemLanguage="x"></svg:svg>
|
|
</div>
|
|
</body>
|
|
</html>
|