bug 467444 - firstTruncatedRow can not be the last row on page if it should be pushed r=dholbert

This commit is contained in:
Bernd 2011-12-01 07:34:30 +01:00
Родитель 6adb8a2ffb
Коммит 6f32707b71
4 изменённых файлов: 60 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,29 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print"><head>
<style>
div.spacer {
height: 5px;
width: 10px;
}
img, td.spacer {
height: 140px;
width: 30px;
}
</style>
<title>rowspan pagination</title>
</head>
<body>
<div class="spacer"> </div>
<table>
<tbody>
<tr><td class="spacer"></td></tr>
<tr style="page-break-before:always">
<td rowspan="2">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF/wAAAAAAQaMSAwAAABJJREFUeNpiYBgFo2AwAIAAAwACigABtnCV2AAAAABJRU5ErkJggg==">
</td>
</tr>
<tr></tr>
</tbody>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,29 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print"><head>
<style>
div.spacer {
height: 5px;
width: 10px;
}
img, td.spacer {
height: 140px;
width: 30px;
}
</style>
<title>rowspan pagination</title>
</head>
<body>
<div class="spacer"> </div>
<table>
<tbody>
<tr><td class="spacer"></td></tr>
<tr>
<td rowspan="2">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF/wAAAAAAQaMSAwAAABJJREFUeNpiYBgFo2AwAIAAAwACigABtnCV2AAAAABJRU5ErkJggg==">
</td>
</tr>
<tr></tr>
</tbody>
</table>
</body>
</html>

Просмотреть файл

@ -1233,6 +1233,7 @@ fails-if(cocoaWidget) == 456147.xul 456147-ref.html # bug 458047
== 466395-2.html 466395-2-ref.html == 466395-2.html 466395-2-ref.html
== 467084-1.html 467084-1-ref.html == 467084-1.html 467084-1-ref.html
== 467084-2.html 467084-2-ref.html == 467084-2.html 467084-2-ref.html
== 467444-1.html 467444-1-ref.html
== 467460-1.html 467460-1-ref.html == 467460-1.html 467460-1-ref.html
== 468546-1.xhtml 468546-1-ref.xhtml == 468546-1.xhtml 468546-1-ref.xhtml
== 468473-1.xul 468473-1-ref.xul == 468473-1.xul 468473-1-ref.xul

Просмотреть файл

@ -1236,7 +1236,7 @@ nsTableRowGroupFrame::SplitRowGroup(nsPresContext* aPresContext,
UndoContinuedRow(aPresContext, contRow); UndoContinuedRow(aPresContext, contRow);
contRow = nsnull; contRow = nsnull;
nsTableRowFrame* oldLastRowThisPage = lastRowThisPage; nsTableRowFrame* oldLastRowThisPage = lastRowThisPage;
lastRowThisPage = firstTruncatedRow; lastRowThisPage = rowBefore;
aStatus = NS_FRAME_NOT_COMPLETE; aStatus = NS_FRAME_NOT_COMPLETE;
// Call SplitSpanningCells again with rowBefore as the last row on the page // Call SplitSpanningCells again with rowBefore as the last row on the page