mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
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:
parent
e81912ab39
commit
588aa98f7d
6
layout/reftests/bugs/397428-1-ref.html
Normal file
6
layout/reftests/bugs/397428-1-ref.html
Normal file
@ -0,0 +1,6 @@
|
||||
<html class="reftest-print">
|
||||
<body>
|
||||
<div style="page-break-after:always;"></div>
|
||||
<br><br>
|
||||
Head
|
||||
</body></html>
|
8
layout/reftests/bugs/397428-1.html
Normal file
8
layout/reftests/bugs/397428-1.html
Normal 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>
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user