Bug 691118 - Frames inserted into the frame manager should only be overflow containers, not true overflow containers; r=roc

This commit is contained in:
Ehsan Akhgari 2012-01-03 19:44:07 -05:00
parent 3f94d9daf7
commit 064c1c618f
3 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<script>
function boom()
{
document.documentElement.offsetHeight;
document.getElementById("x").style.counterIncrement = "a";
document.documentElement.offsetHeight;
}
</script>
<body onload="boom();" style="-moz-column-count: 3">
<div style="position: relative;">
<div style="position: absolute; height: 3pt;"></div>
<div style="position: absolute;" id="x"></div>
<div style="position: absolute; height: 8pt;"></div>
</div>
</body>
</html>

View File

@ -343,5 +343,6 @@ load 665837.html
load 668941.xhtml
load 670226.html
asserts(2) load 675246-1.xhtml # Bug 675713
load 691118-1.html
load 695861.html
load 707098.html

View File

@ -492,8 +492,8 @@ nsFrameManager::InsertFrames(nsIFrame* aParentFrame,
nsFrameList& aFrameList)
{
NS_PRECONDITION(!aPrevFrame || (!aPrevFrame->GetNextContinuation()
|| IS_TRUE_OVERFLOW_CONTAINER(aPrevFrame->GetNextContinuation()))
&& !IS_TRUE_OVERFLOW_CONTAINER(aPrevFrame),
|| (aPrevFrame->GetNextContinuation()->GetStateBits() & NS_FRAME_IS_OVERFLOW_CONTAINER))
&& !(aPrevFrame->GetStateBits() & NS_FRAME_IS_OVERFLOW_CONTAINER),
"aPrevFrame must be the last continuation in its chain!");
if (aParentFrame->IsAbsoluteContainer() &&