bug 55192 - use the strategy of the first in flow when (incorrectly) getting an incremental reflow during printing. a=buster, r=peterl

This commit is contained in:
karnaze%netscape.com 2000-10-05 21:07:00 +00:00
Родитель 0bb0857648
Коммит 9e8ccf4889
2 изменённых файлов: 16 добавлений и 2 удалений

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

@ -1747,7 +1747,14 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext* aPresContext,
// See if the pass1 maximum width is no longer valid because one of the
// cell maximum widths changed
if (!IsMaximumWidthValid()) {
if (mPrevInFlow) {
// a next in flow just uses the preferred width of the 1st in flow.
nsTableFrame* firstInFlow = (nsTableFrame*)GetFirstInFlow();
if (firstInFlow) {
aDesiredSize.mMaximumWidth = firstInFlow->GetPreferredWidth();
}
}
else if (!IsMaximumWidthValid()) {
// Initialize the strategy and have it compute the natural size of
// the table
mTableLayoutStrategy->Initialize(aPresContext, nsnull, NS_UNCONSTRAINEDSIZE, aReflowState);

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

@ -1747,7 +1747,14 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext* aPresContext,
// See if the pass1 maximum width is no longer valid because one of the
// cell maximum widths changed
if (!IsMaximumWidthValid()) {
if (mPrevInFlow) {
// a next in flow just uses the preferred width of the 1st in flow.
nsTableFrame* firstInFlow = (nsTableFrame*)GetFirstInFlow();
if (firstInFlow) {
aDesiredSize.mMaximumWidth = firstInFlow->GetPreferredWidth();
}
}
else if (!IsMaximumWidthValid()) {
// Initialize the strategy and have it compute the natural size of
// the table
mTableLayoutStrategy->Initialize(aPresContext, nsnull, NS_UNCONSTRAINEDSIZE, aReflowState);