зеркало из https://github.com/mozilla/gecko-dev.git
bug 14818 - made standard mode like NavQuirks when handling colspans exceeding the number of columns.
This commit is contained in:
Родитель
d5b561ee28
Коммит
49cb28761f
|
@ -673,6 +673,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
|
|||
if (border.right > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
}
|
||||
}
|
||||
PRInt32 colspan = GetColSpan();
|
||||
if (colspan > 1) {
|
||||
smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel);
|
||||
|
@ -683,7 +684,6 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
|
|||
smallestMinWidth -= onePixel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((0 == kidSize.width) && (NS_UNCONSTRAINEDSIZE != kidReflowState.availableWidth)) {
|
||||
// empty content has to be forced to the assigned width for resize or incremental reflow
|
||||
|
|
|
@ -673,6 +673,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
|
|||
if (border.right > 0)
|
||||
smallestMinWidth += onePixel;
|
||||
}
|
||||
}
|
||||
PRInt32 colspan = GetColSpan();
|
||||
if (colspan > 1) {
|
||||
smallestMinWidth = PR_MAX(smallestMinWidth, colspan * onePixel);
|
||||
|
@ -683,7 +684,6 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
|
|||
smallestMinWidth -= onePixel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((0 == kidSize.width) && (NS_UNCONSTRAINEDSIZE != kidReflowState.availableWidth)) {
|
||||
// empty content has to be forced to the assigned width for resize or incremental reflow
|
||||
|
|
Загрузка…
Ссылка в новой задаче