empty tables should not have a size in quirks mode. bug 241161 r/sr=bzbarsky

This commit is contained in:
bmlk%gmx.de 2004-06-09 04:13:53 +00:00
Родитель ba04674c8f
Коммит c07cb87331
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -3427,7 +3427,9 @@ nsTableFrame::CalcDesiredHeight(const nsHTMLReflowState& aReflowState)
// tables can be used as rectangular items without content
nscoord tableSpecifiedHeight = CalcBorderBoxHeight(aReflowState);
if ((NS_UNCONSTRAINEDSIZE != tableSpecifiedHeight) &&
(tableSpecifiedHeight > 0))
(tableSpecifiedHeight > 0) &&
eCompatibility_NavQuirks != GetPresContext()->CompatibilityMode())
// empty tables should not have a size in quirks mode
return tableSpecifiedHeight;
return 0;
}

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

@ -3427,7 +3427,9 @@ nsTableFrame::CalcDesiredHeight(const nsHTMLReflowState& aReflowState)
// tables can be used as rectangular items without content
nscoord tableSpecifiedHeight = CalcBorderBoxHeight(aReflowState);
if ((NS_UNCONSTRAINEDSIZE != tableSpecifiedHeight) &&
(tableSpecifiedHeight > 0))
(tableSpecifiedHeight > 0) &&
eCompatibility_NavQuirks != GetPresContext()->CompatibilityMode())
// empty tables should not have a size in quirks mode
return tableSpecifiedHeight;
return 0;
}