mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 408749. Reflow captions with unconstrained height, because we have no logic to reflow their continuations. r+sr=bzbarsky
This commit is contained in:
parent
46fda60001
commit
4cedbfdd70
@ -1113,15 +1113,19 @@ nsTableOuterFrame::OuterReflowChild(nsPresContext* aPresContext,
|
||||
// work around pixel rounding errors, round down to ensure we don't exceed the avail height in
|
||||
nscoord availHeight = aOuterRS.availableHeight;
|
||||
if (NS_UNCONSTRAINEDSIZE != availHeight) {
|
||||
nsMargin margin;
|
||||
GetMargin(aPresContext, aOuterRS, aChildFrame, aOuterRS.availableWidth,
|
||||
margin);
|
||||
if (mCaptionFrame == aChildFrame) {
|
||||
availHeight = NS_UNCONSTRAINEDSIZE;
|
||||
} else {
|
||||
nsMargin margin;
|
||||
GetMargin(aPresContext, aOuterRS, aChildFrame, aOuterRS.availableWidth,
|
||||
margin);
|
||||
|
||||
NS_ASSERTION(NS_UNCONSTRAINEDSIZE != margin.top, "No unconstrainedsize arithmetic, please");
|
||||
availHeight -= margin.top;
|
||||
|
||||
NS_ASSERTION(NS_UNCONSTRAINEDSIZE != margin.bottom, "No unconstrainedsize arithmetic, please");
|
||||
availHeight -= margin.bottom;
|
||||
NS_ASSERTION(NS_UNCONSTRAINEDSIZE != margin.top, "No unconstrainedsize arithmetic, please");
|
||||
availHeight -= margin.top;
|
||||
|
||||
NS_ASSERTION(NS_UNCONSTRAINEDSIZE != margin.bottom, "No unconstrainedsize arithmetic, please");
|
||||
availHeight -= margin.bottom;
|
||||
}
|
||||
}
|
||||
nsSize availSize(aAvailWidth, availHeight);
|
||||
// create and init the child reflow state, using placement new on
|
||||
|
Loading…
Reference in New Issue
Block a user