bug 15993 - in quirks mode allocates space for a 1 pixel border if the content is empty and the table has a border. It was incorrectly, doing this even if the content was not empty. r=buster; asked permission from hook and got no response.
git-svn-id: svn://10.0.0.236/trunk@50981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
038ada687d
commit
aef57f8136
@ -677,10 +677,12 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
|
||||
if (eCompatibility_NavQuirks == compatMode) {
|
||||
if ((pos->mWidth.GetUnit() != eStyleUnit_Coord) &&
|
||||
(pos->mWidth.GetUnit() != eStyleUnit_Percent)) {
|
||||
if (border.left > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
if (border.right > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
if (PR_TRUE == GetContentEmpty()) {
|
||||
if (border.left > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
if (border.right > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
}
|
||||
}
|
||||
}
|
||||
PRInt32 colspan = GetColSpan();
|
||||
|
||||
@ -677,10 +677,12 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
|
||||
if (eCompatibility_NavQuirks == compatMode) {
|
||||
if ((pos->mWidth.GetUnit() != eStyleUnit_Coord) &&
|
||||
(pos->mWidth.GetUnit() != eStyleUnit_Percent)) {
|
||||
if (border.left > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
if (border.right > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
if (PR_TRUE == GetContentEmpty()) {
|
||||
if (border.left > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
if (border.right > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
}
|
||||
}
|
||||
}
|
||||
PRInt32 colspan = GetColSpan();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user