зеркало из https://github.com/mozilla/pjs.git
empty tables should not have a size in quirks mode. bug 241161 r/sr=bzbarsky
This commit is contained in:
Родитель
ba04674c8f
Коммит
c07cb87331
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче