mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
bug 678447 - prevent splitting of tables inside columnsets during printing r=roc
This commit is contained in:
parent
d870927581
commit
d20e85e464
10
layout/tables/crashtests/678447-1.html
Normal file
10
layout/tables/crashtests/678447-1.html
Normal 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>
|
@ -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
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user