зеркало из https://github.com/mozilla/gecko-dev.git
handle captions and innertable frames identical if the containing block is to small,
bug 76726 r=karnaze sr=waterson
This commit is contained in:
Родитель
e8e1ca5a60
Коммит
6c51b86add
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче