Bug 397428. Return 'complete' on *all* paths whenever we push a rowgroup to the next page. r=bernd,sr=bzbarsky,a=schrep

This commit is contained in:
roc+@cs.cmu.edu 2007-11-11 17:45:56 -08:00
parent e81912ab39
commit 588aa98f7d
4 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<html class="reftest-print">
<body>
<div style="page-break-after:always;"></div>
<br><br>
Head
</body></html>

View File

@ -0,0 +1,8 @@
<html class="reftest-print">
<body>
<div style="page-break-after:always;"></div>
<table cellspacing="0" border="0" cellpadding="0"><tbody><tr><td>
<table cellspacing="0" border="0" cellpadding="0"><tbody><tr><td><br><br></td></tr></tbody></table>
Head
</td></tr></tbody></table>
</body></html>

View File

@ -423,6 +423,7 @@ fails == 393655-2.html 393655-2-ref.html # Remove 'fails' when 393655 lands
== 395130-2.html 395130-2-ref.html
== 395331-1.xml 395331-1-ref.xml
== 396286-1.html about:blank # crash test
== 397428-1.html 397428-1-ref.html
== 398289-1.html 398289-1-ref.html
== 398144-1.html 398144-1-ref.html
== 398797-1a.html 398797-1-ref.html

View File

@ -1136,6 +1136,7 @@ nsTableRowGroupFrame::SplitRowGroup(nsPresContext* aPresContext,
nsTableRowFrame* lastRowThisPage = rowFrame;
if (!rowIsOnPage) {
NS_ASSERTION(!contRow, "We should not have created a continuation if none of this row fits");
if (prevRowFrame) {
availHeight -= prevRowFrame->GetRect().YMost();
lastRowThisPage = prevRowFrame;
@ -1145,6 +1146,7 @@ nsTableRowGroupFrame::SplitRowGroup(nsPresContext* aPresContext,
else {
// We can't push children, so let our parent reflow us again with more space
aDesiredSize.height = rowRect.YMost();
aStatus = NS_FRAME_COMPLETE;
break;
}
}