mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00
empty tables should not have a size in quirks mode. bug 241161 r/sr=bzbarsky
This commit is contained in:
parent
f84aa8bd5a
commit
aa063dc0db
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user