mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 09:01:16 +00:00
tables can be used as rectangular items without content, bug 227123 r/sr=bzbarsky
This commit is contained in:
parent
4a0aaeb2e9
commit
76cf6abfab
@ -3441,7 +3441,14 @@ nsTableFrame::CalcDesiredHeight(nsIPresContext* aPresContext,
|
||||
nsAutoVoidArray rowGroups;
|
||||
PRUint32 numRowGroups;
|
||||
OrderRowGroups(rowGroups, numRowGroups, nsnull);
|
||||
if (numRowGroups <= 0) return 0;
|
||||
if (numRowGroups <= 0) {
|
||||
// tables can be used as rectangular items without content
|
||||
nscoord tableSpecifiedHeight = CalcBorderBoxHeight(aPresContext, aReflowState);
|
||||
if ((NS_UNCONSTRAINEDSIZE != tableSpecifiedHeight) &&
|
||||
(tableSpecifiedHeight > 0))
|
||||
return tableSpecifiedHeight;
|
||||
return 0;
|
||||
}
|
||||
|
||||
nscoord desiredHeight = borderPadding.top + cellSpacingY + borderPadding.bottom;
|
||||
for (PRUint32 rgX = 0; rgX < numRowGroups; rgX++) {
|
||||
|
@ -3441,7 +3441,14 @@ nsTableFrame::CalcDesiredHeight(nsIPresContext* aPresContext,
|
||||
nsAutoVoidArray rowGroups;
|
||||
PRUint32 numRowGroups;
|
||||
OrderRowGroups(rowGroups, numRowGroups, nsnull);
|
||||
if (numRowGroups <= 0) return 0;
|
||||
if (numRowGroups <= 0) {
|
||||
// tables can be used as rectangular items without content
|
||||
nscoord tableSpecifiedHeight = CalcBorderBoxHeight(aPresContext, aReflowState);
|
||||
if ((NS_UNCONSTRAINEDSIZE != tableSpecifiedHeight) &&
|
||||
(tableSpecifiedHeight > 0))
|
||||
return tableSpecifiedHeight;
|
||||
return 0;
|
||||
}
|
||||
|
||||
nscoord desiredHeight = borderPadding.top + cellSpacingY + borderPadding.bottom;
|
||||
for (PRUint32 rgX = 0; rgX < numRowGroups; rgX++) {
|
||||
|
Loading…
Reference in New Issue
Block a user