From 6c51b86add1dd30a668001e4949bfec7e65af557 Mon Sep 17 00:00:00 2001 From: "bernd.mielke%snafu.de" Date: Tue, 21 Aug 2001 19:31:53 +0000 Subject: [PATCH] handle captions and innertable frames identical if the containing block is to small, bug 76726 r=karnaze sr=waterson --- layout/generic/nsHTMLReflowState.cpp | 3 ++- layout/html/base/src/nsHTMLReflowState.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsHTMLReflowState.cpp b/layout/generic/nsHTMLReflowState.cpp index 5755a31b37a5..ce8dab5911ed 100644 --- a/layout/generic/nsHTMLReflowState.cpp +++ b/layout/generic/nsHTMLReflowState.cpp @@ -1925,7 +1925,8 @@ nsHTMLReflowState::CalculateBlockSideMargins(nscoord aAvailWidth, nscoord availMarginSpace = aAvailWidth - aComputedWidth - mComputedBorderPadding.left - mComputedBorderPadding.right; - if (mStyleDisplay->mDisplay == NS_STYLE_DISPLAY_TABLE) { + if ((mStyleDisplay->mDisplay == NS_STYLE_DISPLAY_TABLE) || + (mStyleDisplay->mDisplay == NS_STYLE_DISPLAY_TABLE_CAPTION)) { // Special rules for tables. In general, tables will stick to the // left edge when they are too large otherwise they behave like // blocks. diff --git a/layout/html/base/src/nsHTMLReflowState.cpp b/layout/html/base/src/nsHTMLReflowState.cpp index 5755a31b37a5..ce8dab5911ed 100644 --- a/layout/html/base/src/nsHTMLReflowState.cpp +++ b/layout/html/base/src/nsHTMLReflowState.cpp @@ -1925,7 +1925,8 @@ nsHTMLReflowState::CalculateBlockSideMargins(nscoord aAvailWidth, nscoord availMarginSpace = aAvailWidth - aComputedWidth - mComputedBorderPadding.left - mComputedBorderPadding.right; - if (mStyleDisplay->mDisplay == NS_STYLE_DISPLAY_TABLE) { + if ((mStyleDisplay->mDisplay == NS_STYLE_DISPLAY_TABLE) || + (mStyleDisplay->mDisplay == NS_STYLE_DISPLAY_TABLE_CAPTION)) { // Special rules for tables. In general, tables will stick to the // left edge when they are too large otherwise they behave like // blocks.