mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Fixing a bug in the distribution of excess space to multiple row groups.
This commit is contained in:
parent
70c43af439
commit
5f6e627b54
@ -4305,6 +4305,7 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext& aPresContext,
|
|||||||
}
|
}
|
||||||
rowGroupFrame=mFrames.FirstChild();
|
rowGroupFrame=mFrames.FirstChild();
|
||||||
nscoord y=0;
|
nscoord y=0;
|
||||||
|
nscoord rowGroupYPos = 0;
|
||||||
while (nsnull!=rowGroupFrame)
|
while (nsnull!=rowGroupFrame)
|
||||||
{
|
{
|
||||||
const nsStyleDisplay *rowGroupDisplay;
|
const nsStyleDisplay *rowGroupDisplay;
|
||||||
@ -4312,7 +4313,6 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext& aPresContext,
|
|||||||
if (PR_TRUE==IsRowGroup(rowGroupDisplay->mDisplay))
|
if (PR_TRUE==IsRowGroup(rowGroupDisplay->mDisplay))
|
||||||
{
|
{
|
||||||
nscoord excessForGroup = 0;
|
nscoord excessForGroup = 0;
|
||||||
nscoord rowGroupYPos = 0;
|
|
||||||
DistributeSpaceToRows(aPresContext, aReflowState, rowGroupFrame, sumOfRowHeights,
|
DistributeSpaceToRows(aPresContext, aReflowState, rowGroupFrame, sumOfRowHeights,
|
||||||
excess, tableStyle, excessForGroup, rowGroupYPos);
|
excess, tableStyle, excessForGroup, rowGroupYPos);
|
||||||
}
|
}
|
||||||
|
@ -4305,6 +4305,7 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext& aPresContext,
|
|||||||
}
|
}
|
||||||
rowGroupFrame=mFrames.FirstChild();
|
rowGroupFrame=mFrames.FirstChild();
|
||||||
nscoord y=0;
|
nscoord y=0;
|
||||||
|
nscoord rowGroupYPos = 0;
|
||||||
while (nsnull!=rowGroupFrame)
|
while (nsnull!=rowGroupFrame)
|
||||||
{
|
{
|
||||||
const nsStyleDisplay *rowGroupDisplay;
|
const nsStyleDisplay *rowGroupDisplay;
|
||||||
@ -4312,7 +4313,6 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext& aPresContext,
|
|||||||
if (PR_TRUE==IsRowGroup(rowGroupDisplay->mDisplay))
|
if (PR_TRUE==IsRowGroup(rowGroupDisplay->mDisplay))
|
||||||
{
|
{
|
||||||
nscoord excessForGroup = 0;
|
nscoord excessForGroup = 0;
|
||||||
nscoord rowGroupYPos = 0;
|
|
||||||
DistributeSpaceToRows(aPresContext, aReflowState, rowGroupFrame, sumOfRowHeights,
|
DistributeSpaceToRows(aPresContext, aReflowState, rowGroupFrame, sumOfRowHeights,
|
||||||
excess, tableStyle, excessForGroup, rowGroupYPos);
|
excess, tableStyle, excessForGroup, rowGroupYPos);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user