mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 691118 - Frames inserted into the frame manager should only be overflow containers, not true overflow containers; r=roc
This commit is contained in:
parent
3f94d9daf7
commit
064c1c618f
24
layout/base/crashtests/691118-1.html
Normal file
24
layout/base/crashtests/691118-1.html
Normal 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>
|
@ -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
|
||||
|
@ -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() &&
|
||||
|
Loading…
Reference in New Issue
Block a user