bug 678447 - prevent splitting of tables inside columnsets during printing r=roc

This commit is contained in:
Bernd 2011-08-13 18:37:43 +02:00
parent d870927581
commit d20e85e464
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,10 @@
<html class="reftest-print">
<head>
</head>
<body style=" -moz-column-count: 2;">
<table>
<tbody><tr><td>rowgroup1</td></tr></tbody>
<tbody><tr><td>rowgroup2</td></tr></tbody>
</table>
</body>
</html>

View File

@ -107,3 +107,4 @@ load 576890-2.html
load 576890-3.html
asserts(0-1) load 595758-1.xhtml # Bug 453871
load 595758-2.xhtml
load 678447-1.html

View File

@ -2682,8 +2682,12 @@ nsTableFrame::ReflowChildren(nsTableReflowState& aReflowState,
nsPresContext* presContext = PresContext();
// XXXldb Should we be checking constrained height instead?
// tables are not able to pull back children from its next inflow, so even
// under paginated contexts tables are should not paginate if they are inside
// column set
PRBool isPaginated = presContext->IsPaginated() &&
NS_UNCONSTRAINEDSIZE != aReflowState.availSize.height;
NS_UNCONSTRAINEDSIZE != aReflowState.availSize.height &&
aReflowState.reflowState.mFlags.mTableIsSplittable;
aOverflowAreas.Clear();