handle captions and innertable frames identical if the containing block is to small,

bug 76726 r=karnaze sr=waterson
This commit is contained in:
bernd.mielke%snafu.de 2001-08-21 19:31:53 +00:00
Родитель e8e1ca5a60
Коммит 6c51b86add
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -1925,7 +1925,8 @@ nsHTMLReflowState::CalculateBlockSideMargins(nscoord aAvailWidth,
nscoord availMarginSpace = aAvailWidth - aComputedWidth - nscoord availMarginSpace = aAvailWidth - aComputedWidth -
mComputedBorderPadding.left - mComputedBorderPadding.right; 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 // Special rules for tables. In general, tables will stick to the
// left edge when they are too large otherwise they behave like // left edge when they are too large otherwise they behave like
// blocks. // blocks.

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

@ -1925,7 +1925,8 @@ nsHTMLReflowState::CalculateBlockSideMargins(nscoord aAvailWidth,
nscoord availMarginSpace = aAvailWidth - aComputedWidth - nscoord availMarginSpace = aAvailWidth - aComputedWidth -
mComputedBorderPadding.left - mComputedBorderPadding.right; 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 // Special rules for tables. In general, tables will stick to the
// left edge when they are too large otherwise they behave like // left edge when they are too large otherwise they behave like
// blocks. // blocks.