mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
adjust start col index when looping over rtl colspans bug 331344 r/sr=roc
This commit is contained in:
parent
3d0fcd20ab
commit
129b81296d
@ -1536,9 +1536,9 @@ nsTableRowFrame::CollapseRowIfNecessary(nscoord aRowOffset,
|
||||
nscoord shift = 0;
|
||||
nscoord cellSpacingX = tableFrame->GetCellSpacingX();
|
||||
nscoord cellSpacingY = tableFrame->GetCellSpacingY();
|
||||
nsTableCellFrame* cellFrame = GetFirstCell();
|
||||
|
||||
|
||||
if (aCollapseGroup || collapseRow) {
|
||||
nsTableCellFrame* cellFrame = GetFirstCell();
|
||||
aDidCollapse = PR_TRUE;
|
||||
shift = rowRect.height + cellSpacingY;
|
||||
while (cellFrame) {
|
||||
@ -1586,9 +1586,11 @@ nsTableRowFrame::CollapseRowIfNecessary(nscoord aRowOffset,
|
||||
// spans into
|
||||
prevColIndex = (iter.IsLeftToRight()) ?
|
||||
cellColIndex + (cellColSpan - 1) : cellColIndex;
|
||||
PRInt32 startIndex = (iter.IsLeftToRight()) ?
|
||||
cellColIndex : cellColIndex + (cellColSpan - 1);
|
||||
PRInt32 actualColSpan = cellColSpan;
|
||||
PRBool isVisible = PR_FALSE;
|
||||
for (PRInt32 colX = cellColIndex; actualColSpan > 0;
|
||||
for (PRInt32 colX = startIndex; actualColSpan > 0;
|
||||
colX += colIncrement, actualColSpan--) {
|
||||
|
||||
nsTableColFrame* colFrame = tableFrame->GetColFrame(colX);
|
||||
|
Loading…
x
Reference in New Issue
Block a user